[libvirt] [PATCH] build: update to latest gnulib

It's been a while, and we're between releases, so now's as good a time as any to resync. I didn't notice any showstopper bugs being fixed, but we definitely get some improvements, such as tighter syntax checks. * .gnulib: Update to latest. * bootstrap: Resync. * cfg.mk (sc_prohibit_strncmp): Copy upstream changes to sc_prohibit_strcmp. --- * .gnulib e9e8aba...be29134 (47):
stdalign: @samp -> @code in doc for consistency stdnoreturn: new module regex: fix false multibyte matches in some regular expressions maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too streq: Rename macro. regex: fix typo in definition of MIN acl: Don't use ACL_CNT and similar ops, since they are unreliable. acl: Don't use GETACLCNT and similar ops, since they are unreliable. acl: Fix endless loop on Solaris with vxfs. acl: Fix copy-acl test failure on Solaris 11 2011-11. acl: Update doc references. Fix test failure in many locales on Solaris 11. gnulib-tool: Improve usage message. autoupdate README-release: make it easier to execute commands GNUmakefile: simplify detection of unconfigured trees autoupdate autoupdate autoupdate gnulib-tool: Doc fix. bootstrap: don't exit 0 upon gnulib-tool failure README-release: various improvements autoupdate maint: replace FSF snail-mail addresses with URLs README-release: capitalize a word and split a line fatal-signal: use C prototypes (with explicit void). regex: spelling fix regex: rely on stdint.h for SIZE_MAX regex: merge glibc changes maint.mk: also prohibit lower-case @var@ autoupdate maint: spelling fixes canonicalize: avoid uninitialized memory use isatty: Fix test failure of ptsname_r on native Windows. spawn-pipe tests: Fix a NULL program name in a diagnostic. nonblocking-socket tests: Fix a NULL program name in a diagnostic. nonblocking-pipe tests: Fix a NULL program name in a diagnostic. canonicalize-lgpl: fix // handling canonicalize: fix // handling ioctl: Fix test failure on native Windows. fsync: Avoid test failure on native Windows. * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is sys_select: Avoid syntax error on OpenBSD 5.0. get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7. stdioext: Fix last commit. stdioext: Add tentative support for Plan9. file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
.gnulib | 2 +- bootstrap | 6 +++--- cfg.mk | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gnulib b/.gnulib index e9e8aba..be29134 160000 --- a/.gnulib +++ b/.gnulib @@ -1 +1 @@ -Subproject commit e9e8aba12af3c903edd422fa036a356c5b2f313a +Subproject commit be29134ddd011e6bcf1d73b4ae3d7ee7da60276f diff --git a/bootstrap b/bootstrap index 6910abf..31eb651 100755 --- 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 9759d87..ac6c527 100644 --- 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' \ -- 1.7.7.6

On 02/24/2012 07:39 PM, Eric Blake wrote:
It's been a while, and we're between releases, so now's as good a time as any to resync. I didn't notice any showstopper bugs being fixed, but we definitely get some improvements, such as tighter syntax checks.
I just noticed this hasn't been ACKed/pushed yet. Sounds like a good idea to me. ACK.
* .gnulib: Update to latest. * bootstrap: Resync. * cfg.mk (sc_prohibit_strncmp): Copy upstream changes to sc_prohibit_strcmp. ---
* .gnulib e9e8aba...be29134 (47):
stdalign: @samp -> @code in doc for consistency stdnoreturn: new module regex: fix false multibyte matches in some regular expressions maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too streq: Rename macro. regex: fix typo in definition of MIN acl: Don't use ACL_CNT and similar ops, since they are unreliable. acl: Don't use GETACLCNT and similar ops, since they are unreliable. acl: Fix endless loop on Solaris with vxfs. acl: Fix copy-acl test failure on Solaris 11 2011-11. acl: Update doc references. Fix test failure in many locales on Solaris 11. gnulib-tool: Improve usage message. autoupdate README-release: make it easier to execute commands GNUmakefile: simplify detection of unconfigured trees autoupdate autoupdate autoupdate gnulib-tool: Doc fix. bootstrap: don't exit 0 upon gnulib-tool failure README-release: various improvements autoupdate maint: replace FSF snail-mail addresses with URLs README-release: capitalize a word and split a line fatal-signal: use C prototypes (with explicit void). regex: spelling fix regex: rely on stdint.h for SIZE_MAX regex: merge glibc changes maint.mk: also prohibit lower-case @var@ autoupdate maint: spelling fixes canonicalize: avoid uninitialized memory use isatty: Fix test failure of ptsname_r on native Windows. spawn-pipe tests: Fix a NULL program name in a diagnostic. nonblocking-socket tests: Fix a NULL program name in a diagnostic. nonblocking-pipe tests: Fix a NULL program name in a diagnostic. canonicalize-lgpl: fix // handling canonicalize: fix // handling ioctl: Fix test failure on native Windows. fsync: Avoid test failure on native Windows. * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is sys_select: Avoid syntax error on OpenBSD 5.0. get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7. stdioext: Fix last commit. stdioext: Add tentative support for Plan9. file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
.gnulib | 2 +- bootstrap | 6 +++--- cfg.mk | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/.gnulib b/.gnulib index e9e8aba..be29134 160000 --- a/.gnulib +++ b/.gnulib @@ -1 +1 @@ -Subproject commit e9e8aba12af3c903edd422fa036a356c5b2f313a +Subproject commit be29134ddd011e6bcf1d73b4ae3d7ee7da60276f diff --git a/bootstrap b/bootstrap index 6910abf..31eb651 100755 --- 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 9759d87..ac6c527 100644 --- 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' \

