[Pkg-linaro-lava-devel] Bug#844103: lava-server: please make the build reproducible

Chris Lamb lamby at debian.org
Sat Nov 12 14:42:27 UTC 2016


Source: lava-server
Version: 2016.11-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that lava-server could not be built reproducibly.

This is due to version.py parsing the version from the build path.


Patch attached.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/patches/reproducible_build.patch	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/reproducible_build.patch	2016-11-12 14:40:02.560929953 +0000
@@ -0,0 +1,15 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-11-12
+
+--- lava-server-2016.11.orig/version.py
++++ lava-server-2016.11/version.py
+@@ -37,6 +37,8 @@ def version_tag():
+     from that.
+     :return: a version string based on the tag and short hash
+     """
++    if os.path.exists('debian/changelog'):
++        return subprocess.check_output(('dpkg-parsechangelog', '--show-field', 'Version')).strip().decode('utf-8')
+     if not os.path.exists("./.git/"):
+         base = os.path.basename(os.getcwd())
+         name_list = ['grep', 'name=', 'setup.py']
--- a/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/series	2016-11-12 14:40:00.032910117 +0000
@@ -0,0 +1 @@
+reproducible_build.patch


More information about the Pkg-linaro-lava-devel mailing list