/srv/irclogs.ubuntu.com/2021/04/27/#ubuntu-devel.txt

DarkTrick**Q** @ Someone familar with I18n for C programs: I'm currently upgrading the source for package `gjiten` to GTK 3. I have some trouble with internationalization: tutorials say I should `#define _(str) gettext (str)` etc. in my source. However I could find it nowhere in the origial source. Should I suspect something wrong, or are there configurations (through configure.ac,...) that make these defines unnecessary?11:04
DarkTrickSource btw: https://github.com/DarkTrick/gjiten11:04
cjwatsonDarkTrick: some glib headers define that macro11:09
cjwatsonwhich will be included indirectly by gtk headers11:09
DarkTrickcjwatson, so if I use gtk, I won't need the defines specifically in my code11:10
DarkTrickcjwatson, thank you!11:10
cjwatsonhttps://developer.gnome.org/glib/stable/glib-I18N.html11:10
DarkTrickcjwatson, a reference! thank yoU!11:10
DarkTrickyou11:10
cjwatsonnp11:11
seb128bdmurray, hey, any idea why https://errors.ubuntu.com/problem/bbaeb2a51fa715f17ffcac958fecad4e400436aa is failing to provide a backtrace on the retracers?11:29
DarkTrick**Q** @ configure.ac: is it a good thing to not use `AM_MAINTAINER_MODE` in a configure.ac?12:15
eoli3nHi12:39
eoli3nxnox i use ansible to install some snap package at the end of a preseed installation12:40
eoli3nmy tasks fails because of a package not found12:41
eoli3nsee https://x0.at/VAO.txt12:41
eoli3nbut when i first boot my system and then use "snap install pdftk" it works12:41
=== popey5 is now known as popey
dbungertseb128: thanks for the heads up on LP: #1926298, I put that in my queue13:43
ubottuLaunchpad bug 1926298 in update-notifier (Ubuntu) "Segfault added in the recent changes" [High,New] https://launchpad.net/bugs/192629813:43
seb128dbungert, thanks, I didn't spend much time on it but I sounds like using g_find_program_in_path could simplify your code and maybe fix the issue as a side effect (if the bug is your custom implementation of a similar function)13:44
dbungertsounds great, I'll look into it13:44
seb128👍13:45
eoli3nis there a way to tell ubuntu installer to not create "ubuntu" default efi entry ?13:46
eoli3nany preseed key ?13:46
xnoxeoli3n: snap install will not work in a chroot, with /run mounted from host. instead you should use /usr/lib/snapd/snap-preseed --reset to reset the /target system, and then use `snap download` to get any extra snaps & assertions, drop them in /var/lib/snapd/seed and modify the yaml file there.13:50
xnoxeoli3n:  this is the correct way to download snaps, and make snapd "install them on first boot on a classic system fully offline/noninteractive"13:50
xnoxeoli3n:  that's how i.e. we install snap-store snap, lxd snap, etc. on various classic installers.13:50
eoli3nso the problem comes from "snap" ansible module13:51
eoli3ni will simlpy "when: not ansible_is_chroot" on this13:51
eoli3nwhat about the efi entry creation ?13:51
xnoxeoli3n:  yes and no, maybe. ansible normally does "ssh as root into the host" and in that case "snap install does work"13:51
xnoxeoli3n:  efi entry it is always created and it is harmless. You can use efibootmgr to delete it, but the disk image, will always create it on first boot and on upgrades.13:52
eoli3nxnox not really, for exemple, the module "systemd" skip tasks about services, when chroot is detected13:52
xnox(ie. boot/bootx64.efi will launch boot/fbx64.efi which will create it on first boot)13:52
eoli3nxnox, how to keep pxe boot as default entry then ?13:52
xnoxeoli3n:  good question, in some servers pxe boot can be set as always-preferred which overrides any distro attempts to set local boot as first one.13:53
xnoxor use efibootmgr to _reorder_ but do not _delete_ ubuntu entry.13:53
eoli3nlets try this13:53
xnoxie. efibootgr you want to reorder to make pxe first.13:53
eoli3nthanks for your help13:53
xnoxeoli3n:  re systemd / chroot => i don't know if ansible does it or systemctl. Cause systemctl itself has chroot detection and doesn't do anything then.13:54
eoli3ni tried, and as i remember, reordering with efibootmgr is pain13:54
eoli3nah maybe its systemctl's detection13:54
eoli3nso why snapd doesnt detect the chroot before trying packages ?13:55
xnoxeoli3n:  well you can always copy and install BootOrder variable as a file, if you know which order things are in =)13:55
eoli3nthat's not even snapd, which is not running13:55
eoli3ni miss something here13:55
xnoxi.e. one can copy the binary /sys/firmware/efi/efivars/BootOrder-8be4df61-93ca-11d2-aa0d-00e098032b8c file around if the bootorder of entries in the same on all machines.13:55
eoli3ni remember that you worked on the chroot detection for the chromium package13:56
xnoxeoli3n:  "worked" => open a bug report to fix the postinst.13:56
eoli3ngood to know thanks13:56
xnoxeoli3n:  but i kind of agree that `snap install` should be sane when called from a chroot.13:56
eoli3nsnap install should first test if chroot, before doing anything13:57
eoli3ndoesn't it ?13:57
eoli3nlets open a bug report13:57
xnoxno idea, you need to ask snapd people13:57
eoli3nhm13:57
eoli3nso bug report on github/snapd13:57
eoli3nif i snap install an existant package, i get a drop because of the chroot. Here, the problem is that the package exists, but snap can't find it in post install, and early after the first boot14:01
eoli3nhttps://bugs.launchpad.net/snappy/+bug/1926301 : done14:06
ubottuLaunchpad bug 1926301 in Snappy "No snap matching $package available in ubuntu post-install" [Undecided,New]14:06
=== didrocks999 is now known as didrocks
=== KelseyS_ is now known as KelseyS
=== sarnold_ is now known as sarnold
=== TJ_Remix is now known as TJ-
DarkTrick*Q* @ internationalization: are gettext and intltool opposing technologies?23:16

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!