summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-12-07 01:44:14 +0000
committerMike Frysinger <vapier@gentoo.org>2004-12-07 01:44:14 +0000
commit9b38f1f60399f72e59f269f6c084be3fca6e839f (patch)
tree98a232e859f4f56d76e12dec328259103ee5bdf5 /sys-libs
parentbuilt_with_use() (diff)
downloadgentoo-2-9b38f1f60399f72e59f269f6c084be3fca6e839f.tar.gz
gentoo-2-9b38f1f60399f72e59f269f6c084be3fca6e839f.tar.bz2
gentoo-2-9b38f1f60399f72e59f269f6c084be3fca6e839f.zip
encode CTARGET into CATEGORY until portage can give us a proper SLOT solution
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/glibc/glibc-2.3.4.20040808-r1.ebuild7
-rw-r--r--sys-libs/glibc/glibc-2.3.4.20041102.ebuild7
2 files changed, 12 insertions, 2 deletions
diff --git a/sys-libs/glibc/glibc-2.3.4.20040808-r1.ebuild b/sys-libs/glibc/glibc-2.3.4.20040808-r1.ebuild
index 85bf140a8e95..93c9ec117b5b 100644
--- a/sys-libs/glibc/glibc-2.3.4.20040808-r1.ebuild
+++ b/sys-libs/glibc/glibc-2.3.4.20040808-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.3.4.20040808-r1.ebuild,v 1.19 2004/12/07 00:25:13 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.3.4.20040808-r1.ebuild,v 1.20 2004/12/07 01:44:14 vapier Exp $
inherit eutils flag-o-matic gcc versionator
@@ -16,6 +16,11 @@ MIN_KERNEL_VERSION="2.6.5"
# (very) Theoretical cross-compiler support
export CTARGET="${CTARGET:-${CHOST}}"
+if [[ ${CTARGET} = ${CHOST} ]] ; then
+ if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
+ export CTARGET="${CATEGORY/cross-}"
+ fi
+fi
if [ -z "${BRANCH_UPDATE}" ]; then
diff --git a/sys-libs/glibc/glibc-2.3.4.20041102.ebuild b/sys-libs/glibc/glibc-2.3.4.20041102.ebuild
index a128cdd22131..cf404608eebc 100644
--- a/sys-libs/glibc/glibc-2.3.4.20041102.ebuild
+++ b/sys-libs/glibc/glibc-2.3.4.20041102.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.3.4.20041102.ebuild,v 1.12 2004/12/07 00:25:13 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.3.4.20041102.ebuild,v 1.13 2004/12/07 01:44:14 vapier Exp $
inherit eutils flag-o-matic gcc versionator
@@ -16,6 +16,11 @@ MIN_KERNEL_VERSION="2.6.5"
# (very) Theoretical cross-compiler support
export CTARGET="${CTARGET:-${CHOST}}"
+if [[ ${CTARGET} = ${CHOST} ]] ; then
+ if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
+ export CTARGET="${CATEGORY/cross-}"
+ fi
+fi
if [ -z "${BRANCH_UPDATE}" ]; then