toolchain.eclass: [QA] Remove meaningless USE=multislot, #584610
authorMichał Górny <mgorny@gentoo.org>
Tue, 21 Jun 2016 16:05:16 +0000 (18:05 +0200)
committerMichał Górny <mgorny@gentoo.org>
Tue, 21 Jun 2016 17:20:38 +0000 (19:20 +0200)
The USE=multislot as defined partially by toolchain.eclass and partially
by sys-devel/gcc was used for two purposes:

- enabling build-time (only) blockers on old gcc versions -- which do
  not make any sense because they are build-time only and there is no
  technical reason for two gcc version ranges not to be installed at
  the same time, both at build time and at run time,

- changing behavior of post-install wrt conditional gcc-config calls.

Both cases are invalid use of USE flags, considering that the flag does
not affect the installed files in any way.

eclass/toolchain.eclass
sys-devel/gcc-apple/metadata.xml
sys-devel/gcc/gcc-4.9.3.ebuild
sys-devel/gcc/gcc-5.3.0.ebuild
sys-devel/gcc/gcc-5.4.0.ebuild
sys-devel/gcc/metadata.xml
sys-devel/kgcc64/metadata.xml

index 9dd1604e9638c7a7f8df9a529797483576ce042d..5dff279503c1e1fb2daf4491935cbd155588fdbb 100644 (file)
@@ -131,7 +131,7 @@ else
        LICENSE="GPL-2+ LGPL-2.1+ FDL-1.1+"
 fi
 
-IUSE="multislot regression-test vanilla"
+IUSE="regression-test vanilla"
 IUSE_DEF=( nls nptl )
 
 if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then
@@ -2142,10 +2142,6 @@ should_we_gcc_config() {
 
        local curr_branch_ver=$(get_version_component_range 1-2 ${curr_config_ver})
 
-       # If we're using multislot, just run gcc-config if we're installing
-       # to the same profile as the current one.
-       use multislot && return $([[ ${curr_config_ver} == ${GCC_CONFIG_VER} ]])
-
        if [[ ${curr_branch_ver} == ${GCC_BRANCH_VER} ]] ; then
                return 0
        else
index 6f00f68c384ed1b11e521962d8771353e3b75954..eb4d397c67f0a9a651d26e2b81b49f276ce76640 100644 (file)
@@ -6,7 +6,6 @@
     <name>Gentoo Prefix</name>
   </maintainer>
   <use>
-    <flag name="multislot">Allow for multiple versions to be emerged at once for same CTARGET</flag>
     <flag name="objc">Build support for the Objective C code language</flag>
     <flag name="objc++">Build support for the Objective C++ language</flag>
     <flag name="regression-test">Run the testsuite and install the results (requires FEATURES=test)</flag>
index a66d2d6ea6a48bbd955269a644bab9ebe81bd38b..85dbc89097c2411f97bcf391c2b2835c17643ff0 100644 (file)
@@ -27,7 +27,6 @@ KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86
 RDEPEND=""
 DEPEND="${RDEPEND}
        elibc_glibc? ( >=sys-libs/glibc-2.8 )
-       !multislot? ( !<${CATEGORY}/gcc-4.9 )
        >=${CATEGORY}/binutils-2.20"
 
 if [[ ${CATEGORY} != cross-* ]] ; then
index 48a7567638b08e0c697903285883ada6174847d0..1730b19efefdd44fc9e35e48d8cc80328c08f4db 100644 (file)
@@ -27,7 +27,6 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~s
 RDEPEND=""
 DEPEND="${RDEPEND}
        elibc_glibc? ( >=sys-libs/glibc-2.8 )
-       !multislot? ( !<${CATEGORY}/gcc-4.9 )
        >=${CATEGORY}/binutils-2.20"
 
 if [[ ${CATEGORY} != cross-* ]] ; then
index 243a370902f85b3d9e65df2c263a9a1f55e562c8..d40ef5466aaf8f14b8ae9aad196b9afb18d7ea7a 100644 (file)
@@ -27,7 +27,6 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~s
 RDEPEND=""
 DEPEND="${RDEPEND}
        elibc_glibc? ( >=sys-libs/glibc-2.8 )
-       !multislot? ( !<${CATEGORY}/gcc-4.9 )
        >=${CATEGORY}/binutils-2.20"
 
 if [[ ${CATEGORY} != cross-* ]] ; then
index 7b6c493e9e5df8dc929dfcf632f4a8e03d327a2c..38f4396bcaaa48652de19f6631703a96989ab53e 100644 (file)
@@ -21,7 +21,6 @@
       code in the C library (DO NOT ENABLE THIS IF YOU DON'T KNOW WHAT IT DOES)</flag>
     <flag name="mpx">Enable support for Intel Memory Protection Extensions (MPX)</flag>
     <flag name="mudflap">Add support for mudflap, a pointer use checking library</flag>
-    <flag name="multislot">Allow for multiple versions to be emerged at once for same CTARGET</flag>
     <flag name="nopie">Disable PIE support (NOT FOR GENERAL USE)</flag>
     <flag name="nossp">Disable SSP support (NOT FOR GENERAL USE)</flag>
     <flag name="objc">Build support for the Objective C code language</flag>
index 817d146fe23aaefadb614d29c26457f2b13c6f6f..2753a6abd172e352064da07c72763db62a4bba99 100644 (file)
@@ -6,7 +6,6 @@
 <name>Gentoo Toolchain Project</name>
 </maintainer>
 <use>
-<flag name="multislot">Allow for multiple versions to be emerged at once for same CTARGET</flag>
 <flag name="regression-test">Run the testsuite and install the results (requires FEATURES=test)</flag>
 </use>
 </pkgmetadata>