Turn test deps from package under test into versioned dependencies
Dependencies on binary packages coming from the package under test
(synth_deps) are turned into versioned dependencies. E.g., if src:foo
is the package under test, and src:foo builds bin:bar, then a test
dependency on bar (possibly coming from @ expansion) is turned into a
dependency on bar (= VERSION), where VERSION is the candidate version
according to the configured priorities.
This is needed to:
- ensure that the right version is installed
(
apt-get satisfy bardoes not upgrade bar if the dependency is already satisfied) - to always be strict on the package under
test binaries, even if the fallback mechanism or
--no-strict-pinningrelax the configured pinning.
Closes: #1052119
This changes touches some delicate logic and requires a careful review.