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, > > Not difficult, but it is clumsy: > > 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/category/package/ > ## Copy all possible patches: > cp > -a /usr/portage/category/package/files /usr/local/portage/category/package/ > ## 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. -- Neil Bothwick Bookmark - A means of returning to where you got lost last time.
signature.asc
Description: PGP signature