Your message dated Mon, 18 May 2015 23:20:13 +0000
with message-id <[email protected]>
and subject line Bug#779679: fixed in libvirt-python 1.2.15-1
has caused the Debian Bug report #779679,
regarding libvirt-python: please make the build reproducible
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
779679: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=779679
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: libvirt-python
Version: 1.2.9-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: randomness
X-Debbugs-Cc: [email protected]

Hi,

While working on the "reproducible builds" effort [1], we have noticed
that libvirt-python could not be built reproducibly.

The attached patch removes randomess from the build system. Once
applied, libvirt-python can be built reproducibly in our reproducible
toolchain.

 [1]: https://wiki.debian.org/ReproducibleBuilds


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
diff -urNad 
libvirt-python.orig/libvirt-python-1.2.9/debian/patches/reproducible_build 
libvirt-python/libvirt-python-1.2.9/debian/patches/reproducible_build
--- libvirt-python.orig/libvirt-python-1.2.9/debian/patches/reproducible_build  
1970-01-01 01:00:00.000000000 +0100
+++ libvirt-python/libvirt-python-1.2.9/debian/patches/reproducible_build       
2015-03-03 22:40:36.200504422 +0000
@@ -0,0 +1,55 @@
+--- libvirt-python-1.2.9.orig/generator.py
++++ libvirt-python-1.2.9/generator.py
+@@ -1792,7 +1792,7 @@ def buildWrappers(module):
+             value = int(value)
+         except ValueError:
+             value = float('inf')
+-        return value
++        return value, data[0]
+ 
+     # Resolve only one level of reference
+     def resolveEnum(enum, data):
+@@ -1877,7 +1877,7 @@ def qemuBuildWrappers(module):
+     #
+     # Generate functions directly, no classes
+     #
+-    for name in list(qemu_functions.keys()):
++    for name in sorted(qemu_functions.keys()):
+         func = nameFixup(name, 'None', None, None)
+         (desc, ret, args, file, mod, cond) = qemu_functions[name]
+         fd.write("def %s(" % func)
+@@ -1927,10 +1927,10 @@ def qemuBuildWrappers(module):
+     #
+     # Generate enum constants
+     #
+-    for type,enum in list(qemu_enums.items()):
++    for type,enum in sorted(qemu_enums.items()):
+         fd.write("# %s\n" % type)
+         items = list(enum.items())
+-        items.sort(key=lambda i: int(i[1]))
++        items.sort(key=lambda i: (int(i[1]), i[0]))
+         for name,value in items:
+             fd.write("%s = %s\n" % (name,value))
+         fd.write("\n")
+@@ -1990,7 +1990,7 @@ def lxcBuildWrappers(module):
+     #
+     # Generate functions directly, no classes
+     #
+-    for name in list(lxc_functions.keys()):
++    for name in sorted(lxc_functions.keys()):
+         func = nameFixup(name, 'None', None, None)
+         (desc, ret, args, file, mod, cond) = lxc_functions[name]
+         fd.write("def %s(" % func)
+@@ -2040,10 +2040,10 @@ def lxcBuildWrappers(module):
+     #
+     # Generate enum constants
+     #
+-    for type,enum in list(lxc_enums.items()):
++    for type,enum in sorted(lxc_enums.items()):
+         fd.write("# %s\n" % type)
+         items = list(enum.items())
+-        items.sort(key=lambda i: int(i[1]))
++        items.sort(key=lambda i: (int(i[1]), i[0]))
+         for name,value in items:
+             fd.write("%s = %s\n" % (name,value))
+         fd.write("\n")
diff -urNad libvirt-python.orig/libvirt-python-1.2.9/debian/patches/series 
libvirt-python/libvirt-python-1.2.9/debian/patches/series
--- libvirt-python.orig/libvirt-python-1.2.9/debian/patches/series      
1970-01-01 01:00:00.000000000 +0100
+++ libvirt-python/libvirt-python-1.2.9/debian/patches/series   2015-03-03 
22:40:32.160324047 +0000
@@ -0,0 +1 @@
+reproducible_build

--- End Message ---
--- Begin Message ---
Source: libvirt-python
Source-Version: 1.2.15-1

