script: display files overwritten by different packages (and
adiscussion on devel/libtool13 and net/freeradius)
Oliver Eikemeier
eikemeier at fillmore-labs.com
Fri Apr 11 06:39:34 PDT 2003
In the spirit of "script: display the packages on a system with no
maintainer":
display files overwritten by different packages (needs
sysutils/portupgrade):
pkg_info -aqL | sort | uniq -c | awk '$1 != 1 { printf "%s: ", $2;
system("pkg_which "$2) }'
essentially, you can assume that you have to reinstall the other
packages when you delete one that uses a shared file.
For example libtool-1.3.4_4 and freeradius-0.7 both use
/usr/local/lib/libltdl.a
/usr/local/lib/libltdl.so
but devel/libtool13 assumes libltdl.so is libltdl.so.1 and
net/freeradius assumes libltdl.so is libltdl.so.4. Thats the reason why
pkg_which /usr/local/lib/libltdl.so
is not working properly: it uses File.realpath, which resolves symlinks,
so you get the owner of the file the symlink points to, not the symlink
itself.
Any comments? Should I file a bug report?
Have fun with scripts
Oliver
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2945 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20030411/54190147/smime.bin
More information about the freebsd-ports
mailing list