From df9ada336f1373c1144b7133a78c97ef5e7afdc3 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 5 Sep 2020 12:20:51 +0200 Subject: [PATCH] Work around bug in xgettext 0.19.8.1 This version crashes on exit when passed a .its file. So ignore the exit status. --- po/automake.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 > $@ -- 2.30.2