summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2018-01-05 08:51:08 +0100
committerFabian Groffen <grobian@gentoo.org>2018-01-05 08:51:33 +0100
commit85352f772d456ba2c7234e5f3d0af49425857844 (patch)
tree611129aa1d6a668e0878dbec5971f9c6fe0137d3 /sys-devel
parentnet-proxy/squid: add build settings for cross-compiling (diff)
downloadgentoo-85352f772d456ba2c7234e5f3d0af49425857844.tar.gz
gentoo-85352f772d456ba2c7234e5f3d0af49425857844.tar.bz2
gentoo-85352f772d456ba2c7234e5f3d0af49425857844.zip
sys-devel/gcc-apple: use relative symlinks with dosym
Package-Manager: Portage-2.3.13, Repoman-2.3.3
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/gcc-apple/gcc-apple-4.2.1_p5666-r2.ebuild7
1 files changed, 4 insertions, 3 deletions
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
index bd1d11209952..12f3d99760d9 100644
--- 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
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
@@ -138,6 +138,7 @@ src_prepare() {
local BRANDING_GCC_PKGVERSION="$(sed -n -e '/^#define VERSUFFIX/s/^[^"]*"\([^"]\+\)".*$/\1/p' "${S}"/gcc/version.c)"
BRANDING_GCC_PKGVERSION=${BRANDING_GCC_PKGVERSION/(/(Gentoo ${PVR}, }
+ # ) ) } # <- to help Vim highlight this correctly
einfo "patching gcc version: ${GCC_VERS}${BRANDING_GCC_PKGVERSION}"
sed -i -e "s~VERSUFFIX \"[^\"]*~VERSUFFIX \"${BRANDING_GCC_PKGVERSION}~" \
@@ -314,9 +315,9 @@ src_install() {
ln -sf ${CTARGET}-${x} ${x}
# Create version-ed symlinks
- dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \
+ dosym ../${BINPATH#${EPREFIX}/usr/}/${CTARGET}-${x} \
/usr/bin/${CTARGET}-${x}-${GCC_VERS}
- dosym ${BINPATH#${EPREFIX}}/${CTARGET}-${x} \
+ dosym ../${BINPATH#${EPREFIX}/usr/}/${CTARGET}-${x} \
/usr/bin/${x}-${GCC_VERS}
fi