From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 6790015813A for ; Fri, 10 Jan 2025 09:09:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8BE6BE07D8; Fri, 10 Jan 2025 09:09:06 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 74FEDE07D8 for ; Fri, 10 Jan 2025 09:09:06 +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 7D028340B57 for ; Fri, 10 Jan 2025 09:09:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D620BAED for ; Fri, 10 Jan 2025 09:09:03 +0000 (UTC) From: "Miroslav Šulc" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Miroslav Šulc" Message-ID: <1736500140.47a80abd5c3fdd6ed00b2085324f60f093f031e5.fordfrog@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/flake/, media-sound/flake/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-sound/flake/files/flake-0.11-make-instability.patch media-sound/flake/flake-0.11-r1.ebuild media-sound/flake/flake-0.11.ebuild X-VCS-Directories: media-sound/flake/files/ media-sound/flake/ X-VCS-Committer: fordfrog X-VCS-Committer-Name: Miroslav Šulc X-VCS-Revision: 47a80abd5c3fdd6ed00b2085324f60f093f031e5 X-VCS-Branch: master Date: Fri, 10 Jan 2025 09:09:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: cb2d0473-0b64-49a8-9d1c-51183a52a48d X-Archives-Hash: d086fe69f1c7221bbdb36322e4a24331 commit: 47a80abd5c3fdd6ed00b2085324f60f093f031e5 Author: NHOrus yahoo com> AuthorDate: Thu Jan 9 12:09:39 2025 +0000 Commit: Miroslav Šulc gentoo org> CommitDate: Fri Jan 10 09:09:00 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47a80abd media-sound/flake: fix direct calls to cc, impl. declarations Bespoke configure demands bespoke methods. Also prepare for C23 Closes: https://bugs.gentoo.org/947767 Signed-off-by: NHOrus yahoo.com> Closes: https://github.com/gentoo/gentoo/pull/40068 Signed-off-by: Miroslav Šulc gentoo.org> .../flake/files/flake-0.11-make-instability.patch | 24 ++++++++++++++++++++++ .../{flake-0.11.ebuild => flake-0.11-r1.ebuild} | 6 +++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/media-sound/flake/files/flake-0.11-make-instability.patch b/media-sound/flake/files/flake-0.11-make-instability.patch index ac2bd95859fb..66cb47a4e53d 100644 --- a/media-sound/flake/files/flake-0.11-make-instability.patch +++ b/media-sound/flake/files/flake-0.11-make-instability.patch @@ -31,3 +31,27 @@ diff -ru a/flake/Makefile b/flake/Makefile flake_g$(EXESUF): flake.o wav.o $(DEP_LIBS) $(CC) $(FLAKE_LIBDIRS) $(LDFLAGS) -o $@ flake.o wav.o $(FLAKE_LIBS) $(EXTRALIBS) cp -p flake_g$(EXESUF) flake$(EXESUF) +Clean up implicit declaration in configure and prepare for C23 +diff -ru a/configure b/configure +@@ -666,6 +667,7 @@ + # test for strnlen in string.h + check_exec < + #include + int main( void ) { return (strnlen("help", 6) == 4)?0:1; } + EOF +diff -ru a/common.h b/common.h +--- a/common.h 2025-01-09 16:06:00.978525674 +0400 ++++ b//common.h 2025-01-09 16:07:06.592168373 +0400 +@@ -87,7 +87,8 @@ + return i; + } + #elif !defined(__USE_GNU) +-extern size_t strnlen(const char *s, size_t maxlen); ++#include ++//extern size_t strnlen(const char *s, size_t maxlen); + #endif + + #endif /* COMMON_H */ diff --git a/media-sound/flake/flake-0.11.ebuild b/media-sound/flake/flake-0.11-r1.ebuild similarity index 80% rename from media-sound/flake/flake-0.11.ebuild rename to media-sound/flake/flake-0.11-r1.ebuild index 995a85be4f49..25a2b34a6e6f 100644 --- a/media-sound/flake/flake-0.11.ebuild +++ b/media-sound/flake/flake-0.11-r1.ebuild @@ -16,7 +16,11 @@ KEYWORDS="amd64 x86" PATCHES=("${FILESDIR}"/${P}-make-instability.patch) src_configure() { - # NIH configure script + # NIH configure script that uses hardcoded cc for discovery + # https://bugs.gentoo.org/947767 + sed -i -e "s:cc=\"gcc\":cc=\"$(tc-getCC)\":" configure \ + || die failed to patch CC + ./configure \ --ar="$(tc-getAR)" \ --cc="$(tc-getCC)" \