From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1697604-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 27A1A158245
	for <garchives@archives.gentoo.org>; Fri,  6 Dec 2024 16:08:02 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 10290E099C;
	Fri,  6 Dec 2024 16:08:01 +0000 (UTC)
Received: from smtp.gentoo.org (mail.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))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 6610FE0999
	for <gentoo-commits@lists.gentoo.org>; Fri,  6 Dec 2024 16:08:00 +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))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 6C20B342F9A
	for <gentoo-commits@lists.gentoo.org>; Fri,  6 Dec 2024 16:07:59 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 00FEC12D4
	for <gentoo-commits@lists.gentoo.org>; Fri,  6 Dec 2024 16:07:58 +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: <1733501186.d1a35496b81cfe97068fd8add0aa6d0aaf621c57.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/readline/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sys-libs/readline/readline-8.1_p2-r2.ebuild sys-libs/readline/readline-8.2_p13.ebuild
X-VCS-Directories: sys-libs/readline/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: d1a35496b81cfe97068fd8add0aa6d0aaf621c57
X-VCS-Branch: master
Date: Fri,  6 Dec 2024 16:07:58 +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: 0790a56a-c5f6-4a4b-ada3-b13bafa10365
X-Archives-Hash: f202d1d8424719c2fd5e12a0987a9ef6

commit:     d1a35496b81cfe97068fd8add0aa6d0aaf621c57
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Dec  6 16:06:26 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Dec  6 16:06:26 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1a35496

sys-libs/readline: pass -std=gnu17 conditionally for old too

Old compilers during Prefix bootstrap may not support it but they also
won't be defaulting to C23 so that's fine.

(No real need to do it for old but no harm either and saves it showing
up in greps for @system packages.)

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-libs/readline/readline-8.1_p2-r2.ebuild | 2 +-
 sys-libs/readline/readline-8.2_p13.ebuild   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-libs/readline/readline-8.1_p2-r2.ebuild b/sys-libs/readline/readline-8.1_p2-r2.ebuild
index 34d9c8473928..256df55531d9 100644
--- a/sys-libs/readline/readline-8.1_p2-r2.ebuild
+++ b/sys-libs/readline/readline-8.1_p2-r2.ebuild
@@ -144,7 +144,7 @@ src_prepare() {
 src_configure() {
 	# readline-8.3 drops unprototyped functions, earlier versions are
 	# incompatible with C23.
-	append-cflags -std=gnu17
+	append-cflags $(test-flags-CC -std=gnu17)
 
 	# fix implicit decls with widechar funcs
 	append-cppflags -D_GNU_SOURCE

diff --git a/sys-libs/readline/readline-8.2_p13.ebuild b/sys-libs/readline/readline-8.2_p13.ebuild
index de76373ce838..1872970ab552 100644
--- a/sys-libs/readline/readline-8.2_p13.ebuild
+++ b/sys-libs/readline/readline-8.2_p13.ebuild
@@ -168,7 +168,7 @@ src_prepare() {
 src_configure() {
 	# readline-8.3 drops unprototyped functions, earlier versions are
 	# incompatible with C23.
-	append-cflags -std=gnu17
+	append-cflags $(test-flags-CC -std=gnu17)
 
 	# Fix implicit decls with widechar funcs
 	append-cppflags -D_GNU_SOURCE