Gentoo Archives: gentoo-dev

From: Brian Jackson <iggy@g.o>
To: gentoo-dev@l.g.o
Cc: gentoo-user@l.g.o
Subject: [gentoo-dev] kernel-2 eclass gross hack
Date: Sun, 04 Apr 2004 07:21:03
Message-Id: 200404040124.06184.iggy@gentoo.org
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Here's a nifty one for all those people that are just itching to grab 2.6.5,
5 but don't want to download the whole tarball. Chances are it could do things a
6 lot better, but this is what 5 (err, closer to 15 now after testing) minutes of
7 my time gets you.
8
9 - --Iggy
10
11 P.S. This will probably break other kernels, I haven't tested yet, so backup
12 your kernel-2.eclass. You'll also need the changes to the dev-sources ebuild at
13 the end of this email (I didn't feel like figuring out why it was failing).
14
15 - --- /usr/portage/eclass/kernel-2.eclass.bak 2004-03-14 01:10:29.000000000 -0600
16 +++ /usr/portage/local/eclass/kernel-2.eclass 2004-04-04 01:21:49.244034968 -0600
17 @@ -463,9 +463,15 @@
18 KV_MINOR=$(echo ${OKV} | cut -d. -f2)
19 KV_PATCH=$(echo ${OKV} | cut -d. -f3)
20 KV_PATCH=${KV_PATCH/[-_]*/}
21 +
22 + highest_tarball="`ls ${DISTDIR}/linux-2.6* | tail -n1 | cut -f3 -d.`"
23
24 - - KERNEL_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/linux-${OKV}.tar.bz2"
25 - -
26 + KERNEL_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/linux-2.6.${highest_tarball}.tar.bz2"
27 + for i in `seq $((${highest_tarball} + 1)) 1 ${KV_PATCH}` ; do
28 + KERNEL_URI="${KERNEL_URI}
29 + mirror://kernel/linux/kernel/v2.6/patch-2.6.${i}.bz2"
30 + done
31 +
32 RELEASE=${PV/${OKV}/}
33 RELEASE=${RELEASE/_beta/}
34 RELEASE=${RELEASE/_rc/-rc}
35 @@ -516,7 +522,14 @@
36 UNIPATCH_LIST_DEFAULT="${DISTDIR}/patch-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${RELEASE}.bz2"
37 KV=${PV/[-_]*/}${EXTRAVERSION}
38 fi
39 - -
40 +
41 + OKV="${KV_MAJOR}.${KV_MINOR}.${highest_tarball}"
42 + UNIPATCH_LIST_DEFAULT=""
43 + for i in `seq $((${highest_tarball} + 1)) 1 ${KV_PATCH}` ; do
44 + UNIPATCH_LIST_DEFAULT="${UNIPATCH_LIST_DEFAULT}
45 + ${DISTDIR}/patch-2.6.${i}.bz2"
46 + done
47 +
48 S=${WORKDIR}/linux-${KV}
49 }
50
51 ************* ebuild changes
52
53 - --- /usr/portage/sys-kernel/development-sources/development-sources-2.6.4.ebuild 2004-03-28 04:14:45.000000000 -0600
54 +++ /usr/portage/sys-kernel/development-sources/development-sources-2.6.5.ebuild 2004-04-04 00:54:21.184578088 -0600
55 @@ -6,15 +6,16 @@
56
57 K_NOUSENAME="yes"
58 ETYPE="sources"
59 - -SPARC_URI="mirror://gentoo/patches-2.6.4-sparc.tar.bz2"
60 +#SPARC_URI="mirror://gentoo/patches-2.6.4-sparc.tar.bz2"
61 inherit kernel-2
62 detect_version
63 - -detect_arch
64 +#detect_arch
65
66 DESCRIPTION="Full sources for the vanilla 2.6 kernel tree"
67 HOMEPAGE="http://www.kernel.org/"
68 SRC_URI="${KERNEL_URI} ${ARCH_URI}"
69 - -UNIPATCH_LIST="${ARCH_PATCH}"
70 +#UNIPATCH_LIST="${ARCH_PATCH}"
71 +UNIPATCH_STRICTORDER="yes"
72
73 use ultra1 || UNIPATCH_EXCLUDE="99_U1-hme-lockup"
74
75 -----BEGIN PGP SIGNATURE-----
76 Version: GnuPG v1.2.4 (GNU/Linux)
77
78 iD8DBQFAb7gT+cPN+Z7qK9cRArq0AJ9QvJdMKtrUh954qbfVwps3rVVrqgCfSZD5
79 H0Zpu3Kzy5QIWQNQS1iv3rA=
80 =3Tx4
81 -----END PGP SIGNATURE-----
82
83 --
84 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] kernel-2 eclass gross hack Georgi Georgiev <chutz@×××.net>
Re: [gentoo-dev] kernel-2 eclass gross hack Nick Jones <carpaski@g.o>