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/files/, dev-libs/elfutils/
Date: Sun, 07 Feb 2021 19:10:51
Message-Id: 1612725010.0896a41030c4e795e49e48241823e01686c8de69.slyfox@gentoo
1 commit: 0896a41030c4e795e49e48241823e01686c8de69
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 7 19:07:25 2021 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 7 19:10:10 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0896a410
7
8 dev-libs/elfutils: bump up to 0.183
9
10 Package-Manager: Portage-3.0.14, 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.183.ebuild | 87 ++++++++++++++++++++++
15 .../elfutils/files/elfutils-0.183-CC-quote.patch | 40 ++++++++++
16 3 files changed, 128 insertions(+)
17
18 diff --git a/dev-libs/elfutils/Manifest b/dev-libs/elfutils/Manifest
19 index 1b1bbed5921..d75fa38fc21 100644
20 --- a/dev-libs/elfutils/Manifest
21 +++ b/dev-libs/elfutils/Manifest
22 @@ -1,2 +1,3 @@
23 DIST elfutils-0.181.tar.bz2 9088984 BLAKE2B 3f35f1a494986ff23d755188aab2b8f5ca9729927dd0e01725abf8477ac09721f751ff79686aafeff3878cf52e0c3f3e06d794fdf6371382a1bffc85c0de3411 SHA512 d565541d5817f409dc89ebb1ee593366f69c371a1531308eeb67ff934b14a0fab0c9009fd7c23240efbaa1b4e04edac5c425e47d80e3e66ba03dcaf000afea36
24 DIST elfutils-0.182.tar.bz2 9096742 BLAKE2B 59efd76c921a90a5ac18a62a00845080b574f167ae633d32b14acce554523736d0ccfdf539ba61e8ec1511b3294b486e0fa512887582a2e5cc34e71954e87e73 SHA512 8ab0735bbe11b4383169341bf674ace360038b6ae5239f1d5a991c46260cd4bce545e078735b7de3b8fab132bb5da41f60689ff1b1d7ebccfada117a954a2c81
25 +DIST elfutils-0.183.tar.bz2 9109254 BLAKE2B 8dd92e7c2df13d51bb51085f6cf762ea1ec7b803dcebf1202a4441ba152ed0e3332b1267276de4650d5ed5c5bed656f72f4c4e9bbf20700be45312a202351574 SHA512 bdafdd738a33cebe4f87849e5e6f1133881e77ef71b27faa0f0234ff80e9674f506957898326c2a55fd8438cbd189f7930597d0b4b9ca6c77921cc0cbd83b6b7
26
27 diff --git a/dev-libs/elfutils/elfutils-0.183.ebuild b/dev-libs/elfutils/elfutils-0.183.ebuild
28 new file mode 100644
29 index 00000000000..d1288903453
30 --- /dev/null
31 +++ b/dev-libs/elfutils/elfutils-0.183.ebuild
32 @@ -0,0 +1,87 @@
33 +# Copyright 2003-2021 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 toolchain-funcs
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 ~sparc ~x86 ~amd64-linux ~x86-linux"
47 +IUSE="bzip2 lzma nls static-libs test +threads +utils valgrind zstd"
48 +
49 +RDEPEND=">=sys-libs/zlib-1.2.8-r1[static-libs?,${MULTILIB_USEDEP}]
50 + bzip2? ( >=app-arch/bzip2-1.0.6-r4[static-libs?,${MULTILIB_USEDEP}] )
51 + lzma? ( >=app-arch/xz-utils-5.0.5-r1[static-libs?,${MULTILIB_USEDEP}] )
52 + zstd? ( app-arch/zstd:=[static-libs?,${MULTILIB_USEDEP}] )
53 + !dev-libs/libelf
54 +"
55 +DEPEND="${RDEPEND}
56 + valgrind? ( dev-util/valgrind )
57 +"
58 +BDEPEND="nls? ( sys-devel/gettext )
59 + >=sys-devel/flex-2.5.4a
60 + sys-devel/m4
61 +"
62 +RESTRICT="!test? ( test )"
63 +
64 +PATCHES=(
65 + "${FILESDIR}"/${PN}-0.175-disable-biarch-test-PR24158.patch
66 + "${FILESDIR}"/${PN}-0.177-disable-large.patch
67 + "${FILESDIR}"/${PN}-0.180-PaX-support.patch
68 + "${FILESDIR}"/${PN}-0.183-CC-quote.patch
69 +)
70 +
71 +src_prepare() {
72 + default
73 +
74 + if ! use static-libs; then
75 + sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' lib{asm,dw,elf}/Makefile.in || die
76 + fi
77 + # https://sourceware.org/PR23914
78 + sed -i 's:-Werror::' */Makefile.in || die
79 +}
80 +
81 +src_configure() {
82 + use test && append-flags -g #407135
83 +
84 + # Symbol aliases are implemented as asm statements.
85 + # Will require porting: https://gcc.gnu.org/PR48200
86 + filter-flags '-flto*'
87 +
88 + multilib-minimal_src_configure
89 +}
90 +
91 +multilib_src_configure() {
92 + ECONF_SOURCE="${S}" econf \
93 + $(use_enable nls) \
94 + $(use_enable threads thread-safety) \
95 + $(use_enable valgrind) \
96 + --disable-debuginfod \
97 + --disable-libdebuginfod \
98 + --program-prefix="eu-" \
99 + --with-zlib \
100 + $(use_with bzip2 bzlib) \
101 + $(use_with lzma) \
102 + $(use_with zstd)
103 +}
104 +
105 +multilib_src_test() {
106 + env LD_LIBRARY_PATH="${BUILD_DIR}/libelf:${BUILD_DIR}/libebl:${BUILD_DIR}/libdw:${BUILD_DIR}/libasm" \
107 + LC_ALL="C" \
108 + emake check VERBOSE=1
109 +}
110 +
111 +multilib_src_install_all() {
112 + einstalldocs
113 + dodoc NOTES
114 + # These build quick, and are needed for most tests, so don't
115 + # disable their building when the USE flag is disabled.
116 + if ! use utils; then
117 + rm -rf "${ED}"/usr/bin || die
118 + fi
119 +}
120
121 diff --git a/dev-libs/elfutils/files/elfutils-0.183-CC-quote.patch b/dev-libs/elfutils/files/elfutils-0.183-CC-quote.patch
122 new file mode 100644
123 index 00000000000..8dc59bec262
124 --- /dev/null
125 +++ b/dev-libs/elfutils/files/elfutils-0.183-CC-quote.patch
126 @@ -0,0 +1,40 @@
127 +--- a/tests/Makefile.am
128 ++++ b/tests/Makefile.am
129 +@@ -528,7 +528,7 @@ installed_TESTS_ENVIRONMENT = libdir=$(DESTDIR)$(libdir); \
130 + export LC_ALL; export LANG; export VALGRIND_CMD; \
131 + unset DEBUGINFOD_URLS; \
132 + NM=$(NM); export NM; \
133 +- CC=$(CC); export CC;
134 ++ CC="$(CC)"; export CC;
135 + installed_LOG_COMPILER = $(abs_srcdir)/test-wrapper.sh \
136 + installed $(tests_rpath) \
137 + '$(program_transform_name)'
138 +@@ -540,7 +540,7 @@ TESTS_ENVIRONMENT = LC_ALL=C; LANG=C; VALGRIND_CMD=$(valgrind_cmd); \
139 + export LC_ALL; export LANG; export VALGRIND_CMD; \
140 + unset DEBUGINFOD_URLS; \
141 + NM=$(NM); export NM; \
142 +- CC=$(CC); export CC;
143 ++ CC="$(CC)"; export CC;
144 + LOG_COMPILER = $(abs_srcdir)/test-wrapper.sh \
145 + $(abs_top_builddir)/libdw:$(abs_top_builddir)/backends:$(abs_top_builddir)/libelf:$(abs_top_builddir)/libasm:$(abs_top_builddir)/debuginfod
146 +
147 +--- a/tests/Makefile.in
148 ++++ b/tests/Makefile.in
149 +@@ -1568,7 +1568,7 @@ installed_TESTS_ENVIRONMENT = libdir=$(DESTDIR)$(libdir); \
150 + export LC_ALL; export LANG; export VALGRIND_CMD; \
151 + unset DEBUGINFOD_URLS; \
152 + NM=$(NM); export NM; \
153 +- CC=$(CC); export CC;
154 ++ CC="$(CC)"; export CC;
155 +
156 + installed_LOG_COMPILER = $(abs_srcdir)/test-wrapper.sh \
157 + installed $(tests_rpath) \
158 +@@ -1582,7 +1582,7 @@ TESTS_ENVIRONMENT = LC_ALL=C; LANG=C; VALGRIND_CMD=$(valgrind_cmd); \
159 + export LC_ALL; export LANG; export VALGRIND_CMD; \
160 + unset DEBUGINFOD_URLS; \
161 + NM=$(NM); export NM; \
162 +- CC=$(CC); export CC;
163 ++ CC="$(CC)"; export CC;
164 +
165 + LOG_COMPILER = $(abs_srcdir)/test-wrapper.sh \
166 + $(abs_top_builddir)/libdw:$(abs_top_builddir)/backends:$(abs_top_builddir)/libelf:$(abs_top_builddir)/libasm:$(abs_top_builddir)/debuginfod