eclass/toolchain.eclass: Add := operators to a number of critical deps
authorMatthias Maier <tamiko@gentoo.org>
Tue, 26 Dec 2017 16:38:23 +0000 (10:38 -0600)
committerMatthias Maier <tamiko@gentoo.org>
Thu, 1 Feb 2018 23:54:35 +0000 (17:54 -0600)
We should annotate a number of critical library dependencies of the
compiler with := operators to ensure that the compiler gets rebuilt in
time.

TODO: We should also check for FEATURES=preserve-libs / print a warning
before attempting to upgrade a library with soname change. Otherwise,
users might be off to a rocky ride.

Closes: https://bugs.gentoo.org/642316

eclass/toolchain.eclass

index 504fcabdba030e683918df7b82cc6608ebcdf562..ef42b338fd38feb1594716bff1a2c3c27c7e3931 100644 (file)
@@ -166,7 +166,7 @@ RDEPEND="sys-libs/zlib
 tc_version_is_at_least 3 && RDEPEND+=" virtual/libiconv"
 
 if tc_version_is_at_least 4 ; then
-       GMP_MPFR_DEPS=">=dev-libs/gmp-4.3.2:0 >=dev-libs/mpfr-2.4.2:0"
+       GMP_MPFR_DEPS=">=dev-libs/gmp-4.3.2:0= >=dev-libs/mpfr-2.4.2:0="
        if tc_version_is_at_least 4.3 ; then
                RDEPEND+=" ${GMP_MPFR_DEPS}"
        elif in_iuse fortran ; then
@@ -174,7 +174,7 @@ if tc_version_is_at_least 4 ; then
        fi
 fi
 
-tc_version_is_at_least 4.5 && RDEPEND+=" >=dev-libs/mpc-0.8.1:0"
+tc_version_is_at_least 4.5 && RDEPEND+=" >=dev-libs/mpc-0.8.1:0="
 
 if in_iuse objc-gc ; then
        if tc_version_is_at_least 7 ; then
@@ -188,8 +188,8 @@ if in_iuse graphite ; then
        elif tc_version_is_at_least 4.8 ; then
                RDEPEND+="
                        graphite? (
-                               >=dev-libs/cloog-0.18.0
-                               >=dev-libs/isl-0.11.1
+                               >=dev-libs/cloog-0.18.0:0=
+                               >=dev-libs/isl-0.11.1:0=
                        )"
        fi
 fi