mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
Update Gnulib to v0.0-6703-g4e0358a.
This commit is contained in:
parent
1002c774e0
commit
7f1ea859ee
30 changed files with 866 additions and 161 deletions
54
maint.mk
54
maint.mk
|
@ -21,8 +21,12 @@
|
|||
# ME := $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
|
||||
ME := maint.mk
|
||||
|
||||
# Override this in cfg.mk if you use a non-standard build-aux directory.
|
||||
build_aux ?= $(srcdir)/build-aux
|
||||
# Diagnostic for continued use of deprecated variable.
|
||||
# Remove in 2013
|
||||
ifneq ($(build_aux),)
|
||||
$(error "$(ME): \
|
||||
set $$(_build-aux) relative to $$(srcdir) instead of $$(build_aux)")
|
||||
endif
|
||||
|
||||
# Do not save the original name or timestamp in the .tar.gz file.
|
||||
# Use --rsyncable if available.
|
||||
|
@ -34,7 +38,7 @@ GZIP_ENV = '--no-name --best $(gzip_rsyncable)'
|
|||
GIT = git
|
||||
VC = $(GIT)
|
||||
|
||||
VC_LIST = $(build_aux)/vc-list-files -C $(srcdir)
|
||||
VC_LIST = $(srcdir)/$(_build-aux)/vc-list-files -C $(srcdir)
|
||||
|
||||
# You can override this variable in cfg.mk to set your own regexp
|
||||
# matching files to ignore.
|
||||
|
@ -274,7 +278,7 @@ define _sc_search_regexp
|
|||
endef
|
||||
|
||||
sc_avoid_if_before_free:
|
||||
@$(build_aux)/useless-if-before-free \
|
||||
@$(srcdir)/$(_build-aux)/useless-if-before-free \
|
||||
$(useless_free_options) \
|
||||
$$($(VC_LIST_EXCEPT) | grep -v useless-if-before-free) && \
|
||||
{ echo '$(ME): found useless "if" before "free" above' 1>&2; \
|
||||
|
@ -618,7 +622,17 @@ _stddef_syms_re = NULL|offsetof|ptrdiff_t|size_t|wchar_t
|
|||
# Prohibit the inclusion of stddef.h without an actual use.
|
||||
sc_prohibit_stddef_without_use:
|
||||
@h='stddef.h' \
|
||||
re='\<($(_stddef_syms_re)) *\(' \
|
||||
re='\<($(_stddef_syms_re))\>' \
|
||||
$(_sc_header_without_use)
|
||||
|
||||
_de1 = dirfd|(close|(fd)?open|read|rewind|seek|tell)dir(64)?(_r)?
|
||||
_de2 = (versionsort|struct dirent|getdirentries|alphasort|scandir(at)?)(64)?
|
||||
_de3 = MAXNAMLEN|DIR|ino_t|d_ino|d_fileno|d_namlen
|
||||
_dirent_syms_re = $(_de1)|$(_de2)|$(_de3)
|
||||
# Prohibit the inclusion of dirent.h without an actual use.
|
||||
sc_prohibit_dirent_without_use:
|
||||
@h='dirent.h' \
|
||||
re='\<($(_dirent_syms_re))\>' \
|
||||
$(_sc_header_without_use)
|
||||
|
||||
# Prohibit the inclusion of verify.h without an actual use.
|
||||
|
@ -749,10 +763,12 @@ gl_other_headers_ ?= \
|
|||
|
||||
# Perl -lne code to extract "significant" cpp-defined symbols from a
|
||||
# gnulib header file, eliminating a few common false-positives.
|
||||
# The exempted names below are defined only conditionally in gnulib,
|
||||
# and hence sometimes must/may be defined in application code.
|
||||
gl_extract_significant_defines_ = \
|
||||
/^\# *define ([^_ (][^ (]*)(\s*\(|\s+\w+)/\
|
||||
&& $$2 !~ /(?:rpl_|_used_without_)/\
|
||||
&& $$1 !~ /^(?:NSIG)$$/\
|
||||
&& $$1 !~ /^(?:NSIG|ENODATA)$$/\
|
||||
&& $$1 !~ /^(?:SA_RESETHAND|SA_RESTART)$$/\
|
||||
and print $$1
|
||||
|
||||
|
@ -1141,6 +1157,16 @@ sc_cross_check_PATH_usage_in_tests:
|
|||
1>&2; exit 1; } || :; \
|
||||
fi
|
||||
|
||||
# BRE regex of file contents to identify a test script.
|
||||
_test_script_regex ?= \<init\.sh\>
|
||||
|
||||
# In tests, use "compare expected actual", not the reverse.
|
||||
sc_prohibit_reversed_compare_failure:
|
||||
@prohibit='\<compare [^ ]+ ([^ ]*exp|/dev/null)' \
|
||||
containing='$(_test_script_regex)' \
|
||||
halt='reversed compare arguments' \
|
||||
$(_sc_search_regexp)
|
||||
|
||||
# #if HAVE_... will evaluate to false for any non numeric string.
|
||||
# That would be flagged by using -Wundef, however gnulib currently
|
||||
# tests many undefined macros, and so we can't enable that option.
|
||||
|
@ -1187,9 +1213,9 @@ bootstrap-tools ?= autoconf,automake,gnulib
|
|||
# If it's not already specified, derive the GPG key ID from
|
||||
# the signed tag we've just applied to mark this release.
|
||||
gpg_key_ID ?= \
|
||||
$$(git cat-file tag v$(VERSION) > .ann-sig \
|
||||
&& gpgv .ann-sig - < /dev/null 2>&1 \
|
||||
| sed -n '/.*key ID \([0-9A-F]*\)/s//\1/p'; rm -f .ann-sig)
|
||||
$$(git cat-file tag v$(VERSION) \
|
||||
| gpgv --status-fd 1 --keyring /dev/null - - 2>/dev/null \
|
||||
| sed -n '/^\[GNUPG:\] ERRSIG /{s///;s/ .*//p;q}')
|
||||
|
||||
translation_project_ ?= coordinator@translationproject.org
|
||||
|
||||
|
@ -1208,7 +1234,7 @@ else
|
|||
endif
|
||||
|
||||
announcement: NEWS ChangeLog $(rel-files)
|
||||
@$(build_aux)/announce-gen \
|
||||
@$(srcdir)/$(_build-aux)/announce-gen \
|
||||
--mail-headers='$(announcement_mail_headers_)' \
|
||||
--release-type=$(RELEASE_TYPE) \
|
||||
--package=$(PACKAGE) \
|
||||
|
@ -1232,7 +1258,7 @@ upload_dest_dir_ ?= $(PACKAGE)
|
|||
emit_upload_commands:
|
||||
@echo =====================================
|
||||
@echo =====================================
|
||||
@echo "$(build_aux)/gnupload $(GNUPLOADFLAGS) \\"
|
||||
@echo "$(srcdir)/$(_build-aux)/gnupload $(GNUPLOADFLAGS) \\"
|
||||
@echo " --to $(gnu_rel_host):$(upload_dest_dir_) \\"
|
||||
@echo " $(rel-files)"
|
||||
@echo '# send the ~/announce-$(my_distdir) e-mail'
|
||||
|
@ -1327,7 +1353,7 @@ web-manual:
|
|||
@test -z "$(manual_title)" \
|
||||
&& { echo define manual_title in cfg.mk 1>&2; exit 1; } || :
|
||||
@cd '$(srcdir)/doc'; \
|
||||
$(SHELL) ../$(build_aux)/gendocs.sh $(gendocs_options_) \
|
||||
$(SHELL) ../$(_build-aux)/gendocs.sh $(gendocs_options_) \
|
||||
-o '$(abs_builddir)/doc/manual' \
|
||||
--email $(PACKAGE_BUGREPORT) $(PACKAGE) \
|
||||
"$(PACKAGE_NAME) - $(manual_title)"
|
||||
|
@ -1392,7 +1418,7 @@ update-copyright-env ?=
|
|||
update-copyright:
|
||||
grep -l -w Copyright \
|
||||
$$(export VC_LIST_EXCEPT_DEFAULT=COPYING && $(VC_LIST_EXCEPT)) \
|
||||
| $(update-copyright-env) xargs $(build_aux)/$@
|
||||
| $(update-copyright-env) xargs $(srcdir)/$(_build-aux)/$@
|
||||
|
||||
# This tight_scope test is skipped with a warning if $(_gl_TS_headers) is not
|
||||
# overridden and $(_gl_TS_dir)/Makefile.am does not mention noinst_HEADERS.
|
||||
|
@ -1422,7 +1448,7 @@ sc_tight_scope: tight-scope.mk
|
|||
|
||||
tight-scope.mk: $(ME)
|
||||
@rm -f $@ $@-t
|
||||
@perl -ne '/^# TS-start/.../^# TS-end/ and print' $(ME) > $@-t
|
||||
@perl -ne '/^# TS-start/.../^# TS-end/ and print' $(srcdir)/$(ME) > $@-t
|
||||
@chmod a=r $@-t && mv $@-t $@
|
||||
|
||||
ifeq (a,b)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue