* [gentoo-user] Hooks for Portage 2.1?
@ 2006-09-24 21:05 Jerry McBride
2006-09-24 23:16 ` Bo Ørsted Andresen
0 siblings, 1 reply; 10+ messages in thread
From: Jerry McBride @ 2006-09-24 21:05 UTC (permalink / raw
To: gentoo-user
Well... it's time I revisited my /etc/portage/bashrc file, now that Portage
2.1 is vogue. My old bashrc doesn't work anymore and things have changed
sufficiently with 2.1 that I need some help... documentation.
Would anyone happen to know where the API for Portage 2.1, that explains the
new hook framework layout?
Thanks.
Jerry
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Hooks for Portage 2.1?
2006-09-24 21:05 [gentoo-user] Hooks for Portage 2.1? Jerry McBride
@ 2006-09-24 23:16 ` Bo Ørsted Andresen
2006-09-24 23:34 ` Jerry McBride
2006-09-29 21:03 ` ps
0 siblings, 2 replies; 10+ messages in thread
From: Bo Ørsted Andresen @ 2006-09-24 23:16 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 479 bytes --]
On Sunday 24 September 2006 23:05, Jerry McBride wrote:
> Well... it's time I revisited my /etc/portage/bashrc file, now that Portage
> 2.1 is vogue. My old bashrc doesn't work anymore and things have changed
> sufficiently with 2.1 that I need some help... documentation.
>
> Would anyone happen to know where the API for Portage 2.1, that explains
> the new hook framework layout?
I'm not sure such documentation exists... What do you want to do?
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Hooks for Portage 2.1?
2006-09-24 23:16 ` Bo Ørsted Andresen
@ 2006-09-24 23:34 ` Jerry McBride
2006-09-24 23:48 ` Bo Ørsted Andresen
2006-09-29 21:03 ` ps
1 sibling, 1 reply; 10+ messages in thread
From: Jerry McBride @ 2006-09-24 23:34 UTC (permalink / raw
To: gentoo-user
On Sunday 24 September 2006 19:16, Bo Ørsted Andresen wrote:
> On Sunday 24 September 2006 23:05, Jerry McBride wrote:
> > Well... it's time I revisited my /etc/portage/bashrc file, now that
> > Portage 2.1 is vogue. My old bashrc doesn't work anymore and things have
> > changed sufficiently with 2.1 that I need some help... documentation.
> >
> > Would anyone happen to know where the API for Portage 2.1, that explains
> > the new hook framework layout?
>
> I'm not sure such documentation exists... What do you want to do?
I had a bash script that would simply delete the archives downloaded to
distfiles, after the emerge completed. Really a handy thing to have,
managed my distfiles automaticly. It doesn't work anymore since the upgrade
to portage 2.1.x.
I could fix it, but the hooks have either moved or have been eliminated in
favor of some other mechanism. Hence my need for documentation or tips...
Jerry
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Hooks for Portage 2.1?
2006-09-24 23:34 ` Jerry McBride
@ 2006-09-24 23:48 ` Bo Ørsted Andresen
2006-09-25 8:30 ` Neil Bothwick
0 siblings, 1 reply; 10+ messages in thread
From: Bo Ørsted Andresen @ 2006-09-24 23:48 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1366 bytes --]
On Monday 25 September 2006 01:34, Jerry McBride wrote:
> On Sunday 24 September 2006 19:16, Bo Ørsted Andresen wrote:
> > On Sunday 24 September 2006 23:05, Jerry McBride wrote:
> > > Well... it's time I revisited my /etc/portage/bashrc file, now that
> > > Portage 2.1 is vogue. My old bashrc doesn't work anymore and things
> > > have changed sufficiently with 2.1 that I need some help...
> > > documentation.
> > >
> > > Would anyone happen to know where the API for Portage 2.1, that
> > > explains the new hook framework layout?
> >
> > I'm not sure such documentation exists... What do you want to do?
>
> I had a bash script that would simply delete the archives downloaded to
> distfiles, after the emerge completed. Really a handy thing to have,
> managed my distfiles automaticly. It doesn't work anymore since the upgrade
> to portage 2.1.x.
>
> I could fix it, but the hooks have either moved or have been eliminated in
> favor of some other mechanism. Hence my need for documentation or tips...
I'm not really sure I get this right. Did you want to keep your distdir empty
after each merge or did you want to get rid of sources when they are no
longer needed? If the latter why don't you use eclean from
app-portage/gentoolkit? If you wanted something completely different then
please elaborate...
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Hooks for Portage 2.1?
2006-09-24 23:48 ` Bo Ørsted Andresen
@ 2006-09-25 8:30 ` Neil Bothwick
0 siblings, 0 replies; 10+ messages in thread
From: Neil Bothwick @ 2006-09-25 8:30 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 289 bytes --]
On Mon, 25 Sep 2006 01:48:14 +0200, Bo Ørsted Andresen wrote:
> If you wanted something completely different then
> please elaborate...
Or post the script so we can try to see where it goes wrong.
--
Neil Bothwick
Old hitchhikers never die-they just throw in the towel.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Hooks for Portage 2.1?
2006-09-24 23:16 ` Bo Ørsted Andresen
2006-09-24 23:34 ` Jerry McBride
@ 2006-09-29 21:03 ` ps
2006-09-30 1:12 ` Bo Ørsted Andresen
1 sibling, 1 reply; 10+ messages in thread
From: ps @ 2006-09-29 21:03 UTC (permalink / raw
To: gentoo-user
hi,
> > Would anyone happen to know where the API for Portage 2.1, that explains
> > the new hook framework layout?
>
> I'm not sure such documentation exists... What do you want to do?
i would like to have a script (usage e.g. "emerge_patch package path/patch_file")
which would emerge a given package and apply given patch after source unpack phase.
as i understood some time ago the hooks could be used for it, but i havent found
any hint how to use them.
pavel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Hooks for Portage 2.1?
2006-09-29 21:03 ` ps
@ 2006-09-30 1:12 ` Bo Ørsted Andresen
2006-09-30 17:32 ` ps
0 siblings, 1 reply; 10+ messages in thread
From: Bo Ørsted Andresen @ 2006-09-30 1:12 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 633 bytes --]
On Friday 29 September 2006 23:03, ps@twin.jikos.cz wrote:
> i would like to have a script (usage e.g. "emerge_patch package
> path/patch_file") which would emerge a given package and apply given patch
> after source unpack phase. as i understood some time ago the hooks could be
> used for it, but i havent found any hint how to use them.
I don't think the hooks are useful for that. Why not just copy the ebuild to
an overlay and apply the patch in the ebuild in the overlay? I think [1]
tells you everything you need to know to do that?
[1] http://gentoo-wiki.com/HOWTO_Create_an_Updated_Ebuild
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Hooks for Portage 2.1?
2006-09-30 1:12 ` Bo Ørsted Andresen
@ 2006-09-30 17:32 ` ps
2006-09-30 17:52 ` Bo Ørsted Andresen
0 siblings, 1 reply; 10+ messages in thread
From: ps @ 2006-09-30 17:32 UTC (permalink / raw
To: gentoo-user
> I don't think the hooks are useful for that.
i have been told to use these two:
post_src_unpack/pre_src_compile
(but dont know how).
> Why not just copy the ebuild to
> an overlay and apply the patch in the ebuild in the overlay?
basically because its tedious to make new ebuild for each new version for
a given package when i have some particular patch i always want to apply.
pavel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Hooks for Portage 2.1?
2006-09-30 17:32 ` ps
@ 2006-09-30 17:52 ` Bo Ørsted Andresen
2006-09-30 18:08 ` ps
0 siblings, 1 reply; 10+ messages in thread
From: Bo Ørsted Andresen @ 2006-09-30 17:52 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 764 bytes --]
On Saturday 30 September 2006 19:32, ps@twin.jikos.cz wrote:
> > I don't think the hooks are useful for that.
>
> i have been told to use these two:
> post_src_unpack/pre_src_compile
> (but dont know how).
>
> > Why not just copy the ebuild to
> > an overlay and apply the patch in the ebuild in the overlay?
>
> basically because its tedious to make new ebuild for each new version for
> a given package when i have some particular patch i always want to apply.
Hmm... Well, if you want to apply foo.patch on category/name all you really
need to do should be something like:
# mkdir -p /etc/portage/env/category && echo "post_src_unpack() {
epatch /absolute/path/to/foo.patch
}" >> /etc/portage/env/category/name
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Hooks for Portage 2.1?
2006-09-30 17:52 ` Bo Ørsted Andresen
@ 2006-09-30 18:08 ` ps
0 siblings, 0 replies; 10+ messages in thread
From: ps @ 2006-09-30 18:08 UTC (permalink / raw
To: gentoo-user
> Hmm... Well, if you want to apply foo.patch on category/name all you really
> need to do should be something like:
>
> # mkdir -p /etc/portage/env/category && echo "post_src_unpack() {
> epatch /absolute/path/to/foo.patch
> }" >> /etc/portage/env/category/name
>
thanks a lot :))
even that emerge_patch script could be done using this.
pavel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-09-30 18:16 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-24 21:05 [gentoo-user] Hooks for Portage 2.1? Jerry McBride
2006-09-24 23:16 ` Bo Ørsted Andresen
2006-09-24 23:34 ` Jerry McBride
2006-09-24 23:48 ` Bo Ørsted Andresen
2006-09-25 8:30 ` Neil Bothwick
2006-09-29 21:03 ` ps
2006-09-30 1:12 ` Bo Ørsted Andresen
2006-09-30 17:32 ` ps
2006-09-30 17:52 ` Bo Ørsted Andresen
2006-09-30 18:08 ` ps
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox