On Freitag, 18. November 2016, 01:42:20 CET wrote MyungJoo Ham:
On Donnerstag, 17. November 2016, 12:18:18 CET wrote Andreas Schwab:
On Nov 17 2016, Adrian Schroter
wrote: On Donnerstag, 17. November 2016, 11:39:16 CET wrote Jan Engelhardt:
On Thursday 2016-11-17 02:53, MyungJoo Ham wrote: > >When there are multiple packages available for a specific "Requires:" entity during OBS build, >even if it is directed to a single package with "Recommends:", OBS says
Because recommends does not specify a hard requirement, it is not directing. You have to use Prefer lines in prjconf.
Well, I can follow MyungJoo with his proposal. It is just hard to make this change now, because we may risk that older builds are not the same anymore.
IIUC, that would only change build configs that were unresolvable before, if existing prefer declarations still take precedence.
yes, but you would have more built rpms then and they would suddenly appear in repos where you did not expect it before.
So, we would need to find a way to make this active only by opt-in.
If we are to enable "Recommends" for resolving "have choice for" with prjconf, do you suppose to add something like: "ResolveRecommends: 1"?
It would be a flag for BuildFlags, maybe something like
BuildFlags: UseRecommendsForChoices
I've updated commits according to your comments: https://github.com/openSUSE/perl-BSSolv/pull/7 https://github.com/openSUSE/obs-build/pull/303 Cheers, MyungJoo