[gentoo-commits] repo/gentoo:master commit in: dev-libs/elfutils/files/, dev-libs/elfutils/

2024-06-09 Thread Sam James
commit: 631d30345702f6c5aa323808f8ebbae1c0fbd5ea
Author: Alfred Wingate  protonmail  com>
AuthorDate: Mon Mar 11 08:03:00 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Jun  9 16:21:56 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=631d3034

dev-libs/elfutils: avoid overriding libcxx system header

Closes: https://bugs.gentoo.org/925241
Signed-off-by: Alfred Wingate  protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/35707
Signed-off-by: Sam James  gentoo.org>

 dev-libs/elfutils/elfutils-0.191-r1.ebuild | 123 +
 ...191-avoid-overriding-libcxx-system-header.patch |  28 +
 2 files changed, 151 insertions(+)

diff --git a/dev-libs/elfutils/elfutils-0.191-r1.ebuild 
b/dev-libs/elfutils/elfutils-0.191-r1.ebuild
new file mode 100644
index ..d46e6f245602
--- /dev/null
+++ b/dev-libs/elfutils/elfutils-0.191-r1.ebuild
@@ -0,0 +1,123 @@
+# Copyright 2003-2024 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 verify-sig
+
+DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement 
for libelf)"
+HOMEPAGE="https://sourceware.org/elfutils/;
+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 )"
+
+LICENSE="|| ( GPL-2+ LGPL-3+ ) utils? ( GPL-3+ )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="bzip2 debuginfod lzma nls static-libs test +utils zstd"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   !dev-libs/libelf
+   >=sys-libs/zlib-1.2.8-r1[static-libs?,${MULTILIB_USEDEP}]
+   bzip2? ( >=app-arch/bzip2-1.0.6-r4[static-libs?,${MULTILIB_USEDEP}] )
+   debuginfod? (
+   app-arch/libarchive:=
+   dev-db/sqlite:3=
+   net-libs/libmicrohttpd:=
+
+   net-misc/curl[static-libs?,${MULTILIB_USEDEP}]
+   )
+   lzma? ( >=app-arch/xz-utils-5.0.5-r1[static-libs?,${MULTILIB_USEDEP}] )
+   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}
+"
+BDEPEND="
+   app-alternatives/lex
+   sys-devel/m4
+   virtual/pkgconfig
+   nls? ( sys-devel/gettext )
+   verify-sig? ( >=sec-keys/openpgp-keys-elfutils-20240301 )
+"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-0.189-musl-aarch64-regs.patch
+   "${FILESDIR}"/${PN}-0.191-musl-macros.patch
+   "${FILESDIR}"/${PN}-0.191-avoid-overriding-libcxx-system-header.patch
+)
+
+src_prepare() {
+   default
+
+   if ! use static-libs; then
+   sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' 
lib{asm,dw,elf}/Makefile.in || die
+   fi
+
+   eautoreconf
+
+   # 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
+
+   multilib-minimal_src_configure
+}
+
+multilib_src_configure() {
+   local myeconfargs=(
+   $(use_enable nls)
+   $(multilib_native_use_enable debuginfod)
+   $(use_enable debuginfod libdebuginfod)
+
+   # explicitly disable thread safety, it's not recommended by 
upstream
+   # 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)
+   $(use_with lzma)
+   $(use_with zstd)
+   )
+
+   # 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 don't
+   # disable their building when the USE flag is disabled.
+   if ! use utils; then
+   rm -rf "${ED}"/usr/bin || die
+   fi
+}

diff --git 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/elfutils/files/, dev-libs/elfutils/

2023-08-29 Thread Sam James
commit: 5e484e2b1ba4e5f215c6bba5efc10070e95452be
Author: Sam James  gentoo  org>
AuthorDate: Tue Aug 29 06:25:17 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Aug 29 06:25:17 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e484e2b

dev-libs/elfutils: fix build w/ lld 17

Closes: https://bugs.gentoo.org/913112
Signed-off-by: Sam James  gentoo.org>

 dev-libs/elfutils/elfutils-0.189-r4.ebuild | 125 +
 .../elfutils/files/elfutils-0.189-lld-17.patch |  31 +
 2 files changed, 156 insertions(+)

diff --git a/dev-libs/elfutils/elfutils-0.189-r4.ebuild 
b/dev-libs/elfutils/elfutils-0.189-r4.ebuild
new file mode 100644
index ..432483942cf2
--- /dev/null
+++ b/dev-libs/elfutils/elfutils-0.189-r4.ebuild
@@ -0,0 +1,125 @@
+# Copyright 2003-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/elfutils.gpg
+inherit autotools flag-o-matic multilib-minimal verify-sig
+
+DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement 
for libelf)"
+HOMEPAGE="https://sourceware.org/elfutils/;
+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 )"
+
+LICENSE="|| ( GPL-2+ LGPL-3+ ) utils? ( GPL-3+ )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="bzip2 debuginfod lzma nls static-libs test +utils zstd"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+   !dev-libs/libelf
+   >=sys-libs/zlib-1.2.8-r1[static-libs?,${MULTILIB_USEDEP}]
+   bzip2? ( >=app-arch/bzip2-1.0.6-r4[static-libs?,${MULTILIB_USEDEP}] )
+   debuginfod? (
+   app-arch/libarchive:=
+   dev-db/sqlite:3=
+   net-libs/libmicrohttpd:=
+
+   net-misc/curl[static-libs?,${MULTILIB_USEDEP}]
+   )
+   lzma? ( >=app-arch/xz-utils-5.0.5-r1[static-libs?,${MULTILIB_USEDEP}] )
+   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}
+"
+BDEPEND="
+   >=sys-devel/flex-2.5.4a
+   sys-devel/m4
+   nls? ( sys-devel/gettext )
+   verify-sig? ( sec-keys/openpgp-keys-elfutils )
+"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-0.189-PaX-support.patch
+   "${FILESDIR}"/${PN}-0.189-skip-DT_RELR-failing-tests.patch
+   "${FILESDIR}"/${PN}-0.189-musl-aarch64-regs.patch
+   "${FILESDIR}"/${PN}-0.189-musl-macros.patch
+   "${FILESDIR}"/${P}-configure-bashisms.patch
+   "${FILESDIR}"/${P}-clang16-tests.patch
+   "${FILESDIR}"/${P}-tests-run-lfs-symbols.sh-needs-gawk.patch
+   "${FILESDIR}"/${P}-lld-17.patch
+)
+
+src_prepare() {
+   default
+
+   # Only here for ${P}-configure-bashisms.patch, delete on next bump!
+   eautoreconf
+
+   if ! use static-libs; then
+   sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' 
lib{asm,dw,elf}/Makefile.in || die
+   fi
+
+   # https://sourceware.org/PR23914
+   sed -i 's:-Werror::' */Makefile.in || die
+}
+
+src_configure() {
+   # bug #407135
+   use test && append-flags -g
+
+   multilib-minimal_src_configure
+}
+
+multilib_src_configure() {
+   local myeconfargs=(
+   $(use_enable nls)
+   $(multilib_native_use_enable debuginfod)
+   $(use_enable debuginfod libdebuginfod)
+
+   # explicitly disable thread safety, it's not recommended by 
upstream
+   # 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)
+   $(use_with lzma)
+   $(use_with zstd)
+   )
+
+   # 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 don't
+   # disable their building when the USE flag is disabled.
+   

[gentoo-commits] repo/gentoo:master commit in: dev-libs/elfutils/files/, dev-libs/elfutils/

2023-04-23 Thread Sam James
commit: 7b275b0494c46be76ee85251716d5f7e3dc0fddf
Author: Sam James  gentoo  org>
AuthorDate: Sun Apr 23 19:05:22 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Apr 23 19:05:22 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b275b04

dev-libs/elfutils: fix tests w/ clang 16

Signed-off-by: Sam James  gentoo.org>

 dev-libs/elfutils/elfutils-0.189-r1.ebuild |  1 +
 .../files/elfutils-0.189-clang16-tests.patch   | 26 ++
 2 files changed, 27 insertions(+)

diff --git a/dev-libs/elfutils/elfutils-0.189-r1.ebuild 
b/dev-libs/elfutils/elfutils-0.189-r1.ebuild
index 285cb3c8c192..16bea52ed18d 100644
--- a/dev-libs/elfutils/elfutils-0.189-r1.ebuild
+++ b/dev-libs/elfutils/elfutils-0.189-r1.ebuild
@@ -45,6 +45,7 @@ BDEPEND="
 PATCHES=(
"${WORKDIR}"/${PN}-0.187-patches/
"${FILESDIR}"/${P}-configure-bashisms.patch
+   "${FILESDIR}"/${P}-clang16-tests.patch
 )
 
 src_unpack() {

diff --git a/dev-libs/elfutils/files/elfutils-0.189-clang16-tests.patch 
b/dev-libs/elfutils/files/elfutils-0.189-clang16-tests.patch
new file mode 100644
index ..8dede51cbb23
--- /dev/null
+++ b/dev-libs/elfutils/files/elfutils-0.189-clang16-tests.patch
@@ -0,0 +1,26 @@
+https://sourceware.org/git/?p=elfutils.git;a=commit;h=51373aa9a77ef53d237edc1af664efcbb49f1bf5
+
+From 51373aa9a77ef53d237edc1af664efcbb49f1bf5 Mon Sep 17 00:00:00 2001
+From: Florian Weimer 
+Date: Sat, 22 Apr 2023 21:37:09 +0200
+Subject: [PATCH] testsuite: Avoid C99 compatibility issues in
+ run-native-test.sh
+
+Include  for the pause function, and add the return type
+of main.  Avoids an implicit function declaration and implicit int.
+
+Signed-off-by: Florian Weimer 
+--- a/tests/run-native-test.sh
 b/tests/run-native-test.sh
+@@ -27,7 +27,8 @@
+ # in all builds.
+ 
+ tempfiles native.c native
+-echo 'main () { while (1) pause (); }' > native.c
++printf '#include \nint main (void) { while (1) pause (); }\n' \
++  > native.c
+ 
+ native=0
+ kill_native()
+-- 
+2.31.1



[gentoo-commits] repo/gentoo:master commit in: dev-libs/elfutils/files/, dev-libs/elfutils/

2023-03-24 Thread Sam James
commit: 841c181bcfa1725454bd1cbfefe1064608dbc726
Author: Sam James  gentoo  org>
AuthorDate: Fri Mar 24 08:03:08 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Mar 25 01:41:16 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=841c181b

dev-libs/elfutils: fix bashisms in configure

Signed-off-by: Sam James  gentoo.org>

 ...utils-0.189.ebuild => elfutils-0.189-r1.ebuild} |  6 ++-
 .../files/elfutils-0.189-configure-bashisms.patch  | 49 ++
 2 files changed, 54 insertions(+), 1 deletion(-)

diff --git a/dev-libs/elfutils/elfutils-0.189.ebuild 
b/dev-libs/elfutils/elfutils-0.189-r1.ebuild
similarity index 94%
rename from dev-libs/elfutils/elfutils-0.189.ebuild
rename to dev-libs/elfutils/elfutils-0.189-r1.ebuild
index 0df16d8efdf8..285cb3c8c192 100644
--- a/dev-libs/elfutils/elfutils-0.189.ebuild
+++ b/dev-libs/elfutils/elfutils-0.189-r1.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/elfutils.gpg
-inherit flag-o-matic multilib-minimal verify-sig
+inherit autotools flag-o-matic multilib-minimal verify-sig
 
 DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement 
for libelf)"
 HOMEPAGE="https://sourceware.org/elfutils/;
