]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: avoid bootstrap error with gettext 0.18.3.1
authorAssaf Gordon <assafgordon@gmail.com>
Mon, 12 May 2014 16:17:06 +0000 (12:17 -0400)
committerPádraig Brady <P@draigBrady.com>
Mon, 12 May 2014 18:14:34 +0000 (19:14 +0100)
* bootstrap: Create critical bootstrap files for autopoint,
before gnulib re-generates them, avoiding the issue.  See:
http://lists.gnu.org/archive/html/coreutils/2013-11/msg00038.html
http://savannah.gnu.org/bugs/?40083
https://pad.lv/1311895

bootstrap

index ce90bc419fddaed3749463b22c3e9717c5c1a58a..a3e68f00952e75d4fca08c81581f9b2fa1d32999 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -807,6 +807,21 @@ version_controlled_file() {
   fi
 }
 
+# Avoid boostrap failure with gettext/autopoint bug in version 0.18.3.1
+# http://lists.gnu.org/archive/html/coreutils/2013-11/msg00038.html
+# Remove in 2015 when distros have upgraded to >= 0.18.3.2
+autopoint_version=$(get_version $AUTOPOINT)
+# Note autopoint returns version 0.18.3 for version 0.18.3.1
+if test "$autopoint_version" = '0.18.3' ; then
+  if test "$package" = 'coreutils' ; then
+    test -e 'm4/cu-progs.m4' || touch 'm4/cu-progs.m4'
+  fi
+  if ! test -e 'build-aux/git-version-gen' ; then
+    printf "#!/bin/sh\n" > 'build-aux/git-version-gen'
+    chmod a+x 'build-aux/git-version-gen'
+  fi
+fi
+
 # NOTE: we have to be careful to run both autopoint and libtoolize
 # before gnulib-tool, since gnulib-tool is likely to provide newer
 # versions of files "installed" by these two programs.