On 02/29/2012 02:50 AM, Laine Stump wrote:
On 02/24/2012 07:39 PM, Eric Blake wrote:
It's been a while, and we're between releases, so now's as good a time as any to resync. I didn't notice any showstopper bugs being fixed, but we definitely get some improvements, such as tighter syntax checks.
I just noticed this hasn't been ACKed/pushed yet.
Sounds like a good idea to me. ACK.
It turns out I found a build-breaker after all - libvirt failed to compile during 'make check' on cygwin 1.7.11 unless I further update .gnulib for a few more fixes. Now pushed, with .gnulib moved up to: * .gnulib e9e8aba...b856fad (180):
termios: fix pid_t always, not just for tcgetsid update from texinfo Tests for module 'hypotl'. New module 'hypotl'. hypotf: Fix typo in comment. tcgetsid: fix cygwin header bug docs: update cygwin progress Tests for module 'hypotf'. New module 'hypotf'. hypot: Prepare for hypotf module. hypot tests: More tests. math code: Add comments. math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined. doc: Move ISO C11 feature notes into POSIX chapters. stdnoreturn: port to MSVC better doc: Mention new glibc headers and functions. Avoid compilation errors with MSVC option -fp:strict. Tests for module 'sqrtl-ieee'. New module 'sqrtl-ieee'. Tests for module 'sqrt-ieee'. New module 'sqrt-ieee'. Tests for module 'sqrtf-ieee'. New module 'sqrtf-ieee'. remainderl-ieee: Work around test failure on OSF/1. remainderf-ieee: Work around test failure on OSF/1. remainder-ieee: Work around test failure on OSF/1. Tests for module 'remainderl-ieee'. New module 'remainderl-ieee'. Tests for module 'remainder-ieee'. New module 'remainder-ieee'. Tests for module 'remainderf-ieee'. New module 'remainderf-ieee'. modff, modfl: Fix configure syntax error. fmodl-ieee: Work around test failures on OSF/1, MSVC 9. fmodf-ieee: Work around test failure on OSF/1. fmodf-ieee: Work around test failure on MSVC 9. fmod-ieee: Work around test failures on OSF/1, mingw. fmodl-ieee: Fix test failures. Tests for module 'fmodl-ieee'. New module 'fmodl-ieee'. Tests for module 'fmod-ieee'. New module 'fmod-ieee'. Tests for module 'fmodf-ieee'. New module 'fmodf-ieee'. Tests for module 'rintl-ieee'. New module 'rintl-ieee'. Tests for module 'rint-ieee'. New module 'rint-ieee'. Tests for module 'rintf-ieee'. New module 'rintf-ieee'. regex: re_search etc. should return -2 when memory exhausted modfl-ieee: Work around test failures on IRIX, OSF/1, mingw. modfl-ieee: Fix dependencies. modfl-ieee: Fix test failures. modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc. modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin. Tests for module 'modfl-ieee'. New module 'modfl-ieee'. Tests for module 'modf-ieee'. New module 'modf-ieee'. Tests for module 'modff-ieee'. New module 'modff-ieee'. Tests for module 'fabsl-ieee'. New module 'fabsl-ieee'. Tests for module 'fabs-ieee'. New module 'fabs-ieee'. Tests for module 'fabsf-ieee'. New module 'fabsf-ieee'. fma*-ieee tests: Remove unneeded dependency. Tests for module 'fmal-ieee'. New module 'fmal-ieee'. Tests for module 'fma-ieee'. New module 'fma-ieee'. Tests for module 'fmaf-ieee'. New module 'fmaf-ieee'. Tests for module 'ldexpl-ieee'. New module 'ldexpl-ieee'. Tests for module 'ldexp-ieee'. New module 'ldexp-ieee'. Tests for module 'ldexpf-ieee'. New module 'ldexpf-ieee'. Refactor frexp*-ieee tests. More tests for modules frexpf-ieee, frexp-ieee, frexpl-ieee. Tests for module 'frexpl-ieee'. New module 'frexpl-ieee'. Tests for module 'frexp-ieee'. New module 'frexp-ieee'. Tests for module 'frexpf-ieee'. New module 'frexpf-ieee'. roundl-ieee tests: More tests. round-ieee tests: More tests. roundf-ieee tests: More tests. truncl-ieee tests: More tests. trunc-ieee tests: More tests. truncf-ieee tests: More tests. ceill-ieee tests: More tests. ceil-ieee tests: More tests. ceilf-ieee tests: More tests. floorl-ieee tests: More tests. floor-ieee tests: More tests. floorf-ieee tests: More tests. fpieee: More comments. Tests for module 'log10l'. New module 'log10l'. fmodl, remainder*: Avoid wrong results due to rounding errors. Fix typo in recent ChangeLog entry. Tests for module 'remainderl'. New module 'remainderl'. Tests for module 'remainderf'. New module 'remainderf'. remainder: Support for MSVC. Tests for module 'fmodl'. New module 'fmodl'. Tests for module 'modfl'. New module 'modfl'. Tests for module 'fabsl'. Tests for module 'fabsl'. New module 'fabsl'. fabs tests: More tests. fabsf tests: More tests. atanl: Provide function definition on MSVC. acosl: Provide function definition on MSVC. asinl: Provide function definition on MSVC. tanl: Provide function definition on MSVC. cosl: Provide function definition on MSVC. sinl: Provide function definition on MSVC. logl: Provide function definition on MSVC. expl: Provide function definition on MSVC. sqrtl: Provide function definition on MSVC. ceill: Provide function definition on MSVC. floorl: Provide function definition on MSVC. ceilf: Provide function definition on MSVC. floorf: Provide function definition on MSVC. stdalign: @samp -> @code in doc for consistency stdnoreturn: new module regex: fix false multibyte matches in some regular expressions maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too streq: Rename macro. regex: fix typo in definition of MIN acl: Don't use ACL_CNT and similar ops, since they are unreliable. acl: Don't use GETACLCNT and similar ops, since they are unreliable. acl: Fix endless loop on Solaris with vxfs. acl: Fix copy-acl test failure on Solaris 11 2011-11. acl: Update doc references. Fix test failure in many locales on Solaris 11. gnulib-tool: Improve usage message. autoupdate README-release: make it easier to execute commands GNUmakefile: simplify detection of unconfigured trees autoupdate autoupdate autoupdate gnulib-tool: Doc fix. bootstrap: don't exit 0 upon gnulib-tool failure README-release: various improvements autoupdate maint: replace FSF snail-mail addresses with URLs README-release: capitalize a word and split a line fatal-signal: use C prototypes (with explicit void). regex: spelling fix regex: rely on stdint.h for SIZE_MAX regex: merge glibc changes maint.mk: also prohibit lower-case @var@ autoupdate maint: spelling fixes canonicalize: avoid uninitialized memory use isatty: Fix test failure of ptsname_r on native Windows. spawn-pipe tests: Fix a NULL program name in a diagnostic. nonblocking-socket tests: Fix a NULL program name in a diagnostic. nonblocking-pipe tests: Fix a NULL program name in a diagnostic. canonicalize-lgpl: fix // handling canonicalize: fix // handling ioctl: Fix test failure on native Windows. fsync: Avoid test failure on native Windows. * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is sys_select: Avoid syntax error on OpenBSD 5.0. get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7. stdioext: Fix last commit. stdioext: Add tentative support for Plan9. file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
-- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
participants (2)
-
Eric Blake
-
Laine Stump