1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
Mike Kelly wrote: |
5 |
> Hello, |
6 |
> |
7 |
> This is that patch I had mentioned earlier on #gentoo-portage. It works |
8 |
> by sourcing every script found in |
9 |
> /var/libexec/portage/hooks/{pre,post}_${EBUILD_PHASE} at the |
10 |
> appropriate time. |
11 |
> |
12 |
> In my case, I feel this functionality would be very useful as it allows |
13 |
> for me to integrate my GLEP 27 implementation into portage without |
14 |
> portage needing to worry about my implementation specifics, which may |
15 |
> well change in later versions. I am sure there are other practical ways |
16 |
> in which these hooks could be used. |
17 |
> |
18 |
> Patch at: http://soc.gentoo.org/viewcvs.py/*checkout*/glep0027/patches/portage-hooks.patch |
19 |
> |
20 |
> See bug# 141215. |
21 |
> |
22 |
|
23 |
I like the idea. My main concern is that, like /etc/portage/bashrc, this creates lots of potential for foreign code to interfere with the internal workings of the ebuild environment. At a minimum, I think there should be something in the `emerge --info` output that indicates whether or not any phase hooks exist. |
24 |
|
25 |
Traditionally, configurable files that affect portage behavior go mostly in /etc/portage. I see that your intention is to make /var/libexec/portage/hooks/ a location for third-party packages to install hooks, so it makes sense to keep those separate from hooks that the user might install. I know that portage-utils currently installs a post-sync hook in /etc/portage/postsync.d/q-reinitialize, so there is some inconsistency there. We need to develop a consistent policy for appropriate locations of files like these. |
26 |
|
27 |
Zac |
28 |
-----BEGIN PGP SIGNATURE----- |
29 |
Version: GnuPG v1.4.4 (GNU/Linux) |
30 |
|
31 |
iD8DBQFEwrpF/ejvha5XGaMRAhqOAKDaSHilxUI50zsYRtyrSjgu6HfREgCdHB55 |
32 |
xKMmVreBNfnSymuHmUY09Q8= |
33 |
=fpbA |
34 |
-----END PGP SIGNATURE----- |
35 |
-- |
36 |
gentoo-portage-dev@g.o mailing list |