From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1697603-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 D1CAF158232
	for <garchives@archives.gentoo.org>; Fri,  6 Dec 2024 16:04:32 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id B3364E0996;
	Fri,  6 Dec 2024 16:04:31 +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 pigeon.gentoo.org (Postfix) with ESMTPS id 8D671E0996
	for <gentoo-commits@lists.gentoo.org>; Fri,  6 Dec 2024 16:04:31 +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 94CB2341E1C
	for <gentoo-commits@lists.gentoo.org>; Fri,  6 Dec 2024 16:04:30 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 2AC5412D4
	for <gentoo-commits@lists.gentoo.org>; Fri,  6 Dec 2024 16:04:29 +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: <1733501050.fb199b8e4c41273a5a1f3015247d5b57ce7dc2c9.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/rsync/
X-VCS-Repository: repo/gentoo
X-VCS-Files: net-misc/rsync/rsync-3.3.0-r1.ebuild
X-VCS-Directories: net-misc/rsync/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: fb199b8e4c41273a5a1f3015247d5b57ce7dc2c9
X-VCS-Branch: master
Date: Fri,  6 Dec 2024 16:04:29 +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: e0838487-318e-4d28-897f-cfe78bb7b72a
X-Archives-Hash: 9578ffe6c38545767f02273673a83c0b

commit:     fb199b8e4c41273a5a1f3015247d5b57ce7dc2c9
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Dec  6 16:03:50 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Dec  6 16:04:10 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb199b8e

net-misc/rsync: pass -std=gnu17 conditionally

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

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

 net-misc/rsync/rsync-3.3.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-misc/rsync/rsync-3.3.0-r1.ebuild b/net-misc/rsync/rsync-3.3.0-r1.ebuild
index 3a11a5ea8845..2c4a1bb28ccb 100644
--- a/net-misc/rsync/rsync-3.3.0-r1.ebuild
+++ b/net-misc/rsync/rsync-3.3.0-r1.ebuild
@@ -109,7 +109,7 @@ src_prepare() {
 
 src_configure() {
 	# Should be fixed upstream in next release (>3.3.0) (bug #943745)
-	append-cflags -std=gnu17
+	append-cflags $(test-flags-CC -std=gnu17)
 
 	local myeconfargs=(
 		--with-rsyncd-conf="${EPREFIX}"/etc/rsyncd.conf