commit: 54d2059581878693c624ab83ae84d9c699c50d74 Author: Christophe Lermytte <gentoo <AT> lermytte <DOT> be> AuthorDate: Fri Dec 27 19:05:08 2024 +0000 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> CommitDate: Thu Jan 2 00:04:55 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54d20595
net-dns/ddclient: fix automake portability warning leading to build failure Signed-off-by: Christophe Lermytte <gentoo <AT> lermytte.be> Closes: https://bugs.gentoo.org/936224 Closes: https://github.com/gentoo/gentoo/pull/39869 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> net-dns/ddclient/ddclient-3.11.2.ebuild | 6 ++- ...t-3.11.2-fix-automake-portability-warning.patch | 48 ++++++++++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-) diff --git a/net-dns/ddclient/ddclient-3.11.2.ebuild b/net-dns/ddclient/ddclient-3.11.2.ebuild index a4bd6b60045f..6707a47f7a88 100644 --- a/net-dns/ddclient/ddclient-3.11.2.ebuild +++ b/net-dns/ddclient/ddclient-3.11.2.ebuild @@ -9,10 +9,12 @@ DESCRIPTION="Perl client used to update dynamic DNS entries" HOMEPAGE="https://ddclient.net/" SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~mips ppc ppc64 ~riscv ~sparc x86" LICENSE="GPL-2+" SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~mips ppc ppc64 ~riscv ~sparc x86" + IUSE="examples selinux test" + RESTRICT="!test? ( test )" RDEPEND=" @@ -36,6 +38,8 @@ BDEPEND=" ) " +PATCHES="${FILESDIR}/ddclient-3.11.2-fix-automake-portability-warning.patch" + src_prepare() { default 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 <[email protected]> +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 '$@' +
