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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2968615800F for ; Thu, 9 Feb 2023 04:08:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F1871E079E; Thu, 9 Feb 2023 04:08:56 +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 DBE13E079E for ; Thu, 9 Feb 2023 04:08:56 +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 EF9DC335D5E for ; Thu, 9 Feb 2023 04:08:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C538F8A1 for ; Thu, 9 Feb 2023 04:08:53 +0000 (UTC) From: "Sam James" 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" Message-ID: <1675915693.a65512af125ca7433402246d1b6c6b62eb7d0936.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/bash/files/, app-shells/bash/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-shells/bash/bash-5.2_p15-r1.ebuild app-shells/bash/bash-5.2_p15-r2.ebuild app-shells/bash/files/bash-5.2_p15-configure-clang16.patch X-VCS-Directories: app-shells/bash/ app-shells/bash/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: a65512af125ca7433402246d1b6c6b62eb7d0936 X-VCS-Branch: master Date: Thu, 9 Feb 2023 04:08:53 +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: f2ce5427-60ba-4815-989e-149e8fb47da1 X-Archives-Hash: 9654c035c7dc7d229207919979533f11 commit: a65512af125ca7433402246d1b6c6b62eb7d0936 Author: Sam James gentoo org> AuthorDate: Thu Feb 9 04:08:13 2023 +0000 Commit: Sam James gentoo org> CommitDate: Thu Feb 9 04:08:13 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a65512af app-shells/bash: fix configure w/ clang 16 Signed-off-by: Sam James gentoo.org> ...sh-5.2_p15-r1.ebuild => bash-5.2_p15-r2.ebuild} | 1 + .../files/bash-5.2_p15-configure-clang16.patch | 37 ++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/app-shells/bash/bash-5.2_p15-r1.ebuild b/app-shells/bash/bash-5.2_p15-r2.ebuild similarity index 99% rename from app-shells/bash/bash-5.2_p15-r1.ebuild rename to app-shells/bash/bash-5.2_p15-r2.ebuild index b0db51f7f0ce..8c7792de30c2 100644 --- a/app-shells/bash/bash-5.2_p15-r1.ebuild +++ b/app-shells/bash/bash-5.2_p15-r2.ebuild @@ -109,6 +109,7 @@ PATCHES=( # Patches from Chet sent to bash-bug ml "${FILESDIR}"/${PN}-5.0-syslog-history-extern.patch "${FILESDIR}"/${PN}-5.2_p15-random-ub.patch + "${FILESDIR}"/${PN}-5.2_p15-configure-clang16.patch ) pkg_setup() { diff --git a/app-shells/bash/files/bash-5.2_p15-configure-clang16.patch b/app-shells/bash/files/bash-5.2_p15-configure-clang16.patch new file mode 100644 index 000000000000..6005d39df59c --- /dev/null +++ b/app-shells/bash/files/bash-5.2_p15-configure-clang16.patch @@ -0,0 +1,37 @@ +https://lists.gnu.org/archive/html/bug-bash/2023-02/msg00000.html) + +From 2cdf8b42885189b3cf7c47096b01f104e520546a Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Thu, 2 Feb 2023 05:43:37 +0000 +Subject: [PATCH] aclocal.m4: fix -Wimplicit-function-declaration in dup2 check + +dup2 requires a include. Fixes the following when diffing config.log + when testing with a stricter compiler: +``` +-warning: call to undeclared function 'dup2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ++error: call to undeclared function 'dup2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] +``` +--- aclocal.m4 ++++ aclocal.m4 +@@ -238,6 +238,9 @@ AC_CACHE_VAL(bash_cv_dup2_broken, + #include + #include + #include ++#ifdef HAVE_UNISTD_H ++#include ++#endif + int + main() + { +--- configure ++++ configure +@@ -18121,6 +18121,9 @@ else $as_nop + #include + #include + #include ++#ifdef HAVE_UNISTD_H ++#include ++#endif + int + main() + {