Source: armagetronad
Version: 0.2.9.0.1-1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed that
armagetronad could not be built reproducibly.

This is because it generated an internal version number based on the
current date. A patch is attached that will use the version from the
Debian changelog.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/reproducible_build.patch   1970-01-01 01:00:00.000000000 
+0100
--- b/debian/patches/reproducible_build.patch   2020-11-16 10:52:22.252330590 
+0000
@@ -0,0 +1,19 @@
+Description: Make the build reproducible
+Author: Chris Lamb <la...@debian.org>
+Last-Update: 2020-11-16
+
+--- armagetronad-0.2.9.0.1.orig/batch/make/version
++++ armagetronad-0.2.9.0.1/batch/make/version
+@@ -12,6 +12,12 @@ if test "${CI_COMMIT_REF_PROTECTED}" = "
+     exit 0
+ fi
+ 
++# if we're building from a Debian package, that is our version
++if test -f debian/changelog; then
++    dpkg-parsechangelog -SVersion
++    exit 0
++fi
++
+ # set version parts to defaults for CVS snapshot
+ major_version=`cat ${srcdir}/major_version`
+ minor_version_proto=`cat ${srcdir}/minor_version`
--- a/debian/patches/series     1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/series     2020-11-16 10:52:18.756275688 +0000
@@ -0,0 +1 @@
+reproducible_build.patch

Reply via email to