Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 327182 Details for
Bug 433161
sys-devel/gcc-config: switching versions does not cleanly migrate libgcc_s.so.1 with non-split /usr
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for toolchain.eclass
toolchain.eclass.diff (text/plain), 1.90 KB, created by
Alexander Holler
on 2012-10-22 22:44:56 UTC
(
hide
)
Description:
Patch for toolchain.eclass
Filename:
MIME Type:
Creator:
Alexander Holler
Created:
2012-10-22 22:44:56 UTC
Size:
1.90 KB
patch
obsolete
>--- toolchain.eclass.orig 2012-10-23 00:12:36.998615518 +0200 >+++ toolchain.eclass 2012-10-23 00:12:17.467319578 +0200 >@@ -23,7 +23,7 @@ > inherit git-2 > fi > >-EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_test src_install pkg_postinst pkg_postrm >+EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_test src_install pkg_preinst pkg_postinst pkg_prerm pkg_postrm > DESCRIPTION="The GNU Compiler Collection" > > FEATURES=${FEATURES/multilib-strict/} >@@ -570,10 +570,29 @@ > unset LANGUAGES #265283 > } > >+toolchain_pkg_preinst() { >+ if ! is_crosscompile ; then >+ # Temporarily add the the new path directly to the linker search paths >+ # to be sure the new libgcc_s.so will be found after the old one got removed. >+ # This has to be done because pkg_postinst (and thus gcc_config) is called >+ # only after the old (current) libgcc_s.so was removed, which would leave >+ # the system without any libgcc_s.so which is necessary for gcc_config. >+ # See bug #437050 >+ echo "${PREFIX}/lib/gcc/${CTARGET}/${GCC_CONFIG_VER}" > "/etc/ld.so.conf.d/00_toolchain_eclass_tmp_${PF}.conf" >+ fi >+} >+ > toolchain_pkg_postinst() { > do_gcc_config > > if ! is_crosscompile ; then >+ # gcc_config was called so the new libgcc_s.so can be found without the temporary. >+ # See bug #437050 >+ rm "/etc/ld.so.conf.d/00_toolchain_eclass_tmp_${PF}.conf" # remove temporary file >+ ldconfig # update the dynamic linker search paths >+ fi >+ >+ if ! is_crosscompile ; then > echo > ewarn "If you have issues with packages unable to locate libstdc++.la," > ewarn "then try running 'fix_libtool_files.sh' on the old gcc versions." >@@ -601,6 +620,12 @@ > fi > } > >+toolchain_pkg_prerm() { >+ if ! is_crosscompile ; then >+ ldconfig # update the dynamic linker search paths >+ fi >+} >+ > toolchain_pkg_postrm() { > # to make our lives easier (and saner), we do the fix_libtool stuff here. > # rather than checking SLOT's and trying in upgrade paths, we just see if
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 433161
: 327182 |
377272