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

Bug#647028: [buildd-tools-devel] Bug#529281: sbuild and the Distribution field in .changes



On Sat, Oct 29, 2011 at 04:24:01PM +0000, Thorsten Glaser wrote:
> = sbuild side =
> 
> Apparently, sbuild is used by buildds and developers, with differing
> needs. There should be a switch to sbuild, which buildd calls but
> developers don’t, that enables Distribution overriding (for example
> for binNMUs to packages in testing that were uploaded to unstable in
> the first place), and the default should be that it doesn’t override
> the field.

We certainly have an existing mechanism which may be set in .sbuildrc
or sbuild.conf:

$sbuild_mode = "buildd|user"

This does not currently encompass Distribution handling, but could
be made to do so.

> That is, specifying the distribution (e.g. unstable) to sbuild would
> still be mandatory (so this wouldn’t entirely solve #529281), but by
> default (unless buildd), this value would NOT be copied into the Di-
> stribution field of the .changes file – instead it would behave like
> cowbuilder (which uses dpkg-genchanges) and copy the field from the
> package’s changelog.
> This is especially useful for developers building _local_ packages
> in e.g. a sid or stable chroot, to prevent them from accidentally
> uploading them to Debian, but also to avoid the case of forgetting
> to change away UNRELEASED before uploading.

In the last few releases, I've refactored local building to allow
this.  sbuild itself only operates on source packages; previously
local building required generating the source package and then
operating on the .dsc.  We now (internally) only deal with .dscs.
Local building is done at the top level prior to creating and running
a build job.  The implication of this change is that it's now possible
to run dpkg-parsechangelog and change the distribution default when
building locally.  This is the case right now.

This still doesn't solve the problem of building a local .dsc,
which would require an unpack of the source package to determine
the distribution, but does solve it for unpacked sources.
Adding support for using a .changes file in place of a .dsc is
still on my TODO, list.  Once a .changes is accepted, we could
only permit setting the distribution in buildd mode.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.



Reply to: