grub.git fails to compiler after gnulib upgrade due to gettext
Since the upgrade of gnulib grub.git#master fails to compile if gettext is "too old". This also happens with configure --disable-nls:
+ bash bootstrap --gnulib-srcdir=./grub-core/lib/gnulib --skip-po --no-git --no-bootstrap-sync
bootstrap: Error: 'gettext' version == 0.17 is too old
bootstrap: 'gettext' version >= 0.18.3 is required
Is there a way to fix this before release?
Olaf
Hi Olaf,
Quoted 7 lines · Olaf Hering
Since the upgrade of gnulib grub.git#master fails to compile if gettext is "too old". This also happens with configure --disable-nls:
+ bash bootstrap --gnulib-srcdir=./grub-core/lib/gnulib --skip-po --no-git --no-bootstrap-sync
bootstrap: Error: 'gettext' version == 0.17 is too old
bootstrap: 'gettext' version >= 0.18.3 is requiredIs there a way to fix this before release?
Could you tell us more? OS version, etc...
Daniel
Am Tue, 21 May 2019 11:23:17 +0200
schrieb Daniel Kiper <[email protected]>:
Quoted 1 line
Could you tell us more? OS version, etc...
Well, SLES11. But most importantly, the old gettext. Does gettext matter at all with --disable-nls?
Olaf
Am Tue, 21 May 2019 11:32:18 +0200
schrieb Olaf Hering <[email protected]>:
Quoted 1 line
Does gettext matter at all with --disable-nls?
It does probably not matter at all, but due to this weird code in build-aux/bootstrap it is enforced:
grep '^[ ]*AM_GNU_GETTEXT_VERSION(' configure.ac >/dev/null || \
Maybe gnulib has just no concept of --disable-nls in the project it serves?
Olaf
Am Tue, 21 May 2019 11:49:32 +0200
schrieb Olaf Hering <[email protected]>:
Quoted 1 line
Maybe gnulib has just no concept of --disable-nls in the project it serves?
Even if I disable the gettext checks, there is no check to enforce a new enough autoconf.
For short, the toolchain must be updated for the upcoming grub2. Both are not runtime dependencies, so it can not be considered a problem.
Olaf
Adding Colin who is the original author.
Colin, could you take a look at this thread?
Daniel
Quoted 8 lines · Olaf Hering
Am Tue, 21 May 2019 11:23:17 +0200
schrieb Daniel Kiper <[email protected]>:Quoted 1 line
Could you tell us more? OS version, etc...
Well, SLES11. But most importantly, the old gettext. Does gettext matter at all with --disable-nls?
Olaf
Quoted 10 lines · Daniel Kiper
Quoted 5 lines · Olaf Hering
Am Tue, 21 May 2019 11:23:17 +0200
schrieb Daniel Kiper <[email protected]>:Quoted 1 line
Could you tell us more? OS version, etc...
Well, SLES11. But most importantly, the old gettext. Does gettext matter at all with --disable-nls?
Adding Colin who is the original author.
Colin, could you take a look at this thread?
While gettext probably doesn't massively matter at configure time with --disable-nls, its Autoconf macros do need to *exist* in order to build the configure script, and we need to pick a version of those macros. This is formally a maintainer operation and is expected to be able to rely on reasonably current tools, so I think a version that's nearly six years old isn't too unreasonable. The requirement in bootstrap is necessary in order to satisfy the version of the gettext macros that's pinned in configure.ac (having a newer version installed is OK because gettext ships an archive with lots of older versions of its macros, but having an older version installed won't work).
You can apply the following patch locally to use an earlier version of the gettext macros, but we shouldn't do this upstream because it would mean that the configure script we distribute in tarballs would use the older version, and hence lose out on bug fixes from the newer version. In particular, versions of the gettext macros older than 0.18.2 don't work with Automake >= 1.14, and since that was released in June 2013 maintainers will typically have at least that version installed when generating tarballs.
bootstrap.conf +1 -1
@@ -67,7 +67,7 @@ SKIP_PO=t buildreq="\ autoconf 2.63 automake 1.11 -gettext 0.18.3 +gettext 0.17 git 1.5.5 tar - "
configure.ac +1 -1
@@ -362,7 +362,7 @@ AC_CHECK_PROG(HAVE_CXX, $CXX, yes, no) AC_GNU_SOURCE AM_GNU_GETTEXT([external]) -AM_GNU_GETTEXT_VERSION([0.18.3]) +AM_GNU_GETTEXT_VERSION([0.17]) AC_SYS_LARGEFILE # Identify characteristics of the host architecture.
Signature · 1 line
Colin Watson [[email protected]]