@@ -44,6 +44,7 @@ BDEPEND="
 
 PATCHES=(
"${WORKDIR}"/${PN}-0.187-patches/
+   "${FILESDIR}"/${P}-configure-bashisms.patch
 )
 
 src_unpack() {
@@ -62,6 +63,9 @@ src_prepare() {
eapply "${WORKDIR}"/${PN}-0.187-patches/musl/
fi
 
+   # Only here for ${P}-configure-bashisms.patch, delete on next bump!
+   eautoreconf
+
if ! use static-libs; then
sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' 
lib{asm,dw,elf}/Makefile.in || die
fi

diff --git a/dev-libs/elfutils/files/elfutils-0.189-configure-bashisms.patch 
b/dev-libs/elfutils/files/elfutils-0.189-configure-bashisms.patch
new file mode 100644
index ..04c01b0ecf88
--- /dev/null
+++ b/dev-libs/elfutils/files/elfutils-0.189-configure-bashisms.patch
@@ -0,0 +1,49 @@
+https://sourceware.org/git/?p=elfutils.git;a=commit;h=a9834d7df68afde4ee44ee8fef888cf7e799171a
+
+From a9834d7df68afde4ee44ee8fef888cf7e799171a Mon Sep 17 00:00:00 2001
+From: Mark Wielaard 
+Date: Sun, 5 Mar 2023 13:09:34 +0100
+Subject: [PATCH] configure.ac contains Bashisms
+
+Autoconf scripts are supposed to be written in POSIX-compatible shell
+language. elfutils commits 0ffe2874e75d48cb88936e119e5284ff2bf664d9
+and 3fa98a6f29b0f370e32549ead7eb897c839af980 introduced Bashisms to
+configure.ac that cause errors when /bin/sh is not Bash.
+
+Example error when /bin/sh is Dash:
+
+./configure: 8748: test: xyes: unexpected operator
+
+The cause of the error is the use of a non-existent == operator in
+expressions passed to the 'test' built-in command. POSIX shell
+specifies only an = operator for testing string equality.
+
+  * configure.ac: Replace == by = in use_msan and enable_demangler
+  comparisons.
+
+https://sourceware.org/bugzilla/show_bug.cgi?id=30196
+
+Reported-by: Matt Whitlock 
+Signed-off-by: Mark Wielaard 
+--- a/configure.ac
 b/configure.ac
+@@ -169,7 +169,7 @@ if test "$use_msan" = yes; then
+   CXXFLAGS="$CXXFLAGS -fsanitize=memory -fsanitize-memory-track-origins 
-D_FORTIFY_SOURCE=0"
+   LDFLAGS="-shared"
+   AC_LINK_IFELSE([AC_LANG_SOURCE([int main (int argc, char **argv) { return 
0; }])], use_msan=yes, use_msan=no)
+-  AS_IF([test "x$use_msan" == xyes],
++  AS_IF([test "x$use_msan" = xyes],
+ ac_cv_zdefs=no NO_UNDEFINED=,
+ AC_MSG_WARN([clang memory sanitizer not available])
+ CFLAGS="$old_CFLAGS" CXXFLAGS="$old_CXXFLAGS")
+@@ -493,7 +493,7 @@ AC_ARG_ENABLE([demangler],
+ AS_HELP_STRING([--disable-demangler],
+  [Disable libstdc++ demangle support]),
+  [], [enable_demangler=yes])
+-AS_IF([test "x$enable_demangler" == xyes],
++AS_IF([test "x$enable_demangler" = xyes],
+ AC_CHECK_LIB([stdc++], [__cxa_demangle], [dnl
+ AC_DEFINE([USE_DEMANGLE], [1], [Defined if demangling is enabled])])
+ AM_CONDITIONAL(DEMANGLE, test "x$ac_cv_lib_stdcpp___cxa_demangle" = "xyes")
+-- 
+2.31.1



[gentoo-commits] repo/gentoo:master commit in: dev-libs/elfutils/files/musl/, dev-libs/elfutils/files/, dev-libs/elfutils/

2021-11-13 Thread Sam James
commit: ef17e2c45cd32e31ec8c696702bb7baf6707f9ef
Author: Sam James  gentoo  org>
AuthorDate: Sun Nov 14 07:56:14 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Nov 14 07:57:23 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef17e2c4

dev-libs/elfutils: use patches from devspace; update for musl in 0.186

- Move 0.185 and 0.186 patches into their own compressed tarball in devspace
  (files dir was getting _way_ too big)

- Fix patches for musl in 0.186 (both one which didn't apply anymore and
  an additional upstream patch).

Signed-off-by: Sam James  gentoo.org>

 dev-libs/elfutils/Manifest |   2 +
 dev-libs/elfutils/elfutils-0.185.ebuild|  11 +-
 dev-libs/elfutils/elfutils-0.186.ebuild|  14 +-
 ...lfutils-0.175-disable-biarch-test-PR24158.patch |   9 --
 .../files/elfutils-0.177-disable-large.patch   |  14 --
 .../files/elfutils-0.180-PaX-support.patch |  26 
 ac-rework-gnu99-ext-check-to-allow-clang.patch | 146 -
 .../elfutils-0.185-glibc-2.34-test-failure.patch   | 124 -
 ...utils-0.185-pull-advance_pc-in-file-scope.patch |  70 --
 .../files/elfutils-0.185-static-inline.patch   |  12 --
 .../files/musl/elfutils-0.185-aarch64-regs.patch   |  57 
 .../elfutils/files/musl/elfutils-0.185-cdefs.patch |  20 ---
 .../files/musl/elfutils-0.185-error-h.patch|  68 --
 .../files/musl/elfutils-0.185-macros.patch |  86 
 .../files/musl/elfutils-0.185-strndupa.patch   |  22 
 15 files changed, 8 insertions(+), 673 deletions(-)

diff --git a/dev-libs/elfutils/Manifest b/dev-libs/elfutils/Manifest
index 0a6a8004f327..6af4e92e7b9e 100644
--- a/dev-libs/elfutils/Manifest
+++ b/dev-libs/elfutils/Manifest
@@ -1,2 +1,4 @@
+DIST elfutils-0.185-patches.tar.gz 7625 BLAKE2B 
92aff147aa7e45976863e8129e25ecad74ad9bca231c9223897094c5933c3b350eb525a203b492d80c1eabee3b3808b43e30bdb879d7173eac968afa2005e97c
 SHA512 
3f253c4de97190731ac157044572912b76df80f9473f3df335f0383dad6409f987593a749c5284672cf1b20241ac3ed9d77b126f730aaf594725703b6a426906
 DIST elfutils-0.185.tar.bz2 9187627 BLAKE2B 
57cfa7e4060975c4bf6170dbd354687a19a92f7069c060db1ac2fa4da5a9d34e8bddd07c7ce376b5c28b5670ad5b8c1df795164cbcfb600a44cf1db60c20c4af
 SHA512 
34de0de1355b11740e036e0fc64f2fc063587c8eb121b19216ee5548d3f0f268d8fc3995176c47190466b9d881007cfa11a9d01e9a50e38af6119492bf8bb47f
+DIST elfutils-0.186-patches.tar.gz 3323 BLAKE2B 
360365597d3a08d6f4fe843d04bcddd07a44ca93dae2034615abc450517e1be21c81a55aa379c409902e134ae795b38bb7461c65cdba3934ac7ef1e4e0e53091
 SHA512 
e2d427be505fdc416751a1fbc3bb4f39577859d94ce43990faa83c135fe36be2ddb3a2ef0f1020cfa37060e6d43dc7b8cf3db0d07d62b31bf29cb9a4a5945ce1
 DIST elfutils-0.186.tar.bz2 9230491 BLAKE2B 
49573d0a1f3519eab81d1ba3e94354cbc0935a36a94a3fdb22fe223a47b78cca8fd6e322870b0e335a809529fa6f54180b13c67936dec0242123c54ba20c9fc9
 SHA512 
c9180b27ec62935f18b9431268d176f6023d1bb938731d2af6e7626ae460af6608a70ba68483aa1ec7e6cb0fa0528b661ca8b68bc4f58ea8e18af527c5950c78

diff --git a/dev-libs/elfutils/elfutils-0.185.ebuild 
b/dev-libs/elfutils/elfutils-0.185.ebuild
index 84df482f3f86..26aeca00e2e8 100644
--- a/dev-libs/elfutils/elfutils-0.185.ebuild
+++ b/dev-libs/elfutils/elfutils-0.185.ebuild
@@ -8,6 +8,7 @@ inherit flag-o-matic multilib-minimal
 DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement 
for libelf)"
 HOMEPAGE="http://elfutils.org/;
 SRC_URI="https://sourceware.org/elfutils/ftp/${PV}/${P}.tar.bz2;
+SRC_URI+=" 
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-0.185-patches.tar.gz;
 
 LICENSE="|| ( GPL-2+ LGPL-3+ ) utils? ( GPL-3+ )"
 SLOT="0"
@@ -36,20 +37,14 @@ BDEPEND="nls? ( sys-devel/gettext )
 RESTRICT="!test? ( test )"
 
 PATCHES=(
-   "${FILESDIR}"/${PN}-0.175-disable-biarch-test-PR24158.patch
-   "${FILESDIR}"/${PN}-0.177-disable-large.patch
-   "${FILESDIR}"/${PN}-0.180-PaX-support.patch
-   "${FILESDIR}"/${PN}-0.185-static-inline.patch
-   "${FILESDIR}"/${PN}-0.185-pull-advance_pc-in-file-scope.patch
-   
"${FILESDIR}"/${PN}-0.185-configure.ac-rework-gnu99-ext-check-to-allow-clang.patch
-   "${FILESDIR}"/${PN}-0.185-glibc-2.34-test-failure.patch
+   "${WORKDIR}"/${PN}-0.185-patches/
 )
 
 src_prepare() {
default
 
if use elibc_musl; then
-   eapply "${FILESDIR}"/musl/
+   eapply "${WORKDIR}"/${PN}-0.185-patches/musl/
fi
 
if ! use static-libs; then

diff --git a/dev-libs/elfutils/elfutils-0.186.ebuild 
b/dev-libs/elfutils/elfutils-0.186.ebuild
index d7c479481a35..e8c5b4a6a800 100644
--- a/dev-libs/elfutils/elfutils-0.186.ebuild
+++ b/dev-libs/elfutils/elfutils-0.186.ebuild
@@ -8,6 +8,7 @@ inherit flag-o-matic multilib-minimal
 DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement 
for libelf)"
 HOMEPAGE="https://elfutils.org/;
 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/elfutils/files/musl/

2021-11-08 Thread Sam James
commit: 71828c9b2b7e1c8c5c90085694fe2a50b6fac602
Author: Sam James  gentoo  org>
AuthorDate: Tue Nov  9 02:55:39 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Nov  9 02:55:39 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71828c9b

dev-libs/elfutils: add bug link to arm64 musl patch

Bug: https://bugs.gentoo.org/693772
Signed-off-by: Sam James  gentoo.org>

 dev-libs/elfutils/files/musl/elfutils-0.185-aarch64-regs.patch | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dev-libs/elfutils/files/musl/elfutils-0.185-aarch64-regs.patch 
b/dev-libs/elfutils/files/musl/elfutils-0.185-aarch64-regs.patch
index 99409540c1e..222c0527b68 100644
--- a/dev-libs/elfutils/files/musl/elfutils-0.185-aarch64-regs.patch
+++ b/dev-libs/elfutils/files/musl/elfutils-0.185-aarch64-regs.patch
@@ -1,5 +1,8 @@
 https://www.sourceware.org/bugzilla/show_bug.cgi?id=25832
 
https://cgit.openembedded.org/openembedded-core/plain/meta/recipes-devtools/elfutils/files/0006-Fix-build-on-aarch64-musl.patch
+https://bugs.gentoo.org/693772
+
+Other variants/links:
 https://git.alpinelinux.org/aports/tree/main/elfutils/fix-aarch64_fregs.patch
 
https://github.com/gentoo/musl/blob/6450482b9b4463b57ac249c63b7ed796e9874c40/dev-libs/elfutils/files/0.178/fix-aarch64_fregs.patch
 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/elfutils/files/musl/

2021-11-08 Thread Sam James
commit: b33b10eb76f88a2d41f66ddc7184cb0e783e3d45
Author: Sam James  gentoo  org>
AuthorDate: Tue Nov  9 02:50:27 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Nov  9 02:51:05 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b33b10eb

dev-libs/elfutils: add arm64 patch for musl

Alpine, OE are applying this too, although would prefer
to see some action upstream for this.

Signed-off-by: Sam James  gentoo.org>

 .../files/musl/elfutils-0.185-aarch64-regs.patch   | 54 ++
 1 file changed, 54 insertions(+)

diff --git a/dev-libs/elfutils/files/musl/elfutils-0.185-aarch64-regs.patch 
b/dev-libs/elfutils/files/musl/elfutils-0.185-aarch64-regs.patch
new file mode 100644
index 000..99409540c1e
--- /dev/null
+++ b/dev-libs/elfutils/files/musl/elfutils-0.185-aarch64-regs.patch
@@ -0,0 +1,54 @@
+https://www.sourceware.org/bugzilla/show_bug.cgi?id=25832
+https://cgit.openembedded.org/openembedded-core/plain/meta/recipes-devtools/elfutils/files/0006-Fix-build-on-aarch64-musl.patch
+https://git.alpinelinux.org/aports/tree/main/elfutils/fix-aarch64_fregs.patch
+https://github.com/gentoo/musl/blob/6450482b9b4463b57ac249c63b7ed796e9874c40/dev-libs/elfutils/files/0.178/fix-aarch64_fregs.patch
+
+From: Hongxu Jia 
+Date: Tue, 15 Aug 2017 17:27:30 +0800
+Subject: [PATCH] Fix build on aarch64/musl
+
+Errors
+
+invalid operands to binary & (have 'long double' and 'unsigned int')
+
+error: redefinition
+ of 'struct iovec'
+ struct iovec { void *iov_base; size_t iov_len; };
+^
+Upstream-Status: Pending
+Signed-off-by: Khem Raj 
+
+Rebase to 0.170
+Signed-off-by: Hongxu Jia 
+
+--- a/backends/aarch64_initreg.c
 b/backends/aarch64_initreg.c
+@@ -33,7 +33,7 @@
+ #include "system.h"
+ #include 
+ #if defined(__aarch64__) && defined(__linux__)
+-# include 
++# include 
+ # include 
+ # include 
+ /* Deal with old glibc defining user_pt_regs instead of user_regs_struct.  */
+@@ -82,7 +82,7 @@ aarch64_set_initial_registers_tid (pid_t tid __attribute__ 
((unused)),
+ 
+   Dwarf_Word dwarf_fregs[32];
+   for (int r = 0; r < 32; r++)
+-dwarf_fregs[r] = fregs.vregs[r] & 0x;
++dwarf_fregs[r] = (unsigned int)fregs.vregs[r] & 0x;
+ 
+   if (! setfunc (64, 32, dwarf_fregs, arg))
+ return false;
+--- a/backends/arm_initreg.c
 b/backends/arm_initreg.c
+@@ -38,7 +38,7 @@
+ #endif
+ 
+ #ifdef __aarch64__
+-# include 
++# include 
+ # include 
+ # include 
+ /* Deal with old glibc defining user_pt_regs instead of user_regs_struct.  */



[gentoo-commits] repo/gentoo:master commit in: dev-libs/elfutils/files/musl/

2021-11-07 Thread Sam James
commit: b53bb3b14ff55d4f733cf1d68fa999bbd1a781f8
Author: Sam James  gentoo  org>
AuthorDate: Sun Nov  7 06:47:23 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Nov  7 06:47:23 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b53bb3b1

dev-libs/elfutils: add more metadata/information to musl patches

Signed-off-by: Sam James  gentoo.org>

 .../files/musl/elfutils-0.185-error-h.patch | 21 +++--
 .../elfutils/files/musl/elfutils-0.185-macros.patch |  2 ++
 .../files/musl/elfutils-0.185-strndupa.patch|  2 ++
 3 files changed, 7 insertions(+), 18 deletions(-)

diff --git a/dev-libs/elfutils/files/musl/elfutils-0.185-error-h.patch 
b/dev-libs/elfutils/files/musl/elfutils-0.185-error-h.patch
index b9ee9b6e35a..2be63fca48d 100644
--- a/dev-libs/elfutils/files/musl/elfutils-0.185-error-h.patch
+++ b/dev-libs/elfutils/files/musl/elfutils-0.185-error-h.patch
@@ -1,20 +1,11 @@
+Should be obsolete with the next release (0.186?).
+
 
https://raw.githubusercontent.com/gentoo/musl/master/dev-libs/elfutils/files/0.178/musl-error_h.patch
+https://sourceware.org/bugzilla/show_bug.cgi?id=21008
 
-From 9cb8fad40329cc6445233af0b6ac3f2adde19c65 Mon Sep 17 00:00:00 2001
-From: 
 Date: Thu, 12 Dec 2019 22:00:47 -0600
 Subject: [PATCH 9/9] Add hacked up error header for non GLIBC machines
 

- lib/error.h | 27 +++
- src/error.h | 27 +++
- 2 files changed, 54 insertions(+)
- create mode 100644 lib/error.h
- create mode 100644 src/error.h
-
-diff --git a/lib/error.h b/lib/error.h
-new file mode 100644
-index 000..ef06827
 --- /dev/null
 +++ b/lib/error.h
 @@ -0,0 +1,27 @@
@@ -45,9 +36,6 @@ index 000..ef06827
 +}
 +
 +#endif/* _ERROR_H_ */
-diff --git a/src/error.h b/src/error.h
-new file mode 100644
-index 000..ef06827
 --- /dev/null
 +++ b/src/error.h
 @@ -0,0 +1,27 @@
@@ -78,6 +66,3 @@ index 000..ef06827
 +}
 +
 +#endif/* _ERROR_H_ */
--- 
-2.24.1
-

diff --git a/dev-libs/elfutils/files/musl/elfutils-0.185-macros.patch 
b/dev-libs/elfutils/files/musl/elfutils-0.185-macros.patch
index 3dbfdb6f7b3..6ab2e96548b 100644
--- a/dev-libs/elfutils/files/musl/elfutils-0.185-macros.patch
+++ b/dev-libs/elfutils/files/musl/elfutils-0.185-macros.patch
@@ -1,3 +1,5 @@
+May not be required (or at least some hunks) with next release (0.186?)
+
 https://git.alpinelinux.org/aports/plain/main/elfutils/musl-macros.patch
 --- a/src/arlib.h
 +++ b/src/arlib.h

diff --git a/dev-libs/elfutils/files/musl/elfutils-0.185-strndupa.patch 
b/dev-libs/elfutils/files/musl/elfutils-0.185-strndupa.patch
index 4175e28fd62..030bc779c61 100644
--- a/dev-libs/elfutils/files/musl/elfutils-0.185-strndupa.patch
+++ b/dev-libs/elfutils/files/musl/elfutils-0.185-strndupa.patch
@@ -1,3 +1,5 @@
+Should be fixed in next release (0.186?).
+
 
https://sourceware.org/git/?p=elfutils.git;a=commit;h=e7e4c92650892cf67210be5ea89ffba967427cbf
 https://git.alpinelinux.org/aports/plain/main/elfutils/musl-strndupa.patch
 --- a/src/unstrip.c



[gentoo-commits] repo/gentoo:master commit in: dev-libs/elfutils/files/

2021-06-26 Thread Sergei Trofimovich
commit: 33824d108c38a4dd5120e1ad7c0478537f6b5c34
Author: Michael Mair-Keimberger  levelnine  at>
AuthorDate: Sat Jun 26 16:48:20 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sat Jun 26 17:58:07 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33824d10

dev-libs/elfutils: remove unused patch

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Michael Mair-Keimberger  levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/21439
Signed-off-by: Sergei Trofimovich  gentoo.org>

 .../elfutils/files/elfutils-0.183-CC-quote.patch   | 40 --
 1 file changed, 40 deletions(-)

diff --git a/dev-libs/elfutils/files/elfutils-0.183-CC-quote.patch 
b/dev-libs/elfutils/files/elfutils-0.183-CC-quote.patch
deleted file mode 100644
index 8dc59bec262..000
--- a/dev-libs/elfutils/files/elfutils-0.183-CC-quote.patch
+++ /dev/null
@@ -1,40 +0,0 @@
 a/tests/Makefile.am
-+++ b/tests/Makefile.am
-@@ -528,7 +528,7 @@ installed_TESTS_ENVIRONMENT = libdir=$(DESTDIR)$(libdir); \
- export LC_ALL; export LANG; export VALGRIND_CMD; \
- unset DEBUGINFOD_URLS; \
- NM=$(NM); export NM; \
--CC=$(CC); export CC;
-+CC="$(CC)"; export CC;
- installed_LOG_COMPILER = $(abs_srcdir)/test-wrapper.sh \
-installed $(tests_rpath) \
-'$(program_transform_name)'
-@@ -540,7 +540,7 @@ TESTS_ENVIRONMENT = LC_ALL=C; LANG=C; 
VALGRIND_CMD=$(valgrind_cmd); \
-   export LC_ALL; export LANG; export VALGRIND_CMD; \
-   unset DEBUGINFOD_URLS; \
-   NM=$(NM); export NM; \
--  CC=$(CC); export CC;
-+  CC="$(CC)"; export CC;
- LOG_COMPILER = $(abs_srcdir)/test-wrapper.sh \
-  
$(abs_top_builddir)/libdw:$(abs_top_builddir)/backends:$(abs_top_builddir)/libelf:$(abs_top_builddir)/libasm:$(abs_top_builddir)/debuginfod
- 
 a/tests/Makefile.in
-+++ b/tests/Makefile.in
-@@ -1568,7 +1568,7 @@ installed_TESTS_ENVIRONMENT = 
libdir=$(DESTDIR)$(libdir); \
- export LC_ALL; export LANG; export VALGRIND_CMD; \
- unset DEBUGINFOD_URLS; \
- NM=$(NM); export NM; \
--CC=$(CC); export CC;
-+CC="$(CC)"; export CC;
- 
- installed_LOG_COMPILER = $(abs_srcdir)/test-wrapper.sh \
-installed $(tests_rpath) \
-@@ -1582,7 +1582,7 @@ TESTS_ENVIRONMENT = LC_ALL=C; LANG=C; 
VALGRIND_CMD=$(valgrind_cmd); \
-   export LC_ALL; export LANG; export VALGRIND_CMD; \
-   unset DEBUGINFOD_URLS; \
-   NM=$(NM); export NM; \
--  CC=$(CC); export CC;
-+  CC="$(CC)"; export CC;
- 
- LOG_COMPILER = $(abs_srcdir)/test-wrapper.sh \
-  
$(abs_top_builddir)/libdw:$(abs_top_builddir)/backends:$(abs_top_builddir)/libelf:$(abs_top_builddir)/libasm:$(abs_top_builddir)/debuginfod



[gentoo-commits] repo/gentoo:master commit in: dev-libs/elfutils/files/

2021-05-01 Thread Sergei Trofimovich
commit: c55d18a4c4ecb8ded40594ed5466543455606c91
Author: Michael Mair-Keimberger  levelnine  at>
AuthorDate: Sat May  1 17:52:37 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sat May  1 20:44:23 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c55d18a4

dev-libs/elfutils: remove unused patches

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Michael Mair-Keimberger  levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/20633
Signed-off-by: Sergei Trofimovich  gentoo.org>

 .../files/elfutils-0.179-CC-in-tests.patch | 45 --
 .../files/elfutils-0.181-CC-in-tests-p2.patch  | 34 
 2 files changed, 79 deletions(-)

diff --git a/dev-libs/elfutils/files/elfutils-0.179-CC-in-tests.patch 
b/dev-libs/elfutils/files/elfutils-0.179-CC-in-tests.patch
deleted file mode 100644
index aa58862ec89..000
--- a/dev-libs/elfutils/files/elfutils-0.179-CC-in-tests.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-https://bugs.gentoo.org/718872
 a/tests/run-disasm-x86-64.sh
-+++ b/tests/run-disasm-x86-64.sh
-@@ -22,7 +22,7 @@ case "`uname -m`" in
-   x86_64)
- tempfiles testfile45.o
- testfiles testfile45.S testfile45.expect
--gcc -m64 -c -o testfile45.o testfile45.S
-+${CC-gcc} -m64 -c -o testfile45.o testfile45.S
- testrun_compare ${abs_top_builddir}/src/objdump -d testfile45.o < 
testfile45.expect
- ;;
- esac
 a/tests/run-disasm-x86.sh
-+++ b/tests/run-disasm-x86.sh
-@@ -22,7 +22,7 @@ case "`uname -m`" in
-   x86_64 | i?86 )
- tempfiles testfile44.o
- testfiles testfile44.S testfile44.expect
--gcc -m32 -c -o testfile44.o testfile44.S
-+${CC-gcc} -m32 -c -o testfile44.o testfile44.S
- testrun_compare ${abs_top_builddir}/src/objdump -d testfile44.o < 
testfile44.expect
- ;;
- esac
 a/tests/run-strip-g.sh
-+++ b/tests/run-strip-g.sh
-@@ -25,7 +25,7 @@
- tempfiles a.out strip.out debug.out readelf.out
- 
- echo Create debug a.out.
--echo "int main() { return 1; }" | gcc -g -xc -
-+echo "int main() { return 1; }" | ${CC-gcc} -g -xc -
- 
- echo strip -g to file with debug file
- testrun ${abs_top_builddir}/src/strip -g -o strip.out -f debug.out ||
 a/tests/run-strip-nothing.sh
-+++ b/tests/run-strip-nothing.sh
-@@ -23,7 +23,7 @@
- tempfiles a.out strip.out debug.out
- 
- # Create no-debug a.out.
--echo "int main() { return 1; }" | gcc -s -xc -
-+echo "int main() { return 1; }" | ${CC-gcc} -s -xc -
- 
- # strip to file
- testrun ${abs_top_builddir}/src/strip -g -o strip.out ||

diff --git a/dev-libs/elfutils/files/elfutils-0.181-CC-in-tests-p2.patch 
b/dev-libs/elfutils/files/elfutils-0.181-CC-in-tests-p2.patch
deleted file mode 100644
index 63c0ed0cb60..000
--- a/dev-libs/elfutils/files/elfutils-0.181-CC-in-tests-p2.patch
+++ /dev/null
@@ -1,34 +0,0 @@
 a/tests/run-test-includes.sh
-+++ b/tests/run-test-includes.sh
-@@ -3,24 +3,24 @@
- . $srcdir/test-subr.sh
- 
- echo '#include "libelf.h"' \
--  | gcc -c -o /dev/null -I ${abs_srcdir}/../libelf -xc -
-+  | ${CC-gcc} -c -o /dev/null -I ${abs_srcdir}/../libelf -xc -
- echo '#include "gelf.h"' \
--  | gcc -c -o /dev/null -I ${abs_srcdir}/../libelf -xc -
-+  | ${CC-gcc} -c -o /dev/null -I ${abs_srcdir}/../libelf -xc -
- 
- echo '#include "dwarf.h"' \
--  | gcc -c -o /dev/null -I ${abs_srcdir}/../libelf \
-+  | ${CC-gcc} -c -o /dev/null -I ${abs_srcdir}/../libelf \
- -I ${abs_srcdir}/../libdw -xc -
- echo '#include "libdw.h"' \
--  | gcc -c -o /dev/null -I ${abs_srcdir}/../libelf \
-+  | ${CC-gcc} -c -o /dev/null -I ${abs_srcdir}/../libelf \
- -I ${abs_srcdir}/../libdw -xc -
- 
- echo '#include "libdwfl.h"' \
--  | gcc -c -o /dev/null -I ${abs_srcdir}/../libelf \
-+  | ${CC-gcc} -c -o /dev/null -I ${abs_srcdir}/../libelf \
- -I ${abs_srcdir}/../libdw -I ${abs_srcdir}/../libdwfl -xc -
- echo '#include "libdwelf.h"' \
--  | gcc -c -o /dev/null -I ${abs_srcdir}/../libelf \
-+  | ${CC-gcc} -c -o /dev/null -I ${abs_srcdir}/../libelf \
- -I ${abs_srcdir}/../libdw -I ${abs_srcdir}/../libdwelf -xc -
- 
- echo '#include "libasm.h"' \
--  | gcc -c -o /dev/null -I ${abs_srcdir}/../libelf \
-+  | ${CC-gcc} -c -o /dev/null -I ${abs_srcdir}/../libelf \
- -I ${abs_srcdir}/../libasm -xc -



[gentoo-commits] repo/gentoo:master commit in: dev-libs/elfutils/files/, dev-libs/elfutils/

2021-02-07 Thread Sergei Trofimovich
commit: 0896a41030c4e795e49e48241823e01686c8de69
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sun Feb  7 19:07:25 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun Feb  7 19:10:10 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0896a410

dev-libs/elfutils: bump up to 0.183

Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/elfutils/Manifest |  1 +
 dev-libs/elfutils/elfutils-0.183.ebuild| 87 ++
 .../elfutils/files/elfutils-0.183-CC-quote.patch   | 40 ++
 3 files changed, 128 insertions(+)

diff --git a/dev-libs/elfutils/Manifest b/dev-libs/elfutils/Manifest
index 1b1bbed5921..d75fa38fc21 100644
--- a/dev-libs/elfutils/Manifest
+++ b/dev-libs/elfutils/Manifest
@@ -1,2 +1,3 @@
 DIST elfutils-0.181.tar.bz2 9088984 BLAKE2B 
3f35f1a494986ff23d755188aab2b8f5ca9729927dd0e01725abf8477ac09721f751ff79686aafeff3878cf52e0c3f3e06d794fdf6371382a1bffc85c0de3411
 SHA512 
d565541d5817f409dc89ebb1ee593366f69c371a1531308eeb67ff934b14a0fab0c9009fd7c23240efbaa1b4e04edac5c425e47d80e3e66ba03dcaf000afea36
 DIST elfutils-0.182.tar.bz2 9096742 BLAKE2B 
59efd76c921a90a5ac18a62a00845080b574f167ae633d32b14acce554523736d0ccfdf539ba61e8ec1511b3294b486e0fa512887582a2e5cc34e71954e87e73
 SHA512 
8ab0735bbe11b4383169341bf674ace360038b6ae5239f1d5a991c46260cd4bce545e078735b7de3b8fab132bb5da41f60689ff1b1d7ebccfada117a954a2c81
+DIST elfutils-0.183.tar.bz2 9109254 BLAKE2B 
8dd92e7c2df13d51bb51085f6cf762ea1ec7b803dcebf1202a4441ba152ed0e3332b1267276de4650d5ed5c5bed656f72f4c4e9bbf20700be45312a202351574
 SHA512 
bdafdd738a33cebe4f87849e5e6f1133881e77ef71b27faa0f0234ff80e9674f506957898326c2a55fd8438cbd189f7930597d0b4b9ca6c77921cc0cbd83b6b7

diff --git a/dev-libs/elfutils/elfutils-0.183.ebuild 
b/dev-libs/elfutils/elfutils-0.183.ebuild
new file mode 100644
index 000..d1288903453
--- /dev/null
+++ b/dev-libs/elfutils/elfutils-0.183.ebuild
@@ -0,0 +1,87 @@
+# Copyright 2003-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic multilib-minimal toolchain-funcs
+
+DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement 
for libelf)"
+HOMEPAGE="http://elfutils.org/;
+SRC_URI="https://sourceware.org/elfutils/ftp/${PV}/${P}.tar.bz2;
+
+LICENSE="|| ( GPL-2+ LGPL-3+ ) utils? ( GPL-3+ )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="bzip2 lzma nls static-libs test +threads +utils valgrind zstd"
+
+RDEPEND=">=sys-libs/zlib-1.2.8-r1[static-libs?,${MULTILIB_USEDEP}]
+   bzip2? ( >=app-arch/bzip2-1.0.6-r4[static-libs?,${MULTILIB_USEDEP}] )
+   lzma? ( >=app-arch/xz-utils-5.0.5-r1[static-libs?,${MULTILIB_USEDEP}] )
+   zstd? ( app-arch/zstd:=[static-libs?,${MULTILIB_USEDEP}] )
+   !dev-libs/libelf
+"
+DEPEND="${RDEPEND}
+   valgrind? ( dev-util/valgrind )
+"
+BDEPEND="nls? ( sys-devel/gettext )
+   >=sys-devel/flex-2.5.4a
+   sys-devel/m4
+"
+RESTRICT="!test? ( test )"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-0.175-disable-biarch-test-PR24158.patch
+   "${FILESDIR}"/${PN}-0.177-disable-large.patch
+   "${FILESDIR}"/${PN}-0.180-PaX-support.patch
+   "${FILESDIR}"/${PN}-0.183-CC-quote.patch
+)
+
+src_prepare() {
+   default
+
+   if ! use static-libs; then
+   sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' 
lib{asm,dw,elf}/Makefile.in || die
+   fi
+   # https://sourceware.org/PR23914
+   sed -i 's:-Werror::' */Makefile.in || die
+}
+
+src_configure() {
+   use test && append-flags -g #407135
+
+   # Symbol aliases are implemented as asm statements.
+   # Will require porting: https://gcc.gnu.org/PR48200
+   filter-flags '-flto*'
+
+   multilib-minimal_src_configure
+}
+
+multilib_src_configure() {
+   ECONF_SOURCE="${S}" econf \
+   $(use_enable nls) \
+   $(use_enable threads thread-safety) \
+   $(use_enable valgrind) \
+   --disable-debuginfod \
+   --disable-libdebuginfod \
+   --program-prefix="eu-" \
+   --with-zlib \
+   $(use_with bzip2 bzlib) \
+   $(use_with lzma) \
+   $(use_with zstd)
+}
+
+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 don't
+   # disable their building when the USE flag is disabled.
+   if ! use utils; then
+   rm -rf "${ED}"/usr/bin || die
+   fi
+}