We believe that the bug you reported is fixed in the latest version of
libvirt-python, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Guido Günther <[email protected]> (supplier of updated libvirt-python package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 18 May 2015 23:42:21 +0200
Source: libvirt-python
Binary: python-libvirt python3-libvirt
Architecture: source amd64
Version: 1.2.15-1
Distribution: unstable
Urgency: medium
Maintainer: Guido Günther <[email protected]>
Changed-By: Guido Günther <[email protected]>
Description:
 python-libvirt - libvirt Python bindings
 python3-libvirt - libvirt Python 3 bindings
Closes: 779679
Changes:
 libvirt-python (1.2.15-1) unstable; urgency=medium
 .
   * [42694b7] Adjust gbp.conf for experimental
   * [a7a5386] New upstream version 1.2.12
   * [984d13c] Require libvirt 1.2.12 to get all features enabled
   * [c7637c1] New upstream version 1.2.15
   * [36857e9] Require libvirt 1.2.15
   * [f00217a] Make build reproducible.  Thanks to Chris Lamb for the patch
     (Closes: #779679)
Checksums-Sha1:
 31145538e5d1231400a5032eea0527aa4c3ec30f 2041 libvirt-python_1.2.15-1.dsc
 eaacc2aed6c6f474c1f7d83f52d8d6771fb53c6d 166128 
libvirt-python_1.2.15.orig.tar.gz
 91bcfd9663577cb5a4989b51b7c66b36ab4f5e2c 4056 
libvirt-python_1.2.15-1.debian.tar.xz
 79460f41eea76c873f820ad5ec52920d7b5ef426 180138 
python-libvirt_1.2.15-1_amd64.deb
 d172b27a3c7a8d6dc0e7f80a1fd6ec493c8c1e50 179150 
python3-libvirt_1.2.15-1_amd64.deb
Checksums-Sha256:
 a84ab30b3cafff80eb292020ac9213e9196404770770ec1eeede248813751962 2041 
libvirt-python_1.2.15-1.dsc
 9a6dfbd487d49f887a41aca4bfb1b4e043fd9fbdfc041252cae84023f5c387ba 166128 
libvirt-python_1.2.15.orig.tar.gz
 6037a43843aecb347d83d6b1e017b07896935a6182a196ff36fe4e8377702eca 4056 
libvirt-python_1.2.15-1.debian.tar.xz
 664595f594cca59112a0502de1bdc8ef00622cf0d015e700ecbbe633b292f64b 180138 
python-libvirt_1.2.15-1_amd64.deb
 0834cbfb38d0cb31d3674c046e0eabf62ed43f2542efb620da8a6db67998c34a 179150 
python3-libvirt_1.2.15-1_amd64.deb
Files:
 bd7d44858f4254147766eb1b34338216 2041 python optional 
libvirt-python_1.2.15-1.dsc
 f13b566b54fe71ec0f26992aee11dd09 166128 python optional 
libvirt-python_1.2.15.orig.tar.gz
 5b3a2bcac7e6a3e233a0ab52dad29a32 4056 python optional 
libvirt-python_1.2.15-1.debian.tar.xz
 a725f7888f870eb7e18c0993dbf35039 180138 python optional 
python-libvirt_1.2.15-1_amd64.deb
 1bd0eeb7904818e2da934f44df3ed271 179150 python optional 
python3-libvirt_1.2.15-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIVAwUBVVps4Qe4t7DqmBILAQg5zxAAxWJ1tvpkdKh+i9hfSe3X4um+YcntUwkX
d7+fbPd7RrfbNdUIVhqEl7Ea+TIyfgCNIE/RUvUUpCmwKSc+ZpMkX0FmYgzlgNX2
iMdWIw+8J11FScMxwcqwGWMu4zHWF2iz3ErHBbz23nBT8RtQwocuylTCGQUdZ95u
E+m+O1L2Xacx6JLhxEHm1HFFtx9Fcv/8aFnxkMkeJuHB/3elMeit2PbI8Y59KvCA
VDXnQCUBjdY/P3LGn7/BIQHV9SBsRqrA2MZNUgZIraYy9SBgvqTyqoAyjb/pKsao
sTmEPDsE9SSAGBp0wChlI+X0SeiXkDxe0/2FAnEDIZVlTRGFeLm1jCEJCsOY/Kf2
Wx9As9VmcXt2Zgh2xQQTc9uvn2RS5Z+IO9aZ0vsQ1sIGT4C89UIvz/huy1GZ+4Kt
33TBA+Vojk4ej6bKASntAmccHhca/8CfR6y6924l6At4h2v4cGeqWl1UK32+A/TW
EEjK53SXuN8HnwbLT07sbr8hISHYJoxK/dsghMA1tVjXrYQ5Bpe9WReTozAVtsnS
kI5kLi+QXYg44yQH12qbVPTEeQK7BLnlGq2JxcNjqmpHeD0b90hwKTRozR7JrCkg
K21+nRGB/MelyruCktoKWahPZ/zNE1A4H7js2jM7M0lkI7I2Vdr/3KAfRcEAFxF4
0sEgTeLOXxs=
=Z1hC
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to