summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJohn Mylchreest <johnm@gentoo.org>2004-02-18 22:33:29 +0000
committerJohn Mylchreest <johnm@gentoo.org>2004-02-18 22:33:29 +0000
commit658fdf96b187dbc5a45d8a19fcc1eb52d382451f (patch)
tree6b83951797bff294bbe3cff4eb18c9670e91d54c /eclass
parentAdded the patch for the mremap/munmap vulnerability. Bug #42024. [ Manifest r... (diff)
downloadgentoo-2-658fdf96b187dbc5a45d8a19fcc1eb52d382451f.tar.gz
gentoo-2-658fdf96b187dbc5a45d8a19fcc1eb52d382451f.tar.bz2
gentoo-2-658fdf96b187dbc5a45d8a19fcc1eb52d382451f.zip
fix to ensure digest integrity. repoman MUST be used with FEATURES='cvs'
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kernel-2.eclass21
1 files changed, 13 insertions, 8 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index e53654c8f03c..3c0cb4619142 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.30 2004/02/18 20:24:52 johnm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.31 2004/02/18 22:33:29 johnm Exp $
# kernel.eclass rewrite for a clean base regarding the 2.6 series of kernel
# with back-compatibility for 2.4
@@ -526,14 +526,19 @@ detect_arch() {
# with the neccessary info for the arch sepecific compatibility
# patchsets.
- local LOCAL_ARCH
- local COMPAT_URI
+ local ALL_ARCH
+ local LOOP_ARCH
+ local COMPAT_URI
- LOCAL_ARCH="$(echo ${ARCH} | tr [a-z] [A-Z])"
- COMPAT_URI="${LOCAL_ARCH}_URI"
-
- ARCH_URI="${!COMPAT_URI}"
- ARCH_PATCH="${DISTDIR}/${ARCH_URI/*\//}"
+ ALL_ARCH="X86 PPC PCC64 SPARC MIPS ALPHA ARM HPPA AMD64 IA64 X86OBSD"
+ for LOOP_ARCH in ${ALL_ARCH}
+ do
+ COMPAT_URI="${LOOP_ARCH}_URI"
+ COMPAT_URI="${!COMPAT_URI}"
+ ARCH_URI="${ARCH_URI} $(echo ${LOOP_ARCH} | tr [A-Z] [a-z])? ( ${COMPAT_URI} )"
+
+ [ "${LOOP_ARCH}" == "$(echo ${ARCH} | tr [a-z] [A-Z])" ] && ARCH_PATCH="${DISTDIR}/${COMPAT_URI/*\//}"
+ done
}