Subject: Re: bug#8892: distcheck failure from master

From: Pádraig Brady <[email-masked]>
Date: Sat, 18 Jun 2011 18:59:27 +0100

On 18/06/11 18:11, Stefano Lattarini wrote:
> Running "make distcheck" from the latest git version of autoconf, I get
> this error:
> 
>   ... [LOTS OF OUTPUT SNIPPED]
>   strftime_check
>   --- sc_strftime_check-src       2011-06-18 19:08:06.000000000 +0200
>   +++ sc_strftime_check-info      2011-06-18 19:08:10.000000000 +0200

I'll apply the attached to avoid this.

cheers,
Pádraig.
>From 24e7e6a6713a9f5151d4e6ab00ef25c01ac3b130 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C3=A1draig=20Brady?= <[email-masked]>
Date: Sat, 18 Jun 2011 18:58:44 +0100
Subject: [PATCH] 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
---
 cfg.mk |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/cfg.mk b/cfg.mk
index 6c8acaa..8a0dc9f 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
 
-- 
1.7.5.2