diff --git a/dev-libs/elfutils/files/elfutils-0.183-CC-quote.patch 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/elfutils/files/

2020-11-08 Thread Sergei Trofimovich
commit: bd26a4acc79cb740181fae57b9d9c53d21ac5a34
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Sun Nov  8 19:03:37 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Mon Nov  9 07:32:32 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd26a4ac

dev-libs/elfutils: remove unused patch

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Michael Mair-Keimberger  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/18189
Signed-off-by: Sergei Trofimovich  gentoo.org>

 .../elfutils/files/elfutils-0.180-readelf.patch| 23 --
 1 file changed, 23 deletions(-)

diff --git a/dev-libs/elfutils/files/elfutils-0.180-readelf.patch 
b/dev-libs/elfutils/files/elfutils-0.180-readelf.patch
deleted file mode 100644
index a347d03041d..000
--- a/dev-libs/elfutils/files/elfutils-0.180-readelf.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-Use tool-prefixed readelf.
 a/configure.ac
-+++ b/configure.ac
-@@ -200,7 +200,7 @@ fi
- # We really want build-ids. Warn and force generating them if gcc was
- # configure without --enable-linker-build-id
- AC_CACHE_CHECK([whether the compiler generates build-ids], ac_cv_buildid, [dnl
--AC_LINK_IFELSE([AC_LANG_PROGRAM()],[ac_cv_buildid=yes; readelf -n 
conftest$EXEEXT | grep -q NT_GNU_BUILD_ID || 
ac_cv_buildid=no],AC_MSG_FAILURE([unexpected compile failure]))])
-+AC_LINK_IFELSE([AC_LANG_PROGRAM()],[ac_cv_buildid=yes; $READELF -n 
conftest$EXEEXT | grep -q NT_GNU_BUILD_ID || 
ac_cv_buildid=no],AC_MSG_FAILURE([unexpected compile failure]))])
- if test "$ac_cv_buildid" = "no"; then
-   AC_MSG_WARN([compiler doesn't generate build-id by default])
-   LDFLAGS="$LDFLAGS -Wl,--build-id"
 a/configure
-+++ b/configure
-@@ -5343,7 +5343,7 @@ main ()
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
--  ac_cv_buildid=yes; readelf -n conftest$EXEEXT | grep -q NT_GNU_BUILD_ID || 
ac_cv_buildid=no
-+  ac_cv_buildid=yes; $READELF -n conftest$EXEEXT | grep -q NT_GNU_BUILD_ID || 
ac_cv_buildid=no
- else
-   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/elfutils/files/

2020-09-14 Thread Sergei Trofimovich
commit: d35b36671203776e909051babba51507234c1f7c
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Sat Sep 12 16:24:02 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Mon Sep 14 07:03:45 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d35b3667

dev-libs/elfutils: remove unused patch

Package-Manager: Portage-3.0.6, Repoman-3.0.1
Signed-off-by: Michael Mair-Keimberger  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/17506
Signed-off-by: Sergei Trofimovich  gentoo.org>

 .../files/elfutils-0.118-PaX-support.patch | 26 --
 1 file changed, 26 deletions(-)

diff --git a/dev-libs/elfutils/files/elfutils-0.118-PaX-support.patch 
b/dev-libs/elfutils/files/elfutils-0.118-PaX-support.patch
deleted file mode 100644
index 0ae359fe7db..000
--- a/dev-libs/elfutils/files/elfutils-0.118-PaX-support.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-Add support for PaX ELF markings
-
-Patch by Kevin F. Quinn 
-
-http://bugs.gentoo.org/115100
-
 a/libelf/elf.h
-+++ b/libelf/elf.h
-@@ -568,6 +568,7 @@
- #define PT_GNU_EH_FRAME   0x6474e550  /* GCC .eh_frame_hdr segment */
- #define PT_GNU_STACK  0x6474e551  /* Indicates stack executability */
- #define PT_GNU_RELRO  0x6474e552  /* Read-only after relocation */
-+#define PT_PAX_FLAGS0x65041580  /* Indicates PaX flag markings */
- #define PT_LOSUNW 0x6ffa
- #define PT_SUNWBSS0x6ffa  /* Sun Specific segment */
- #define PT_SUNWSTACK  0x6ffb  /* Stack segment */
 a/src/elflint.c
-+++ b/src/elflint.c
-@@ -3187,6 +3187,7 @@
- 
-   if (phdr->p_type >= PT_NUM && phdr->p_type != PT_GNU_EH_FRAME
- && phdr->p_type != PT_GNU_STACK && phdr->p_type != PT_GNU_RELRO
-+&& phdr->p_type != PT_PAX_FLAGS
- /* Check for a known machine-specific type.  */
- && ebl_segment_type_name (ebl, phdr->p_type, NULL, 0) == NULL)
-   ERROR (gettext ("\



[gentoo-commits] repo/gentoo:master commit in: dev-libs/elfutils/files/, dev-libs/elfutils/

2020-09-08 Thread Sergei Trofimovich
commit: 7fc4161c49572a8baf68d88cebcf498e5015aa07
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Tue Sep  8 21:23:26 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Tue Sep  8 21:23:37 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fc4161c

dev-libs/elfutils: bump up to 181

Package-Manager: Portage-3.0.5, Repoman-3.0.1
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/elfutils/Manifest |  1 +
 dev-libs/elfutils/elfutils-0.181.ebuild| 86 ++
 .../files/elfutils-0.181-CC-in-tests-p2.patch  | 34 +
 3 files changed, 121 insertions(+)

diff --git a/dev-libs/elfutils/Manifest b/dev-libs/elfutils/Manifest
index f8c5896077e..f54bc77fa62 100644
--- a/dev-libs/elfutils/Manifest
+++ b/dev-libs/elfutils/Manifest
@@ -1 +1,2 @@
 DIST elfutils-0.180.tar.bz2 9079640 BLAKE2B 
bd7863b82a71d2932a23c9d125d5eb6485977a3256a8a0b25980183d33f7345c3d9fae78277de5c955eb0ceeb955f8fa71d209f4f39bcf6dd49e46a8bbd7efcf
 SHA512 
62e96035ccfe8928baca2285decbe8b8703a2daa956df81ece18fecf643272fb68955806b3e807a514141a7a9bf44520bf09461672aa580bd6807485fb604d25
+DIST elfutils-0.181.tar.bz2 9088984 BLAKE2B 
3f35f1a494986ff23d755188aab2b8f5ca9729927dd0e01725abf8477ac09721f751ff79686aafeff3878cf52e0c3f3e06d794fdf6371382a1bffc85c0de3411
 SHA512 
d565541d5817f409dc89ebb1ee593366f69c371a1531308eeb67ff934b14a0fab0c9009fd7c23240efbaa1b4e04edac5c425e47d80e3e66ba03dcaf000afea36

diff --git a/dev-libs/elfutils/elfutils-0.181.ebuild 
b/dev-libs/elfutils/elfutils-0.181.ebuild
new file mode 100644
index 000..e0947ea4dfd
--- /dev/null
+++ b/dev-libs/elfutils/elfutils-0.181.ebuild
@@ -0,0 +1,86 @@
+# Copyright 2003-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic multilib-minimal toolchain-funcs
+
+DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement 
for libelf)"
+HOMEPAGE="http://elfutils.org/;
+SRC_URI="https://sourceware.org/elfutils/ftp/${PV}/${P}.tar.bz2;
+
+LICENSE="|| ( GPL-2+ LGPL-3+ ) utils? ( GPL-3+ )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="bzip2 lzma nls static-libs test +threads +utils valgrind"
+
+RDEPEND=">=sys-libs/zlib-1.2.8-r1[static-libs?,${MULTILIB_USEDEP}]
+   bzip2? ( >=app-arch/bzip2-1.0.6-r4[static-libs?,${MULTILIB_USEDEP}] )
+   lzma? ( >=app-arch/xz-utils-5.0.5-r1[static-libs?,${MULTILIB_USEDEP}] )
+   !dev-libs/libelf"
+DEPEND="${RDEPEND}
+   valgrind? ( dev-util/valgrind )
+"
+BDEPEND="nls? ( sys-devel/gettext )
+   >=sys-devel/flex-2.5.4a
+   sys-devel/m4"
+
+RESTRICT="!test? ( test )"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-0.175-disable-biarch-test-PR24158.patch
+   "${FILESDIR}"/${PN}-0.177-disable-large.patch
+   "${FILESDIR}"/${PN}-0.180-PaX-support.patch
+   "${FILESDIR}"/${PN}-0.179-CC-in-tests.patch
+   "${FILESDIR}"/${PN}-0.181-CC-in-tests-p2.patch
+)
+
+src_prepare() {
+   default
+
+   if ! use static-libs; then
+   sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' 
lib{asm,dw,elf}/Makefile.in || die
+   fi
+   # https://sourceware.org/PR23914
+   sed -i 's:-Werror::' */Makefile.in || die
+}
+
+src_configure() {
+   use test && append-flags -g #407135
+
+   # Symbol aliases are implemented as asm statements.
+   # Will require porting: https://gcc.gnu.org/PR48200
+   filter-flags '-flto*'
+
+   multilib-minimal_src_configure
+}
+
+multilib_src_configure() {
+   ECONF_SOURCE="${S}" econf \
+   $(use_enable nls) \
+   $(use_enable threads thread-safety) \
+   $(use_enable valgrind) \
+   --disable-debuginfod \
+   --program-prefix="eu-" \
+   --with-zlib \
+   $(use_with bzip2 bzlib) \
+   $(use_with lzma)
+}
+
+multilib_src_test() {
+   # CC is a workaround for tests using ${CC-gcc}
+   env 
LD_LIBRARY_PATH="${BUILD_DIR}/libelf:${BUILD_DIR}/libebl:${BUILD_DIR}/libdw:${BUILD_DIR}/libasm"
 \
+   LC_ALL="C" \
+   CC="$(tc-getCC)" \
+   emake check VERBOSE=1
+}
+
+multilib_src_install_all() {
+   einstalldocs
+   dodoc NOTES
+   # These build quick, and are needed for most tests, so don't
+   # disable their building when the USE flag is disabled.
+   if ! use utils; then
+   rm -rf "${ED}"/usr/bin || die
+   fi
+}

diff --git a/dev-libs/elfutils/files/elfutils-0.181-CC-in-tests-p2.patch 
b/dev-libs/elfutils/files/elfutils-0.181-CC-in-tests-p2.patch
new file mode 100644
index 000..63c0ed0cb60
--- /dev/null
+++ b/dev-libs/elfutils/files/elfutils-0.181-CC-in-tests-p2.patch
@@ -0,0 +1,34 @@
+--- a/tests/run-test-includes.sh
 b/tests/run-test-includes.sh
+@@ -3,24 +3,24 @@
+ . $srcdir/test-subr.sh
+ 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/elfutils/files/

2020-07-27 Thread Aaron Bauman
commit: 47952a090cd27304718f869d1dc507c977de5d7f
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Sun Jul 26 08:32:56 2020 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Mon Jul 27 20:06:14 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47952a09

dev-libs/elfutils: remove unused patch

Package-Manager: Portage-3.0.0, Repoman-2.3.23
Signed-off-by: Michael Mair-Keimberger  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/16831
Signed-off-by: Aaron Bauman  gentoo.org>

 .../files/elfutils-0.179-PaX-support.patch | 26 --
 1 file changed, 26 deletions(-)

diff --git a/dev-libs/elfutils/files/elfutils-0.179-PaX-support.patch 
b/dev-libs/elfutils/files/elfutils-0.179-PaX-support.patch
deleted file mode 100644
index 5246d1ad9fc..000
--- a/dev-libs/elfutils/files/elfutils-0.179-PaX-support.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-Add support for PaX ELF markings
-
-Patch by Kevin F. Quinn 
-
-http://bugs.gentoo.org/115100
-
 a/libelf/elf.h
-+++ b/libelf/elf.h
-@@ -721,6 +721,7 @@ typedef struct
- #define PT_GNU_EH_FRAME   0x6474e550  /* GCC .eh_frame_hdr segment */
- #define PT_GNU_STACK  0x6474e551  /* Indicates stack executability */
- #define PT_GNU_RELRO  0x6474e552  /* Read-only after relocation */
-+#define PT_PAX_FLAGS  0x65041580  /* Indicates PaX flag markings */
- #define PT_LOSUNW 0x6ffa
- #define PT_SUNWBSS0x6ffa  /* Sun Specific segment */
- #define PT_SUNWSTACK  0x6ffb  /* Stack segment */
 a/src/elflint.c
-+++ b/src/elflint.c
-@@ -4493,6 +4493,7 @@ only executables, shared objects, and core files can 
have program headers\n"));
- 
-   if (phdr->p_type >= PT_NUM && phdr->p_type != PT_GNU_EH_FRAME
- && phdr->p_type != PT_GNU_STACK && phdr->p_type != PT_GNU_RELRO
-+&& phdr->p_type != PT_PAX_FLAGS
- && phdr->p_type != PT_GNU_PROPERTY
- /* Check for a known machine-specific type.  */
- && ebl_segment_type_name (ebl, phdr->p_type, NULL, 0) == NULL)



[gentoo-commits] repo/gentoo:master commit in: dev-libs/elfutils/files/, dev-libs/elfutils/

2020-06-12 Thread Sergei Trofimovich
commit: 4ed405c9e080ea02aa522f51c569763ec6de8bb7
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Fri Jun 12 21:19:24 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Fri Jun 12 21:20:19 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ed405c9

dev-libs/elfutils: bump up to 0.180

Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/elfutils/Manifest |  1 +
 dev-libs/elfutils/elfutils-0.180.ebuild| 86 ++
 .../files/elfutils-0.180-PaX-support.patch | 26 +++
 .../elfutils/files/elfutils-0.180-readelf.patch| 23 ++
 4 files changed, 136 insertions(+)

diff --git a/dev-libs/elfutils/Manifest b/dev-libs/elfutils/Manifest
index 581a21cf845..f5e4359c624 100644
--- a/dev-libs/elfutils/Manifest
+++ b/dev-libs/elfutils/Manifest
@@ -1,2 +1,3 @@
 DIST elfutils-0.177.tar.bz2 8852413 BLAKE2B 
03f432342651f7646d73b7847325bd14b722ce34d85df01b1ad072b916af9b9da2d0d119cd24e952073bd584ec76b027ba9b6c7d45fb057372b3e700b1f5741a
 SHA512 
2779987463a22ed220759e25a09c9a1eb84c0f36db37675136e59aa55c7f8f90b7a7d34ffc4e6a4291d7fa73692a1bd1a303a74270b11d1623b4f9868d19498f
 DIST elfutils-0.179.tar.bz2 9057637 BLAKE2B 
b34f5af6d2a6613622f4d5da78b9ae10e60800fc91cb4607115fcaaf90c1c544460fb02e164f87e52951a446d6479909bbf3aa02b7db78b26af7863290de8848
 SHA512 
ff2d96ad1db08e3a2ddaa60bd5a05e9b61ffa71d646f889cebb6bef51322e874930809c6dd0a257ced8c6e8de4b59ecf13ca6741dc68f9400293208278a0c052
+DIST elfutils-0.180.tar.bz2 9079640 BLAKE2B 
bd7863b82a71d2932a23c9d125d5eb6485977a3256a8a0b25980183d33f7345c3d9fae78277de5c955eb0ceeb955f8fa71d209f4f39bcf6dd49e46a8bbd7efcf
 SHA512 
62e96035ccfe8928baca2285decbe8b8703a2daa956df81ece18fecf643272fb68955806b3e807a514141a7a9bf44520bf09461672aa580bd6807485fb604d25

diff --git a/dev-libs/elfutils/elfutils-0.180.ebuild 
b/dev-libs/elfutils/elfutils-0.180.ebuild
new file mode 100644
index 000..086304510f1
--- /dev/null
+++ b/dev-libs/elfutils/elfutils-0.180.ebuild
@@ -0,0 +1,86 @@
+# Copyright 2003-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic multilib-minimal
+
+DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement 
for libelf)"
+HOMEPAGE="http://elfutils.org/;
+SRC_URI="https://sourceware.org/elfutils/ftp/${PV}/${P}.tar.bz2;
+
+LICENSE="|| ( GPL-2+ LGPL-3+ ) utils? ( GPL-3+ )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="bzip2 lzma nls static-libs test +threads +utils valgrind"
+
+RDEPEND=">=sys-libs/zlib-1.2.8-r1[static-libs?,${MULTILIB_USEDEP}]
+   bzip2? ( >=app-arch/bzip2-1.0.6-r4[static-libs?,${MULTILIB_USEDEP}] )
+   lzma? ( >=app-arch/xz-utils-5.0.5-r1[static-libs?,${MULTILIB_USEDEP}] )
+   !dev-libs/libelf"
+DEPEND="${RDEPEND}
+   valgrind? ( dev-util/valgrind )
+"
+BDEPEND="nls? ( sys-devel/gettext )
+   >=sys-devel/flex-2.5.4a
+   sys-devel/m4"
+
+RESTRICT="!test? ( test )"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-0.175-disable-biarch-test-PR24158.patch
+   "${FILESDIR}"/${PN}-0.177-disable-large.patch
+   "${FILESDIR}"/${PN}-0.180-PaX-support.patch
+   "${FILESDIR}"/${PN}-0.179-CC-in-tests.patch
+   "${FILESDIR}"/${PN}-0.180-readelf.patch
+)
+
+src_prepare() {
+   default
+
+   if ! use static-libs; then
+   sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' 
lib{asm,dw,elf}/Makefile.in || die
+   fi
+   # https://sourceware.org/PR23914
+   sed -i 's:-Werror::' */Makefile.in || die
+}
+
+src_configure() {
+   use test && append-flags -g #407135
+
+   # Symbol aliases are implemented as asm statements.
+   # Will require porting: https://gcc.gnu.org/PR48200
+   filter-flags '-flto*'
+
+   multilib-minimal_src_configure
+}
+
+multilib_src_configure() {
+   ECONF_SOURCE="${S}" econf \
+   $(use_enable nls) \
+   $(use_enable threads thread-safety) \
+   $(use_enable valgrind) \
+   --disable-debuginfod \
+   --program-prefix="eu-" \
+   --with-zlib \
+   $(use_with bzip2 bzlib) \
+   $(use_with lzma)
+}
+
+multilib_src_test() {
+   # CC is a workaround for tests using ${CC-gcc}
+   env 
LD_LIBRARY_PATH="${BUILD_DIR}/libelf:${BUILD_DIR}/libebl:${BUILD_DIR}/libdw:${BUILD_DIR}/libasm"
 \
+   LC_ALL="C" \
+   CC="$(gc-getCC)" \
+   emake check VERBOSE=1
+}
+
+multilib_src_install_all() {
+   einstalldocs
+   dodoc NOTES
+   # These build quick, and are needed for most tests, so don't
+   # disable their building when the USE flag is disabled.
+   if ! use utils; then
+   rm -rf "${ED}"/usr/bin || die
+   fi
+}

