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: Wed, 27 Nov 2019 23:26:56
Message-Id: 1574897204.8232b9875763e999a8fe58c1f914a45b8929ccd5.slyfox@gentoo
1 commit: 8232b9875763e999a8fe58c1f914a45b8929ccd5
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 27 23:26:09 2019 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 27 23:26:44 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8232b987
7
8 dev-libs/elfutils: bump up to 0.178
9
10 Package-Manager: Portage-2.3.79, Repoman-2.3.18
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 dev-libs/elfutils/Manifest | 1 +
14 dev-libs/elfutils/elfutils-0.178.ebuild | 77 +++++++++++++++++++++++++++++++++
15 dev-libs/elfutils/metadata.xml | 1 +
16 3 files changed, 79 insertions(+)
17
18 diff --git a/dev-libs/elfutils/Manifest b/dev-libs/elfutils/Manifest
19 index 1e9d789772e..0e02e5c11e8 100644
20 --- a/dev-libs/elfutils/Manifest
21 +++ b/dev-libs/elfutils/Manifest
22 @@ -1,2 +1,3 @@
23 DIST elfutils-0.176.tar.bz2 8646075 BLAKE2B 7f23d59b7f5d74946fea928a7fada7764c1f96a5eefefc4a3a382090eb7cad07c80419218300d853ccbef8f4e2288eb443ff06b3e64bf4511d9fa7aa84f5b794 SHA512 7f032913be363a43229ded85d495dcf7542b3c85974aaaba0d984228dc9ac1721da3dc388d3fa02325a80940161db7e9ad2c9e4521a424ad8a7d050c0902915b
24 DIST elfutils-0.177.tar.bz2 8852413 BLAKE2B 03f432342651f7646d73b7847325bd14b722ce34d85df01b1ad072b916af9b9da2d0d119cd24e952073bd584ec76b027ba9b6c7d45fb057372b3e700b1f5741a SHA512 2779987463a22ed220759e25a09c9a1eb84c0f36db37675136e59aa55c7f8f90b7a7d34ffc4e6a4291d7fa73692a1bd1a303a74270b11d1623b4f9868d19498f
25 +DIST elfutils-0.178.tar.bz2 9007557 BLAKE2B 241b611dbfac37f35a670fbe80096c21b870e4b26fcddc8af26fba0373c9cd72eae42aabae2803b7b16c3bf649aeda036b1ea1b40952b43c4021ed23fcb51e80 SHA512 356656ad0db8f6877b461de1a11280de16a9cc5d8dde4381a938a212e828e32755135e5e3171d311c4c9297b728fbd98123048e2e8fbf7fe7de68976a2daabe5
26
27 diff --git a/dev-libs/elfutils/elfutils-0.178.ebuild b/dev-libs/elfutils/elfutils-0.178.ebuild
28 new file mode 100644
29 index 00000000000..f6a0ba093e2
30 --- /dev/null
31 +++ b/dev-libs/elfutils/elfutils-0.178.ebuild
32 @@ -0,0 +1,77 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit flag-o-matic multilib-minimal
39 +
40 +DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement for libelf)"
41 +HOMEPAGE="http://elfutils.org/"
42 +SRC_URI="https://sourceware.org/elfutils/ftp/${PV}/${P}.tar.bz2"
43 +
44 +LICENSE="|| ( GPL-2+ LGPL-3+ ) utils? ( GPL-3+ )"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
47 +IUSE="bzip2 lzma nls static-libs test +threads +utils valgrind"
48 +
49 +RDEPEND=">=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
50 + bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
51 + lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] )
52 + !dev-libs/libelf"
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.118-PaX-support.patch
64 + "${FILESDIR}"/${PN}-0.175-disable-biarch-test-PR24158.patch
65 + "${FILESDIR}"/${PN}-0.177-disable-large.patch
66 +)
67 +
68 +src_prepare() {
69 + default
70 +
71 + if ! use static-libs; then
72 + sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' lib{asm,dw,elf}/Makefile.in || die
73 + fi
74 + # https://sourceware.org/PR23914
75 + sed -i 's:-Werror::' */Makefile.in || die
76 +}
77 +
78 +src_configure() {
79 + use test && append-flags -g #407135
80 + multilib-minimal_src_configure
81 +}
82 +
83 +multilib_src_configure() {
84 + ECONF_SOURCE="${S}" econf \
85 + $(use_enable nls) \
86 + $(use_enable threads thread-safety) \
87 + $(use_enable valgrind) \
88 + --disable-debuginfod \
89 + --program-prefix="eu-" \
90 + --with-zlib \
91 + $(use_with bzip2 bzlib) \
92 + $(use_with lzma)
93 +}
94 +
95 +multilib_src_test() {
96 + env LD_LIBRARY_PATH="${BUILD_DIR}/libelf:${BUILD_DIR}/libebl:${BUILD_DIR}/libdw:${BUILD_DIR}/libasm" \
97 + LC_ALL="C" \
98 + emake check VERBOSE=1
99 +}
100 +
101 +multilib_src_install_all() {
102 + einstalldocs
103 + dodoc NOTES
104 + # These build quick, and are needed for most tests, so don't
105 + # disable their building when the USE flag is disabled.
106 + if ! use utils; then
107 + rm -rf "${ED}"/usr/bin || die
108 + fi
109 +}
110
111 diff --git a/dev-libs/elfutils/metadata.xml b/dev-libs/elfutils/metadata.xml
112 index 7d0275bbf23..10d87faccf5 100644
113 --- a/dev-libs/elfutils/metadata.xml
114 +++ b/dev-libs/elfutils/metadata.xml
115 @@ -9,6 +9,7 @@
116 <flag name="lzma">Support automatic decompression of LZMA-compressed files and kernel images</flag>
117 <flag name="threads">Build the libraries with thread safe support</flag>
118 <flag name="utils">Install command-line utilities (all the eu-* programs)</flag>
119 + <flag name="valgrind">Add support for memory debugging using <pkg>dev-util/valgrind</pkg></flag>
120 </use>
121 <upstream>
122 <remote-id type="cpe">cpe:/a:elfutils_project:elfutils</remote-id>