Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 589056 Details for
Bug 667020
sys-devel/gcc-config deletes libunwind.so from sys-libs/libunwind when /lib and /usr/lib are merged
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch implementing short term solution
gcc-config.patch (text/plain), 2.26 KB, created by
Arfrever Frehtes Taifersar Arahesis
on 2019-09-04 19:40:44 UTC
(
hide
)
Description:
Patch implementing short term solution
Filename:
MIME Type:
Creator:
Arfrever Frehtes Taifersar Arahesis
Created:
2019-09-04 19:40:44 UTC
Size:
2.26 KB
patch
obsolete
>From 2449feb57963c5c0d6cff6521b472388735105e8 Mon Sep 17 00:00:00 2001 >From: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> >Date: Wed, 4 Sep 2019 21:29:58 +0200 >Subject: [PATCH] gcc-config: During initial clean-up, delete only > libunwind.so.7*, but not other files matching libunwind.so*. > >libunwind.so belongs to sys-libs/libunwind. >libunwind.so.7* is copied by gcc-config (only on ia64) from active version of sys-devel/gcc. >libunwind.so.8* belong to sys-libs/libunwind since 1.0.1 version released on 2011-09-11. > >Bug: https://bugs.gentoo.org/667020 >Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> >--- > gcc-config | 17 ++++++++++------- > 1 file changed, 10 insertions(+), 7 deletions(-) > >diff --git a/gcc-config b/gcc-config >index 835f873..d97e6d9 100755 >--- a/gcc-config >+++ b/gcc-config >@@ -1,5 +1,5 @@ > #!/bin/bash >-# Copyright 1999-2012 Gentoo Foundation >+# Copyright 2002-2019 Gentoo Authors > # Distributed under the terms of the GNU General Public License v2 > > # Format of /etc/env.d/gcc/: >@@ -286,7 +286,7 @@ handle_split_usr() { > # but on other systems (arm/mips/etc...), this is quite critical. > # http://bugs.gentoo.org/60190 > # >- # Note: libunwind.so is is a DT_NEEDED dependency only on ia64 systems >+ # Note: libunwind.so.7 is a DT_NEEDED dependency only on ia64 systems > # where libunwind.so.7 is provided by gcc itself, see: > # https://bugs.gentoo.org/667020 > # https://bugs.gentoo.org/693252 >@@ -306,12 +306,15 @@ handle_split_usr() { > # If /usr isn't a sep mount, then don't bother with linking stuff. > if ln "${ROOT}/${LDPATH}/libgcc.a" "${EROOT}"/lib/.gcc.config.$$ 2>/dev/null ; then > rm -f "${EROOT}"/lib/.gcc.config.$$ >- if [[ -n $(find "${EROOT}"/lib*/lib{gcc_s,unwind}{.so*,*dylib} 2>/dev/null) ]] ; then >+ local lib old_libs=0 saved_nullglob=$(shopt -p nullglob) >+ shopt -s nullglob >+ for lib in "${EROOT}"/lib*/libgcc_s{.so*,*dylib} "${EROOT}"/lib*/libunwind.so.7* ; do > # If we previously had stuff in /, make sure ldconfig gets re-run. >- rm -f "${EROOT}"/lib*/lib{gcc_s,unwind}{.so*,*dylib} >- return 1 >- fi >- return 0 >+ rm -f "${lib}" >+ old_libs=1 >+ done >+ ${saved_nullglob} >+ [[ ${old_libs} == 1 ]] && return 1 || return 0 > fi > > # Only bother with this stuff for the native ABI. We assume the user >-- >2.23.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 667020
:
547854
|
556956
|
556958
|
588574
|
588576
| 589056