diff options
Diffstat (limited to 'dev-util/libabigail')
-rw-r--r-- | dev-util/libabigail/Manifest | 5 | ||||
-rw-r--r-- | dev-util/libabigail/files/libabigail-2.0-musl.patch | 72 | ||||
-rw-r--r-- | dev-util/libabigail/libabigail-1.8.2.ebuild | 77 | ||||
-rw-r--r-- | dev-util/libabigail/libabigail-2.0.ebuild | 8 |
4 files changed, 80 insertions, 82 deletions
diff --git a/dev-util/libabigail/Manifest b/dev-util/libabigail/Manifest index cdac49b05e03..6ce9b2d982fc 100644 --- a/dev-util/libabigail/Manifest +++ b/dev-util/libabigail/Manifest @@ -1,5 +1,4 @@ -DIST libabigail-1.8.2.tar.gz 258919334 BLAKE2B 6e06c888dcc3f5e0fc5d4046e69f14ba06b3a78206f89e32e4687b07aae1e1d798582285cff5ac9f43d6ba326fe11ec11552eefb5ed05813c25785e337092ba2 SHA512 fa8edaf39632e26430481f15e962a098459eac087074e85ca055293ba324ec5944c45880fcb36f1c54a64652605a439cbf9247dfea9bfd3ec502cc7292dd1c8d +AUX libabigail-2.0-musl.patch 1911 BLAKE2B 58f9099cde19a18a44f2e1db208b74b8ee7371c2033da539b46af824d29067e13a543619013012d8fe8ca718cc7ee37fd06314608bcca53b2177d5d84cf54a86 SHA512 4591d3f838ac42e28ae28e059be0837c473edd41b44e942e5a7fbe324ed57afdf6244d4a93696b4498ab3c8d74fcb7175abbe951e4b2ef45ef59f985fa846ec3 DIST libabigail-2.0.tar.gz 286383045 BLAKE2B 2ba6f59bcd7a1484c4a60c6c9f212ad76af239a552d2cc9e47748e0db52363afadd7a99ef3e123c263de34b416f71b9d679bf2a5c542c419bb38ee75f3d5c57b SHA512 288f63f3495f0cd38258c50b78f30a573e43ab60494fefa22c8cba6d6776c5f94742ffea26297a232b78d25f6804f1b3f51febd59ec487733e6ef683cef2c180 -EBUILD libabigail-1.8.2.ebuild 1513 BLAKE2B e54abef6af668ccc017e137c8e592f6371f9348667d06c0aa332a327ac322308c6e4b3ef02ead3c7afef2dc5b5ca1f4c422db54ce65a46d85ee26c56ccf0b706 SHA512 6efb448acfd4f8c201f0fbd3c3aa5c49d8fce8aafa1dd366e32f9205aa10cacf6ccbb316f1faabce30179cde75ac9146c067e226218f84734c3e743a79fd65c1 -EBUILD libabigail-2.0.ebuild 1529 BLAKE2B fddae7227ddbb54970363206f2728a346d537e1eabeadafc481d57636567e825a9e93c4820fb91e55e04d8a527a0b4cb0f18b42708dbd34c0adfd79104e56c73 SHA512 2e5f556c1eb020358dda35a5a4e5efe238f0b09e36105115ec6208050ad945230e9ea02c69476f9012d18c169fd1575bc324b3397f89bed36631117bf7f996d1 +EBUILD libabigail-2.0.ebuild 1632 BLAKE2B f7f4aa5c3c11176d3191acf9a0b048d9f7f5a32b02e4108423d27c289981f7709db42f1d4505ae83ef316f75b3b1abc6db31b481467fd8eb996f5b8832a86e54 SHA512 66544588fc517196bad4ead42f4c69f2de22e7d6b734d63e853857eebb5e60ec2771d9124d2811a47abf62b9ade97eeb34de39af2474b443b287f25f82419e9d MISC metadata.xml 245 BLAKE2B 4ac08132cfdd18d0ef2c38470da5045bca296f4975a8fa1e7094c1f6f524ebf02103d487ae7d6d0bb1c912d46eb207a74a417bbdc10bc92499331112f15392e6 SHA512 fa5b2d519f191de35a1f8719e8ba7ea346c54173c797e152df2aeefda32dfb0e0741ff171b87e1ee835c1d5383f424b8bb276d597bdf2fe911525bd5719cab9d diff --git a/dev-util/libabigail/files/libabigail-2.0-musl.patch b/dev-util/libabigail/files/libabigail-2.0-musl.patch new file mode 100644 index 000000000000..6057c65622a6 --- /dev/null +++ b/dev-util/libabigail/files/libabigail-2.0-musl.patch @@ -0,0 +1,72 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -143,6 +143,7 @@ + dnl ************************************************* + + AC_PROG_CXX ++AC_CANONICAL_HOST + AC_USE_SYSTEM_EXTENSIONS + AC_PROG_INSTALL + +@@ -201,6 +202,12 @@ + [CFLAGS="$CFLAGS -DBAD_FTS=1", + CXXFLAGS="$CXXFLAGS -DBAD_FTS=1"]) + ++dnl On musl, we need to find fts-standalone ++AS_CASE( ++ [${host_os}], [*-musl*], [ ++ PKG_CHECK_MODULES([FTS], [fts-standalone]) ++]) ++ + dnl Check for dependency: libelf, libdw, libebl (elfutils) + dnl Note that we need to use at least elfutils 0.159 but + dnl at that time elfutils didnt have pkgconfig capabilities +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -41,12 +41,12 @@ + abg-symtab-reader.cc \ + $(VIZ_SOURCES) + +-libabigail_la_LIBADD = $(DEPS_LIBS) ++libabigail_la_LIBADD = $(DEPS_LIBS) $(FTS_LIBS) + libabigail_la_LDFLAGS = -lpthread -Wl,--as-needed -no-undefined + + CUSTOM_MACROS = -DABIGAIL_ROOT_SYSTEM_LIBDIR=\"${libdir}\" + + AM_CPPFLAGS=\ +-$(CUSTOM_MACROS) $(DEPS_CPPFLAGS) \ ++$(CUSTOM_MACROS) $(DEPS_CPPFLAGS) $(FTS_CFLAGS) \ + -Wall -I$(abs_top_srcdir) -I$(abs_top_srcdir)/include \ + -I$(abs_top_builddir)/include -I$(abs_top_builddir) +--- a/tools/abisym.cc ++++ b/tools/abisym.cc +@@ -11,6 +11,7 @@ + /// in its symbol tables and report what it sees. + + #include <elf.h> ++#include <libgen.h> + #include <cstring> + #include <iostream> + #include <sstream> +--- a/tools/kmidiff.cc ++++ b/tools/kmidiff.cc +@@ -11,7 +11,6 @@ + + #include <sys/types.h> + #include <dirent.h> +-#include <fts.h> + #include <cstring> + #include <string> + #include <vector> +--- a/tools/Makefile.am ++++ b/tools/Makefile.am +@@ -37,7 +37,8 @@ + + abipkgdiff_SOURCES = abipkgdiff.cc + abipkgdiffdir = $(bindir) +-abipkgdiff_LDADD = $(abs_top_builddir)/src/libabigail.la ++abipkgdiff_CPPFLAGS = $(FTS_CFLAGS) ++abipkgdiff_LDADD = $(abs_top_builddir)/src/libabigail.la $(FTS_LIBS) + abipkgdiff_LDFLAGS = -pthread + + kmidiff_SOURCES = kmidiff.cc diff --git a/dev-util/libabigail/libabigail-1.8.2.ebuild b/dev-util/libabigail/libabigail-1.8.2.ebuild deleted file mode 100644 index a3a00859fef3..000000000000 --- a/dev-util/libabigail/libabigail-1.8.2.ebuild +++ /dev/null @@ -1,77 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{7..10} ) - -inherit autotools python-any-r1 out-of-source - -DESCRIPTION="Suite of tools for checking ABI differences between ELF objects" -HOMEPAGE="https://sourceware.org/libabigail/" -SRC_URI="https://mirrors.kernel.org/sourceware/libabigail/${P}.tar.gz" - -LICENSE="LGPL-3+" -SLOT="0" -KEYWORDS="amd64 ~ppc64" -IUSE="doc test" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-libs/elfutils:= - dev-libs/libxml2:2=" -DEPEND="${RDEPEND}" -BDEPEND=" - doc? ( - app-doc/doxygen - 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() { - econf \ - --disable-deb \ - --disable-fedabipkgdiff \ - --disable-rpm \ - --disable-static \ - --disable-zip-archive \ - --enable-bash-completion \ - --enable-cxx11 \ - --enable-python3 \ - $(use_enable doc apidoc) \ - $(use_enable doc manual) -} - -my_src_compile() { - default - use doc && emake doc -} - -my_src_install() { - emake DESTDIR="${D}" install - - if 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 - - # no static archives - find "${D}" -name '*.la' -delete || die -} diff --git a/dev-util/libabigail/libabigail-2.0.ebuild b/dev-util/libabigail/libabigail-2.0.ebuild index 61ac2094d397..8c7bf65df427 100644 --- a/dev-util/libabigail/libabigail-2.0.ebuild +++ b/dev-util/libabigail/libabigail-2.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{7..10} ) +PYTHON_COMPAT=( python3_{8..10} ) inherit autotools python-any-r1 out-of-source @@ -19,9 +19,11 @@ RESTRICT="!test? ( test )" RDEPEND=" dev-libs/elfutils - dev-libs/libxml2:2" + dev-libs/libxml2:2 + elibc_musl? ( sys-libs/fts-standalone )" DEPEND="${RDEPEND}" BDEPEND=" + virtual/pkgconfig doc? ( app-doc/doxygen dev-python/sphinx @@ -29,6 +31,8 @@ BDEPEND=" ) test? ( ${PYTHON_DEPS} )" +PATCHES=( "${FILESDIR}"/${P}-musl.patch ) + src_prepare() { default # need to run our autotools, due to ltmain.sh including Redhat calls: |