[SCM] pd-pdstring/master: Enabled reproducible build
umlaeute at users.alioth.debian.org
umlaeute at users.alioth.debian.org
Thu Nov 10 09:26:05 UTC 2016
The following commit has been merged in the master branch:
commit 106055114044bb92991bf6faa18eca830ca586a7
Author: IOhannes m zmölnig <zmoelnig at umlautQ.umlaeute.mur.at>
Date: Thu Nov 10 10:09:49 2016 +0100
Enabled reproducible build
Thanks: Chris Lamb <lamby at debian.org>
Closes: #833445
diff --git a/debian/control b/debian/control
index 0cbd01d..e16ba20 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,8 @@ Priority: optional
Maintainer: Debian Multimedia Maintainers <pkg-multimedia-maintainers at lists.alioth.debian.org>
Uploaders: Roman Haefeli <reduzent at gmail.com>
Build-Depends: debhelper (>= 7.0.50~),
- puredata-dev | puredata (<< 0.43)
+ puredata-dev | puredata (<< 0.43),
+ dh-autoreconf
Standards-Version: 3.9.3
Section: sound
Homepage: http://www.ling.uni-potsdam.de/~moocow/projects/pd/
diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch
new file mode 100644
index 0000000..a603532
--- /dev/null
+++ b/debian/patches/reproducible-build.patch
@@ -0,0 +1,19 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-08-04
+
+--- pd-pdstring-0.10.2.orig/common/m4/ax_pd_external.m4
++++ pd-pdstring-0.10.2/common/m4/ax_pd_external.m4
+@@ -242,7 +242,11 @@ AC_DEFUN([AX_PD_EXTERNAL],
+
+ ##vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
+ ## compiled
+- AC_DEFINE_UNQUOTED(PACKAGE_BUILD_DATE, "`date`", [Date this package was configured])
++ if test -n "$SOURCE_DATE_EPOCH"; then
++ AC_DEFINE_UNQUOTED(PACKAGE_BUILD_DATE, "`LC_ALL=C date --utc --date="@$SOURCE_DATE_EPOCH"`", [Date this package was configured])
++ else
++ AC_DEFINE_UNQUOTED(PACKAGE_BUILD_DATE, "`date`", [Date this package was configured])
++ fi
+ AC_DEFINE_UNQUOTED(PACKAGE_BUILD_USER, "$USER", [User who configured this package])
+ ## /compiled
+ ##^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
diff --git a/debian/patches/series b/debian/patches/series
index 21011bc..93247f5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
fix-help-files-install-dir.patch
+reproducible-build.patch
diff --git a/debian/rules b/debian/rules
index 0ed3cd3..cdc68e1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,7 @@
#!/usr/bin/make -f
%:
- dh $@
+ dh $@ --with=autoreconf
override_dh_auto_configure:
dh_auto_configure -- --with-pd-dir=/usr/lib/pd \
--
pd-pdstring packaging
More information about the pkg-multimedia-commits
mailing list