This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=46540393144883ba08e1997c875aa25aa76ae2c5 commit 46540393144883ba08e1997c875aa25aa76ae2c5 Author: Guillem Jover <[email protected]> AuthorDate: Mon Feb 10 00:48:44 2025 +0100 build: Avoid explicitly escaped hash characters in automake files Warned-by: automake --- build-aux/subst.am | 3 ++- man/Makefile.am | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build-aux/subst.am b/build-aux/subst.am index 9c96e5ce0..f4a25a43c 100644 --- a/build-aux/subst.am +++ b/build-aux/subst.am @@ -24,8 +24,9 @@ SUFFIXES += .sh # Perl support. +# Note: We need to hex-escape '#' (0x23) to avoid portability issues with make. subst_perl_rules = "\ - s{^\#!\s*/usr/bin/perl}{\#!$(PERL)}; \ + s{^\x23!\s*/usr/bin/perl}{\x23!$(PERL)}; \ s{our \\\$$CONFDIR = .*;}{our \\\$$CONFDIR = '$(pkgconfdir)';}; \ s{our \\\$$ADMINDIR = .*;}{our \\\$$ADMINDIR = '$(admindir)';}; \ s{our \\\$$LIBDIR = .*;}{our \\\$$LIBDIR = '$(pkglibexecdir)';}; \ diff --git a/man/Makefile.am b/man/Makefile.am index 84e258f4e..f09be8c2f 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -266,7 +266,7 @@ MANGEN = $(POD2MAN_V) filename='$@'; \ $(PODSUBST) $< | \ $(POD2MAN) $(POD2MAN_OPTS) \ --name="$$(basename $${filename%.*})" \ - --section="$${filename\#\#*.}" | \ + --section="$$($(PERL) -E 'say((split /\./, shift)[-1])' $$filename)" | \ $(MANFIXUP) >$@ endif -- Dpkg.Org's dpkg

