List Info

Thread: How to know CONTENTS in pkg_postinst/pkg_prerm/pkg_postrm




How to know CONTENTS in pkg_postinst/pkg_prerm/pkg_postrm
user name
2007-12-17 08:19:15
Hi portage gurus,

is there a defined way for pkg_*{inst,rm} to know which
CONTENTS have
been added/removed/replaced ?

For pkg_preinst(), "$" is available to know
what will be "added" or
"replaced", but I want to know for

pkg_postinst: what has been   "added" or
"replaced"
pkg_prerm:    what will be  "removed" or
"replaced"
pkg_postrm:   what has been "removed" or
"replaced"

Sometimes I've seen environment variable $,
containing the
contents of var/db/pkg/<cat>/<pkg>/CONTENTS,
sometimes there was "$"
pointing to var/db/pkg/<cat>/<pkg>, so I was
able to read "$"/ORIGIN.

Or do you have any better idea on how to handle that AIX
shared
libraries inside archive libraries than currently is done in
prefix
using ugly hooks[1] ?

For some background eventually look at that 'shared objects'
part at
gcc's platform specific install site[2].

[1] http://overlays.gentoo.org/proj/alt/browser/trunk/prefi
x-overlay/profiles/default-prefix/aix/profile.bashrc?rev=140
09
[2] ht
tp://gcc.gnu.org/install/specific.html#x-ibm-aix

Thank you!
/haubi/
-- 
Michael Haubenwallner
Gentoo on a different level

-- 
gentoo-portage-devgentoo.org mailing list


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )