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

Re: empty Build-Depends-Indep in debhelper errors



Control: reassign -1 apt

Hi Mark,

On Mon, 13 Jun 2022 11:26:13 -0500 Mark Esler <mark.esler@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


Reply to: