summaryrefslogtreecommitdiff
path: root/dev-libs/elfutils
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-04-16 19:13:42 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-04-16 19:13:42 +0000
commitafae01ffd370a829cb4c628a4dd7e8f87e35b2e3 (patch)
tree69bcc5cef0274fe8fe1bc322842bae6c1739f1ab /dev-libs/elfutils
parent6377d9ae9eeb85de4ce4fec4e8544101640035e9 (diff)
downloadbaldeagleos-repo-afae01ffd370a829cb4c628a4dd7e8f87e35b2e3.tar.gz
baldeagleos-repo-afae01ffd370a829cb4c628a4dd7e8f87e35b2e3.tar.xz
baldeagleos-repo-afae01ffd370a829cb4c628a4dd7e8f87e35b2e3.zip
Adding metadata
Diffstat (limited to 'dev-libs/elfutils')
-rw-r--r--dev-libs/elfutils/Manifest2
-rw-r--r--dev-libs/elfutils/elfutils-0.195.ebuild168
-rw-r--r--dev-libs/elfutils/elfutils-9999.ebuild12
3 files changed, 179 insertions, 3 deletions
diff --git a/dev-libs/elfutils/Manifest b/dev-libs/elfutils/Manifest
index e398a01a33a0..bba83f6ddcf1 100644
--- a/dev-libs/elfutils/Manifest
+++ b/dev-libs/elfutils/Manifest
@@ -2,3 +2,5 @@ DIST elfutils-0.193.tar.bz2 11974916 BLAKE2B 3ddda695e92c76d0f98432b65d51737bdeb
DIST elfutils-0.193.tar.bz2.sig 310 BLAKE2B 2c5626af37031e6dbf1f94ca2d5622f978a50c7cbf412c33924585dc7261e0c7fe3f55d91121a9a3ae9cc092c4e1879a34cf145fdc19607ad6db065bbed8b605 SHA512 75f3935c4a519dc0b23e59e2e6f2bae7926c988aec484f2e1f0759cf7662eca1752f02c16b2f129fee0d7451e961322cf9a315c4ce23e91520f4779ed9fda713
DIST elfutils-0.194.tar.bz2 12003321 BLAKE2B dd1fd1ba83330aa3313bd96614851a59411ea8e1004afda23791296de03960db5e193ee9ded4dd159d80c954efecc2cb5438cce986817d537c72d5ff887faf16 SHA512 5d00502f61b92643bf61dc61da4ddded36c423466388d992bcd388c5208761b8ed9db1a01492c085cd0984eef30c08f895a8e307e78e0df8df40b56ae35b78a5
DIST elfutils-0.194.tar.bz2.sig 310 BLAKE2B f43c370c339038a4894700984c501c7120a139763a7369f6fabc918c6c842dd50fff19d999a005939f9f049d0cf2c2a4f000e32fbc55afd8abdb67d82aefa90e SHA512 12d90f66dfa37544fb6b368099fac3eae9487188b0ce49409ae5c647c1fa3c68582efc5216a758d830e3775d5686ac2605dba600ad258f27ae99d5ce1094b624
+DIST elfutils-0.195.tar.bz2 12032640 BLAKE2B 7ad84f87ba24a0edd3d1885a232e63f454509f3d229952d2c9b85dd76baa6b150e022bbce70fc3e89b57f5c606ed3862178c693e3638bf22b891c5798e7c624a SHA512 e1e1fdf4f7f72bf520deb0103bb8fd208dc247bab14af100c6fb56d38c0ef6c6d54ff5bd15b84e4f70e2b2ea481e5999fea2842360f8932a861122df79b5fc8f
+DIST elfutils-0.195.tar.bz2.sig 310 BLAKE2B 6d0aef5b189ea74b9b019d8d46b565f04b4216955967515f5179e63d78259ba42badfc166ab90c7e12ee5c467f5dbdb30e8244ea5c5d4b499c927db9cf1cf761 SHA512 a5e11ce7752d0fac6e809aea61b6a5bbd1141d8c52c2f741ddd32b93af97af43aa555a99a45feac3bc34381570f2e7fb281f8aff53f74e3b5e64c56eb1d9d2c5
diff --git a/dev-libs/elfutils/elfutils-0.195.ebuild b/dev-libs/elfutils/elfutils-0.195.ebuild
new file mode 100644
index 000000000000..feb34a8cec4c
--- /dev/null
+++ b/dev-libs/elfutils/elfutils-0.195.ebuild
@@ -0,0 +1,168 @@
+# Copyright 2003-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/elfutils.gpg
+inherit autotools flag-o-matic multilib-minimal
+
+DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement for libelf)"
+HOMEPAGE="https://sourceware.org/elfutils/"
+if [[ ${PV} == 9999 ]] ; then
+ EGIT_REPO_URI="https://sourceware.org/git/elfutils.git"
+ inherit git-r3
+
+ BDEPEND="
+ sys-devel/bison
+ sys-devel/flex
+ "
+else
+ inherit verify-sig
+ SRC_URI="https://sourceware.org/elfutils/ftp/${PV}/${P}.tar.bz2"
+ SRC_URI+=" verify-sig? ( https://sourceware.org/elfutils/ftp/${PV}/${P}.tar.bz2.sig )"
+
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+ BDEPEND="verify-sig? ( >=sec-keys/openpgp-keys-elfutils-20240301 )"
+fi
+
+LICENSE="|| ( GPL-2+ LGPL-3+ ) utils? ( GPL-3+ )"
+SLOT="0"
+IUSE="bzip2 +debuginfod +libarchive +lzma nls static-libs stacktrace test +utils valgrind zstd"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="debuginfod? ( libarchive )"
+
+RDEPEND="
+ !dev-libs/libelf
+ >=virtual/zlib-1.2.8-r1:=[static-libs?,${MULTILIB_USEDEP}]
+ bzip2? ( >=app-arch/bzip2-1.0.6-r4[static-libs?,${MULTILIB_USEDEP}] )
+ debuginfod? (
+ dev-db/sqlite:3=
+ >=dev-libs/json-c-0.11:=
+ >=net-libs/libmicrohttpd-0.9.33:=
+ >=net-misc/curl-7.29.0[static-libs?]
+ )
+ libarchive? ( >=app-arch/libarchive-3.1.2:= )
+ lzma? ( >=app-arch/xz-utils-5.0.5-r1[static-libs?,${MULTILIB_USEDEP}] )
+ stacktrace? ( dev-util/sysprof )
+ zstd? ( app-arch/zstd:=[static-libs?,${MULTILIB_USEDEP}] )
+ elibc_musl? (
+ dev-libs/libbsd
+ sys-libs/argp-standalone
+ sys-libs/fts-standalone
+ sys-libs/obstack-standalone
+ )
+"
+DEPEND="
+ ${RDEPEND}
+ valgrind? ( dev-debug/valgrind )
+"
+BDEPEND+="
+ sys-devel/m4
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.189-musl-aarch64-regs.patch
+ "${FILESDIR}"/${PN}-0.191-musl-macros.patch
+)
+
+src_prepare() {
+ default
+
+ eautoreconf
+
+ if ! use static-libs; then
+ sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' lib{asm,dw,elf}/Makefile.in || die
+ fi
+
+ # Fails with some CFLAGS
+ # " __divhc3: /var/tmp/portage/dev-libs/elfutils-0.193/work/elfutils-0.193-abi_x86_32.x86/tests/funcretval:
+ # dwfl_module_return_value_location: cannot handle DWARF type description"
+ printf "#!/bin/sh\nexit 77" > tests/run-native-test.sh || die
+ # Fails for abi_x86_32 w/ DT_RELR
+ # "section [14] '.rel.plt': relocation 55: relocation type invalid for the file type"
+ printf "#!/bin/sh\nexit 77" > tests/run-elflint-self.sh || die
+ printf "#!/bin/sh\nexit 77" > tests/run-reverse-sections-self.sh || die
+ # Fails with SFrames
+ printf "#!/bin/sh\nexit 77" > tests/run-strip-strmerge.sh || die
+ # Fails under sandbox
+ cat <<-EOF > tests/dwfl-proc-attach.c || die
+ int main() {
+ return 77;
+ }
+ EOF
+
+ # https://sourceware.org/PR23914
+ sed -i 's:-Werror::' */Makefile.in || die
+}
+
+src_configure() {
+ # bug #407135
+ use test && append-flags -g
+
+ # bug 660738
+ filter-flags -fno-asynchronous-unwind-tables
+
+ use debuginfod && MULTILIB_WRAPPED_HEADERS+=( /usr/include/elfutils/debuginfod.h )
+
+ multilib-minimal_src_configure
+}
+
+multilib_src_configure() {
+ unset LEX YACC
+
+ # Only for IMA verification of RPMs
+ export ac_cv_lib_rpm_headerGet=no
+
+ local myeconfargs=(
+ $(use_enable nls)
+ $(multilib_native_use_enable debuginfod)
+ # Could do dummy if needed? We could also split libdebuginfod
+ # (client support) into its own USE if required.
+ $(multilib_native_use_enable debuginfod libdebuginfod)
+ $(multilib_native_use_enable stacktrace)
+ $(use_enable valgrind valgrind-annotations)
+
+ # Explicitly disable thread safety, it's not recommended by upstream
+ # (marked experimental in configure) and doesn't build either on musl.
+ --disable-thread-safety
+
+ # Valgrind option is just for running tests under it; dodgy under sandbox
+ # and indeed even w/ glibc with newer instructions.
+ --disable-valgrind
+ --program-prefix="eu-"
+ --with-zlib
+ $(use_with bzip2 bzlib)
+ $(multilib_native_use_with libarchive)
+ $(use_with lzma)
+ $(use_with zstd)
+ )
+
+ [[ ${PV} == 9999 ]] && myeconfargs+=( --enable-maintainer-mode )
+
+ # Needed because sets alignment macro
+ is-flagq -fsanitize=address && myeconfargs+=( --enable-sanitize-address )
+ is-flagq -fsanitize=undefined && myeconfargs+=( --enable-sanitize-undefined )
+
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
+}
+
+multilib_src_test() {
+ env LD_LIBRARY_PATH="${BUILD_DIR}/libelf:${BUILD_DIR}/libebl:${BUILD_DIR}/libdw:${BUILD_DIR}/libasm" \
+ LC_ALL="C" \
+ emake check VERBOSE=1
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ dodoc NOTES
+
+ # These build quick, and are needed for most tests, so we don't
+ # disable building them when the USE flag is disabled.
+ if ! use utils; then
+ rm -rf "${ED}"/usr/bin || die
+ fi
+}
diff --git a/dev-libs/elfutils/elfutils-9999.ebuild b/dev-libs/elfutils/elfutils-9999.ebuild
index 9195dc7a9eb6..feb34a8cec4c 100644
--- a/dev-libs/elfutils/elfutils-9999.ebuild
+++ b/dev-libs/elfutils/elfutils-9999.ebuild
@@ -77,16 +77,22 @@ src_prepare() {
sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' lib{asm,dw,elf}/Makefile.in || die
fi
- # TODO: Fails with some CFLAGS
+ # Fails with some CFLAGS
# " __divhc3: /var/tmp/portage/dev-libs/elfutils-0.193/work/elfutils-0.193-abi_x86_32.x86/tests/funcretval:
# dwfl_module_return_value_location: cannot handle DWARF type description"
printf "#!/bin/sh\nexit 77" > tests/run-native-test.sh || die
- # TODO: Fails for abi_x86_32 w/ DT_RELR
+ # Fails for abi_x86_32 w/ DT_RELR
# "section [14] '.rel.plt': relocation 55: relocation type invalid for the file type"
printf "#!/bin/sh\nexit 77" > tests/run-elflint-self.sh || die
printf "#!/bin/sh\nexit 77" > tests/run-reverse-sections-self.sh || die
- # TODO: Fails with SFrames
+ # Fails with SFrames
printf "#!/bin/sh\nexit 77" > tests/run-strip-strmerge.sh || die
+ # Fails under sandbox
+ cat <<-EOF > tests/dwfl-proc-attach.c || die
+ int main() {
+ return 77;
+ }
+ EOF
# https://sourceware.org/PR23914
sed -i 's:-Werror::' */Makefile.in || die