]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: avoid new syntax-check failure
authorJim Meyering <meyering@fb.com>
Wed, 25 Aug 2021 08:34:27 +0000 (01:34 -0700)
committerJim Meyering <meyering@fb.com>
Wed, 25 Aug 2021 15:45:39 +0000 (08:45 -0700)
find-mount-point.h rightly includes <stdlib.h> for its use
of _GL_ATTRIBUTE_DEALLOC_FREE, which uses free, yet that new
inclusion provoked a syntax-check failure. Exempt this header
file as we've done for others.
* cfg.mk (exclude_file_name_regexp--sc_system_h_headers):
Add find-mount-point.h to the regexp.
(sc_system_h_headers): Use grep -E, for a more readable regexp.

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index 01bc42c7c77a4f901a424f465deabc83ab06381e..de198d9925ec0925fe21879be99e047af8b1e570 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -175,7 +175,7 @@ sc_system_h_headers: .re-list
          trap 'rc=$$?; rm -f .re-list; exit $$rc' 0;                   \
          $(gl_trap_);                                                  \
          grep -nE -f .re-list                                          \
-             $$($(VC_LIST_EXCEPT) | grep '^\($(srcdir)/\)\?src/')      \
+             $$($(VC_LIST_EXCEPT) | grep -E '^($(srcdir)/)?src/')      \
            && { echo '$(ME): the above are already included via system.h'\
                  1>&2;  exit 1; } || :;                                \
        fi
@@ -838,7 +838,7 @@ exclude_file_name_regexp--sc_bindtextdomain = \
 exclude_file_name_regexp--sc_trailing_blank = \
   ^(tests/pr/|gl/.*\.diff$$|man/help2man)
 exclude_file_name_regexp--sc_system_h_headers = \
-  ^src/((die|system|copy)\.h|make-prime-list\.c)$$
+  ^src/((die|system|copy|find-mount-point)\.h|make-prime-list\.c)$$
 
 _src = (false|lbracket|ls-(dir|ls|vdir)|tac-pipe|uname-(arch|uname))
 _gl_src = (xdecto.max|cl-strtold)