From aa08c6df4b83ce03e6328fb3085048fd3b43369c Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 17 Apr 2025 22:55:34 -0400 Subject: [PATCH] net-analyzer/nagios-plugins: add USE=nls, work around NLS build fail You're never going to guess who reported the new build failure from bug 953411 in September of 2024: https://github.com/nagios-plugins/nagios-plugins/issues/786 Closes: https://bugs.gentoo.org/953411 Signed-off-by: Michael Orlitzky --- ...4.12-r1.ebuild => nagios-plugins-2.4.12-r2.ebuild} | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) rename net-analyzer/nagios-plugins/{nagios-plugins-2.4.12-r1.ebuild => nagios-plugins-2.4.12-r2.ebuild} (91%) diff --git a/net-analyzer/nagios-plugins/nagios-plugins-2.4.12-r1.ebuild b/net-analyzer/nagios-plugins/nagios-plugins-2.4.12-r2.ebuild similarity index 91% rename from net-analyzer/nagios-plugins/nagios-plugins-2.4.12-r1.ebuild rename to net-analyzer/nagios-plugins/nagios-plugins-2.4.12-r2.ebuild index add6fce1fcec..8a45c8c2046e 100644 --- a/net-analyzer/nagios-plugins/nagios-plugins-2.4.12-r1.ebuild +++ b/net-analyzer/nagios-plugins/nagios-plugins-2.4.12-r2.ebuild @@ -12,7 +12,7 @@ SRC_URI="https://github.com/${PN}/${PN}/releases/download/release-${PV}/${P}.tar LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" -IUSE="ipv6 ldap mysql nagios-dns nagios-ping nagios-game postgres radius samba selinux snmp ssh +ssl" +IUSE="ipv6 ldap mysql nagios-dns nagios-ping nagios-game nls postgres radius samba selinux snmp ssh +ssl" # Most of the plugins use automagic dependencies, i.e. the plugin will # get built if the binary it uses is installed. For example, check_snmp @@ -88,6 +88,12 @@ src_prepare() { || die 'failed to fix perl interpreter path' eautoreconf + + # eautoreconf replaces $(MKDIR_P) with $(mkdir_p) in + # po/Makefile.in.in. As you might expect, this does not work. + sed -i po/Makefile.in.in \ + -e 's/@mkdir_p@/@MKDIR_P@/' \ + || die } src_configure() { @@ -111,9 +117,10 @@ src_configure() { fi econf \ - $(use_with mysql) \ $(use_with ipv6) \ $(use_with ldap) \ + $(use_with mysql) \ + $(use_enable nls) \ $(use_with postgres pgsql /usr) \ $(use_with radius) \ "${myconf[@]}" \