On Fri, Nov 23, 2007 at 12:33:55PM +0530, Venky wrote:

> On Thu, Nov 22, 2007 at 11:01:04PM -0600, Shawn Walker wrote:
> > I expect to seem them because that is the standard Sun has set forth
> > for package naming.
> 
> True, and it was necessary for the old SVR4 packages.  Are they
> still relevant now?

No, and we're getting rid of the need for it.  One of our next steps will
be to refactor and rename all of the existing packages in the WOS, and
we'll be gleefully dropping SUNW (and the other prefixes), using the
authority portion of the FMRI to serve the same purpose.

Once that's done, matching can be done either as string component matches a
la smf (i.e., "blah" matches "pkg://foo/bar/blah", but not
"pkg://foo/blah/bar" and not "pkg://foo/bar/blah-something"), or with glob
characters.  Suggestions on tuning that are welcome -- I prefer the current
strict match (along with tab completion), but I may very well be in the
minority.

So assuming that the php5 package is reasonably well named -- say,
pkg://application/php5, then you'll be able to say "pkg install php5" and
it'll just work (well, assuming there aren't any other packages which can
be abbreviated this way).  If we call it pkg://application/php5.0.1, then
you'd have to use "pkg install php5*", and we if we call it
pkg://application/pee-aich-pee-five, then you'll probably have to run "pkg
search php5" first to get a list of potential FMRIs.  We probably can even
get it working so that you only have to do "pkg install /usr/bin/php5".

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

Reply via email to