On Tue, Jul 17, 2018 at 07:55:56PM +0200, Paul Gevers wrote:
> > From: Samuel Thibault <sthiba...@debian.org>

> > Depends: hwloc-nox | hwloc
> > 
> > but it seems that autopkgtest does not understand that?
> 
> It is 100% supposed to support that. However, I think we have hit a bug
> here with new functionality. One can see in the log that the initial
> install went flawless. Only after that, during the second run this
> fails. In version 5.4 we added this second run to fix bug #867081. The
> second run explicitly ask apt to install packages that are in the test
> depends from ones own package to avoid packages with Version Provides to
> be from other packages. However, we appear to have missed this use case
> and are asking apt to install two conflicting packages.

Indeed; I think the resulting call is

 apt install hwloc-nox hwloc

which is nonsensical.

The relevant code in lib/testdesc.py:_parse_debian_depends() :

            for dep in alt_group_str.split('|'):
                (pkg, version) = _debian_check_dep(testname, dep)
                if pkg in my_packages_no_arch:
                    adtlog.debug('marked %s as a synthesised dependency' % pkg)
                    _synthesize_deps(synthdeps, dep, testbed_arch)
            deps.append(alt_group_str)

I think breaking out of the for loop after the first time
we call _synthesize_deps() would work?
-- 
Niko Tyni   nt...@debian.org

Reply via email to