diff options
| author | Sam James <sam@gentoo.org> | 2024-07-17 05:16:12 +0100 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2024-07-17 05:16:30 +0100 |
| commit | 36c44443c4e698841c7b5044470ef13b9c99dd7f (patch) | |
| tree | b99a431f0641fe23786e5943ca7d229966c4731b /dev-debug/cgdb/cgdb-0.8.0.ebuild | |
| parent | d9f576f130f686a10cf92e800203b20cc1edb573 (diff) | |
| download | gentoo-36c44443c4e698841c7b5044470ef13b9c99dd7f.tar.gz gentoo-36c44443c4e698841c7b5044470ef13b9c99dd7f.tar.bz2 gentoo-36c44443c4e698841c7b5044470ef13b9c99dd7f.zip | |
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 <sam@gentoo.org>
Diffstat (limited to 'dev-debug/cgdb/cgdb-0.8.0.ebuild')
| -rw-r--r-- | dev-debug/cgdb/cgdb-0.8.0.ebuild | 24 |
1 files changed, 14 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 -} |
