Add option to specify required package options #206

Closed
DragonSA opened this Issue Apr 18, 2012 · 6 comments

Comments

Projects
None yet
2 participants
Member

DragonSA commented Apr 18, 2012

When installing a package (either via USE_PACKAGE_DEPENDS from port or via a script, such as portbuilder) add option to specify which options are required and about install if those options are not met.

I propose a switch (for example -c) where one specified the port's options (for example: -c "FOO on;BAR off").

Owner

bapt commented Apr 19, 2012

Good idea but will be for pkgng > 1.0, feature freeze is it effect, so push this for pkg 1.1 to which sub command do you want to add this?

I think improving pkg query -e for that will be better imho

Member

DragonSA commented Apr 20, 2012

The man pages for `pkg query' don't specify what -e does. What does it do? (Also, the man pages say 'cm %i', which I expect is supposed to be '%i' in bold, I don't speak man-format [yet]... so I cannot fix it).

For what I was thinking adding a normal pattern (e.g. %O) that returns the port's options is sufficient. Would this count as feature completing (and not a new feature, thus qualifying for pkg 1.1 ;-])?

The only other issue I see is that there is no way to query package information from repositories (perhaps a -R switch?).

Owner

bapt commented Apr 20, 2012

All you are asking except maybe %O need to check is in the git version, and no adding %O is not considered as a new feature so it could be suitable for 1.0 :)

-R == pkg rquery (new in to be released beta12)

Member

DragonSA commented Apr 20, 2012

Yes, all I need is '%O'. And with the new -R option I am sorted.

I also think this is a cleaner solution to what I was originally proposing.

Owner

bapt commented Apr 20, 2012

it is not -R but the rquery subcommand but yes it is it :)

Owner

bapt commented Apr 21, 2012

%O and rquery are in this is closed then

@bapt bapt closed this Apr 21, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment