On 10/28/11 14:02, Brock Pytlik wrote:
On 10/28/11 13:05, Chris Quenelle wrote:
pkglint should flag scripts that use binaries which are mediated links.
And it should mention "mediated links".
That's an interesting rfe, and probably one worth putting in. Unfortunately, was
a recent addition and hasn't been fully integrated with other features (like
pkgdepend and pkglint).

Certainly keying off mediated links makes more sense than my check-deps.pl
which hardcodes for the specific cases of /usr/bin/perl & /usr/bin/python.

A quick run of it over snv_175b found 756 files using /usr/bin/python or
/bin/python, but it's not clever enough to notice a bunch of those are in
/usr/lib/python2.6/* so that the #! line is less relevant - there's only
345 outside that directory.

It also found 662 using /usr/bin/perl, 569 of which are outside /usr/perl5.

Lists available on request to anyone who wants to try to clean some of those
up now, in anticipation of future pkglint warnings.  And if/when those do
arrive, I'd expect consolidations would be likely to use transforms such as:
<transform dir path=/usr/lib/python.* -> default pkglint.<something> true>
to help silence the false alarms.

--
        -Alan Coopersmith-        [email protected]
         Oracle Solaris Platform Engineering: X Window System

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to