From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1GxuUB-0003gZ-0v for garchives@archives.gentoo.org; Sat, 23 Dec 2006 00:11:35 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id kBN081u8019299; Sat, 23 Dec 2006 00:08:01 GMT Received: from desiato.digimed.co.uk (82-69-83-178.dsl.in-addr.zen.co.uk [82.69.83.178]) by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id kBN04biB013350 for ; Sat, 23 Dec 2006 00:04:37 GMT Received: from krikkit.digimed.co.uk (krikkit.digimed.co.uk [192.168.1.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by desiato.digimed.co.uk (Postfix) with ESMTP id 6444AAF8A7 for ; Sat, 23 Dec 2006 00:04:36 +0000 (GMT) Date: Sat, 23 Dec 2006 00:04:32 +0000 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] working with overlays Message-ID: <20061223000432.4f880070@krikkit.digimed.co.uk> In-Reply-To: <200612222009.56010.benno.schulenberg@gmail.com> References: <49bf44f10612180647g6ac243ebm9cfa8b79a5aeb3b5@mail.gmail.com> <200612220916.10280.alan@linuxholdings.co.za> <20061222090605.0c0a9a99@krikkit.digimed.co.uk> <200612222009.56010.benno.schulenberg@gmail.com> Organization: Digital Media Production X-Mailer: Claws Mail 2.7.0-rc2 (GTK+ 2.10.6; powerpc-unknown-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_pywgWdsN.ySGd2mhTFI.B/5"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Archives-Salt: eb18a25e-30bd-44c2-a52f-8a44954101b7 X-Archives-Hash: b0ed8a284147fa11b9d6f43c0d9e887a --Sig_pywgWdsN.ySGd2mhTFI.B/5 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 22 Dec 2006 20:09:55 +0100, Benno Schulenberg wrote: > > Overlays are there specifically for people who need > > something different from the standard portage tree. They are > > hardly difficult to use, >=20 > Not difficult, but it is clumsy: >=20 > mkdir -p /usr/local/portage/category/package > ## Dont't copy all ebuilds, just the one to be tweaked: Unless you are really short of disk space, what's wrong with copying the complete package directory - it makes life much simpler. > cp /usr/portage/category/package/packag-x.y.z.ebuild /usr/local/portage/c= ategory/package/ > ## Copy all possible patches: > cp > -a /usr/portage/category/package/files /usr/local/portage/category/packag= e/ > ## Copy the new patch too: cp > package-foo-bar.patch /usr/local/portage/category/package/files/ ## > Edit the ebuild and insert an 'epatch > ${FILESDIR}/package-foo-bar.patch' command: > vim /usr/local/portage/category/package/package-x.y.z.ebuild [search > for src_unpack(), insert extra command at end, :wq] ## Recreate digest: > ebuild /usr/local/portage/category/package/package-x.y.z.ebuild digest > ## Finally, emerge the thing: emerge -1 package If you just want to add a patch, you can do it with bashrc, no need to mess with overlays: http://forums.gentoo.org/viewtopic-t-339019.html > Not hard, but a nuisance. Of course one could write a script that > automates all those seven steps into a single command, but it has > proven a bit beyond my skills (the finding of the category when just > saying 'ovlay.sh package', not to mention the insertion of an epatch > command). Bo once said (or was it someone else?) he had such a > script. There's a script floating around that will copy an ebuild to your overlay and bump its version. Adding patches is easier with bashrc. But neither of these are related to the original question, which was about preserving old versions. for that you only need at most one mkdir and exactly one cp.=20 --=20 Neil Bothwick Bookmark - A means of returning to where you got lost last time. --Sig_pywgWdsN.ySGd2mhTFI.B/5 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFFjHKTum4al0N1GQMRAjZrAJ9apMUru2E/QATC9Psdwds7OwUjfQCdEZRm eg5vRrJOkkRCM9js0H3UKqU= =pz5L -----END PGP SIGNATURE----- --Sig_pywgWdsN.ySGd2mhTFI.B/5-- -- gentoo-user@gentoo.org mailing list