[buildd-tools-devel] Bug#620112: Bug#620112: Generate binNMU changelogs deterministically for multiarch support

Roger Leigh rleigh at codelibre.net
Mon Apr 4 21:08:17 UTC 2011


tags 620112 + fixed-upstream pending
thanks

On Wed, Mar 30, 2011 at 04:17:20AM -0400, Anders Kaseorg wrote:
> Package: sbuild
> Version: 0.60.1-1
> Tags: patch
> 
> According to https://wiki.ubuntu.com/MultiarchSpec#Binary%20NMUs , 
> although a Multi-Arch: same package may not be binNMU’d on individual 
> architectures, it should be possible to schedule a binNMU on all 
> architectures at once, and have the resulting packages remain 
> co-installable.  However, this does not quite work right now for a silly 
> reason: sbuild generates a different timestamp for the binNMU changelog 
> entry in each build, and the differing changelog.gz files break 
> co-installability.
> 
> This fixes the problem by generating the timestamp in a deterministic way: 
> we just copy the timestamp from the previous changelog entry.  (Since the 
> source has not changed since that time, it seems like as good a time as 
> any to write into the changelog.)

Many thanks for the patch.  I've applied it to sbuild git master.
It required a couple of tweaks to work on the master branch rather
than the version it was made for, but other than that it's working
just fine.  Should be released shortly.

NB. In the future, one thing I'd like to do is maybe use
Dpkg::Control::Index (type CTRL_CHANGELOG) to avoid the need to
directly invoke dpkg-parsechangelog, which should make things a
bit more flexible--we just access the fields directly.

I might also provide e.g. a --binNMU-date=$date option to allow
the person doing the binNMU (or the buildd database) to set a
fixed version for all the builds.


Many thanks,
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20110404/05c3a404/attachment.pgp>


More information about the Buildd-tools-devel mailing list