From: Pádraig Brady
Date: Sat, 18 Jun 2011 17:58:44 +0000 (+0100) Subject: maint: avoid a false positive syntax check X-Git-Tag: v8.13~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24b3c8b160e44305359c121e88c731b0366ad210;p=thirdparty%2Fcoreutils.git maint: avoid a false positive syntax check * cfg.mk (sc_strftime_check): Skip the check when there is no info to compare against. Reported by Stefano Lattarini --- diff --git a/cfg.mk b/cfg.mk index 6c8acaa553..8a0dc9f702 100644 --- a/cfg.mk +++ b/cfg.mk @@ -205,7 +205,11 @@ sc_strftime_check: { echo N; \ info libc date calendar format 2>/dev/null|grep '^ `%.'\'\ | $(extract_char); } | sort > $@-info; \ - diff -u $@-src $@-info || exit 1; \ + if test $$(stat --format %s $@-info) != 2; then \ + diff -u $@-src $@-info || exit 1; \ + else \ + echo '$(ME): skipping $@: libc info not installed' 1>&2; \ + fi; \ rm -f $@-src $@-info; \ fi