Bug#787093: autopkgtest: dpkg-deb chokes with build profiles in Build-Depends:
that patch just drops the restriction formula (the part between the <>
"brackets"). Have a look in the example I gave in this email:
http://lists.debian.org/20150528142653.2580.4450 at hoothoot
to see how this leads to wrong results.
Instead, autopkgtest should parse and evaluate the build dependencies with
their restriction formula as if no build profiles are active.
To my knowledge, the only logic to do this properly currently exists in
dpkg-dev, apt and dose3. Since you are already using Dpkg::Deps::deps_parse()
in ./runner/adt-run you could just re-use the same method in ./lib/testdesc.py
For a testcase you might want to try:
+ def test_builddeps_with_build_profiles(self):
+ (ts, skipped) = self.call_parse(
+ 'Tests: t\nDepends: @, @builddeps@',
+ 'Source: nums\nBuild-Depends: bd1, bd2 <stage1> <cross>\n'
+ 'Package: one\nArchitecture: any')
+ self.assertEqual(ts.depends, ['one (>= 0~)', 'bd1',
I also added autopkgtest to the list in the spec: https://wiki.debian.org/BuildProfileSpec
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes