Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1012764: empty Build-Depends-Indep in debhelper errors

8 views
Skip to first unread message

Mark Esler

unread,
Jun 13, 2022, 12:40:04 PM6/13/22
to
Package: dehhelper
Version: 13.6ubuntu1

In the debian/control file setting Build-Depends-Indep to nothing
or whitespace will cause a build failure.

dh appears unable to parse an empty Build-Depends-Indep list:

E: Problem parsing dependency: Build-Depends-Indep
E: Unable to get build-dependency information for gccgo-6
ERROR: Something went wrong with automatic dependency resolution.

I am using Ubuntu 22.04, kernel 5.15.0-30-generic, with
debhelper 13.6ubuntu1.

Mark

Mark Esler

unread,
Jun 13, 2022, 1:20:04 PM6/13/22
to
This is for an older version of dh than stated in the initial bug report.
Occurs in at least 9.20160115ubuntu3.

Niels Thykier

unread,
Jun 13, 2022, 1:30:03 PM6/13/22
to
Control: reassign -1 apt

Hi Mark,

On Mon, 13 Jun 2022 11:26:13 -0500 Mark Esler <mark....@canonical.com>
wrote:
> Package: dehhelper
> Version: 13.6ubuntu1
>
> In the debian/control file setting Build-Depends-Indep to nothing
> or whitespace will cause a build failure.
>

That is an interesting special-case you found. Particularly because I
was certain it was not allowed at all and was ready to close the bug.
But then Debian Policy decided to throw this little gem in my direction:

"""
Empty field values are only permitted in source package control files
(debian/control). Such fields are ignored.
"""
(from §5.1)

> dh appears unable to parse an empty Build-Depends-Indep list:
>
> E: Problem parsing dependency: Build-Depends-Indep
> E: Unable to get build-dependency information for gccgo-6
> ERROR: Something went wrong with automatic dependency resolution.
>
> I am using Ubuntu 22.04, kernel 5.15.0-30-generic, with
> debhelper 13.6ubuntu1.
>
> Mark
>
>

However, none of those error messages are from debhelper. A codesearch
finds the second line in apt, so @deity tag you are it.

(For reference, I tried adding an empty Build-Depends-Indep and did a
full dpkg-buildpackage locally without any issues assuming build
dependencies were already installed. So I am pretty debhelper/13.7.2
and later works correctly in this case)

Thanks,
~Niels
0 new messages