1 |
commit: 85352f772d456ba2c7234e5f3d0af49425857844 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 5 07:51:08 2018 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 5 07:51:33 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85352f77 |
7 |
|
8 |
sys-devel/gcc-apple: use relative symlinks with dosym |
9 |
|
10 |
Package-Manager: Portage-2.3.13, Repoman-2.3.3 |
11 |
|
12 |
sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild | 7 ++++--- |
13 |
1 file changed, 4 insertions(+), 3 deletions(-) |
14 |
|
15 |
diff --git a/sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild b/sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild |
16 |
index bd1d1120995..12f3d99760d 100644 |
17 |
--- a/sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild |
18 |
+++ b/sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild |
19 |
@@ -1,4 +1,4 @@ |
20 |
-# Copyright 1999-2017 Gentoo Foundation |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
EAPI="5" |
25 |
@@ -138,6 +138,7 @@ src_prepare() { |
26 |
|
27 |
local BRANDING_GCC_PKGVERSION="$(sed -n -e '/^#define VERSUFFIX/s/^[^"]*"\([^"]\+\)".*$/\1/p' "${S}"/gcc/version.c)" |
28 |
BRANDING_GCC_PKGVERSION=${BRANDING_GCC_PKGVERSION/(/(Gentoo ${PVR}, } |
29 |
+ # ) ) } # <- to help Vim highlight this correctly |
30 |
einfo "patching gcc version: ${GCC_VERS}${BRANDING_GCC_PKGVERSION}" |
31 |
|
32 |
sed -i -e "s~VERSUFFIX \"[^\"]*~VERSUFFIX \"${BRANDING_GCC_PKGVERSION}~" \ |
33 |
@@ -314,9 +315,9 @@ src_install() { |
34 |
ln -sf ${CTARGET}-${x} ${x} |
35 |
|
36 |
# Create version-ed symlinks |
37 |
- dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ |
38 |
+ dosym ../${BINPATH#${EPREFIX}/usr/}/${CTARGET}-${x} \ |
39 |
/usr/bin/${CTARGET}-${x}-${GCC_VERS} |
40 |
- dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \ |
41 |
+ dosym ../${BINPATH#${EPREFIX}/usr/}/${CTARGET}-${x} \ |
42 |
/usr/bin/${x}-${GCC_VERS} |
43 |
fi |