[buildd-tools-devel] Bug#658379: sbuild: Use dpkg-buildpackage --changes option to override distribution

Johannes Schauer josch at debian.org
Thu Dec 24 00:06:59 UTC 2015


Control: severity -1 wishlist
Control: retitle -1 sbuild: Use dpkg-buildpackage --changes-option option to override distribution

Hi,

On Thu, 02 Feb 2012 15:22:17 +0000 Roger Leigh <rleigh at debian.org> wrote:
> This will save rewriting the .changes, and make sbuild simpler.

The right option to dpkg-buildpackage would be:

--changes-option=-DDistribution=$value

The relevant piece of code can be found in lib/Sbuild/Build.pm after
$self->log_subsection("Changes") at around line 1841.

This opportunity could be used to also replace the filling of the @cfiles array
with proper parsing of the .changes file using Dpkg::Control and then
extracting the Files field directly instead of relying on a regex which
hopefully gets the right field (but sometimes doesnt - see #808560)

> Also see if we can set the version to permit NMUs without altering the
> changelog.

I do not see how this would be possible using dpkg-buildpackage options as
debian/changelog has to be altered as that ends up in the final binary
packages.

cheers, josch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20151224/4f760676/attachment.sig>


More information about the Buildd-tools-devel mailing list