Gentoo Archives: gentoo-portage-dev

From: Marius Mauch <genone@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] please explain use of hooks
Date: Sun, 02 Mar 2008 11:40:38
Message-Id: 20080302123312.4b887a35@sheridan.genone.homeip.net
In Reply to: Re: [gentoo-portage-dev] please explain use of hooks by Jonas Bernoulli
1 On Sun, 2 Mar 2008 11:18:39 +0100
2 "Jonas Bernoulli" <jonas@×××××××××.cc> wrote:
3
4 > And if not the handbook this should really go into the portage
5 > manpage.
6 >
7 > bashrc
8 >
9 > If needed, this file can be used to set up a
10 > special environment for ebuilds, different from
11 > the standard root environment. The syntax is the
12 > same as for any other bash script.
13 > + One thing you can do here is define phase hooks.
14 > + A phase hook function name begins with a pre_ or post_ prefix to
15 > indicate that it will be called before or after one of the ebuild
16 > phases. The prefix is followed by the name of the ebuild function that
17 > the hook will be associated with. + For example, a hook named
18 > pre_src_compile will be called before src_compile, and a hook named
19 > post_src_compile will be called after src_compile.
20
21 Care to write a patch? (nobody likes to edit manpages)
22
23 > postsync.d should also be documented there.
24
25 No, as it isn't used by portage itself.
26
27 > All in all now that I have looked at the documentation installed with
28 > portage I think it is obsolete. Not in the sense that it is outdated
29 > but everything in it is documented elsewhere already or should be
30 > moved there.
31
32 Well, it's horribly incomplete and a work in progress. Eventually it
33 will replace the manpages (in the sense that manpages will be generated
34 from the same source). And authorative documentation (which isn't
35 exactly the same as a specification) should be kept with the
36 implementation, and that's not the case with the dev handbook/manual.
37
38 > If some developers an the list agree with me and welcome me to do so
39 > then I could file a bug(s) for those changes.
40
41 No.
42
43 Marius
44
45 --
46 Public Key at http://www.genone.de/info/gpg-key.pub
47
48 In the beginning, there was nothing. And God said, 'Let there be
49 Light.' And there was still nothing, but you could see a bit better.

Attachments

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