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/, dev-libs/elfutils/files/
Date: Wed, 14 Aug 2019 21:35:09
Message-Id: 1565818499.46104220f70097c1d76730600de243ae52e85682.slyfox@gentoo
1 commit: 46104220f70097c1d76730600de243ae52e85682
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 14 21:34:36 2019 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 14 21:34:59 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46104220
7
8 dev-libs/elfutils: bump up to 0.177
9
10 Package-Manager: Portage-2.3.71, Repoman-2.3.17
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 dev-libs/elfutils/Manifest | 1 +
14 dev-libs/elfutils/elfutils-0.177.ebuild | 71 ++++++++++++++++++++++
15 .../files/elfutils-0.177-disable-large.patch | 14 +++++
16 3 files changed, 86 insertions(+)
17
18 diff --git a/dev-libs/elfutils/Manifest b/dev-libs/elfutils/Manifest
19 index b8b07d4c898..1e9d789772e 100644
20 --- a/dev-libs/elfutils/Manifest
21 +++ b/dev-libs/elfutils/Manifest
22 @@ -1 +1,2 @@
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
26 diff --git a/dev-libs/elfutils/elfutils-0.177.ebuild b/dev-libs/elfutils/elfutils-0.177.ebuild
27 new file mode 100644
28 index 00000000000..373a5ff08cd
29 --- /dev/null
30 +++ b/dev-libs/elfutils/elfutils-0.177.ebuild
31 @@ -0,0 +1,71 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit flag-o-matic multilib-minimal
38 +
39 +DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement for libelf)"
40 +HOMEPAGE="http://elfutils.org/"
41 +SRC_URI="https://sourceware.org/elfutils/ftp/${PV}/${P}.tar.bz2"
42 +
43 +LICENSE="|| ( GPL-2+ LGPL-3+ ) utils? ( GPL-3+ )"
44 +SLOT="0"
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
46 +IUSE="bzip2 lzma nls static-libs test +threads +utils"
47 +
48 +RDEPEND=">=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
49 + bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
50 + lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] )
51 + !dev-libs/libelf"
52 +DEPEND="${RDEPEND}
53 + nls? ( sys-devel/gettext )
54 + >=sys-devel/flex-2.5.4a
55 + sys-devel/m4"
56 +
57 +PATCHES=(
58 + "${FILESDIR}"/${PN}-0.118-PaX-support.patch
59 + "${FILESDIR}"/${PN}-0.175-disable-biarch-test-PR24158.patch
60 + "${FILESDIR}"/${PN}-0.177-disable-large.patch
61 +)
62 +
63 +src_prepare() {
64 + default
65 +
66 + if ! use static-libs; then
67 + sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' lib{asm,dw,elf}/Makefile.in || die
68 + fi
69 + # https://sourceware.org/PR23914
70 + sed -i 's:-Werror::' */Makefile.in || die
71 +}
72 +
73 +src_configure() {
74 + use test && append-flags -g #407135
75 + multilib-minimal_src_configure
76 +}
77 +
78 +multilib_src_configure() {
79 + ECONF_SOURCE="${S}" econf \
80 + $(use_enable nls) \
81 + $(use_enable threads thread-safety) \
82 + --program-prefix="eu-" \
83 + --with-zlib \
84 + $(use_with bzip2 bzlib) \
85 + $(use_with lzma)
86 +}
87 +
88 +multilib_src_test() {
89 + env LD_LIBRARY_PATH="${BUILD_DIR}/libelf:${BUILD_DIR}/libebl:${BUILD_DIR}/libdw:${BUILD_DIR}/libasm" \
90 + LC_ALL="C" \
91 + emake check VERBOSE=1
92 +}
93 +
94 +multilib_src_install_all() {
95 + einstalldocs
96 + dodoc NOTES
97 + # These build quick, and are needed for most tests, so don't
98 + # disable their building when the USE flag is disabled.
99 + if ! use utils; then
100 + rm -rf "${ED}"/usr/bin || die
101 + fi
102 +}
103
104 diff --git a/dev-libs/elfutils/files/elfutils-0.177-disable-large.patch b/dev-libs/elfutils/files/elfutils-0.177-disable-large.patch
105 new file mode 100644
106 index 00000000000..78295851761
107 --- /dev/null
108 +++ b/dev-libs/elfutils/files/elfutils-0.177-disable-large.patch
109 @@ -0,0 +1,14 @@
110 +getconf does not disable test on 64-kernel with CFLAGS=-m32
111 +--- a/tests/run-large-elf-file.sh
112 ++++ b/tests/run-large-elf-file.sh
113 +@@ -19,6 +19,10 @@
114 +
115 + # Only run on 64bit systems, 32bit systems don't support > 4GB
116 + # ELF files.
117 ++
118 ++# this detection fails for 64-bit systems with -m32
119 ++exit 77
120 ++
121 + long_bit=$(getconf LONG_BIT)
122 + echo "long_bit: $long_bit"
123 + if test $long_bit -ne 64; then