From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1738083-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id F38D81584AD
	for <garchives@archives.gentoo.org>; Fri, 18 Apr 2025 03:00:11 +0000 (UTC)
Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	(Authenticated sender: relay-lists.gentoo.org@gentoo.org)
	by smtp.gentoo.org (Postfix) with ESMTPSA id DEABC342FE7
	for <garchives@archives.gentoo.org>; Fri, 18 Apr 2025 03:00:11 +0000 (UTC)
Received: from bobolink.gentoo.org (localhost [127.0.0.1])
	by bobolink.gentoo.org (Postfix) with ESMTP id DA7CD110494;
	Fri, 18 Apr 2025 03:00:10 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by bobolink.gentoo.org (Postfix) with ESMTPS id D08E8110494
	for <gentoo-commits@lists.gentoo.org>; Fri, 18 Apr 2025 03:00:10 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 5E5CB342FE7
	for <gentoo-commits@lists.gentoo.org>; Fri, 18 Apr 2025 03:00:10 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 790EA186A
	for <gentoo-commits@lists.gentoo.org>; Fri, 18 Apr 2025 03:00:08 +0000 (UTC)
From: "Michael Orlitzky" <mjo@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" <mjo@gentoo.org>
Message-ID: <1744945093.aa08c6df4b83ce03e6328fb3085048fd3b43369c.mjo@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nagios-plugins/
X-VCS-Repository: repo/gentoo
X-VCS-Files: net-analyzer/nagios-plugins/nagios-plugins-2.4.12-r1.ebuild net-analyzer/nagios-plugins/nagios-plugins-2.4.12-r2.ebuild
X-VCS-Directories: net-analyzer/nagios-plugins/
X-VCS-Committer: mjo
X-VCS-Committer-Name: Michael Orlitzky
X-VCS-Revision: aa08c6df4b83ce03e6328fb3085048fd3b43369c
X-VCS-Branch: master
Date: Fri, 18 Apr 2025 03:00:08 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 23e3074b-9792-4e02-8e0a-217d29157421
X-Archives-Hash: 12a0971baded94d32c44ef2ac9601ac1

commit:     aa08c6df4b83ce03e6328fb3085048fd3b43369c
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 18 02:55:34 2025 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Fri Apr 18 02:58:13 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa08c6df

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 <mjo <AT> gentoo.org>

 ...ugins-2.4.12-r1.ebuild => nagios-plugins-2.4.12-r2.ebuild} | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

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[@]}" \