Hi

On 24-03-2022 12:06, Paul Gevers wrote:
Hi Guillem,

On 24-03-2022 11:50, Guillem Jover wrote:
Hmm, but that means autopkgtest will then miss packages that are
listed in Recommends fields on the built packages it is supposed to be
testing, no?

Indeed. But at least that's what is documented :(.

I think the correct answer here is to take those fields from the built
packages, which are to be tested, then you'd get accurate
dependencies, and no need to have to deal with substvars. Is that
alternative you had in mind and already discarded?

Indeed, but there's no nice interface. E.g. I looked at the output of apt-cache depends (with --no-pre-depends --no-dependsĀ  --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances) but then we miss versions and worse, we need to carefully figure out which packages we're interested in and which version of those packages we should ask apt-cache. This makes it a rather ugly piece of code in autopkgtest.

And if autopkgtest is asked to build the binaries, apt doesn't yet even knows about them the moment we want to know these Recommends. So we'd need a different interface for that code path.

Paul

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to