On Sun, 2011-05-15 at 10:29 -0700, Alan Coopersmith wrote:
> On 05/14/11 05:39 PM, Rinaldo DiGiorgio wrote:
> > WARNING pkglint.action005.1 obsolete dependency check skipped:
> unable to find dependency pkg:/system/library/c++/[email protected]
> for pkg://java-nightly/library/java/[email protected],5.11-0.166
>
> That's not saying they are obsolete - read it again. The check to see if it's
> obsolete had to be skipped because it couldn't find that package in either
> your repo (the one specified with the -l flag) or a repo you provided to
> reference with a -r flag.
>
> Try adding "-r http://ipkg.us.oracle.com/solaris11/dev/" to your pkglint
> flags.
I'd just add to what Alan says here with some commentary on this check.
The warning itself is annoying, but worth having: if you mistakenly add
a dependency on a non-existent package, then your package will be
impossible to install, so this warning can help to point out that
(fairly severe) error condition.
Running with a reference repository can be time-consuming though, and
potentially something you'd want to avoid doing frequently.
A solution pointed out elsewhere, would be to maintain a whitelist of
known-to-be-missing dependencies (because they're in other repositories,
and you're not using -r) for each package.
Then you could compare this whitelist against the warnings printed here,
allowing you to focus on any previously unknown warnings.
Given the fact that this question comes up quite a bit, I wonder would
it be worth promoting this particular warning to its own checker.
Perhaps something like:
pkglint.action00x All package dependencies are known
then we would stop reporting the warning as part of the obsolete check,
and users could choose to disable that check altogether (via pkglintrc)
if they wanted to. I'd still be inclined to leave this as a warning by
default rather than an error, perhaps once 18285 is fixed, allowing
users to change that warning to an error if they so desire.
The existing messaging about package obsoletion is really clouding the
issue.
cheers,
tim
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss