[pyferret] 51/110: Patch for bit-reproducible builds
Alastair McKinstry
mckinstry at moszumanska.debian.org
Fri Jul 28 08:41:59 UTC 2017
This is an automated email from the git hooks/post-receive script.
mckinstry pushed a commit to branch debian/master
in repository pyferret.
commit b6675272e70fdd3cb5d5eb8810a5d013639f638f
Author: Alastair McKinstry <mckinstry at debian.org>
Date: Thu Jul 7 10:53:26 2016 +0100
Patch for bit-reproducible builds
---
debian/changelog | 3 ++-
debian/patches/reproducible.patch | 24 ++++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 4 ++++
4 files changed, 31 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 48a5eb5..81475f9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
-pyferret (1.2.0-2) UNRELEASED; urgency=medium
+pyferret (1.2.0-2) unstable; urgency=medium
* Standards-Version: 3.9.8. No changes required
+ * Hard-code build-date, platform for bit-reprodducible builds
-- Alastair McKinstry <mckinstry at debian.org> Thu, 07 Jul 2016 10:44:53 +0100
diff --git a/debian/patches/reproducible.patch b/debian/patches/reproducible.patch
new file mode 100644
index 0000000..7b514e1
--- /dev/null
+++ b/debian/patches/reproducible.patch
@@ -0,0 +1,24 @@
+Author: Alastair McKinstry <mckinstry at debian.org>
+Description: Hard-code platform, date for reproducible builds
+Last-Updated: 2016-07-07
+Forwarded: no
+
+Index: pyferret-1.2.0/fer/Makefile
+===================================================================
+--- pyferret-1.2.0.orig/fer/Makefile
++++ pyferret-1.2.0/fer/Makefile
+@@ -13,9 +13,12 @@ include ../site_specific.mk
+ #
+ include ../platform_specific.mk.$(BUILDTYPE)
+
+-PLATFORM := $(shell uname -rs)
+ VERSION_INFO := (PyFerret $(PYFERRET_VERSION))
+-DATE := $(shell /bin/date +%D)
++# Hard-code these for bit-reproducible builds
++# PLATFORM := $(shell uname -rs)
++# DATE := $(shell /bin/date +%D)
++PLATFORM := Debian
++DATE:= 12/0/15
+
+ #
+ # Macros
diff --git a/debian/patches/series b/debian/patches/series
index 2395bce..6d3edee 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
set-envvars.patch
automate-tests.parch
+reproducible.patch
diff --git a/debian/rules b/debian/rules
index e662057..8cdf9df 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,10 @@
%:
dh $@ --with python2
+# To aid reproducible builds
+LC_ALL=C
+export LC_ALL
+
ARCH:=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
LIBDIR:=/usr/lib/$(ARCH)
INSTALLDIR:=$(CURDIR)/debian/tmp
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyferret.git
More information about the debian-science-commits
mailing list