Gentoo Archives: gentoo-kernel

From: John Mylchreest <johnm@g.o>
To: gentoo-kernel@l.g.o
Subject: Re: [gentoo-kernel] kernel-2.eclass: Easier way to use genpatches in ebuilds
Date: Wed, 22 Jun 2005 16:25:47
Message-Id: 1119457490.32703.77.camel@localhost
In Reply to: [gentoo-kernel] kernel-2.eclass: Easier way to use genpatches in ebuilds by Daniel Drake
1 This approach is fine with me, anything which makes life easier.
2 I have attached the kernel-2 from my overlay which as per bug #96510
3 If you agree with the idea, (its been tested) then please feel free to
4 merge and commit.
5
6 if you don't like the prerm stuff, just ditch it and apply to the
7 current stable.
8
9 Thanks for the work.
10 - John
11
12
13 On Wed, 2005-06-22 at 13:52 +0100, Daniel Drake wrote:
14 > This provides an easier way for kernel-2 users to apply genpatches.
15 >
16 > In the attached ebuild example, ck-sources-2.6.12_p2.ebuild, all that is
17 > needed is:
18 >
19 > K_WANT_GENPATCHES="base"
20 > K_GENPATCHES_VER="1"
21 >
22 > The above will translate to genpatches-2.6.12-1.base.tar.bz2
23 > The only other thing you need to do is add $GENPATCHES_URI to SRC_URI and then
24 > you will get genpatches applied with unipatch.
25 >
26 > Any comments?
27 > plain text document attachment (ck-sources-2.6.12_p2.ebuild)
28 > # Copyright 1999-2005 Gentoo Foundation
29 > # Distributed under the terms of the GNU General Public License v2
30 > # $Header: /var/cvsroot/gentoo-x86/sys-kernel/ck-sources/ck-sources-2.6.11_p10.ebuild,v 1.1 2005/06/13 02:07:56 marineam Exp $
31 >
32 > K_PREPATCHED="yes"
33 > UNIPATCH_STRICTORDER="yes"
34 > K_NOUSENAME="yes"
35 > K_WANT_GENPATCHES="base"
36 > K_GENPATCHES_VER="1"
37 > ETYPE="sources"
38 > inherit kernel-2
39 > detect_version
40 >
41 > # A few hacks to set ck version via _p instead of -r
42 > MY_P=${P/_p*/}
43 > MY_PR=${PR/r/-r}
44 > MY_PR=${MY_PR/-r0/}
45 > EXTRAVERSION=-ck${PV/*_p/}${MY_PR}
46 > KV_FULL=${OKV}${EXTRAVERSION}
47 > KV_CK=${KV_FULL/-r*/}
48 > detect_version
49 >
50 > IUSE="ck-server"
51 > if use ck-server; then
52 > CK_PATCH="patch-${KV_CK}-server.bz2"
53 > else
54 > CK_PATCH="patch-${KV_CK}.bz2"
55 > fi
56 >
57 > UNIPATCH_LIST="${DISTDIR}/${CK_PATCH}"
58 >
59 > DESCRIPTION="Full sources for the Stock Linux kernel and Con Kolivas's high performance patchset"
60 > HOMEPAGE="http://members.optusnet.com.au/ckolivas/kernel/"
61 > SRC_URI="${KERNEL_URI} ${GENPATCHES_URI}
62 > ck-server? ( http://ck.kolivas.org/patches/2.6/${OKV}/${KV_CK}/patch-${KV_CK}-server.bz2 )
63 > !ck-server? ( http://ck.kolivas.org/patches/2.6/${OKV}/${KV_CK}/patch-${KV_CK}.bz2 )"
64 >
65 > KEYWORDS="~x86 ~amd64"
66 >
67 > pkg_postinst() {
68 > postinst_sources
69 >
70 > einfo "The ck patchset is tuned for desktop usage."
71 > einfo "To better tune the kernel for server applications add"
72 > einfo "ck-server to your use flags and reemerge ck-sources"
73 > }
74 >

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies