From: Bruno Haible Date: Wed, 7 May 2025 08:17:09 +0000 (+0200) Subject: Remove obsolete syntax-check rules. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff1331c2f24b14f7e87b2c6bc51bdf0ca151707e;p=thirdparty%2Fgnulib.git Remove obsolete syntax-check rules. * Makefile (sc_maint): Comment out. (sc_cpp_indent_check, sc_check_sym_list): Remove targets. --- diff --git a/ChangeLog b/ChangeLog index c1e5b652bf..738dce26d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2025-05-07 Bruno Haible + + Remove obsolete syntax-check rules. + * Makefile (sc_maint): Comment out. + (sc_cpp_indent_check, sc_check_sym_list): Remove targets. + 2025-05-07 Bruno Haible Fix "make sc_check_config_h_reminder" failure. diff --git a/Makefile b/Makefile index 88f8cd304d..b2d0cec897 100644 --- a/Makefile +++ b/Makefile @@ -73,12 +73,13 @@ sc_prohibit_sc_omitted_at: 1>&2; exit 1; } || : \ else :; fi -# Run all maint.mk syntax-check tests on gnulib's sources. -sc_maint: - @rm -f maint.mk; ln -s top/maint.mk maint.mk - $(MAKE) -s srcdir=. gnulib_dir=. _build-aux=build-aux \ - -f cfg.mk -f maint.mk syntax-check - rm -f maint.mk +## Unmaintained. When removing this rule, also remove cfg.mk. +## # Run all maint.mk syntax-check tests on gnulib's sources. +## sc_maint: +## @rm -f maint.mk; ln -s top/maint.mk maint.mk +## $(MAKE) -s srcdir=. gnulib_dir=. _build-aux=build-aux \ +## -f cfg.mk -f maint.mk syntax-check +## rm -f maint.mk sc_prohibit_AC_LIBOBJ_in_m4: url=https://lists.gnu.org/r/bug-gnulib/2011-06/msg00051.html; \ @@ -120,26 +121,6 @@ sc_pragma_columns: exit 1; } || :; \ else :; fi -# Verify that certain (for now, only Jim Meyering and Eric Blake's) -# *.c files are consistently cpp indented. -sc_cpp_indent_check: - @./gnulib-tool --extract-filelist \ - $$(cd ./modules; grep -ilrE '(meyering|blake)' .) \ - | sort -u \ - | grep '\.c$$' \ - | grep -vE '/(stdio-(read|write)|getloadavg)\.c$$' \ - | xargs cppi -c - -# Ensure that the list of symbols checked for by the -# sc_prohibit_intprops_without_use rule match those in the actual file. -# Extract the symbols from the .h file and compare with the list of -# symbols extracted from the rule in maint.mk. -sc_check_sym_list: - @i=lib/intprops.h; \ - diff -u <(perl -lne '/^# *define ([A-Z]\w+)\(/ and print $$1' $$i|fmt) \ - <(sed -n /^_intprops_name/,/^_intprops_syms_re/p top/maint.mk \ - |sed '/^_/d;s/^ //;s/ *\\$$//') - # List of C macros defined through AH_VERBATIM in m4/extern-inline.m4: config_h_MACROS1 = \