Gentoo Archives: gentoo-commits

From: Marc Schiffbauer <mschiff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/googleearth/
Date: Sun, 27 Mar 2016 14:32:22
Message-Id: 1459089124.56f6cf615ddf40ef0a08a17554e028c483ae7c17.mschiff@gentoo
1 commit: 56f6cf615ddf40ef0a08a17554e028c483ae7c17
2 Author: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 27 14:31:26 2016 +0000
4 Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 27 14:32:04 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56f6cf61
7
8 sci-geosciences/googleearth: Better fix for #578282
9
10 Thanks to Klaus Kusche
11
12 Package-Manager: portage-2.2.28
13
14 sci-geosciences/googleearth/googleearth-7.1.4.1529.ebuild | 6 +++++-
15 1 file changed, 5 insertions(+), 1 deletion(-)
16
17 diff --git a/sci-geosciences/googleearth/googleearth-7.1.4.1529.ebuild b/sci-geosciences/googleearth/googleearth-7.1.4.1529.ebuild
18 index 7abcf15..7024eaa 100644
19 --- a/sci-geosciences/googleearth/googleearth-7.1.4.1529.ebuild
20 +++ b/sci-geosciences/googleearth/googleearth-7.1.4.1529.ebuild
21 @@ -51,7 +51,7 @@ RDEPEND="
22 sci-libs/gdal
23 sci-libs/proj
24 )"
25 -DEPEND="~dev-util/patchelf-0.8"
26 +DEPEND="dev-util/patchelf"
27
28 S=${WORKDIR}/opt/google/earth/free
29
30 @@ -88,6 +88,7 @@ src_unpack() {
31 }
32
33 src_prepare() {
34 +
35 # we have no ld-lsb.so.3 symlink
36 # thanks to Nathan Phillip Brink <ohnobinki@××××××××××××××.net> for suggesting patchelf
37 einfo "running patchelf"
38 @@ -98,9 +99,12 @@ src_prepare() {
39 for x in * ; do
40 # Use \x7fELF header to separate ELF executables and libraries
41 [[ -f ${x} && $(od -t x1 -N 4 "${x}") == *"7f 45 4c 46"* ]] || continue
42 + fperms u+w "${x}"
43 patchelf --set-rpath '$ORIGIN' "${x}" ||
44 die "patchelf failed on ${x}"
45 done
46 + # prepare file permissions so that >patchelf-0.8 can work on the files
47 + fperms u+w plugins/*.so plugins/imageformats/*.so
48 for x in plugins/*.so ; do
49 [[ -f ${x} ]] || continue
50 patchelf --set-rpath '$ORIGIN/..' "${x}" ||