Hi Brock,
On 02/17/09 22:30, Brock Pytlik wrote:
jan damborsky wrote:
Hi guys,
I would like to ask what is the recommended approach
to determine platform that particular package supports.
I am currently thinking about following types of
queries I would like to run on IPS repo.
Thanks for the input. It's very helpful to know what queries people
are actually going to use.
You are welcome !
Currently there's no way to do these queries using the current search
protocol.
At the time being, could I indirectly determine this kind of information
for particular package by inspecting output of 'pkg contents -m -r'
command ?
If I understand correctly I could take a look at 'variant.arch' and
'arch' ?
I'm currently working on the next generation of the search protocol
which may or may not allow
* search for Sparc-only (e.g. SUNWkfb) or x86-only (e.g.
NVDAgraphics) packages
I'm still debating whether or not to allow a "not query". I have some
ideas about how to do it, but I'm not sure what the practical
implications will look like. If we allow NOT in our query, this will
be an easy query to write. If not, it'll be possible to get this
information, but not from within a single query. Essentially, you'd
ask for all packages with an x86 variant and all packages with x86 and
Sparc variants, and diff those lists.
From end-user point of view, I think that 'not query' will be less used,
but as you pointed out it seems to internally simplify some type of queries.
* search for packages supporting both Sparc as well as x86 platforms
(e.g. SUNWzfskr)
* search for platform independent packages (like man pages)
I'm not sure we have a notion of "platform independent". We have a
notion of "found on sparc and x86".
I feel those two cases are a little bit different. 'platform
independent' means that
the same file works across all supported and potentially new platforms
without need to accommodate it, e.g. recompile. Those might be for instance
non-executable text files.
On the other hand, 'found on Sparc and x86' means that you have separate
files for each platform - in our case one for Sparc, one for x86.
I'll let Bart or someone else clarify if I've gotten that wrong. You
will be able to search for packages which have x86 and Sparc actions
within them (though currently there's no plan to enable a search
saying, "all actions within these packages must contain x86 and Sparc
variants")
I think that having support for 'platform independent' might make
this kind of operations easier as it provides you with additional
information, since even if all actions supports both platforms, it
wouldn't necessarily mean that those actions are 'platform independent'.
Thank you,
Jan
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss