commit: 7e179937d6715983f0c9564ca6e63cf344db5c59 Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr> AuthorDate: Sun Aug 24 21:20:06 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Aug 26 15:10:41 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e179937
dev-libs/argtable: fix c23/musl, use dot-a.eclass update SRC_URI (redirect) use dot-a.eclass to avoid installing broken static libraries w/ LTO remove bundle getopt.h (unneeded for glibc/musl) to avoid conflict with musl Closes: https://bugs.gentoo.org/945723 Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/43551 Closes: https://github.com/gentoo/gentoo/pull/43551 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-libs/argtable/argtable-2.13-r4.ebuild | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/dev-libs/argtable/argtable-2.13-r4.ebuild b/dev-libs/argtable/argtable-2.13-r4.ebuild index 0d0c246bf90d..a588e910dc73 100644 --- a/dev-libs/argtable/argtable-2.13-r4.ebuild +++ b/dev-libs/argtable/argtable-2.13-r4.ebuild @@ -1,16 +1,16 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit libtool +inherit dot-a libtool MY_PV="$(ver_rs 1 '-')" MY_P=${PN}${MY_PV} DESCRIPTION="An ANSI C library for parsing GNU-style command-line options with minimal fuss" HOMEPAGE="https://argtable.sourceforge.io" -SRC_URI="https://downloads.sourceforge.net/${PN}/${MY_P}.tar.gz" +SRC_URI="https://downloads.sourceforge.net/project/${PN}/${PN}/${P}/${MY_P}.tar.gz" S="${WORKDIR}"/${MY_P} LICENSE="LGPL-2" @@ -25,10 +25,16 @@ PATCHES=( src_prepare() { default + + # not needed for glibc or musl #945723 + rm src/getopt.h || die + elibtoolize } src_configure() { + lto-guarantee-fat + econf \ $(use_enable debug) \ $(use_enable static-libs static) @@ -53,4 +59,5 @@ src_install() { fi find "${ED}" -name "*.la" -delete || die "failed to delete .la files" + strip-lto-bytecode }
