Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 402136 Details for
Bug 547962
toolchain.eclass mishandles gcc-config errors
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
toolchain.eclass patch
toolchain.eclass.patch (text/plain), 1.09 KB, created by
mike@marineau.org
on 2015-04-28 05:43:55 UTC
(
hide
)
Description:
toolchain.eclass patch
Filename:
MIME Type:
Creator:
mike@marineau.org
Created:
2015-04-28 05:43:55 UTC
Size:
1.09 KB
patch
obsolete
>diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass >index b26c6e3..d5c081b 100644 >--- a/eclass/toolchain.eclass >+++ b/eclass/toolchain.eclass >@@ -2027,10 +2027,12 @@ do_gcc_config() { > local current_gcc_config="" current_specs="" use_specs="" > > current_gcc_config=$(env -i ROOT="${ROOT}" gcc-config -c ${CTARGET} 2>/dev/null) >- if [[ -n ${current_gcc_config} ]] ; then >+ if [[ $? -eq 0 && -n "${current_gcc_config}" ]] ; then > # figure out which specs-specific config is active >- current_specs=$(gcc-config -S ${current_gcc_config} | awk '{print $3}') >- [[ -n ${current_specs} ]] && use_specs=-${current_specs} >+ current_specs=$(gcc-config -S "${current_gcc_config}" | awk '{print $3}') >+ if [[ $? -eq 0 && -n "${current_specs}" ]] ; then >+ use_specs="-${current_specs}" >+ fi > fi > if [[ -n ${use_specs} ]] && \ > [[ ! -e ${ROOT}/etc/env.d/gcc/${CTARGET}-${GCC_CONFIG_VER}${use_specs} ]] >@@ -2043,7 +2045,7 @@ do_gcc_config() { > use_specs="" > fi > >- gcc-config ${CTARGET}-${GCC_CONFIG_VER}${use_specs} >+ gcc-config "${CTARGET}-${GCC_CONFIG_VER}${use_specs}" > } > > should_we_gcc_config() {
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 547962
: 402136