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 016021581C1 for ; Wed, 17 Jul 2024 04:17:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B95BFE2A83; Wed, 17 Jul 2024 04:17:10 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9659DE2A83 for ; Wed, 17 Jul 2024 04:17: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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9C207340813 for ; Wed, 17 Jul 2024 04:17:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 339561B89 for ; Wed, 17 Jul 2024 04:17:08 +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: <1721189790.36c44443c4e698841c7b5044470ef13b9c99dd7f.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-debug/cgdb/, dev-debug/cgdb/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-debug/cgdb/cgdb-0.8.0.ebuild dev-debug/cgdb/files/cgdb-0.8.0-configure-c99.patch X-VCS-Directories: dev-debug/cgdb/files/ dev-debug/cgdb/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 36c44443c4e698841c7b5044470ef13b9c99dd7f X-VCS-Branch: master Date: Wed, 17 Jul 2024 04:17:08 +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: a4ca20d4-d41c-41be-af8e-c522b2624ed8 X-Archives-Hash: decef26f959b7f3f41abc869b3a1724b commit: 36c44443c4e698841c7b5044470ef13b9c99dd7f Author: Sam James gentoo org> AuthorDate: Wed Jul 17 04:16:12 2024 +0000 Commit: Sam James gentoo org> CommitDate: Wed Jul 17 04:16:30 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36c44443 dev-debug/cgdb: fix modern C issue in configure No need for a revbump here as it failed to compile if the check failed, not misdetecting anything. Closes: https://bugs.gentoo.org/830222 Signed-off-by: Sam James gentoo.org> dev-debug/cgdb/cgdb-0.8.0.ebuild | 24 +++++++++++++--------- .../cgdb/files/cgdb-0.8.0-configure-c99.patch | 23 +++++++++++++++++++++ 2 files changed, 37 insertions(+), 10 deletions(-) diff --git a/dev-debug/cgdb/cgdb-0.8.0.ebuild b/dev-debug/cgdb/cgdb-0.8.0.ebuild index fad641ffce59..4c8395ac8b3f 100644 --- a/dev-debug/cgdb/cgdb-0.8.0.ebuild +++ b/dev-debug/cgdb/cgdb-0.8.0.ebuild @@ -24,23 +24,26 @@ IUSE="test" RESTRICT="test" DEPEND=" - sys-libs/ncurses:0= - sys-libs/readline:0=" - + sys-libs/ncurses:= + sys-libs/readline:= +" BDEPEND=" + sys-devel/flex test? ( dev-util/dejagnu app-misc/dtach - )" - + ) +" RDEPEND=" ${DEPEND} - dev-debug/gdb" + dev-debug/gdb +" DOCS=( AUTHORS ChangeLog FAQ INSTALL NEWS README.md ) PATCHES=( "${FILESDIR}"/${P}-ar.patch + "${FILESDIR}"/${PN}-0.8.0-configure-c99.patch ) src_prepare() { @@ -48,6 +51,11 @@ src_prepare() { AT_M4DIR="config" eautoreconf } +multilib_src_configure() { + unset LEX + ECONF_SOURCE="${S}" econf +} + multilib_src_test() { # Tests need an interactive shell, #654986 @@ -63,7 +71,3 @@ multilib_src_test() { [[ -f ${T}/dtach-test.out ]] || die "Unable to run tests" [[ $(<"${T}"/dtach-test.out) == 0 ]] || die "Tests failed" } - -multilib_src_configure() { - ECONF_SOURCE="${S}" econf -} diff --git a/dev-debug/cgdb/files/cgdb-0.8.0-configure-c99.patch b/dev-debug/cgdb/files/cgdb-0.8.0-configure-c99.patch new file mode 100644 index 000000000000..bd021476bf53 --- /dev/null +++ b/dev-debug/cgdb/files/cgdb-0.8.0-configure-c99.patch @@ -0,0 +1,23 @@ +https://bugs.gentoo.org/830222 +https://github.com/cgdb/cgdb/pull/338 + +From 039dba0ec3ae2c4b2636418652a5c63f9ff86049 Mon Sep 17 00:00:00 2001 +From: Florian Weimer +Date: Wed, 8 Mar 2023 11:29:06 +0100 +Subject: [PATCH] configure: Avoid implicit int in readline check + +Future compilers will not accept implicit ints by default, altering +the outcome of the check without this change. + +Signed-off-by: Florian Weimer +--- a/config/readline_check_version.m4 ++++ b/config/readline_check_version.m4 +@@ -86,7 +86,7 @@ AC_CACHE_VAL(ac_cv_rl_version, + #include + #include + +-main() ++int main(void) + { + FILE *fp; + fp = fopen("conftest.rlv", "w");