1 |
Hi portage gurus, |
2 |
|
3 |
is there a defined way for pkg_*{inst,rm} to know which CONTENTS have |
4 |
been added/removed/replaced ? |
5 |
|
6 |
For pkg_preinst(), "${D}" is available to know what will be "added" or |
7 |
"replaced", but I want to know for |
8 |
|
9 |
pkg_postinst: what has been "added" or "replaced" |
10 |
pkg_prerm: what will be "removed" or "replaced" |
11 |
pkg_postrm: what has been "removed" or "replaced" |
12 |
|
13 |
Sometimes I've seen environment variable ${ORIGIN}, containing the |
14 |
contents of var/db/pkg/<cat>/<pkg>/CONTENTS, sometimes there was "${O}" |
15 |
pointing to var/db/pkg/<cat>/<pkg>, so I was able to read "${O}"/ORIGIN. |
16 |
|
17 |
Or do you have any better idea on how to handle that AIX shared |
18 |
libraries inside archive libraries than currently is done in prefix |
19 |
using ugly hooks[1] ? |
20 |
|
21 |
For some background eventually look at that 'shared objects' part at |
22 |
gcc's platform specific install site[2]. |
23 |
|
24 |
[1] http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/profiles/default-prefix/aix/profile.bashrc?rev=14009 |
25 |
[2] http://gcc.gnu.org/install/specific.html#x-ibm-aix |
26 |
|
27 |
Thank you! |
28 |
/haubi/ |
29 |
-- |
30 |
Michael Haubenwallner |
31 |
Gentoo on a different level |
32 |
|
33 |
-- |
34 |
gentoo-portage-dev@g.o mailing list |