|
Originally Posted by youlle
|
oh forgot to mention base changed libs and base changes are easily removed:
|
Code:
|
cd /usr/share/lib
rm bango.so.4 #removed bango lib
cd ../man
rm -r bango-manual #removed bango manual pages |
you just have the problem your libraries are logged in Port's DB so thats whats screwed you over there, as removing via "rm" will screw your Ports DB up
|
Excellent! A reply from a PBI builder!
Youlle, my problem is is actually around the other way. If I use the DB to register package installation, then only packages that are no longer required should be removed.
My concern is, that if I used the script to
cd /usr/share/lib
rm bango.so.4 #removed bango lib
then all other applications that require bango.lib would fail from that point on - it's a one way street with base system libs, they can go in via a blind copy command, but can't come out in case another app uses them.
Thats why I used the pkg_add technique. What I found would happen, is that after adding ALL of the packages listed below (all dependencies for VLC player), then I can use pkg_delete from the PBI.removal-script.sh to just remove the VLC specific files, and leave all the libs behind intact. The PBI Package handler would then clean up all the icons and PBI specific changes.
If ALL PBI packages used this technique, I could have added all the packages below to the pkg_delete command, and it would only have taken out the ones that are NOT also being used by other PBI installed apps.
The only other system I can think of to maintain base system stability is the CHROOT technique I was exploring in another forum. This fully isolates ALL files into the /usr/local/Myprograms/ subdirs, even very complex programs like Firefox could find the pango libs etc in this new, independent stucture. The problem I ran into was getting X apps to have permission to talk to the current X session. Thats probably not a big deal for someone with a solid grounding in X, but I can't seen to get it to go : (
The only other option might be a recompile with static links as sugested by another forum poster.
Look at the dependencies below, and you will see why I don't feel it's possible to "rm" them, even just the individual libs VLC player requires - it would murder the base system support for ANY apps left needing gtk, wxgtk and pango support.
aalib-1.4.r5_1.tbz
atk-1.9.1.tbz
faad2-2.0_5,1.tbz
ffmpeg-0.4.9.p1_2.tbz
gnomehier-2.0_6.tbz
gtk-2.6.4_1.tbz
hicolor-icon-theme-0.5.tbz
liba52-0.7.4_1.tbz
libcddb-0.9.6.tbz
libcdio-0.72_1.tbz
libdv-0.103.tbz
libdvbpsi-0.1.4.tbz
libdvdcss-1.2.8_1.tbz
libdvdnav-0.1.9_1.tbz
libdvdread-0.9.4_1.tbz
libid3tag-0.15.0b_2.tbz
libmpeg2-0.4.0b_1.tbz
mpeg4ip-libmp4v2-1.1_1.tbz
pango-1.8.1.tbz
sdl-1.2.8,2.tbz
shared-mime-info-0.15_9.tbz
svgalib-1.4.3_4.tbz
transcode-1.0.0.b2_1.tbz
vcdimager-0.7.21_1.tbz
vlc-0.8.1_9.tbz
wxgtk-common-2.4.2_1.tbz
wxgtk2-2.4.2_6.tbz