On Mon, Apr 07, 2008 at 10:43:54PM -0500, Mike Gerdts wrote:

> |     pkg.debug
> 
> Does the existence of this tag (potentially set to 0, false, or "hell
> no!") mean that it is a debug file?  Or should tags be typed so that
> we can can perhaps have true or false set?

There are three "values": true, false, and not present (meaning both).
Thus a package would have

    file path=kernel/drv/foo pkg.debug=true
    file path=kernel/drv/foo pkg.debug=false
    file path=kernel/drv/foo.conf

where if the package filter were "pkg.debug=true", the first and third
files would get installed, if the package filter were "pkg.debug=false",
the second and third files would get installed, and if the package filter
contained neither of those statements, the installation would fail (because
both the first two files would try to get installed, but they have the same
key attribute, so boom).

> |     XXX pkg.platform
> |
> |     XXX ISA (particularly need to know i386 on i86pc vs amd64 on i86pc)
> 
> How should I interpret XXX?

Needs work.

> What does platform mean - OpenSolaris/Linux/Windows or sun4v/sun4u or
> SUNW,Sun-Fire-T200?

The latter.

> Part of the smarts of pkg(1M) and similar utilities could be to know that
> packages with an FMRI starting with pkg://org.opensolaris/ for SunOS 5.11
> sparc should be found out http://pkg.opensolaris.org/SunOS/5.11/sparc.

Repositories are going to be one-OS only.  Depending on what you really
mean by "5.11", either it's part of the version string (the built-on
component) or it's the version of the "Solaris" incorporation, and "sparc"
is merely a tag on files in the packages.

> Since you don't necessarily know what architecture or OS build is
> being used in an image that is being installed,

We will know what architecture it is -- it has to be part of the image
creation, or we won't know what files to get from each package.

> it may make sense to encourage each package to have a dependency on a
> particular "release" package

Why not depend on the package(s) that actually provide the interfaces you
depend on?

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

Reply via email to