Bug#787093: autopkgtest: dpkg-deb chokes with build profiles in Build-Depends:
Antonio Terceiro
terceiro at debian.org
Sat May 30 11:35:25 UTC 2015
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.
Indeed, thanks.
I am attaching an updated patch.
--
Antonio Terceiro <terceiro at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Reduce-build-profiles-when-installing-dependencies.patch
Type: text/x-diff
Size: 1361 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20150530/89c9cc60/attachment.patch>
-------------- 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/20150530/89c9cc60/attachment.sig>
More information about the autopkgtest-devel
mailing list