changeset 15478:206163b08a1f

maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils * top/maint.mk (gl_extract_significant_defines_): Now that SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in gnulib/lib/signal.in.h, and now that we recommend to define-if-undefined those two symbols in application code, we must filter them out of the "significant" list. This avoids a "make syntax-check" failure in coreutils.
author Jim Meyering <meyering@redhat.com>
date Wed, 27 Jul 2011 20:27:48 +0200
parents f10877c6816b
children 1d193b41f1b9
files ChangeLog top/maint.mk
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2011-07-27  Jim Meyering  <meyering@redhat.com>
+
+	maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
+	* top/maint.mk (gl_extract_significant_defines_): Now that
+	SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
+	gnulib/lib/signal.in.h, and now that we recommend to
+	define-if-undefined those two symbols in application code,
+	we must filter them out of the "significant" list.
+	This avoids a "make syntax-check" failure in coreutils.
+
 2011-07-26  Eric Blake  <eblake@redhat.com>
 
 	warnings: add comments about previous patch
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -753,6 +753,7 @@
   /^\# *define ([^_ (][^ (]*)(\s*\(|\s+\w+)/\
     && $$2 !~ /(?:rpl_|_used_without_)/\
     && $$1 !~ /^(?:NSIG)$$/\
+    && $$1 !~ /^(?:SA_RESETHAND|SA_RESTART)$$/\
     and print $$1
 
 # Create a list of regular expressions matching the names