diff --git 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/elfutils/files/

2020-05-21 Thread Sergei Trofimovich
commit: 1ed381bc5cd1d3d238a5d66b679b0f411fdaab85
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Wed May 20 15:29:14 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Thu May 21 08:22:42 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ed381bc

dev-libs/elfutils: remove unused patch

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Michael Mair-Keimberger  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/15893
Signed-off-by: Sergei Trofimovich  gentoo.org>

 .../elfutils/files/elfutils-0.173-reorder.patch| 37 --
 1 file changed, 37 deletions(-)

diff --git a/dev-libs/elfutils/files/elfutils-0.173-reorder.patch 
b/dev-libs/elfutils/files/elfutils-0.173-reorder.patch
deleted file mode 100644
index fd3dede7c25..000
--- a/dev-libs/elfutils/files/elfutils-0.173-reorder.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-https://bugs.gentoo.org/666954
-https://github.com/rpm-software-management/rpm/issues/423
-https://sourceware.org/ml/elfutils-devel/2019-q2/msg00077.html
-
-From: Mark Wielaard 
-Subject: [PATCH] libelf: Mark shdr_flags dirty if offset or size changes 
during update.
-Date: Mon, 13 May 2019 00:13:42 +0200
-Message-Id: <20190512221342.23383-1-m...@klomp.org>
-
-We forgot to mark the shdr_flags dirty when only the sh_size or
-sh_offset changed during elf_update (). This meant that if there were
-no other shdr changes we only wrote out the section data, but didn't
-write out the shdr table to the file.
-
-Signed-off-by: Mark Wielaard 

