Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/patchelf/
Date: Mon, 26 Mar 2018 21:01:06
Message-Id: 1522097983.f10514362218c557f2cb0aff2c1790094c8ae655.chewi@gentoo
1 commit: f10514362218c557f2cb0aff2c1790094c8ae655
2 Author: Nikos Chantziaras <realnc <AT> gmail <DOT> com>
3 AuthorDate: Mon Mar 26 15:36:23 2018 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 26 20:59:43 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1051436
7
8 dev-util/patchelf: git snapshot version bump to 0.9_p20180129
9
10 Current (0.9) version of patchelf fails to update the .gnu.version_r section of
11 binary executables when patching them, resulting in the executable being unable
12 to run:
13
14 $ patchelf --replace-needed "libcurl-gnutls.so.4" "libcurl.so.4" my_binary
15 $ ./my_binary
16 Inconsistency detected by ld.so: dl-version.c: 224: _dl_check_map_versions:
17 Assertion `needed != ((void *)0)' failed!
18
19 This has been fixed by upstream a couple years ago, but patchelf has not done a
20 new release since then. This version bump grabs a Git snapshot.
21
22 Closes: https://bugs.gentoo.org/651600
23 Package-Manager: Portage-2.3.24, Repoman-2.3.6
24 Closes: https://github.com/gentoo/gentoo/pull/7625
25
26 dev-util/patchelf/Manifest | 1 +
27 dev-util/patchelf/patchelf-0.9_p20180129.ebuild | 26 +++++++++++++++++++++++++
28 2 files changed, 27 insertions(+)
29
30 diff --git a/dev-util/patchelf/Manifest b/dev-util/patchelf/Manifest
31 index 9c4a653bc3e..c05694b07e2 100644
32 --- a/dev-util/patchelf/Manifest
33 +++ b/dev-util/patchelf/Manifest
34 @@ -1,2 +1,3 @@
35 DIST patchelf-0.8.tar.bz2 119369 BLAKE2B bfe7dceea9a79845c61bc7490faad5cd4d5e83bc0be4ec7e3b19fbed91ecb7d15e0a0688d4914731b94f0522c80ea9f940b6a8ad5595931df8826ef43f2fd209 SHA512 819ace0ee032612e8bef56f230ea470be9d44bc03ef561f98ffac84f2555e419f87309280df6d265a8ae56452e54d46fc90be13a449847e93e4e7b413dc8605a
36 DIST patchelf-0.9.tar.bz2 159956 BLAKE2B 7e8543a98aa683eeafacfb836a02ad7cf2fb52409b0780edb614e30edc66f8f356a9bd19e133b185861fe9c6ae0e4868b0b307c174610eef80e3446610f76bcb SHA512 5bd3a1268b809f173debde5d34c3f736f38d7afb69decf609a422884c51eb1d5ccf62f2d454d4ef8b2c20e263ece49e3c2f801347ef1dfcceecd89c78a214790
37 +DIST patchelf-0.9_p20180129.tar.gz 99490 BLAKE2B a5372942f7f400085a1d5e15701a25f916012ae6afc90cc3065aebf6fd0fc7cae3a626496cae4a7ce7320e5c954b0b11a14defae0bacf3350bf6b201db952eb5 SHA512 eabeb34dbef68dc6e79374f46bdbe473ca3c21515962c684f3368fdf7a1dbea75ec152fdb7796f9d22c2f40da25e3f9c181cd1a29e52fbe5843a8cd02acb2c75
38
39 diff --git a/dev-util/patchelf/patchelf-0.9_p20180129.ebuild b/dev-util/patchelf/patchelf-0.9_p20180129.ebuild
40 new file mode 100644
41 index 00000000000..0efbab73c0a
42 --- /dev/null
43 +++ b/dev-util/patchelf/patchelf-0.9_p20180129.ebuild
44 @@ -0,0 +1,26 @@
45 +# Copyright 1999-2018 Gentoo Foundation
46 +# Distributed under the terms of the GNU General Public License v2
47 +
48 +EAPI=6
49 +
50 +inherit autotools vcs-snapshot
51 +
52 +DESCRIPTION="Small utility to modify the dynamic linker and RPATH of ELF executables"
53 +HOMEPAGE="http://nixos.org/patchelf.html"
54 +COMMIT=1fa4d36fead44333528cbee4b5c04c207ce77ca4
55 +SRC_URI="https://github.com/NixOS/${PN^}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
56 +SLOT="0"
57 +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
58 +LICENSE="GPL-3"
59 +
60 +src_prepare() {
61 + default
62 + rm src/elf.h || die
63 +
64 + sed -i \
65 + -e 's:-Werror::g' \
66 + -e 's:parallel-tests:serial-tests:g' \
67 + configure.ac || die
68 +
69 + eautoreconf
70 +}