summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@gentoo.org>2002-10-01 00:39:48 +0000
committerBrandon Low <lostlogic@gentoo.org>2002-10-01 00:39:48 +0000
commit1f4055c9e35298275a00d13e59f99e4e419def7a (patch)
tree6a1d51472ac6c79fb06dad303887b1f7693a8d25 /eclass/kernel.eclass
parentRe-add mjc-sources, enjoy (diff)
downloadgentoo-2-1f4055c9e35298275a00d13e59f99e4e419def7a.tar.gz
gentoo-2-1f4055c9e35298275a00d13e59f99e4e419def7a.tar.bz2
gentoo-2-1f4055c9e35298275a00d13e59f99e4e419def7a.zip
this time fix it better
Diffstat (limited to 'eclass/kernel.eclass')
-rw-r--r--eclass/kernel.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/kernel.eclass b/eclass/kernel.eclass
index 2c63afffe5a7..23d6fe364819 100644
--- a/eclass/kernel.eclass
+++ b/eclass/kernel.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kernel.eclass,v 1.6 2002/09/30 23:13:48 lostlogic Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kernel.eclass,v 1.7 2002/10/01 00:39:48 lostlogic Exp $
ECLASS=kernel
EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst
# This eclass contains the common functions to be used by all lostlogic
@@ -8,8 +8,8 @@ EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst
# OKV=original kernel version, KV=patched kernel version. They can be the same.
OKV="`echo ${PV}|sed -e 's:^\([0-9]\+\.[0-9]\+\.[0-9]\+\).*:\1:'`"
-EXTRAVERSION="`echo ${P} | \
- sed -e 's:^\(.*\)-sources-[0-9]\+\.[0-9]\+\.[0-9]\+.r*\([0-9]*\)\(.*$\):-\1-r\2\3:'`"
+EXTRAVERSION="`echo ${PN}-${PV}-${PR} | \
+ sed -e 's:^\(.*\)-sources-[0-9]\+\.[0-9]\+\.[0-9]\+.r*\([0-9]\+\)\(_[^-_]\+\)\?\(-r[0-9]\+\)\?$:-\1-r\2\3:'`"
KV=${OKV}${EXTRAVERSION}
S=${WORKDIR}/linux-${KV}
PROVIDE="virtual/linux-sources"