- libelf/elf32_updatenull.c  |   5 +-
-
 a/libelf/elf32_updatenull.c
-+++ b/libelf/elf32_updatenull.c
-@@ -366,12 +366,15 @@ __elfw2(LIBELFBITS,updatenull_wrlock) (Elf *elf, int 
*change_bop, size_t shnum)
-   }
- 
- /* See whether the section size is correct.  */
-+int size_changed = 0;
- update_if_changed (shdr->sh_size, (GElf_Word) offset,
--   changed);
-+   size_changed);
-+changed |= size_changed;
- 
- if (shdr->sh_type != SHT_NOBITS)
-   size += offset;
- 
-+scn->shdr_flags |= (offset_changed | size_changed);
- scn->flags |= changed;
-   }
- 



[gentoo-commits] repo/gentoo:master commit in: dev-libs/elfutils/files/, dev-libs/elfutils/

2019-08-09 Thread Andreas K. Hüttel
commit: 5cf90c3b310ee016131e15e24713b50e31543dda
Author: Andreas K. Hüttel  gentoo  org>
AuthorDate: Fri Aug  9 20:52:35 2019 +
Commit: Andreas K. Hüttel  gentoo  org>
CommitDate: Fri Aug  9 20:52:35 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cf90c3b

dev-libs/elfutils: Remove old

