Date: Fri, 11 Apr 2003 15:39:15 +0200 From: Oliver Eikemeier <eikemeier@fillmore-labs.com> To: FreeBSD ports <ports@FreeBSD.org> Cc: Akinori Musha <knu@FreeBSD.org> Subject: script: display files overwritten by different packages (and adiscussion on devel/libtool13 and net/freeradius) Message-ID: <3E96C583.5030504@fillmore-labs.com>
next in thread | raw e-mail | index | archive | help
This is a cryptographically signed message in MIME format. --------------ms050001020409070600030801 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 --------------ms050001020409070600030801 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIII2jCC ArwwggIloAMCAQICAQIwDQYJKoZIhvcNAQEFBQAwSTELMAkGA1UEBhMCREUxGzAZBgNVBAoT EkZpbGxtb3JlIExhYnMgR21iSDEdMBsGA1UEAxMURmlsbG1vcmUgTGFicyBSb290Q0EwHhcN MDIwOTAyMDk0MjA0WhcNMTIwODMwMDk0MjA0WjBJMQswCQYDVQQGEwJERTEbMBkGA1UEChMS RmlsbG1vcmUgTGFicyBHbWJIMR0wGwYDVQQDExRGaWxsbW9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hYnMgR21iSDEdMBsGA1UEAxMURmlsbG1vcmUgTGFicyBVc2VyQ0ECAQIwXwYL KoZIhvcNAQkQAgsxUKBOMEkxCzAJBgNVBAYTAkRFMRswGQYDVQQKExJGaWxsbW9yZSBMYWJz IEdtYkgxHTAbBgNVBAMTFEZpbGxtb3JlIExhYnMgVXNlckNBAgECMA0GCSqGSIb3DQEBAQUA BIGAwsM4M4EKih0kQleaG2lvFnlVXSfD/hO1G/Q3W/occxi2ZxFVHewLlgVREkCjeSOPJLlH PZY+sVNje4YdcWLr4GnXXbANx8fSFFISElTRWs8gEPeaZr7RdPEQuCjjYa1k+O/G0HyRxKDn ZciFGLwmC19+0X6bx9IJqsoCrWUK17kAAAAAAAA= --------------ms050001020409070600030801--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E96C583.5030504>