From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1709686-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id E475215813A
	for <garchives@archives.gentoo.org>; Wed, 15 Jan 2025 23:16:11 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id E7699E07E6;
	Wed, 15 Jan 2025 23:16:10 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(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 pigeon.gentoo.org (Postfix) with ESMTPS id CE03FE07E6
	for <gentoo-commits@lists.gentoo.org>; Wed, 15 Jan 2025 23:16: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 09EAE343120
	for <gentoo-commits@lists.gentoo.org>; Wed, 15 Jan 2025 23:16:10 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 348871677
	for <gentoo-commits@lists.gentoo.org>; Wed, 15 Jan 2025 23:16:08 +0000 (UTC)
From: "Sam James" <sam@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, "Sam James" <sam@gentoo.org>
Message-ID: <1736982909.789e82b5e0baae616ec7dc6b4aa20cf0a0cc8e45.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/nas/
X-VCS-Repository: repo/gentoo
X-VCS-Files: media-libs/nas/nas-1.9.5-r2.ebuild
X-VCS-Directories: media-libs/nas/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 789e82b5e0baae616ec7dc6b4aa20cf0a0cc8e45
X-VCS-Branch: master
Date: Wed, 15 Jan 2025 23:16: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: fa764c07-1856-4a5c-926c-f51ed1dafcbd
X-Archives-Hash: d0122707a7fd7d4e4fea5dc08fa6da05

commit:     789e82b5e0baae616ec7dc6b4aa20cf0a0cc8e45
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 15 23:15:09 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jan 15 23:15:09 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=789e82b5

media-libs/nas: fix build issues

* Build w/ -std=gnu89 (ancient configure, not C23 compatible either)

* Ignore MAKEOPTS/GNUMAKEFLAGS as it confuses imake

Closes: https://bugs.gentoo.org/899834
Closes: https://bugs.gentoo.org/944403
Closes: https://bugs.gentoo.org/944451
Closes: https://bugs.gentoo.org/947416
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/nas/nas-1.9.5-r2.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/media-libs/nas/nas-1.9.5-r2.ebuild b/media-libs/nas/nas-1.9.5-r2.ebuild
index 8fb0b91a04be..e548bf7f0d89 100644
--- a/media-libs/nas/nas-1.9.5-r2.ebuild
+++ b/media-libs/nas/nas-1.9.5-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -50,6 +50,9 @@ src_prepare() {
 }
 
 multilib_src_configure() {
+	# Ancient configure and relies on imake, not worth it
+	append-cflags -std=gnu89
+
 	# -Werror=lto-type-mismatch
 	# https://bugs.gentoo.org/859934
 	# https://sourceforge.net/p/nas/bugs/13/
@@ -60,6 +63,9 @@ multilib_src_configure() {
 	econf
 	popd || die
 
+	# bug #947416
+	unset MAKEOPTS GNUMAKEFLAGS
+
 	local cpp=($(get_abi_CHOST ${DEFAULT_ABI})-gcc $(get_abi_CFLAGS) -E) #884203
 	CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
 		IMAKECPP="${IMAKECPP:-${cpp[*]}}" \