diff options
Diffstat (limited to 'net-dns/ddclient/files/ddclient-3.11.2-fix-automake-portability-warning.patch')
-rw-r--r-- | net-dns/ddclient/files/ddclient-3.11.2-fix-automake-portability-warning.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/net-dns/ddclient/files/ddclient-3.11.2-fix-automake-portability-warning.patch b/net-dns/ddclient/files/ddclient-3.11.2-fix-automake-portability-warning.patch new file mode 100644 index 000000000000..e775701d2de4 --- /dev/null +++ b/net-dns/ddclient/files/ddclient-3.11.2-fix-automake-portability-warning.patch @@ -0,0 +1,48 @@ +https://github.com/ddclient/ddclient/commit/a12398c315b9b909e57e87acf9fd3a15a0b3e213.patch +https://bugs.gentoo.org/936224 + +From: Richard Hansen <rhansen@rhansen.org> +Date: Thu, 19 Dec 2024 05:00:56 -0500 +Subject: [PATCH] Makefile.am: Fix Automake portability warning + +This silences: + + Makefile.am:20: warning: escaping \# comment markers is not portable +--- a/Makefile.am ++++ b/Makefile.am +@@ -16,19 +16,7 @@ EXTRA_DIST = \ + sample-get-ip-from-fritzbox + CLEANFILES = + +-# Command that replaces substitution variables with their values. +-subst = sed \ +- -e 's|@PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \ +- -e '1 s|^\#\!.*perl$$|\#\!$(PERL)|g' \ +- -e 's|@localstatedir[@]|$(localstatedir)|g' \ +- -e 's|@runstatedir[@]|$(runstatedir)|g' \ +- -e 's|@sysconfdir[@]|$(sysconfdir)|g' \ +- -e 's|@CURL[@]|$(CURL)|g' +- +-# Files that will be generated by passing their *.in file through +-# $(subst). + subst_files = ddclient ddclient.conf +- + EXTRA_DIST += $(subst_files:=.in) + CLEANFILES += $(subst_files) + +@@ -36,7 +24,14 @@ $(subst_files): Makefile + rm -f '$@' '$@'.tmp + in='$@'.in; \ + test -f "$${in}" || in='$(srcdir)/'$${in}; \ +- $(subst) "$${in}" >'$@'.tmp && \ ++ sed \ ++ -e 's|@PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \ ++ -e '1 s|^#\!.*perl$$|#\!$(PERL)|g' \ ++ -e 's|@localstatedir[@]|$(localstatedir)|g' \ ++ -e 's|@runstatedir[@]|$(runstatedir)|g' \ ++ -e 's|@sysconfdir[@]|$(sysconfdir)|g' \ ++ -e 's|@CURL[@]|$(CURL)|g' \ ++ "$${in}" >'$@'.tmp && \ + { ! test -x "$${in}" || chmod +x '$@'.tmp; } + mv '$@'.tmp '$@' + |