Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 512672

Summary: dev-cpp/tbb-4.2.20140122: fails with CXX=${CHOST}-g++-4.8.2
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal CC: jlec
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-06-07 17:04:07 UTC
if [[ $(tc-getCXX) == *g++ ]]; then
        comp="gcc"
    elif [[ $(tc-getCXX) == *ic*c ]]; then
        comp="icc"
    else
        die "compiler $(tc-getCXX) not supported by build system"
    fi

This check fails if ${CXX} contains versioned compiler executable. Adding extra '*' at the end helps.
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2014-06-08 08:14:38 UTC
+  08 Jun 2014; Justin Lecher <jlec@gentoo.org> tbb-4.1.20121003-r1.ebuild,
+  tbb-4.2.20131118.ebuild, tbb-4.2.20140122.ebuild, metadata.xml:
+  Add compatibility with versioned gcc, #512672
+