Versions prior to 0.176 cannot handle binutils-2.32 properly

Package-Manager: Portage-2.3.70, Repoman-2.3.16
Signed-off-by: Andreas K. Hüttel  gentoo.org>

 dev-libs/elfutils/Manifest |  2 -
 dev-libs/elfutils/elfutils-0.170-r1.ebuild | 66 
 dev-libs/elfutils/elfutils-0.173-r1.ebuild | 70 -
 dev-libs/elfutils/elfutils-0.173-r2.ebuild | 71 --
 dev-libs/elfutils/elfutils-0.176.ebuild| 70 -
 .../files/elfutils-0.173-partial-core.patch| 34 ---
 6 files changed, 313 deletions(-)

diff --git a/dev-libs/elfutils/Manifest b/dev-libs/elfutils/Manifest
index 29c6e6f4865..b8b07d4c898 100644
--- a/dev-libs/elfutils/Manifest
+++ b/dev-libs/elfutils/Manifest
@@ -1,3 +1 @@
-DIST elfutils-0.170.tar.bz2 8358001 BLAKE2B 
03ea3ba7d3feaac43065312c475f4a3cd9083a6c56c9982fa00c0ed02b28440f6a37bbeca4be18db13749647ea1c8a6f00dae7efcb1c70235110e60ad7d56d06
 SHA512 
