sys-apps/iproute2: respect CC, fixes cross-compilation, bug #591218
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 18 Sep 2016 15:29:36 +0000 (16:29 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 18 Sep 2016 15:30:35 +0000 (16:30 +0100)
iproute tarball used to use 'CC = ' to override a compiler.
Now it uses 'CC :=' and it broke our sed silently.

Reported-by: Gerhard Bräunlich
Reported-by: n05 on #gentoo-embedded
Bug: https://bugs.gentoo.org/591218

Package-Manager: portage-2.3.0

sys-apps/iproute2/iproute2-4.7.0.ebuild
sys-apps/iproute2/iproute2-9999.ebuild

index 9a1447daa5d8d2ff29ac682a88ac37e4d5311409..4b4f69e7fb3d1752272bc4edc1553983349314cd 100644 (file)
@@ -52,7 +52,7 @@ src_prepare() {
        epatch "${PATCHES[@]}"
 
        sed -i \
-               -e '/^CC =/d' \
+               -e '/^CC :=/d' \
                -e "/^LIBDIR/s:=.*:=/$(get_libdir):" \
                -e "s:-O2:${CFLAGS} ${CPPFLAGS}:" \
                -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \
index 5e9fb782286b991f09b76084c21f921a3822fba4..b1b0347479e811496a53af4ca1296d246b48fe46 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -41,7 +41,7 @@ src_prepare() {
        use ipv6 || epatch "${FILESDIR}"/${PN}-3.10.0-no-ipv6.patch #326849
 
        sed -i \
-               -e '/^CC =/d' \
+               -e '/^CC :=/d' \
                -e "/^LIBDIR/s:=.*:=/$(get_libdir):" \
                -e "s:-O2:${CFLAGS} ${CPPFLAGS}:" \
                -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \