Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] working with overlays
Date: Sat, 23 Dec 2006 00:11:35
Message-Id: 20061223000432.4f880070@krikkit.digimed.co.uk
In Reply to: Re: [gentoo-user] working with overlays by Benno Schulenberg
1 On Fri, 22 Dec 2006 20:09:55 +0100, Benno Schulenberg wrote:
2
3 > > Overlays are there specifically for people who need
4 > > something different from the standard portage tree. They are
5 > > hardly difficult to use,
6 >
7 > Not difficult, but it is clumsy:
8 >
9 > mkdir -p /usr/local/portage/category/package
10 > ## Dont't copy all ebuilds, just the one to be tweaked:
11
12 Unless you are really short of disk space, what's wrong with copying the
13 complete package directory - it makes life much simpler.
14
15 > cp /usr/portage/category/package/packag-x.y.z.ebuild /usr/local/portage/category/package/
16 > ## Copy all possible patches:
17 > cp
18 > -a /usr/portage/category/package/files /usr/local/portage/category/package/
19 > ## Copy the new patch too: cp
20 > package-foo-bar.patch /usr/local/portage/category/package/files/ ##
21 > Edit the ebuild and insert an 'epatch
22 > ${FILESDIR}/package-foo-bar.patch' command:
23 > vim /usr/local/portage/category/package/package-x.y.z.ebuild [search
24 > for src_unpack(), insert extra command at end, :wq] ## Recreate digest:
25 > ebuild /usr/local/portage/category/package/package-x.y.z.ebuild digest
26 > ## Finally, emerge the thing: emerge -1 package
27
28 If you just want to add a patch, you can do it with bashrc, no need to
29 mess with overlays: http://forums.gentoo.org/viewtopic-t-339019.html
30
31
32 > Not hard, but a nuisance. Of course one could write a script that
33 > automates all those seven steps into a single command, but it has
34 > proven a bit beyond my skills (the finding of the category when just
35 > saying 'ovlay.sh package', not to mention the insertion of an epatch
36 > command). Bo once said (or was it someone else?) he had such a
37 > script.
38
39 There's a script floating around that will copy an ebuild to your overlay
40 and bump its version. Adding patches is easier with bashrc. But neither
41 of these are related to the original question, which was about
42 preserving old versions. for that you only need at most one mkdir and
43 exactly one cp.
44
45
46 --
47 Neil Bothwick
48
49 Bookmark - A means of returning to where you got lost last time.

Attachments

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

Replies

Subject Author
Re: [gentoo-user] working with overlays Benno Schulenberg <benno.schulenberg@×××××.com>