Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/elfutils/
Date: Mon, 02 Nov 2020 10:21:04
Message-Id: 1604312448.123d1f74c2edb1d56c09e795aec95c99cf57de58.slyfox@gentoo
1 commit: 123d1f74c2edb1d56c09e795aec95c99cf57de58
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 2 07:46:55 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 2 10:20:48 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=123d1f74
7
8 dev-libs/elfutils: bump up to 0.182
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.2
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 dev-libs/elfutils/Manifest | 1 +
14 dev-libs/elfutils/elfutils-0.182.ebuild | 90 +++++++++++++++++++++++++++++++++
15 2 files changed, 91 insertions(+)
16
17 diff --git a/dev-libs/elfutils/Manifest b/dev-libs/elfutils/Manifest
18 index d9ed5e7d77c..1b1bbed5921 100644
19 --- a/dev-libs/elfutils/Manifest
20 +++ b/dev-libs/elfutils/Manifest
21 @@ -1 +1,2 @@
22 DIST elfutils-0.181.tar.bz2 9088984 BLAKE2B 3f35f1a494986ff23d755188aab2b8f5ca9729927dd0e01725abf8477ac09721f751ff79686aafeff3878cf52e0c3f3e06d794fdf6371382a1bffc85c0de3411 SHA512 d565541d5817f409dc89ebb1ee593366f69c371a1531308eeb67ff934b14a0fab0c9009fd7c23240efbaa1b4e04edac5c425e47d80e3e66ba03dcaf000afea36
23 +DIST elfutils-0.182.tar.bz2 9096742 BLAKE2B 59efd76c921a90a5ac18a62a00845080b574f167ae633d32b14acce554523736d0ccfdf539ba61e8ec1511b3294b486e0fa512887582a2e5cc34e71954e87e73 SHA512 8ab0735bbe11b4383169341bf674ace360038b6ae5239f1d5a991c46260cd4bce545e078735b7de3b8fab132bb5da41f60689ff1b1d7ebccfada117a954a2c81
24
25 diff --git a/dev-libs/elfutils/elfutils-0.182.ebuild b/dev-libs/elfutils/elfutils-0.182.ebuild
26 new file mode 100644
27 index 00000000000..9b7966145b0
28 --- /dev/null
29 +++ b/dev-libs/elfutils/elfutils-0.182.ebuild
30 @@ -0,0 +1,90 @@
31 +# Copyright 2003-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit flag-o-matic multilib-minimal toolchain-funcs
37 +
38 +DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement for libelf)"
39 +HOMEPAGE="http://elfutils.org/"
40 +SRC_URI="https://sourceware.org/elfutils/ftp/${PV}/${P}.tar.bz2"
41 +
42 +LICENSE="|| ( GPL-2+ LGPL-3+ ) utils? ( GPL-3+ )"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
45 +IUSE="bzip2 lzma nls static-libs test +threads +utils valgrind zstd"
46 +
47 +RDEPEND=">=sys-libs/zlib-1.2.8-r1[static-libs?,${MULTILIB_USEDEP}]
48 + bzip2? ( >=app-arch/bzip2-1.0.6-r4[static-libs?,${MULTILIB_USEDEP}] )
49 + lzma? ( >=app-arch/xz-utils-5.0.5-r1[static-libs?,${MULTILIB_USEDEP}] )
50 + zstd? ( app-arch/zstd:=[static-libs?,${MULTILIB_USEDEP}] )
51 + !dev-libs/libelf
52 +"
53 +DEPEND="${RDEPEND}
54 + valgrind? ( dev-util/valgrind )
55 +"
56 +BDEPEND="nls? ( sys-devel/gettext )
57 + >=sys-devel/flex-2.5.4a
58 + sys-devel/m4
59 +"
60 +RESTRICT="!test? ( test )"
61 +
62 +PATCHES=(
63 + "${FILESDIR}"/${PN}-0.175-disable-biarch-test-PR24158.patch
64 + "${FILESDIR}"/${PN}-0.177-disable-large.patch
65 + "${FILESDIR}"/${PN}-0.180-PaX-support.patch
66 + "${FILESDIR}"/${PN}-0.179-CC-in-tests.patch
67 + "${FILESDIR}"/${PN}-0.181-CC-in-tests-p2.patch
68 +)
69 +
70 +src_prepare() {
71 + default
72 +
73 + if ! use static-libs; then
74 + sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' lib{asm,dw,elf}/Makefile.in || die
75 + fi
76 + # https://sourceware.org/PR23914
77 + sed -i 's:-Werror::' */Makefile.in || die
78 +}
79 +
80 +src_configure() {
81 + use test && append-flags -g #407135
82 +
83 + # Symbol aliases are implemented as asm statements.
84 + # Will require porting: https://gcc.gnu.org/PR48200
85 + filter-flags '-flto*'
86 +
87 + multilib-minimal_src_configure
88 +}
89 +
90 +multilib_src_configure() {
91 + ECONF_SOURCE="${S}" econf \
92 + $(use_enable nls) \
93 + $(use_enable threads thread-safety) \
94 + $(use_enable valgrind) \
95 + --disable-debuginfod \
96 + --disable-libdebuginfod \
97 + --program-prefix="eu-" \
98 + --with-zlib \
99 + $(use_with bzip2 bzlib) \
100 + $(use_with lzma) \
101 + $(use_with zstd)
102 +}
103 +
104 +multilib_src_test() {
105 + # CC is a workaround for tests using ${CC-gcc}
106 + env LD_LIBRARY_PATH="${BUILD_DIR}/libelf:${BUILD_DIR}/libebl:${BUILD_DIR}/libdw:${BUILD_DIR}/libasm" \
107 + LC_ALL="C" \
108 + CC="$(tc-getCC)" \
109 + emake check VERBOSE=1
110 +}
111 +
112 +multilib_src_install_all() {
113 + einstalldocs
114 + dodoc NOTES
115 + # These build quick, and are needed for most tests, so don't
116 + # disable their building when the USE flag is disabled.
117 + if ! use utils; then
118 + rm -rf "${ED}"/usr/bin || die
119 + fi
120 +}