Revbump to fix a problem when choosing the reference file for touch on crosscompilers...
authorJeremy Huddleston <eradicator@gentoo.org>
Wed, 5 Oct 2005 09:08:08 +0000 (09:08 +0000)
committerJeremy Huddleston <eradicator@gentoo.org>
Wed, 5 Oct 2005 09:08:08 +0000 (09:08 +0000)
Package-Manager: portage-2.0.53_rc3

app-admin/eselect-compiler/ChangeLog
app-admin/eselect-compiler/Manifest
app-admin/eselect-compiler/eselect-compiler-2.0.0_beta2-r1.ebuild [moved from app-admin/eselect-compiler/eselect-compiler-2.0.0_beta2.ebuild with 73% similarity]
app-admin/eselect-compiler/files/digest-eselect-compiler-2.0.0_beta2-r1 [moved from app-admin/eselect-compiler/files/digest-eselect-compiler-2.0.0_beta2 with 100% similarity]
app-admin/eselect-compiler/files/eselect-compiler-2.0.0_beta2-ref.patch [new file with mode: 0644]
app-admin/eselect-compiler/files/eselect-compiler-2.0.0_beta2-specs.patch [new file with mode: 0644]

index 7f0042340ac7ba90134f40050b4f2761b5ed3034..955cb1345126672e7218ab02785129699650571f 100644 (file)
@@ -1,6 +1,16 @@
 # ChangeLog for app-admin/eselect-compiler
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-compiler/ChangeLog,v 1.5 2005/10/05 08:24:29 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-compiler/ChangeLog,v 1.6 2005/10/05 09:08:08 eradicator Exp $
+
+*eselect-compiler-2.0.0_beta2-r1 (05 Oct 2005)
+
+  05 Oct 2005; Jeremy Huddleston <eradicator@gentoo.org>
+  +files/eselect-compiler-2.0.0_beta2-ref.patch,
+  +files/eselect-compiler-2.0.0_beta2-specs.patch,
+  -eselect-compiler-2.0.0_beta2.ebuild,
+  +eselect-compiler-2.0.0_beta2-r1.ebuild:
+  Revbump to fix a problem when choosing the reference file for touch on
+  crosscompilers and let postinst fix spec->specs in the conf files.
 
   05 Oct 2005; Jeremy Huddleston <eradicator@gentoo.org>
   eselect-compiler-2.0.0_beta2.ebuild:
index 5392e7ca2cb13fc6af43da30ffbf779ce2bf9593..274e7d2be98a220c53967deb877ca6da3ae7fa9e 100644 (file)
@@ -1,14 +1,16 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-MD5 26ab8354ce0d692d3e94c5cb8cfdc15d ChangeLog 1215
-MD5 98e03aec8bef842f5c2eb3b44f7b12c2 eselect-compiler-2.0.0_beta2.ebuild 1439
-MD5 c7cf3a3617d90adfaacc7c2c012ddfb0 files/digest-eselect-compiler-2.0.0_beta2 79
+MD5 6e7b60299c7fb718fb0774be90f6c56d ChangeLog 1646
+MD5 5c1ff2c5d647220c1d8dc777eba12362 eselect-compiler-2.0.0_beta2-r1.ebuild 1731
+MD5 c7cf3a3617d90adfaacc7c2c012ddfb0 files/digest-eselect-compiler-2.0.0_beta2-r1 79
+MD5 381e44a2470aea23417bf589716517f0 files/eselect-compiler-2.0.0_beta2-ref.patch 836
+MD5 bbad47da67de57c3cf780c0d0ffed175 files/eselect-compiler-2.0.0_beta2-specs.patch 471
 MD5 567094e03359ffc1c95af7356395228d metadata.xml 162
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.2 (GNU/Linux)
 
-iD8DBQFDQ43iOpjtAl+gMRURAgMWAJ982AmRiiX1Ve/uvojslmH1HDXHFwCfaek3
-A0AsrmsZT1WKlXVHXx09IWQ=
-=dW6C
+iD8DBQFDQ5gNOpjtAl+gMRURAi1/AKDUA06dDITt6ADVcJh376GD4mvmdwCgjtiY
+mkTRbW2M5jG3+beOVrhhD/Y=
+=sXvv
 -----END PGP SIGNATURE-----
