diff options
Diffstat (limited to 'dev-util/libabigail')
-rw-r--r-- | dev-util/libabigail/Manifest | 7 | ||||
-rw-r--r-- | dev-util/libabigail/libabigail-2.3-r1.ebuild | 117 | ||||
-rw-r--r-- | dev-util/libabigail/libabigail-9999.ebuild | 36 | ||||
-rw-r--r-- | dev-util/libabigail/metadata.xml | 3 |
4 files changed, 147 insertions, 16 deletions
diff --git a/dev-util/libabigail/Manifest b/dev-util/libabigail/Manifest index c5d72d53e192..ec26b1050f89 100644 --- a/dev-util/libabigail/Manifest +++ b/dev-util/libabigail/Manifest @@ -1,5 +1,8 @@ DIST libabigail-2.2-docs.tar.xz 46776 BLAKE2B 469981ea9879b202bcfd68dfa1d71c25470c6c9b9a8058ff29923a4cb7ecd5cb652b239bf6faa05c6b7e479b425e2fd4327a0d6e1703f3622299d743b72e8b5c SHA512 c06bfa95957390ca7abd1e47a79e2da813fd3bdfb8dcaf23bf81da697c77b67d9cd5457010291e2753fcc74f55803a1c81234aa3b8cb27c6b1ce3991f6ab60ab DIST libabigail-2.2.tar.xz 351078692 BLAKE2B fc03b1653fbe94213713e710c358133a2abd51cac46c8d4b5d797715b16e3d9923ddd99f9a2f85352599b6b5628f52e505f0ec2bca6dc3ea118826bbe69ff42b SHA512 c512c4a497ea6bb88283feae6c31cf5fe347c260cf1670fe65296bf158d3a2aa449ca518a4f2780e814ffbe6970c7856d2ab91e15499638db78bc52d67d794ce +DIST libabigail-2.3-docs.tar.xz 48016 BLAKE2B 5649dec61017cada11fefcb40d71ecf438d3e2753c32cf424514ece2d5b737415f220e7a36b0edc597c3155a954c994256da7745e22318ae63dfb58d8d3bd72b SHA512 8ead43911fcb7cb3c3bc63ef7dea911ff72a4249845e1d79e28a730fb05216088713905daad31b228b5fc2b6f50b492321b68989be50a427f59425006a4ccc6f +DIST libabigail-2.3.tar.xz 381350984 BLAKE2B 1a580cdc0f60fbf6edbf701e65531fb2b7254232a24edc23600aee49de87eea1c07c4ab93d55c1bce17ce7e0be6e074c7aab83ed6e3aff9076a844c224e52c74 SHA512 fdf0df51e2c262c723c11bef58cd0b89b27e67be196edeb33444fc06e7e61d3c2c227f59cb961aea6fc0c9b7f6f04e08b787a1cbbeb3d5507b968b8ae7630527 EBUILD libabigail-2.2.ebuild 2896 BLAKE2B adb798d68eed170fd8564843a40b61d87b0769fde58f7300735a9045f7260e590ae021379815f5c02d90e094bcd2811f71d0fcbfcab9aecdf7a5f4abc86adfae SHA512 ffac845f21fed785fec6760e43e127d44a76341b3c98b311702280ccb268dabfd1f84929105c20c481b87830f687f282eba97bd36fb6f389932bf2b3eccc9e56 -EBUILD libabigail-9999.ebuild 2889 BLAKE2B 5419ed7b5c65b35a5d57557a7377bbd03247eabf62a49d8c1ae2029dba9de22ed14944d8ab56417484b0c3e6065d3330847d748d1e315fc0c576ac4061225b78 SHA512 6dbee007ad7277d803c3e7b7b5069ac465fa34546c74c3ad9c6ad4ba50e951d977a4ff1a4ad543766aab4ba7b53273c9538d78ddcbcf286b2dc0133343ca238a -MISC metadata.xml 245 BLAKE2B 4ac08132cfdd18d0ef2c38470da5045bca296f4975a8fa1e7094c1f6f524ebf02103d487ae7d6d0bb1c912d46eb207a74a417bbdc10bc92499331112f15392e6 SHA512 fa5b2d519f191de35a1f8719e8ba7ea346c54173c797e152df2aeefda32dfb0e0741ff171b87e1ee835c1d5383f424b8bb276d597bdf2fe911525bd5719cab9d +EBUILD libabigail-2.3-r1.ebuild 3015 BLAKE2B 7ebd4b281e0a82d0e88c5881ed76f86517b3d593f95cfc4872ced5360a429423b3bcc51c11ae780f60390d5868da585f6c5297ce43bfd1b198343cb985d864d0 SHA512 af67746c7c464fb567fd58849224dca9c086fafc75a6d1e3ac127226ede2282545636bacd65f1dba3e83ef02a9e2d6ca2c5023ccb48e85d82400f6189777a84d +EBUILD libabigail-9999.ebuild 3015 BLAKE2B 7ebd4b281e0a82d0e88c5881ed76f86517b3d593f95cfc4872ced5360a429423b3bcc51c11ae780f60390d5868da585f6c5297ce43bfd1b198343cb985d864d0 SHA512 af67746c7c464fb567fd58849224dca9c086fafc75a6d1e3ac127226ede2282545636bacd65f1dba3e83ef02a9e2d6ca2c5023ccb48e85d82400f6189777a84d +MISC metadata.xml 365 BLAKE2B c69fe6073d2650badf4c3426e991b46ccea688837970ff80f3f8410769bebabf2629b780218c95c5dc766fbd839e5da2b28c7f63944d2a13ece1c4c97dfdb4a5 SHA512 6caec9ea9f290685e73efd1a273d27948bb6be5d71aebae5e1fba93781ddf2b34e08fc67c912b27b29705143288a3d5ec068c2bb20533c431823e53c1a5b6361 diff --git a/dev-util/libabigail/libabigail-2.3-r1.ebuild b/dev-util/libabigail/libabigail-2.3-r1.ebuild new file mode 100644 index 000000000000..d65ee49694bc --- /dev/null +++ b/dev-util/libabigail/libabigail-2.3-r1.ebuild @@ -0,0 +1,117 @@ +# Copyright 1999-2023 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_{9..11} ) + +inherit autotools 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" + inherit 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/2" +IUSE="btf ${LIBABIGAIL_DOCS_USEFLAG} test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/elfutils + dev-libs/libxml2:2 + btf? ( dev-libs/libbpf:= ) + elibc_musl? ( sys-libs/fts-standalone ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + doc? ( + app-doc/doxygen[dot] + dev-python/sphinx + sys-apps/texinfo + ) + test? ( ${PYTHON_DEPS} ) +" + +src_prepare() { + default + # need to run our autotools, due to ltmain.sh including Redhat calls: + # cannot read spec file '/usr/lib/rpm/redhat/redhat-hardened-ld': No such file or directory + eautoreconf +} + +my_src_configure() { + local myeconfargs=( + --disable-deb + --disable-fedabipkgdiff + --disable-rpm + --disable-rpm415 + --disable-ctf + --disable-debug-ct-propagation + --enable-bash-completion + --enable-python3 + $(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 5f02f1b0e21e..d65ee49694bc 100644 --- a/dev-util/libabigail/libabigail-9999.ebuild +++ b/dev-util/libabigail/libabigail-9999.ebuild @@ -31,18 +31,20 @@ else LIBABIGAIL_DOCS_USEFLAG="doc" fi - KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv" + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" fi LICENSE="Apache-2.0-with-LLVM-exceptions" -SLOT="0" -IUSE="${LIBABIGAIL_DOCS_USEFLAG} test" +SLOT="0/2" +IUSE="btf ${LIBABIGAIL_DOCS_USEFLAG} test" RESTRICT="!test? ( test )" RDEPEND=" dev-libs/elfutils dev-libs/libxml2:2 - elibc_musl? ( sys-libs/fts-standalone )" + btf? ( dev-libs/libbpf:= ) + elibc_musl? ( sys-libs/fts-standalone ) +" DEPEND="${RDEPEND}" BDEPEND=" virtual/pkgconfig @@ -51,7 +53,8 @@ BDEPEND=" dev-python/sphinx sys-apps/texinfo ) - test? ( ${PYTHON_DEPS} )" + test? ( ${PYTHON_DEPS} ) +" src_prepare() { default @@ -61,16 +64,21 @@ src_prepare() { } my_src_configure() { - econf \ - --disable-deb \ - --disable-fedabipkgdiff \ - --disable-rpm \ - --disable-rpm415 \ - --disable-ctf \ - --enable-bash-completion \ - --enable-python3 \ - $(use_enable doc apidoc) \ + local myeconfargs=( + --disable-deb + --disable-fedabipkgdiff + --disable-rpm + --disable-rpm415 + --disable-ctf + --disable-debug-ct-propagation + --enable-bash-completion + --enable-python3 + $(use_enable btf) + $(use_enable doc apidoc) $(use_enable doc manual) + ) + + econf "${myeconfargs[@]}" } my_src_compile() { diff --git a/dev-util/libabigail/metadata.xml b/dev-util/libabigail/metadata.xml index e306ca22e31b..d145f4ebc760 100644 --- a/dev-util/libabigail/metadata.xml +++ b/dev-util/libabigail/metadata.xml @@ -5,4 +5,7 @@ <email>soap@gentoo.org</email> <name>David Seifert</name> </maintainer> + <use> + <flag name="btf">Handle reading kernel debug files in BTF format via <pkg>dev-libs/libbpf</pkg></flag> + </use> </pkgmetadata> |