[gnome-build-meta] Add gettext patch for libosinfo



commit fd6793954be51572f131e95bd38b3e850eb399d0
Author: Javier Jardón <jjardon gnome org>
Date:   Sun Aug 11 19:18:57 2019 +0100

    Add gettext patch for libosinfo
    
    This completes c4ceb776a3697dc97f1b3e125ffa32a2bfdc817e

 ...-minimum-gettext-requirement-rather-than-.patch | 59 ++++++++++++++++++++++
 1 file changed, 59 insertions(+)
---
diff --git a/files/libosinfo/0001-build-Use-a-minimum-gettext-requirement-rather-than-.patch 
b/files/libosinfo/0001-build-Use-a-minimum-gettext-requirement-rather-than-.patch
new file mode 100644
index 00000000..4908749d
--- /dev/null
+++ b/files/libosinfo/0001-build-Use-a-minimum-gettext-requirement-rather-than-.patch
@@ -0,0 +1,59 @@
+From ceb1410f47c59f8aa8b8a197008cdd29ebd95904 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Javier=20Jard=C3=B3n?= <jjardon gnome org>
+Date: Sun, 11 Aug 2019 19:11:28 +0100
+Subject: [PATCH] build: Use a minimum gettext requirement rather than an exact
+ one
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+In configure.ac, specify the minimum gettext version we require, rather
+than the exact one. This fixes a situation where the autoconf macros
+used for gettext will be the latest available on the system (for
+example, 0.19); but the copied-in Makefile.in.in will be for the exact
+version specified in configure.ac (in this case, 0.18).
+
+In that situation, the gettext build rules will error out at `make` time
+with the message:
+   *** error: gettext infrastructure mismatch: using a Makefile.in.in
+   from gettext version 0.18 but the autoconf macros are from gettext
+   version 0.19
+
+Avoid that by specifying a minimum version dependency rather than an
+exact one. This should not cause problems as we haven’t committed any
+generated or external gettext files into git, so each developer will end
+up regenerating the build system for their system’s version of gettext,
+as expected.
+
+See the subsection of
+https://www.gnu.org/software/gettext/manual/html_node/Version-Control-Issues.html
+for more information.
+
+Note that autoreconf currently doesn’t recognise
+AM_GNU_GETTEXT_REQUIRE_VERSION, so we must continue also using
+AM_GNU_GETTEXT_VERSION. autopoint will ignore the latter if the former
+is present. See
+https://lists.gnu.org/archive/html/autoconf-patches/2015-10/msg00000.html.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=777430
+---
+ configure.ac | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/configure.ac b/configure.ac
+index 225d53b..e4cc6c4 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -14,7 +14,9 @@ LIBOSINFO_COMPILE_WARNINGS
+ AM_MAINTAINER_MODE([enable])
+ 
+ # i18 support
++# FIXME: Remove AM_GNU_GETTEXT_VERSION once autoreconf supports REQUIRE_VERSION
+ AM_GNU_GETTEXT_VERSION([0.19.7])
++AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.7])
+ AM_GNU_GETTEXT([external])
+ 
+ GETTEXT_PACKAGE=AC_PACKAGE_NAME
+-- 
+2.22.0
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]