similarity index 73%
rename from app-admin/eselect-compiler/eselect-compiler-2.0.0_beta2.ebuild
rename to app-admin/eselect-compiler/eselect-compiler-2.0.0_beta2-r1.ebuild
index 6de0627f4f5cdc1eaa78d16bed41f8f7f4baebdb..f11f8cb3b98059dd996263fec9b9a5b6100d3537 100644 (file)
@@ -1,6 +1,8 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-compiler/eselect-compiler-2.0.0_beta2.ebuild,v 1.3 2005/10/05 08:24:29 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-compiler/eselect-compiler-2.0.0_beta2-r1.ebuild,v 1.1 2005/10/05 09:08:08 eradicator Exp $
+
+inherit eutils
 
 DESCRIPTION="Utility to configure the active toolchain compiler"
 HOMEPAGE="http://www.gentoo.org/"
@@ -18,10 +20,17 @@ IUSE=""
 
 RDEPEND="app-admin/eselect"
 
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+       epatch ${FILESDIR}/${P}-ref.patch
+       epatch ${FILESDIR}/${P}-specs.patch
+}
+
 pkg_postinst() {
-       # Some toolchain.eclass installed confs on amd64 had chost instead of
-       # ctarget.
+       # Some toolchain.eclass installed confs aren't quite right
        sed -i 's:chost:ctarget:g' ${ROOT}/etc/eselect/compiler/*
+       sed -i 's:spec=:specs=:g' ${ROOT}/etc/eselect/compiler/*
 
        # Migrate from the old configs
        if [[ ! -f "${ROOT}/etc/eselect/compiler/selection.conf" ]] ; then
@@ -38,6 +47,9 @@ pkg_postinst() {
        if rm -f ${ROOT}/etc/env.d/05gcc* &> /dev/null ; then
                ewarn "You should source /etc/profile in your open shells."
        fi
+
+       ewarn "Thanks for beta testing eselect-compiler.  If you have any problems,"
+       ewarn "please contact eradicator@gentoo.org."
 }
 
 src_install() {
diff --git a/app-admin/eselect-compiler/files/eselect-compiler-2.0.0_beta2-ref.patch b/app-admin/eselect-compiler/files/eselect-compiler-2.0.0_beta2-ref.patch
new file mode 100644 (file)
index 0000000..bf0d359
--- /dev/null
@@ -0,0 +1,24 @@
+Index: compiler.eselect.in
+===================================================================
+--- a/src/profile-manager/compiler.eselect.in  (revision 202)
++++ a/src/profile-manager/compiler.eselect.in  (working copy)
+@@ -433,10 +433,17 @@
+               # happy.  See Bug #70548 for more info.
+               if has ${bin} ${COMPILER_CONFIG_ALIASES} ; then
+                       set_v="COMPILER_CONFIG_ALIAS_${bin}"
+-                      ref="${ROOT}/${COMPILER_CONFIG_BINPATH}/${!set_v}"
++                      ref="${!set_v}"
+               else
+-                      ref="${ROOT}/${COMPILER_CONFIG_BINPATH}/${bin}"
++                      ref="${bin}"
+               fi
++
++              if [[ -f "${ROOT}/${COMPILER_CONFIG_BINPATH}/${ref}" ]] ; then
++                      ref="${ROOT}/${COMPILER_CONFIG_BINPATH}/${ref}"
++              else
++                      ref="${ROOT}/${COMPILER_CONFIG_BINPATH}/${ctarget}-${ref}"
++              fi
++
+               cp -f "${WRAPPER}" "${bindir}/${ctarget}-${bin}"
+               touch -r "${ref}" "${bindir}/${ctarget}-${bin}"
+ 
diff --git a/app-admin/eselect-compiler/files/eselect-compiler-2.0.0_beta2-specs.patch b/app-admin/eselect-compiler/files/eselect-compiler-2.0.0_beta2-specs.patch
new file mode 100644 (file)
index 0000000..218cb6d
--- /dev/null
@@ -0,0 +1,13 @@
+Index: compiler.eselect.in
+===================================================================
+--- a/src/profile-manager/compiler.eselect.in  (revision 203)
++++ a/src/profile-manager/compiler.eselect.in  (working copy)
+@@ -678,7 +678,7 @@
+               [[ -n ${val} ]] && echo "       ldpath=${val}" >> ${conf}
+ 
+               val=$(load_config "${file}" GCC_SPECS)
+-              [[ -n ${val} ]] && echo "       spec=${val}" >> ${conf}
++              [[ -n ${val} ]] && echo "       specs=${val}" >> ${conf}
+ 
+               echo >> ${conf}
+       done