[debhelper-devel] Bug#879762: debhelper: fails to parse debian/control files with leading blank lines

James Cowgill jcowgill at debian.org
Wed Oct 25 13:57:06 UTC 2017


Source: debhelper
Version: 10.10
Severity: serious
Control: found -1 10.10.4

Hi,

As of debhelper 10.10, debhelper cannot parse debian/control files with
blank lines before the first paragraph. I originally noticed this when
attemping (and failing) to build golang-1.9 which has a comment at the
top of its debian/control file.

Example running on the debhelper source itself:

$ sed -i '1i\\' debian/control
$ dpkg-buildpackage -T clean
dpkg-buildpackage: info: source package debhelper
dpkg-buildpackage: info: source version 10.10.4
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Niels Thykier <niels at thykier.net>
dpkg-buildpackage: info: host architecture amd64
 debian/rules clean
./run dh clean --without autoreconf --with build-stamp
dh: could not find Source: line in control file.
debian/rules:13: recipe for target 'clean' failed
make: *** [clean] Error 25
dpkg-buildpackage: error: debian/rules clean subprocess returned exit status 2

I bisected it to this commit:
commit 087be1a300581b989aa38227693a8a6f112408f9 (refs/bisect/bad)
Author: Niels Thykier <niels at thykier.net>
Date:   Sat Sep 16 14:51:53 2017 +0000

    Add minimal R³ support for debhelper
    
    Signed-off-by: Niels Thykier <niels at thykier.net>

Thanks,
James

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20171025/c9576adb/attachment-0001.sig>


More information about the debhelper-devel mailing list