Bug#525779: [checks/shared-libs] warn about private libraries/plugins in /usr/lib

2009-04-30 Thread Russ Allbery
Raphael Geissert writes: > for f in /usr/lib/*so.*; > do nm -DC "$f" | grep -q "U virtual thunk" && echo "$f is private" > done > > Yields much better results Still false positives here. ea...@windlord:~$ for f in /usr/lib/*so.*; > do nm -DC "$f" | grep -q "U virtual thunk" && echo "$f is p

Bug#525779: [checks/shared-libs] warn about private libraries/plugins in /usr/lib

2009-04-30 Thread Raphael Geissert
Russ Allbery wrote: > Raphael Geissert writes: >> So far I've came up with: >> >> for f in /usr/lib/*so.*; do >> nm -DC "$f" | grep -q " virtual thunk" && echo "$f is private" >> done >> >> Which seems to give good results. It is based on the assumption that >> plugins use/implement virtual func

Bug#525779: [checks/shared-libs] warn about private libraries/plugins in /usr/lib

2009-04-27 Thread Russ Allbery
Raphael Geissert writes: > Sure, that's ok. I forgot about mangled symbols, nm should be called > with -DC, not just -D. Oh, I didn't know about that option. > So far I've came up with: > > for f in /usr/lib/*so.*; do > nm -DC "$f" | grep -q " virtual thunk" && echo "$f is private" > done > >

Bug#525779: [checks/shared-libs] warn about private libraries/plugins in /usr/lib

2009-04-27 Thread Raphael Geissert
Russ Allbery wrote: > Raphael Geissert writes: > >> It was basically that; requiring [^_] because some libs incorrectly >> export symbols that should not be exported (i.e. private). The >> assumption is that if no public symbol is exported then it is a >> plugin. > > Don't plugins have to export

Bug#525779: [checks/shared-libs] warn about private libraries/plugins in /usr/lib

2009-04-26 Thread Russ Allbery
Raphael Geissert writes: > It was basically that; requiring [^_] because some libs incorrectly > export symbols that should not be exported (i.e. private). The > assumption is that if no public symbol is exported then it is a > plugin. Don't plugins have to export symbols, though? All PAM modul

Bug#525779: [checks/shared-libs] warn about private libraries/plugins in /usr/lib

2009-04-26 Thread Raphael Geissert
On Sunday 26 April 2009 22:16:51 Russ Allbery wrote: > Raphael Geissert writes: > > Given the current pollution of /usr/lib of private libs/plugins it > > would be great if lintian warned about those. > > > > Probably something like the following (without the false positives and > > based on objdu

Bug#525779: [checks/shared-libs] warn about private libraries/plugins in /usr/lib

2009-04-26 Thread Russ Allbery
Raphael Geissert writes: > Given the current pollution of /usr/lib of private libs/plugins it > would be great if lintian warned about those. > > Probably something like the following (without the false positives and > based on objdump's output): > > for f in /usr/lib/*.so.* ; do >nm -D "$f"

Bug#525779: [checks/shared-libs] warn about private libraries/plugins in /usr/lib

2009-04-26 Thread Raphael Geissert
Package: lintian Version: 2.2.9 Severity: wishlist Hi, Given the current pollution of /usr/lib of private libs/plugins it would be great if lintian warned about those. Probably something like the following (without the false positives and based on objdump's output): for f in /usr/lib/*.so.* ;