summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2017-12-15 09:47:13 +0100
committerFabian Groffen <grobian@gentoo.org>2017-12-15 09:47:13 +0100
commit21144b9564499c9a5214402d50c5fe5eea464479 (patch)
tree538f83e73d2d948d2b956cbfb7ec4224c9074e08 /sys-devel/gcc-config/files/gcc-config-1.9.0-ensure-env-update-for-prefix.patch
parent*/*: update manifests (diff)
downloadprefix-21144b9564499c9a5214402d50c5fe5eea464479.tar.gz
prefix-21144b9564499c9a5214402d50c5fe5eea464479.tar.bz2
prefix-21144b9564499c9a5214402d50c5fe5eea464479.zip
sys-devel/gcc-config: add patch to re-enable env-update for prefix, bug #641096
Closes: https://bugs.gentoo.org/641096 Package-Manager: Portage-2.3.18-prefix, Repoman-2.3.6
Diffstat (limited to 'sys-devel/gcc-config/files/gcc-config-1.9.0-ensure-env-update-for-prefix.patch')
-rw-r--r--sys-devel/gcc-config/files/gcc-config-1.9.0-ensure-env-update-for-prefix.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/sys-devel/gcc-config/files/gcc-config-1.9.0-ensure-env-update-for-prefix.patch b/sys-devel/gcc-config/files/gcc-config-1.9.0-ensure-env-update-for-prefix.patch
new file mode 100644
index 0000000000..744d8a1bc3
--- /dev/null
+++ b/sys-devel/gcc-config/files/gcc-config-1.9.0-ensure-env-update-for-prefix.patch
@@ -0,0 +1,46 @@
+From 748d20380aa1b27149dc1b80c7eaf15fde7c6aba Mon Sep 17 00:00:00 2001
+From: Fabian Groffen <grobian@gentoo.org>
+Date: Fri, 15 Dec 2017 09:30:17 +0100
+Subject: gcc-config: ensure we run env-update for prefix too
+
+The intention of commit cfbb9e94ca23c360d5801946e39da29c7d422dfc was to
+disable running ldconfig and updating ld.so.conf for prefix, but the
+implementation was too greedy and also disabled env-update, which we
+need to activate a compiler, see bug #641096.
+
+Bug: https://bugs.gentoo.org/641096
+---
+ gcc-config | 12 +++++++-----
+ 1 file changed, 7 insertions(+), 5 deletions(-)
+
+diff --git a/gcc-config b/gcc-config
+index 7fcde15..ff8d8ac 100755
+--- a/gcc-config
++++ b/gcc-config
+@@ -693,16 +693,18 @@ switch_profile() {
+ [[ ${FORCE} == "yes" || ${envd_changed} -gt 0 ]]
+ then
+ # in case python is broken ...
+- if [[ -z ${EPREFIX} ]] && ! env-update ; then
++ if ! env-update ; then
+ echo ""
+ ewarn "env-update failed to work properly; making sure ld.so.conf paths"
+ ewarn "are setup properly. Please rerun gcc-config with the -f option."
+ echo ""
+- if [[ ! -d /etc/ld.so.conf.d ]] ; then
+- show_var LDPATH "${ROOT}"/etc/env.d/05gcc-${CTARGET} \
+- | ${SED} -e 's|:|\n|g' >> /etc/ld.so.conf
++ if [[ -z ${EPREFIX} ]] ; then
++ if [[ ! -d /etc/ld.so.conf.d ]] ; then
++ show_var LDPATH "${ROOT}"/etc/env.d/05gcc-${CTARGET} \
++ | ${SED} -e 's|:|\n|g' >> /etc/ld.so.conf
++ fi
++ ldconfig
+ fi
+- ldconfig
+ fi
+ else
+ envd_changed=0
+--
+cgit v1.1
+