From: John Darrington Date: Sat, 5 Sep 2020 10:20:51 +0000 (+0200) Subject: Work around bug in xgettext 0.19.8.1 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df9ada336f1373c1144b7133a78c97ef5e7afdc3;p=pspp Work around bug in xgettext 0.19.8.1 This version crashes on exit when passed a .its file. So ignore the exit status. --- diff --git a/po/automake.mk b/po/automake.mk index 594d35e14f..7bf177b63d 100644 --- a/po/automake.mk +++ b/po/automake.mk @@ -64,7 +64,10 @@ $(POTFILE): $(ALL_TRANSLATABLE_FILES) Makefile @$(MKDIR_P) po $(AM_V_GEN)$(XGETTEXT) $(XGETTEXT_OPTIONS) $(TRANSLATABLE_FILES) --language=C --keyword=_ --keyword=N_ -o $@,tmp $(AM_V_at)$(XGETTEXT) $(XGETTEXT_OPTIONS) -j $(UI_FILES) --language=Glade -o $@,tmp - $(AM_V_at)$(XGETTEXT) $(XGETTEXT_OPTIONS) --its=$(top_srcdir)/po/metainfo.its -j src/ui/gui/org.fsf.pspp.metainfo.xml.in -o $@,tmp + ## xgettext 0.19.8.1 is known to crash on exit on the following command. + ## See https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commitdiff;h=a0cab233 + ## Therefore we ignore the exit status + $(AM_V_at)$(XGETTEXT) $(XGETTEXT_OPTIONS) --its=$(top_srcdir)/po/metainfo.its -j src/ui/gui/org.fsf.pspp.metainfo.xml.in -o $@,tmp || true $(AM_V_at)$(XGETTEXT) $(XGETTEXT_OPTIONS) -j src/ui/gui/org.fsf.pspp.desktop.in -o $@,tmp $(AM_V_at)$(SED) -e '/^"POT-Creation-Date: .*/d' $@,tmp > $@