[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#787093: autopkgtest: dpkg-deb chokes with build profiles in Build-Depends:



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,
Guillem



Reply to: