[SCM] amsynth/master: Make package's builds reproducible
alessio at users.alioth.debian.org
alessio at users.alioth.debian.org
Tue Jun 16 13:34:20 UTC 2015
The following commit has been merged in the master branch:
commit 36d1579fa54bf05d3c4c54d6bced02a5559613bf
Author: Alessio Treglia <alessio.treglia at smartodds.co.uk>
Date: Tue Jun 16 14:29:09 2015 +0100
Make package's builds reproducible
- Review Dhole's patch: upstream might be interested in printing such
information as compilation timestamp, so I'd prefer to not just get
rid of it unconditionally and append DEBIAN_REPRODUCIBLE_BUILDS to
the preprocessor's list of defines.
Closes: #788751
diff --git a/debian/patches/0001-reproducible_build.patch b/debian/patches/0001-reproducible_build.patch
new file mode 100644
index 0000000..2527089
--- /dev/null
+++ b/debian/patches/0001-reproducible_build.patch
@@ -0,0 +1,23 @@
+Description: Support Debian reproducible builds.
+ See https://wiki.debian.org/ReproducibleBuilds for more information.
+Author: Alessio Treglia <alessio at debian.org>
+Bug: https://code.google.com/p/amsynth/issues/detail?id=93
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788751
+---
+ src/main.cc | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+--- amsynth.orig/src/main.cc
++++ amsynth/src/main.cc
+@@ -324,7 +324,11 @@ int main( int argc, char *argv[] )
+ while ((opt = getopt_long(argc, argv, "vhstdzxm:c:a:r:p:b:U:P:n:", longopts, &longindex)) != -1) {
+ switch (opt) {
+ case 'v':
++#ifndef DEBIAN_REPRODUCIBLE_BUILDS
+ cout << PACKAGE_STRING << " -- compiled " << __DATE__ << " " << __TIME__ << endl;
++#else
++ cout << PACKAGE_STRING << endl;
++#endif
+ return 0;
+ case 'h':
+ cout << help_text;
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..f8f464d
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-reproducible_build.patch
diff --git a/debian/rules b/debian/rules
index 9147a22..2a06ad2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,6 +13,8 @@ ifneq ($(DEB_HOST_ARCH_OS),linux)
EXTRA_CONFIG_FLAGS=--with-alsa=no
endif
+CFLAGS += -DDEBIAN_REPRODUCIBLE_BUILDS
+
%:
dh $@ --parallel --with autoreconf
--
amsynth packaging
More information about the pkg-multimedia-commits
mailing list