public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Neil Bothwick <neil@digimed.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] working with overlays
Date: Sat, 23 Dec 2006 00:04:32 +0000	[thread overview]
Message-ID: <20061223000432.4f880070@krikkit.digimed.co.uk> (raw)
In-Reply-To: <200612222009.56010.benno.schulenberg@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2083 bytes --]

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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2006-12-23  0:11 UTC|newest]

Thread overview: 123+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-18 14:47 [gentoo-user] Is Gentoo healthy? Grant
2006-12-18 16:25 ` Mrugesh Karnik
2006-12-18 16:36   ` Grant
2006-12-18 17:50     ` Bo Ørsted Andresen
2006-12-18 18:28       ` Grant
2006-12-18 17:07   ` Richard Broersma Jr
2006-12-18 17:17     ` Danyelle Gragsone
2006-12-18 17:49       ` Alan McKinnon
2006-12-18 18:35         ` Grant
2006-12-18 23:15           ` Iain Buchanan
2006-12-19  7:10           ` Alan McKinnon
2006-12-18 23:14         ` Iain Buchanan
2006-12-20  1:58   ` Grant
2006-12-20  2:23     ` Colleen Beamer
2006-12-20  4:43       ` Dale
2006-12-20  9:16       ` Andrey Gerasimenko
2006-12-20 14:33         ` Jeff Rollin
2006-12-20 23:03         ` Bryan Østergaard
2006-12-21  4:43           ` Grant
2006-12-21  9:00           ` Andrey Gerasimenko
2006-12-21 19:51             ` Bryan Østergaard
2006-12-20  6:18     ` Uwe Thiem
2006-12-20  9:43       ` Neil Bothwick
2006-12-20 10:46         ` Uwe Thiem
2006-12-20 11:14           ` Boyd Stephen Smith Jr.
2006-12-20 11:11         ` Boyd Stephen Smith Jr.
2006-12-20 11:37           ` Bo Ørsted Andresen
2006-12-20 11:54           ` Neil Bothwick
2006-12-20 19:18         ` Steve Dibb
2006-12-20 23:12           ` Dale
2006-12-21  8:54           ` Neil Bothwick
2006-12-22  1:10             ` Bo Ørsted Andresen
2006-12-22  9:08               ` Neil Bothwick
2006-12-22 10:40                 ` Jeff Rollin
2006-12-22 11:31                   ` Hemmann, Volker Armin
2006-12-22 11:36                     ` Jeff Rollin
2006-12-22 11:45                       ` Hemmann, Volker Armin
2006-12-20  9:50     ` Neil Bothwick
2006-12-20 14:07       ` Grant
2006-12-20 14:36         ` Hans-Werner Hilse
2006-12-18 17:27 ` Hemmann, Volker Armin
2006-12-18 18:54   ` Grant
2006-12-18 19:12     ` Mrugesh Karnik
2006-12-18 19:33       ` Andrew Gaydenko
2006-12-18 20:29       ` Philip Webb
2006-12-18 21:07         ` Roman Naumann
2006-12-18 22:00           ` Neil Walker
2006-12-18 22:26           ` Neil Bothwick
2006-12-18 19:18     ` Daniel da Veiga
2006-12-18 19:58       ` Grant
2006-12-18 20:26         ` Brandon Edens
2006-12-18 22:23           ` Neil Bothwick
2006-12-19  2:22             ` Bo Ørsted Andresen
2006-12-19 11:21               ` Neil Bothwick
2006-12-18 22:37         ` Neil Bothwick
2006-12-18 23:03           ` John J. Foster
2006-12-18 23:18             ` Jeff Rollin
2006-12-19 10:05               ` Neil Bothwick
2006-12-20 14:35                 ` Jeff Rollin
2006-12-18 21:27     ` Hemmann, Volker Armin
2006-12-18 23:45       ` Iain Buchanan
2006-12-18 22:23     ` Bryan Østergaard
2006-12-19  6:42       ` Uwe Thiem
2006-12-18 22:34     ` Neil Bothwick
2006-12-19  0:01       ` Philip Webb
2006-12-19  1:13         ` Daryl Mathison
2006-12-20 14:56       ` Mark Knecht
2006-12-20 16:13         ` Alan McKinnon
2006-12-20 16:54           ` Daniel da Veiga
2006-12-20 17:16           ` Mark Knecht
2006-12-20 17:28             ` Nelson, David (ED, PAR&D)
2006-12-20 17:42               ` Mark Knecht
2006-12-20 17:58                 ` Jeff Rollin
2006-12-20 18:05                 ` Bo Ørsted Andresen
2006-12-21  7:20                 ` Alan McKinnon
2006-12-21 15:55                   ` Jeff Rollin
2006-12-21 16:07                     ` Dale
2006-12-21 16:12                       ` Jeff Rollin
2006-12-21 16:48                         ` Nelson, David (ED, PAR&D)
2006-12-21 16:56                           ` Jeff Rollin
2006-12-20 17:53               ` Bo Ørsted Andresen
2006-12-20 17:39             ` Bo Ørsted Andresen
2006-12-21  8:00               ` [gentoo-user] OT: " Andrey Gerasimenko
2006-12-21  8:33                 ` Alan McKinnon
2006-12-21  8:47                   ` Nelson, David (ED, PAR&D)
2006-12-21  9:25                 ` Neil Bothwick
2006-12-21  9:43                   ` Andrey Gerasimenko
2006-12-21  9:52                     ` Bo Ørsted Andresen
2006-12-21 11:23                       ` Andrey Gerasimenko
2006-12-21 13:28                         ` Danyelle Gragsone
2006-12-20 19:09             ` [gentoo-user] " Benno Schulenberg
2006-12-20 19:39               ` Mark Knecht
2006-12-20 20:49                 ` Uwe Thiem
2006-12-21  8:52                 ` Neil Bothwick
2006-12-21  7:15               ` Alan McKinnon
2006-12-21 21:28                 ` Benno Schulenberg
2006-12-21 22:38                   ` Bo Ørsted Andresen
2006-12-22  0:26                   ` Mark Knecht
2006-12-22  1:02                     ` Bo Ørsted Andresen
2006-12-22 15:45                     ` Benno Schulenberg
2006-12-22 16:55                       ` Neil Bothwick
2006-12-22  7:16                   ` Alan McKinnon
2006-12-22  9:06                     ` Neil Bothwick
2006-12-22  9:35                       ` Alan McKinnon
2006-12-22 10:42                         ` Neil Bothwick
2006-12-22 19:09                       ` [gentoo-user] working with overlays Benno Schulenberg
2006-12-23  0:04                         ` Neil Bothwick [this message]
2006-12-24 11:53                           ` Benno Schulenberg
2007-01-01 17:31                         ` Bo Ørsted Andresen
2007-01-01 20:52                           ` Benno Schulenberg
2006-12-23 11:47                       ` [gentoo-user] Is Gentoo healthy? Bo Ørsted Andresen
2006-12-23 14:44                         ` Neil Bothwick
2006-12-23 16:11                           ` Boyd Stephen Smith Jr.
2006-12-23 16:11                           ` Hemmann, Volker Armin
2006-12-22 16:02                     ` Benno Schulenberg
2006-12-20 21:25             ` Hemmann, Volker Armin
2006-12-19  7:22     ` Alan McKinnon
2006-12-19  8:27   ` Andrey Gerasimenko
2006-12-19 13:48     ` Bryan Østergaard
2006-12-19 23:27     ` Iain Buchanan
2006-12-19 17:23 ` [gentoo-user] " Grant Edwards
2006-12-19 17:36   ` Justin Findlay
2006-12-20  2:00   ` Grant

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061223000432.4f880070@krikkit.digimed.co.uk \
    --to=neil@digimed.co.uk \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox