After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 793752 - libgweather-locations pot fails to generate
libgweather-locations pot fails to generate
Status: RESOLVED NOTGNOME
Product: libgweather
Classification: Core
Component: locations
3.27.x
Other Linux
: Normal normal
: future
Assigned To: libgweather-maint
libgweather-maint
Depends on:
Blocks:
 
 
Reported: 2018-02-23 13:08 UTC by Jeremy Bicha
Modified: 2018-02-23 22:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jeremy Bicha 2018-02-23 13:08:28 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
Comment 1 Corentin Noël 2018-02-23 13:47:11 UTC
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 
Comment 2 Jeremy Bicha 2018-02-23 16:16:14 UTC
By the way, regen.sh creates locations.pot

But the meson build would expect libgweather-locations.pot
Comment 3 Gunnar Hjalmarsson 2018-02-23 20:20:38 UTC
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.
Comment 4 Gunnar Hjalmarsson 2018-02-23 20:29:07 UTC
.. or maybe patch gettext with that upstream commit.
Comment 5 Jeremy Bicha 2018-02-23 21:45:51 UTC
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.
Comment 6 Piotr Drąg 2018-02-23 21:47:18 UTC
Damned Lies uses it.
Comment 7 Gunnar Hjalmarsson 2018-02-23 22:08:45 UTC
I have confirmed that fixing gettext fixes this issue.

http://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commitdiff_plain;h=a0cab233