Bug#787093: autopkgtest: dpkg-deb chokes with build profiles in Build-Depends:
Antonio Terceiro
terceiro at debian.org
Fri May 29 10:42:44 UTC 2015
Hi,
On Fri, May 29, 2015 at 02:52:10AM +0200, Guillem Jover wrote:
> Hi!
>
> On Thu, 2015-05-28 at 20:14:29 -0300, Antonio Terceiro wrote:
> > From 14e2a91d48397546d2cc303082322e49f41c57f8 Mon Sep 17 00:00:00 2001
> > From: Antonio Terceiro <terceiro at debian.org>
> > Date: Thu, 28 May 2015 20:10:23 -0300
> > Subject: [PATCH] Reduce build profiles when installing dependencies
>
> > Build-Depends: lines using build profiles cannot be transformed as-is to
> > Depends: lines. Luckily Dpkg::Deps already knows how to process build
> > profiles so we just need to tell it to do that.
>
> > diff --git a/runner/adt-run b/runner/adt-run
> > index 71255d0..b97e6c5 100755
> > --- a/runner/adt-run
> > +++ b/runner/adt-run
> > @@ -971,7 +971,8 @@ fi
> > perl = subprocess.Popen(['perl', '-'], stdin=subprocess.PIPE,
> > stdout=subprocess.PIPE)
> > code = '''use Dpkg::Deps;
> > - $dep = deps_parse('%s', reduce_arch => 1, host_arch => '%s');
> > + $dep = deps_parse('%s', reduce_arch => 1, host_arch => '%s',
> > + reduce_profiles => 1);
> > print $dep->output(), "\\n";
> > ''' % (deps, self.dpkg_arch)
>
> If this is indeed parsing Build-Depends, you probably also want
> “build_dep => 1” there.
Thanks for the tip.
In a part of the time, that code will be parsing Build-Depends that will
be turned into Depends: of a fake package that is installed to pull in test
dependencies. In that case, besides build_dep, is that anything else we
need to pass to be sure that the end result is compatible with Depends: ?
--
Antonio Terceiro <terceiro at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20150529/0d3a2578/attachment.sig>
More information about the autopkgtest-devel
mailing list