From 0c51e9326f861fcb4547e8d4858cfd9264bf8e1e Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 2 May 2026 01:58:12 +0100 Subject: [PATCH] dev-util/libabigail: add 2.10 Signed-off-by: Sam James --- dev-util/libabigail/Manifest | 2 + dev-util/libabigail/libabigail-2.10.ebuild | 125 +++++++++++++++++++++ dev-util/libabigail/libabigail-9999.ebuild | 4 +- 3 files changed, 129 insertions(+), 2 deletions(-) create mode 100644 dev-util/libabigail/libabigail-2.10.ebuild diff --git a/dev-util/libabigail/Manifest b/dev-util/libabigail/Manifest index 786f34dfa6b2c..a148ea13a64ad 100644 --- a/dev-util/libabigail/Manifest +++ b/dev-util/libabigail/Manifest @@ -1,2 +1,4 @@ +DIST libabigail-2.10-docs.tar.xz 58384 BLAKE2B e7c68672cc2f423c20d37d80ca64f686f2fa7c4f75f0098a6bb9beaf736e9bf4b1272182a978ce929de9bb827d8afc9126a1c9fe55a1431b4ce177ff4e4af1a5 SHA512 56ee359d683f4433c82d7e965079542e41cbe1615b02d2d9c7e53a6b6f7be0544bb96c9d639b5e2c685c716bf0baf61349cfd1f61a74e37977c812d14ebaeca0 +DIST libabigail-2.10.tar.xz 491492572 BLAKE2B 1fbb73f52ffbb30823e93d7eb3defb31ceeeec1d1f7c085ec3651856eff3aebe6bfa125e7b6b3a1a0912d500992a3ddad3db9eeb749ab1300736f8deebf61c72 SHA512 e3dcc0b5657b1448d0c6925108f0ff77bef633a1757656285594513124585c3f70b10c7733ec2a5916a6cbd7fd4e17e48b375fd69f58fe7cc974f18bb9098c89 DIST libabigail-2.9-docs.tar.xz 58352 BLAKE2B bc6d69c92fe7f0ec7357a98f302e95259902009364ae770853023fc43b1d64ecc0dcbe0e0493d121888398e79a3cac2de50507ff8fef4003573dfb84e49eb857 SHA512 3a4644faea3944ce1787f7e5dbe35a2971e0ea40f794e2ffd47d61b945b943eae61b8bf170852c15431b431ef150436e09b83afc666513763e42fe26b82cd725 DIST libabigail-2.9.tar.xz 520825272 BLAKE2B 4453dd9385ed1aa2b5128ee323f704c40505a281f224dec8b74fae4a32e3c2e596ecdb6665aced79f26fe6fe996681c134da0af061122f117d2b800cb2c6d999 SHA512 5bdf5ec49a5931a61bf28317b41eee583d6277d00ac621b2d2a97bbc0d816c3662bcfe13a5ac7aeee11c947afb69a5a0a9a8015fcebad09965b45af9b1e23606 diff --git a/dev-util/libabigail/libabigail-2.10.ebuild b/dev-util/libabigail/libabigail-2.10.ebuild new file mode 100644 index 0000000000000..3d10bfce27e70 --- /dev/null +++ b/dev-util/libabigail/libabigail-2.10.ebuild @@ -0,0 +1,125 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Generate using https://github.com/thesamesam/sam-gentoo-scripts/blob/main/niche/generate-libabigail-docs +# Set to 1 if prebuilt, 0 if not +# (the construct below is to allow overriding from env for script) +: ${LIBABIGAIL_DOCS_PREBUILT:=1} + +LIBABIGAIL_DOCS_PREBUILT_DEV=sam +LIBABIGAIL_DOCS_VERSION="${PV}" +# Default to generating docs (inc. man pages) if no prebuilt; overridden later +# bug #830088 +LIBABIGAIL_DOCS_USEFLAG="+doc" + +PYTHON_COMPAT=( python3_{11..14} ) + +inherit libtool bash-completion-r1 python-any-r1 out-of-source + +DESCRIPTION="Suite of tools for checking ABI differences between ELF objects" +HOMEPAGE="https://sourceware.org/libabigail/" +if [[ ${PV} == 9999 ]] ; then + LIBABIGAIL_DOCS_PREBUILT=0 + EGIT_REPO_URI="https://sourceware.org/git/libabigail.git" + EGIT_SUBMODULES=() + inherit autotools git-r3 +else + SRC_URI="https://mirrors.kernel.org/sourceware/libabigail/${P}.tar.xz" + if [[ ${LIBABIGAIL_DOCS_PREBUILT} == 1 ]] ; then + SRC_URI+=" !doc? ( https://dev.gentoo.org/~${LIBABIGAIL_DOCS_PREBUILT_DEV}/distfiles/${CATEGORY}/${PN}/${PN}-${LIBABIGAIL_DOCS_VERSION}-docs.tar.xz )" + LIBABIGAIL_DOCS_USEFLAG="doc" + fi + + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" +fi + +LICENSE="Apache-2.0-with-LLVM-exceptions" +SLOT="0/9" +IUSE="btf debug ${LIBABIGAIL_DOCS_USEFLAG} test" +RESTRICT="!test? ( test )" + +RDEPEND=" + app-arch/xz-utils + dev-libs/elfutils[lzma] + dev-libs/libxml2:2= + dev-libs/xxhash + btf? ( dev-libs/libbpf:= ) + elibc_musl? ( sys-libs/fts-standalone ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + doc? ( + app-text/doxygen[dot] + dev-python/sphinx + sys-apps/texinfo + ) + test? ( ${PYTHON_DEPS} ) +" + +src_prepare() { + default + if [[ ${PV} = 9999 ]] ; then + eautoreconf + else + elibtoolize + fi +} + +my_src_configure() { + local myeconfargs=( + --disable-abidb + --disable-deb + --disable-fedabipkgdiff + --disable-rpm + --disable-rpm415 + --disable-ctf + # Don't try to run Valgrind on tests. + --disable-valgrind + --enable-bash-completion + --enable-python3 + $(use_enable debug assert) + $(use_enable btf) + $(use_enable doc apidoc) + $(use_enable doc manual) + ) + + econf "${myeconfargs[@]}" +} + +my_src_compile() { + default + use doc && emake doc +} + +my_src_install() { + emake DESTDIR="${D}" install + + # If USE=doc, there'll be newly generated docs which we install instead. + if ! use doc && [[ ${LIBABIGAIL_DOCS_PREBUILT} == 1 ]] ; then + doinfo "${WORKDIR}"/${PN}-${LIBABIGAIL_DOCS_VERSION}-docs/texinfo/*.info + doman "${WORKDIR}"/${PN}-${LIBABIGAIL_DOCS_VERSION}-docs/man/*.[0-8] + elif use doc; then + doman doc/manuals/man/* + doinfo doc/manuals/texinfo/abigail.info + + dodoc -r doc/manuals/html + + docinto html/api + dodoc -r doc/api/html/. + fi +} + +my_src_install_all() { + einstalldocs + + local file + for file in abicompat abidiff abidw abilint abinilint abipkgdiff abisym fedabipkgdiff ; do + dobashcomp bash-completion/${file} + done + + # No static archives + find "${ED}" -name '*.la' -delete || die +} diff --git a/dev-util/libabigail/libabigail-9999.ebuild b/dev-util/libabigail/libabigail-9999.ebuild index cce54204c9f25..3d10bfce27e70 100644 --- a/dev-util/libabigail/libabigail-9999.ebuild +++ b/dev-util/libabigail/libabigail-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -36,7 +36,7 @@ else fi LICENSE="Apache-2.0-with-LLVM-exceptions" -SLOT="0/8" +SLOT="0/9" IUSE="btf debug ${LIBABIGAIL_DOCS_USEFLAG} test" RESTRICT="!test? ( test )"