Pkg enhancing request

Matthew Seaman matthew at FreeBSD.org
Sun Mar 3 21:57:27 UTC 2013


On 03/03/2013 21:05, Alexander Yerenkow wrote:
> 2013/2/27 Alexander Yerenkow <yerenkow at gmail.com>
> 
>> I'd like to discuss adding to pkg meta info not only options which was
>> selected, but also default values
>> This would be useful in long shot - when pkg will find few repos contains
>> same package, but different options, it could show difference not only
>> between variants, but also between default
>>
>> Also, this could lead into new setting, or switch, like "install package
>> with default options", no matter which repo contains it.
>>
>> One more point, currently we have almost all meta-info about built
>> package, but not much info about port itself data, default options is
>> amongst them.
>>
>>
>>
> Any thoughts yet? :)

Hi, Alexander,

I think that recording the default options as well as the actual options
used to build a package is an idea with merit.  I'm not entirely
convinced though: one thing we need to worry about is the size of the
repository catalogue, so anything that gets added to the package
meta-data has to be well justified.

At the moment we're looking at more general provides/requires mechanisms
for expressing dependencies between ports.  Being able to require a
package with particular options set or unset is certainly part of that.
 But does knowing if the options settings are the defaults or not really
add anything?

I think I can modify the DB schema in a way to encode that data which
won't immediately double the size required for storing options related
data.  So I'll put that on my ToDo list -- might not happen very soon,
but I'll get round to it in the end.

This will require some changes to the ports and the way packages are
created there, which I can tell you from experience does take quite some
time to get into the tree.  It's also something that's can't go into the
current release branch of pkgng -- will have to wait for pkgng-1.1 at least.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 268 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-pkg/attachments/20130303/61269c5d/attachment.sig>


More information about the freebsd-pkg mailing list