summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-06-07 22:42:28 +0000
committerMike Frysinger <vapier@gentoo.org>2005-06-07 22:42:28 +0000
commitd11fd431f13fab8f43645efae7388b73d61ba157 (patch)
tree63b8bf79431a2eaaff417bc06552be57f338a8e5 /sys-devel
parentFix minkernpackage bug. (diff)
downloadhistorical-d11fd431f13fab8f43645efae7388b73d61ba157.tar.gz
historical-d11fd431f13fab8f43645efae7388b73d61ba157.tar.bz2
historical-d11fd431f13fab8f43645efae7388b73d61ba157.zip
Make sure we support funky version strings (beta823942) and custom specs (hardened).
Package-Manager: portage-2.0.51.22-r1
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/gcc-config/ChangeLog9
-rw-r--r--sys-devel/gcc-config/Manifest8
-rw-r--r--sys-devel/gcc-config/files/digest-gcc-config-1.3.11-r2 (renamed from sys-devel/gcc-config/files/digest-gcc-config-1.3.11-r1)0
-rwxr-xr-xsys-devel/gcc-config/files/gcc-config-1.3.1141
-rw-r--r--sys-devel/gcc-config/gcc-config-1.3.11-r2.ebuild (renamed from sys-devel/gcc-config/gcc-config-1.3.11-r1.ebuild)2
5 files changed, 50 insertions, 10 deletions
diff --git a/sys-devel/gcc-config/ChangeLog b/sys-devel/gcc-config/ChangeLog
index f4333183c8c7..cc32de012e17 100644
--- a/sys-devel/gcc-config/ChangeLog
+++ b/sys-devel/gcc-config/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-devel/gcc-config
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/ChangeLog,v 1.91 2005/06/07 00:39:09 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/ChangeLog,v 1.92 2005/06/07 22:42:28 vapier Exp $
+
+*gcc-config-1.3.11-r2 (07 Jun 2005)
+
+ 07 Jun 2005; Mike Frysinger <vapier@gentoo.org> files/gcc-config-1.3.11,
+ -gcc-config-1.3.11-r1.ebuild, +gcc-config-1.3.11-r2.ebuild:
+ Make sure we support funky version strings (beta823942) and custom specs
+ (hardened).
*gcc-config-1.3.11-r1 (07 Jun 2005)
diff --git a/sys-devel/gcc-config/Manifest b/sys-devel/gcc-config/Manifest
index 757eb60ad471..15847d0d00bf 100644
--- a/sys-devel/gcc-config/Manifest
+++ b/sys-devel/gcc-config/Manifest
@@ -1,10 +1,11 @@
MD5 a1e5f8b8fb9566f795d36754e8075eb8 gcc-config-1.3.10-r2.ebuild 1428
-MD5 4bef4c25e1db1a1465f3da18f043578c ChangeLog 18611
+MD5 7d84b4ae0b58a923355a1e7ed7fc131a ChangeLog 18875
+MD5 a34edb1246e5b3e8a62f296a79a7d694 gcc-config-1.3.11-r2.ebuild 1428
MD5 856d159682acb2dca11e43b8bbe42b70 gcc-config-1.4.0.ebuild 1896
MD5 567094e03359ffc1c95af7356395228d metadata.xml 162
MD5 106edaabe4dcbc34c50e9f5e4c18e2bf gcc-config-1.3.10-r1.ebuild 1431
-MD5 57ba993800124452ff7b9e376416dfe6 gcc-config-1.3.11-r1.ebuild 1428
-MD5 12afe204dad9b343a6d7fd4eeb9c5b71 files/gcc-config-1.3.11 14520
+MD5 e4e7b12c3d9a40bc47f52cbf04333af2 files/gcc-config-1.3.11 15602
+MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-gcc-config-1.3.11-r2 0
MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-gcc-config-1.4.0 0
MD5 35bfdc34bf7a621fc41de516b13cb4ea files/gcc-config-1.4.0 14923
MD5 4c31f7f5f8723588a4401dd102061301 files/gcc-config-1.3.10 13549
@@ -12,4 +13,3 @@ MD5 3b96d761f411a1befda4f334da8fea03 files/wrapper-1.4.6.c 10526
MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-gcc-config-1.3.10-r2 0
MD5 e3203a5aa6df669ffa479aeeb7605029 files/wrapper-1.4.5.c 10671
MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-gcc-config-1.3.10-r1 0
-MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-gcc-config-1.3.11-r1 0
diff --git a/sys-devel/gcc-config/files/digest-gcc-config-1.3.11-r1 b/sys-devel/gcc-config/files/digest-gcc-config-1.3.11-r2
index e69de29bb2d1..e69de29bb2d1 100644
--- a/sys-devel/gcc-config/files/digest-gcc-config-1.3.11-r1
+++ b/sys-devel/gcc-config/files/digest-gcc-config-1.3.11-r2
diff --git a/sys-devel/gcc-config/files/gcc-config-1.3.11 b/sys-devel/gcc-config/files/gcc-config-1.3.11
index b7ae23697117..af4c8a1f2380 100755
--- a/sys-devel/gcc-config/files/gcc-config-1.3.11
+++ b/sys-devel/gcc-config/files/gcc-config-1.3.11
@@ -1,7 +1,7 @@
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.3.11,v 1.2 2005/06/07 00:39:09 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/gcc-config-1.3.11,v 1.3 2005/06/07 22:42:28 vapier Exp $
trap ":" INT QUIT TSTP
@@ -515,17 +515,50 @@ if [[ -z ${CC_COMP} ]] ; then
fi
chop_gcc_ver() {
+ # we want to chop off the 'version' part of the profile ...
+ # possible profile names:
+ # arm-unknown-linux-gnu-3.3.6
+ # mipsel-unknown-linux-uclibc-3.4.4
+ # sh4-gentoo-linux-uclibc-3.4.4
+ # x86_64-pc-linux-gnu-3.4.3-20050110
+ # x86_64-pc-linux-gnu-4.0.0-hardenednopie
+ # x86_64-pc-linux-gnu-3.3.5-20050130-hardened
+ # x86_64-pc-linux-gnu-4.0.1-beta20050526
+ #
+ # So below we will start at the end and accept everything
+ # until we get to a portion where the string is just number/dots ...
+ # Then we eat all the portions of just number/dots until the TARGET
+ # is all that's left to us.
echo "$@" | awk -F- '{
+ foundver=0
gccver=""
for (i=NF; i > 0; --i) {
- if ($i ~ /^[[:digit:].]+$/)
+ if ($i ~ /^[[:digit:].]+$/) {
gccver=$i"-"gccver
- else
+ foundver=1
+ } else if (foundver == 1)
break
}
print substr(gccver,0,length(gccver)-1)
}'
}
+test_chop_gcc_ver() {
+ local c ver host
+ local clist="
+ arm-unknown-linux-gnu-3.3.6
+ mipsel-unknown-linux-uclibc-3.4.4
+ sh4-gentoo-linux-uclibc-3.4.4
+ x86_64-pc-linux-gnu-3.4.3-20050110
+ x86_64-pc-linux-gnu-4.0.1-beta20050526
+ x86_64-pc-linux-gnu-4.0.0-hardenednopie
+ x86_64-pc-linux-gnu-3.3.5-20050130-hardened
+ "
+ for c in ${clist} ; do
+ ver=$(chop_gcc_ver ${c})
+ host=${c%-${ver}*}
+ printf "%-45s %-30s %s\n" ${c} ${host} ${ver}
+ done
+}
if [[ ${DOIT} != "get_current_profile" ]] ; then
GCC_LIB=$(
@@ -535,7 +568,7 @@ if [[ ${DOIT} != "get_current_profile" ]] ; then
)
CC_COMP_VERSION=$(chop_gcc_ver ${CC_COMP})
- CC_COMP_TARGET=${CC_COMP:0:${#CC_COMP}-${#CC_COMP_VERSION}-1}
+ CC_COMP_TARGET=${CC_COMP%-${CC_COMP_VERSION}*}
if [[ ! -d ${ROOT}/${GCC_LIB}/${CC_COMP_TARGET}/${CC_COMP_VERSION} ]]; then
CC_COMP_VERSION=${CC_COMP_VERSION%-*}
diff --git a/sys-devel/gcc-config/gcc-config-1.3.11-r1.ebuild b/sys-devel/gcc-config/gcc-config-1.3.11-r2.ebuild
index 9e5c9c8f021f..0ed60dd9a4e8 100644
--- a/sys-devel/gcc-config/gcc-config-1.3.11-r1.ebuild
+++ b/sys-devel/gcc-config/gcc-config-1.3.11-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/gcc-config-1.3.11-r1.ebuild,v 1.1 2005/06/07 00:39:09 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/gcc-config-1.3.11-r2.ebuild,v 1.1 2005/06/07 22:42:28 vapier Exp $
inherit toolchain-funcs