]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: update to latest gnulib
authorEric Blake <eblake@redhat.com>
Fri, 24 Feb 2012 19:01:15 +0000 (12:01 -0700)
committerEric Blake <eblake@redhat.com>
Wed, 29 Feb 2012 17:27:40 +0000 (10:27 -0700)
It's been a while, and we're between releases, so now's as good
a time as any to resync.  This also fixes a build-breaker on
cygwin, where cygwin 1.7.11 introduced a header bug in <termios.h>.

* .gnulib: Update to latest.
* bootstrap: Resync.
* cfg.mk (sc_prohibit_strncmp): Copy upstream changes to
sc_prohibit_strcmp.

.gnulib
bootstrap
cfg.mk

diff --git a/.gnulib b/.gnulib
index e9e8aba12af3c903edd422fa036a356c5b2f313a..b856fadc1c8dcb53e7efcbb2d0ae7edc022fdb6a 160000 (submodule)
--- a/.gnulib
+++ b/.gnulib
@@ -1 +1 @@
-Subproject commit e9e8aba12af3c903edd422fa036a356c5b2f313a
+Subproject commit b856fadc1c8dcb53e7efcbb2d0ae7edc022fdb6a
index 6910abfad436d5fb3ed6331c0ee08826ef3a4bf2..31eb651f64bd38de1e33e464c7505a6ddd6540c1 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Print a version string.
-scriptversion=2012-01-21.16; # UTC
+scriptversion=2012-02-11.09; # UTC
 
 # Bootstrap this package from checked-out sources.
 
@@ -423,7 +423,7 @@ check_versions() {
       $use_git || continue
     fi
     # Honor $APP variables ($TAR, $AUTOCONF, etc.)
-    appvar=`echo $app | tr '[a-z]-' '[A-Z]_'`
+    appvar=`echo $app | LC_ALL=C tr '[a-z]-' '[A-Z]_'`
     test "$appvar" = TAR && appvar=AMTAR
     case $appvar in
         GZIP) ;; # Do not use $GZIP:  it contains gzip options.
@@ -604,7 +604,7 @@ if $bootstrap_sync; then
 fi
 
 gnulib_tool=$GNULIB_SRCDIR/gnulib-tool
-<$gnulib_tool || exit
+<$gnulib_tool || exit $?
 
 # Get translations.
 
diff --git a/cfg.mk b/cfg.mk
index 9759d873700ca0e425a73d4aa729bc0eba05ebe7..ac6c527891e2cee4d82873030f5172caf3a4f361 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -346,8 +346,9 @@ sc_prohibit_access_xok:
 
 # Similar to the gnulib maint.mk rule for sc_prohibit_strcmp
 # Use STREQLEN or STRPREFIX rather than comparing strncmp == 0, or != 0.
+snp_ = strncmp *\(.+\)
 sc_prohibit_strncmp:
-       @grep -nE '! *str''ncmp *\(|\<str''ncmp *\(.+\) *[!=]='         \
+       @grep -nE '! *strncmp *\(|\<$(snp_) *[!=]=|[!=]= *$(snp_)'      \
            $$($(VC_LIST_EXCEPT))                                       \
          | grep -vE ':# *define STR(N?EQLEN|PREFIX)\(' &&              \
          { echo '$(ME): use STREQLEN or STRPREFIX instead of str''ncmp' \