aca0b5e271138eaf86e36505ffb101181207b151e833e6cd7c18986ac50678542a5ecd2250f8dd6923ca497142f197c8b08fd225e4130b16b6203c24013d6d28
-DIST elfutils-0.173.tar.bz2 8684782 BLAKE2B 
c5905bb864059bdfb2699a0681a0ec576b6b8da444b0641e8184f58735084588910930bcca14583db6be75b24a0e374413911ded5ba2ca893798404fbe7374eb
 SHA512 
7f38e4ce2098b685f15030bf01f0a66a74aa32fbfcead0304c1d0e0a929b348a72f99e685cd4605465f4337393382112f64b8847e6c2f7cc1a57a4fd03d03eb3
 DIST elfutils-0.176.tar.bz2 8646075 BLAKE2B 
7f23d59b7f5d74946fea928a7fada7764c1f96a5eefefc4a3a382090eb7cad07c80419218300d853ccbef8f4e2288eb443ff06b3e64bf4511d9fa7aa84f5b794
 SHA512 
7f032913be363a43229ded85d495dcf7542b3c85974aaaba0d984228dc9ac1721da3dc388d3fa02325a80940161db7e9ad2c9e4521a424ad8a7d050c0902915b

diff --git a/dev-libs/elfutils/elfutils-0.170-r1.ebuild 
b/dev-libs/elfutils/elfutils-0.170-r1.ebuild
deleted file mode 100644
index 43f88abea48..000
--- a/dev-libs/elfutils/elfutils-0.170-r1.ebuild
+++ /dev/null
@@ -1,66 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit flag-o-matic multilib-minimal
-
-DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement 
for libelf)"
-HOMEPAGE="http://elfutils.org/;
-SRC_URI="https://sourceware.org/elfutils/ftp/${PV}/${P}.tar.bz2;
-
-LICENSE="|| ( GPL-2+ LGPL-3+ ) utils? ( GPL-3+ )"
-SLOT="0"
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc 
x86 ~amd64-linux ~x86-linux"
-IUSE="bzip2 lzma nls static-libs test +threads +utils"
-
-RDEPEND=">=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
-   bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
-   lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] )
-   !dev-libs/libelf"
-DEPEND="${RDEPEND}
-   nls? ( sys-devel/gettext )
-   >=sys-devel/flex-2.5.4a
-   sys-devel/m4"
-
-PATCHES=("${FILESDIR}"/${PN}-0.118-PaX-support.patch)
-
-src_prepare() {
-   default
-
-   if ! use static-libs; then
-   sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' 
lib{asm,dw,elf}/Makefile.in || die
-   fi
-   sed -i 's:-Werror::' */Makefile.in || die
-}
-
-src_configure() {
-   use test && append-flags -g #407135
-   multilib-minimal_src_configure
-}
-
-multilib_src_configure() {
-   ECONF_SOURCE="${S}" econf \
-   $(use_enable nls) \
-   $(use_enable threads thread-safety) \
-   --program-prefix="eu-" \
-   --with-zlib \
-   $(use_with bzip2 bzlib) \
-   $(use_with lzma)
-}
-
-multilib_src_test() {
-   env 
LD_LIBRARY_PATH="${BUILD_DIR}/libelf:${BUILD_DIR}/libebl:${BUILD_DIR}/libdw:${BUILD_DIR}/libasm"
 \
-   LC_ALL="C" \
-   emake check
-}
-
-multilib_src_install_all() {
-   einstalldocs
-   dodoc NOTES
-   # These build quick, and are needed for most tests, so don't
-   # disable their building when the USE flag is disabled.
-   if ! use utils; then
-   rm -rf "${ED}"/usr/bin || die
-   fi
-}

