[debhelper-devel] Bug#763766: debhelper: please implement the new build profile syntax

Johannes Schauer j.schauer at email.de
Fri Oct 10 16:16:02 UTC 2014


Hi,

Quoting Joey Hess (2014-10-09 19:09:47)
> If you can do it without failing when debhelper is used with an older version
> of dpkg-dev, then that seems the right approach. Otherwise, it will make
> backporting debhelper harder.
> 
> Maybe just avoid loading Dpkg::BuildProfiles unless DEB_BUILD_PROFILES is
> set?

instead of checking DEB_BUILD_PROFILES, I check whether the package contains
the Build-Profiles field because even if the DEB_BUILD_PROFILES variable is
set, it has no effect (as far as debhelper is concerned) without a binary
package stanza with a non-empty Build-Profiles field.

Please see the attached patch. I tested in under Wheezy and it seems to do the
right thing and throw an error when encountering a package with a
Build-Profiles field and work as usual otherwise.

Thanks!

cheers, josch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-use-libdpkg-perl-to-parse-and-evaluate-build-profile.patch
Type: text/x-diff
Size: 5036 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20141010/5576b022/attachment-0001.patch>


More information about the debhelper-devel mailing list