From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.105.134.102] (helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1Dl82s-0006cf-SB for garchives@archives.gentoo.org; Wed, 22 Jun 2005 16:25:47 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j5MGPBRe004790; Wed, 22 Jun 2005 16:25:11 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j5MGPAbY005785 for ; Wed, 22 Jun 2005 16:25:11 GMT Received: from [83.218.5.39] (helo=dogmatix.willow.local) by smtp.gentoo.org with esmtpa (Exim 4.43) id 1Dl82p-0005v9-4v for gentoo-kernel@lists.gentoo.org; Wed, 22 Jun 2005 16:25:43 +0000 Subject: Re: [gentoo-kernel] kernel-2.eclass: Easier way to use genpatches in ebuilds From: John Mylchreest To: gentoo-kernel@lists.gentoo.org In-Reply-To: <42B95F0D.1040408@gentoo.org> References: <42B95F0D.1040408@gentoo.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-8n1a3I4fpZQ7OPHnljJn" Date: Wed, 22 Jun 2005 17:24:50 +0100 Message-Id: <1119457490.32703.77.camel@localhost> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-kernel@gentoo.org Reply-to: gentoo-kernel@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 X-Archives-Salt: c59ca92d-4597-4284-a1d8-5d7f2436c105 X-Archives-Hash: e4ef86cde5367c15b11ab2ec066ea17d --=-8n1a3I4fpZQ7OPHnljJn Content-Type: text/plain Content-Transfer-Encoding: quoted-printable This approach is fine with me, anything which makes life easier. I have attached the kernel-2 from my overlay which as per bug #96510 If you agree with the idea, (its been tested) then please feel free to merge and commit. if you don't like the prerm stuff, just ditch it and apply to the current stable. Thanks for the work. - John On Wed, 2005-06-22 at 13:52 +0100, Daniel Drake wrote: > This provides an easier way for kernel-2 users to apply genpatches. >=20 > In the attached ebuild example, ck-sources-2.6.12_p2.ebuild, all that is > needed is: >=20 > K_WANT_GENPATCHES=3D"base" > K_GENPATCHES_VER=3D"1" >=20 > The above will translate to genpatches-2.6.12-1.base.tar.bz2 > The only other thing you need to do is add $GENPATCHES_URI to SRC_URI and= then > you will get genpatches applied with unipatch. >=20 > Any comments? > plain text document attachment (ck-sources-2.6.12_p2.ebuild) > # Copyright 1999-2005 Gentoo Foundation > # Distributed under the terms of the GNU General Public License v2 > # $Header: /var/cvsroot/gentoo-x86/sys-kernel/ck-sources/ck-sources-2.6.1= 1_p10.ebuild,v 1.1 2005/06/13 02:07:56 marineam Exp $ >=20 > K_PREPATCHED=3D"yes" > UNIPATCH_STRICTORDER=3D"yes" > K_NOUSENAME=3D"yes" > K_WANT_GENPATCHES=3D"base" > K_GENPATCHES_VER=3D"1" > ETYPE=3D"sources" > inherit kernel-2 > detect_version >=20 > # A few hacks to set ck version via _p instead of -r > MY_P=3D${P/_p*/} > MY_PR=3D${PR/r/-r} > MY_PR=3D${MY_PR/-r0/} > EXTRAVERSION=3D-ck${PV/*_p/}${MY_PR} > KV_FULL=3D${OKV}${EXTRAVERSION} > KV_CK=3D${KV_FULL/-r*/} > detect_version >=20 > IUSE=3D"ck-server" > if use ck-server; then > CK_PATCH=3D"patch-${KV_CK}-server.bz2" > else > CK_PATCH=3D"patch-${KV_CK}.bz2" > fi >=20 > UNIPATCH_LIST=3D"${DISTDIR}/${CK_PATCH}" >=20 > DESCRIPTION=3D"Full sources for the Stock Linux kernel and Con Kolivas's = high performance patchset" > HOMEPAGE=3D"http://members.optusnet.com.au/ckolivas/kernel/" > SRC_URI=3D"${KERNEL_URI} ${GENPATCHES_URI} > ck-server? ( http://ck.kolivas.org/patches/2.6/${OKV}/${KV_CK}/patch-${K= V_CK}-server.bz2 ) > !ck-server? ( http://ck.kolivas.org/patches/2.6/${OKV}/${KV_CK}/patch-${= KV_CK}.bz2 )" >=20 > KEYWORDS=3D"~x86 ~amd64" >=20 > pkg_postinst() { > postinst_sources >=20 > einfo "The ck patchset is tuned for desktop usage." > einfo "To better tune the kernel for server applications add" > einfo "ck-server to your use flags and reemerge ck-sources" > } >=20 --=-8n1a3I4fpZQ7OPHnljJn Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBCuZDSz7mlh8wQzGMRAlMNAJ94jqKfxfWZ8TAP2OlyOTWhyFwJTgCfQbKo dbigBsLGmTiyZqcu3fYUG9Q= =2jRd -----END PGP SIGNATURE----- --=-8n1a3I4fpZQ7OPHnljJn-- -- gentoo-kernel@gentoo.org mailing list