[debhelper-devel] Bug#870713: debhelper appends -a after '--' in call to dh_gencontrol

Sean Whitton spwhitton at spwhitton.name
Fri Aug 4 13:19:22 UTC 2017


Package: debhelper
Version: 10.7.2
Severity: important

Hello,

When debhelper calls dh_gencontrol while building an arch-dependent
package, it appends -a to the command line.  This can mean that the -a
comes after '--', so it is not consumed by dh_gencontrol and is passed
on to dpkg-gencontrol, which does not understand -a.

For example:

       dh_installdeb -a
       dh_gencontrol -- -Ddh-elpa-Version=1.10 -a
    dpkg-gencontrol: error: unknown option '-a'

    Use --help for program usage information.
    dh_gencontrol: dpkg-gencontrol -ppython-notmuch -ldebian/changelog -Tdebian/python-notmuch.substvars -Pdebian/python-notmuch -UMulti-Arch -Ddh-elpa-Version=1.10 -a returned exit code 2

I believe that debhelper should ensure that the -a is inserted before
the '--'.

Thanks.

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (900, 'testing'), (100, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.11.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages debhelper depends on:
ii  autotools-dev            20161112.1
ii  binutils                 2.28-6
ii  dh-autoreconf            14
ii  dh-strip-nondeterminism  0.038-1
ii  dpkg                     1.18.24
ii  dpkg-dev                 1.18.24
ii  file                     1:5.30-1
ii  libdpkg-perl             1.18.24
ii  man-db                   2.7.6.1-2
ii  perl                     5.26.0-4
ii  po-debconf               1.0.20

debhelper recommends no packages.

Versions of packages debhelper suggests:
pn  dh-make  <none>

-- no debconf information

-- 
Sean Whitton
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20170804/8c0b33ef/attachment-0001.sig>


More information about the debhelper-devel mailing list