On 02/15/12 13:08, David Sechrest wrote:

On Feb 15, 2012, at 12:53 PM, Shawn Walker wrote:

On 02/15/12 11:57, David Sechrest wrote:
I have my publisher search order configured as follows:

% pkg publisher
PUBLISHER TYPE STATUS URI
cacao origin online file:///var/tmp/delta/OpsCenterAgent/ac-archive.p5p/
solaris origin online http://pkg.oracle.com/solaris/release/

When I attempt to install /library/cacao it fails with:

% pkg install -nv /library/cacao
Creating Plan /
pkg install: No matching version of library/cacao can be installed:
Reject:
pkg://cacao/library/[email protected],5.11-0.175.1.4.0.0.0:20120207T165318Z
Reason: This version is excluded by installed incorporation
pkg://solaris/consolidation/cacao/[email protected],5.11-0.174.0.0.0.0.0:20110921T190516Z

However, the version required by the installed cacao-incorporation is
available from the solaris
publisher. I would have thought that even though the cacao publisher
is first in the search order
that if the required version couldn't be found there then the next
publisher in the list would
be searched for a compatible version. The manpages indicate that with
my config the cacao publisher
should be searched first but what I'm seeing is that it's not just
searched first, it's the only
pub searched. Is this a bug?

This is not a bug.

Searched first there means that it looks for the first publisher that
offers that package, and then stops if it finds a match based on the
specified input.

It's quite possible I missed this in the IPS dev guide and manpages but
otherwise IMHO that probably should be a little
more explicitly stated.

That's fine; feel free to file a man page bug in bugster under solaris/pkg/manpage.


Since you didn't specify a version, and you didn't specify a
publisher, only versions of /library/cacaco from the 'cacao' publisher
will be matched.

What if I don't know what version I need or which publisher has the
compatible version?

Normally, this isn't an issue.

But pkg list will tell you which publishers offer a package. In your case, since you know 'solaris' offers a version too, you could have done this:

  pkg install //solaris/library/cacao

...and it would have picked a compatible version for you.

There are very good reasons we follow publisher search order and stickiness though. Publisher search order is what allows the administrator to prevent versions from other publishers from being used by default.

This is important (as an example) if you provide your own version of Apache, and want to ensure that (by default) that is the only acceptable version for installs/updates.

-Shawn

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

Reply via email to