diff --git a/dev-libs/elfutils/elfutils-0.173-r1.ebuild 
b/dev-libs/elfutils/elfutils-0.173-r1.ebuild
deleted file mode 100644
index d102c9265db..000
--- a/dev-libs/elfutils/elfutils-0.173-r1.ebuild
+++ /dev/null
@@ -1,70 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit flag-o-matic multilib-minimal
-
-DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement 
for libelf)"
-HOMEPAGE="http://elfutils.org/;

[gentoo-commits] repo/gentoo:master commit in: dev-libs/elfutils/files/, dev-libs/elfutils/

2019-05-13 Thread Sergei Trofimovich
commit: f1c43493a3eec023b86f3496973071dcfc492c41
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Mon May 13 08:23:58 2019 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Mon May 13 08:25:17 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1c43493

dev-libs/elfutils: add missing section update on reorder, bug #666954

Fix picked from https://sourceware.org/ml/elfutils-devel/2019-q2/msg00077.html
by Mark Wielaard.

Bug: https://bugs.gentoo.org/666954
Bug: https://github.com/rpm-software-management/rpm/issues/423
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-libs/elfutils/elfutils-0.173-r2.ebuild | 71 ++
 dev-libs/elfutils/elfutils-0.176-r1.ebuild | 71 ++
 .../elfutils/files/elfutils-0.173-reorder.patch| 37 +++
 3 files changed, 179 insertions(+)

diff --git a/dev-libs/elfutils/elfutils-0.173-r2.ebuild 
b/dev-libs/elfutils/elfutils-0.173-r2.ebuild
new file mode 100644
index 000..668001589b8
--- /dev/null
+++ b/dev-libs/elfutils/elfutils-0.173-r2.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit flag-o-matic multilib-minimal
+
+DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement 
for libelf)"
+HOMEPAGE="http://elfutils.org/;
+SRC_URI="https://sourceware.org/elfutils/ftp/${PV}/${P}.tar.bz2;
+
+LICENSE="|| ( GPL-2+ LGPL-3+ ) utils? ( GPL-3+ )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 
~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="bzip2 lzma nls static-libs test +threads +utils"
+
+RDEPEND=">=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
+   bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
+   lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] )
+   !dev-libs/libelf"
+DEPEND="${RDEPEND}
+   nls? ( sys-devel/gettext )
+   >=sys-devel/flex-2.5.4a
+   sys-devel/m4"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-0.118-PaX-support.patch
+   "${FILESDIR}"/${PN}-0.173-partial-core.patch
+   "${FILESDIR}"/${PN}-0.175-disable-biarch-test-PR24158.patch
+   "${FILESDIR}"/${PN}-0.173-reorder.patch
+)
+
+src_prepare() {
+   default
+
+   if ! use static-libs; then
+   sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' 
lib{asm,dw,elf}/Makefile.in || die
+   fi
+   sed -i 's:-Werror::' */Makefile.in || die
+}
+
+src_configure() {
+   use test && append-flags -g #407135
+   multilib-minimal_src_configure
+}
+
+multilib_src_configure() {
+   ECONF_SOURCE="${S}" econf \
+   $(use_enable nls) \
+   $(use_enable threads thread-safety) \
+   --program-prefix="eu-" \
+   --with-zlib \
+   $(use_with bzip2 bzlib) \
+   $(use_with lzma)
+}
+
+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 don't
+   # disable their building when the USE flag is disabled.
+   if ! use utils; then
+   rm -rf "${ED}"/usr/bin || die
+   fi
+}

diff --git a/dev-libs/elfutils/elfutils-0.176-r1.ebuild 
b/dev-libs/elfutils/elfutils-0.176-r1.ebuild
new file mode 100644
index 000..d697d93f548
--- /dev/null
+++ b/dev-libs/elfutils/elfutils-0.176-r1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic multilib-minimal
+
+DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement 
for libelf)"
+HOMEPAGE="http://elfutils.org/;
+SRC_URI="https://sourceware.org/elfutils/ftp/${PV}/${P}.tar.bz2;
+
+LICENSE="|| ( GPL-2+ LGPL-3+ ) utils? ( GPL-3+ )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="bzip2 lzma nls static-libs test +threads +utils"
+
+RDEPEND=">=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
+   bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
+   lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] )
+   !dev-libs/libelf"
+DEPEND="${RDEPEND}
+   nls? ( sys-devel/gettext )
+   >=sys-devel/flex-2.5.4a
+   sys-devel/m4"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-0.118-PaX-support.patch
+   "${FILESDIR}"/${PN}-0.175-disable-biarch-test-PR24158.patch
+   "${FILESDIR}"/${PN}-0.173-reorder.patch
+)
+
+src_prepare() {
+   default
+
+   if ! use static-libs; then
+   sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' 
lib{asm,dw,elf}/Makefile.in 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/elfutils/files/, dev-libs/elfutils/

2017-08-07 Thread Sergei Trofimovich
commit: 0b7fca2f0fc7284950bf7204942fb45cdb3879ba
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Mon Aug  7 21:54:46 2017 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Mon Aug  7 21:54:56 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b7fca2f

dev-libs/elfutils: make patch appliable with -p1

Package-Manager: Portage-2.3.6, Repoman-2.3.3

 dev-libs/elfutils/elfutils-0.170.ebuild  | 4 +++-
 dev-libs/elfutils/files/elfutils-0.118-PaX-support.patch | 8 
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/dev-libs/elfutils/elfutils-0.170.ebuild 
b/dev-libs/elfutils/elfutils-0.170.ebuild
index c6b460b456e..bf9aa9d2e54 100644
--- a/dev-libs/elfutils/elfutils-0.170.ebuild
+++ b/dev-libs/elfutils/elfutils-0.170.ebuild
@@ -23,9 +23,11 @@ DEPEND="${RDEPEND}
>=sys-devel/flex-2.5.4a
sys-devel/m4"
 
+PATCHES=("${FILESDIR}"/${PN}-0.118-PaX-support.patch)
+
 src_prepare() {
default
-   epatch "${FILESDIR}"/${PN}-0.118-PaX-support.patch
+
if use static-libs; then
sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' 
lib{asm,dw,elf}/Makefile.in || die
fi

diff --git a/dev-libs/elfutils/files/elfutils-0.118-PaX-support.patch 
b/dev-libs/elfutils/files/elfutils-0.118-PaX-support.patch
index 083f32ff855..0ae359fe7db 100644
--- a/dev-libs/elfutils/files/elfutils-0.118-PaX-support.patch
+++ b/dev-libs/elfutils/files/elfutils-0.118-PaX-support.patch
@@ -4,8 +4,8 @@ Patch by Kevin F. Quinn 
 
 http://bugs.gentoo.org/115100
 
 libelf/elf.h
-+++ libelf/elf.h
+--- a/libelf/elf.h
 b/libelf/elf.h
 @@ -568,6 +568,7 @@
  #define PT_GNU_EH_FRAME   0x6474e550  /* GCC .eh_frame_hdr segment */
  #define PT_GNU_STACK  0x6474e551  /* Indicates stack executability */
@@ -14,8 +14,8 @@ http://bugs.gentoo.org/115100
  #define PT_LOSUNW 0x6ffa
  #define PT_SUNWBSS0x6ffa  /* Sun Specific segment */
  #define PT_SUNWSTACK  0x6ffb  /* Stack segment */
 src/elflint.c
-+++ src/elflint.c
+--- a/src/elflint.c
 b/src/elflint.c
 @@ -3187,6 +3187,7 @@
  
if (phdr->p_type >= PT_NUM && phdr->p_type != PT_GNU_EH_FRAME