--- 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 +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