GNOME Bugzilla – Bug 793752
libgweather-locations pot fails to generate
Last modified: 2018-02-23 22:08:45 UTC
libgweather 3.27.4 meson 0.44.1-1 gettext 0.19.8.1-4ubuntu2 Ubuntu 18.04 Alpha Test Case ========= meson builddir ninja -C builddir ninja -v -C builddir libgweather-pot ninja -v -C builddir libgweather-locations-pot Output ninja: Entering directory `builddir' [0/1] /usr/bin/python3 /usr/bin/meson --internal commandrunner /home/jeremy/devel/libgweather /home/jeremy/devel/libgweather/builddir po-locations /usr/bin/python3 /usr/bin/meson /usr/bin/python3 /usr/bin/meson --internal gettext pot --pkgname=libgweather-locations --extra-args=--its@@/home/jeremy/devel/libgweather/data/locations.its FAILED: meson-libgweather-locations-pot /usr/bin/python3 /usr/bin/meson --internal commandrunner /home/jeremy/devel/libgweather /home/jeremy/devel/libgweather/builddir po-locations /usr/bin/python3 /usr/bin/meson /usr/bin/python3 /usr/bin/meson --internal gettext pot --pkgname=libgweather-locations --extra-args=--its@@/home/jeremy/devel/libgweather/data/locations.its ninja: build stopped: subcommand failed. Comments -------- "subcommand failed" so xgettext doesn't like the input it's given, but it's not clear from here what the problem is. Maybe `data/locations.its` has a problem? References ---------- http://mesonbuild.com/i18n-module.html
I get a segfault when executing this in root directory xgettext --its=data/locations.its --files-from=po-locations/POTFILES.in --default-domain=libgweather-locations --output-dir=po-locations It seems like the proper way is to execute `regen.sh` that is in the po-locations folder
By the way, regen.sh creates locations.pot But the meson build would expect libgweather-locations.pot
The segfault is a known issue which has been fixed in upstream git. http://savannah.gnu.org/bugs/?53184 When I jumped into that issue, I noticed that the .pot still was created successfully. So, without having tested on libgweather, simply adding "|| true" might work around the problem for now.
.. or maybe patch gettext with that upstream commit.
I believe we can close this bug then since this appears to be a gettext issue. However, it looks like there is no longer a need for the regen.sh script.
Damned Lies uses it.
I have confirmed that fixing gettext fixes this issue. http://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commitdiff_plain;h=a0cab233