Opened 17 years ago
Last modified 11 years ago
#14648 new enhancement
Specifying a nonexistant variant during install should cause a warning
Reported by: | wsiegrist@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | MacPorts Future |
Component: | base | Version: | 1.7.0 |
Keywords: | Cc: | eirnym (Eir Nym), ralph@…, cooljeanius (Eric Gallager) | |
Port: |
Description
When installing a port, if the user specifies a variant which does not exist, a warning should appear. In debug mode, the usual "not provided" message is shown but its shown amongst the usual darwin and macosx variant warnings. Normal users who do not run in debug mode should be given a warning. This would help for people who want to install a port with a specific version of a variant (php4 versus php5 for example), but typo it and end up installing the wrong version. Since variants could be specified for the dependent ports themselves, perhaps a recursive check down all of the dependencies could be made before any fetching and warn is the variant is not found in any of the ports.
Change History (5)
comment:1 Changed 17 years ago by rhwood@…
comment:3 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ralph@… added |
---|---|
Keywords: | install variant warning removed |
Has duplicate #41680.
The difficulty is that, in a way, this is a feature. You can specify to install a port with a variant, and even if that port does not have that variant, it will be selected in any dependencies that have that variant (that aren't installed yet).
comment:4 Changed 11 years ago by ralph@…
Hmm. That sounds like it needs a different syntax. Anyway, at the very least, I believe it should issue a warning, so people who get it wrong at least known they got it wrong, even it continues to plough on...
Please exclude variants enumerated in the variants.conf file from this warning.