[debhelper-devel] Debhelper patch for supporting Build-Profiles field

Joey Hess joeyh at debian.org
Thu Feb 20 17:15:40 UTC 2014


Johannes Schauer wrote:
> When trying to build this I got:
> 
> dpkg-gencontrol: error: must specify package since control info has many (builds-only-stage1 builds-not-stage1)
> dh_gencontrol: dpkg-gencontrol -ldebian/changelog -Tdebian/builds-only-stage1.substvars -Pdebian/builds-only-stage1 returned exit code 255
> 
> The following change to debhelper fixed my problem:
> 
> diff --git a/dh_gencontrol b/dh_gencontrol
> index 32b8563..5d02445 100755
> --- a/dh_gencontrol
> +++ b/dh_gencontrol
> @@ -66,9 +66,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
>         
>         # Generate and install control file.
>         my @command="dpkg-gencontrol";
> -       if (getpackages() > 1) {
> -               push @command, "-p$package";
> -       }
> +       push @command, "-p$package";
>         doit(@command, "-l$changelog", "-T$substvars", 
>                 "-P$tmp",@{$dh{U_PARAMS}});
> 
> Maybe this is not the correct fix, but I wanted to bring up the issue before
> the next debhelper version is released.

Ok, I suppose that dpkg-gencontrol might eventually learn about the
field and stop thinking there are multiple packages to build, but I
don't really see any reason not to make that change.

(The commit from 2002 about this if statement being added is not
very helpful: "This makes it a bit more flexible in some cases."
I tend to ignore past-me when he makes statements like that without
sustantiation.)

-- 
see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20140220/18bba528/attachment-0001.sig>


More information about the debhelper-devel mailing list