Source: pd-pdstring
Version: 0.10.2-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

Whilst working on the "reproducible builds" effort [0], we noticed
that pd-pdstring could not be built reproducibly.

Patch attached.

 [0] https://wiki.debian.org/ReproducibleBuilds


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/control    2016-08-04 09:31:13.702531292 +0100
--- b/debian/control    2016-08-04 09:42:22.731404193 +0100
@@ -3,7 +3,8 @@
 Maintainer: Debian Multimedia Maintainers 
<pkg-multimedia-maintain...@lists.alioth.debian.org>
 Uploaders: Roman Haefeli <reduz...@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/
--- a/debian/patches/reproducible-build.patch   1970-01-01 01:00:00.000000000 
+0100
--- b/debian/patches/reproducible-build.patch   2016-08-04 09:40:32.694594076 
+0100
@@ -0,0 +1,19 @@
+Description: Make the build reproducible
+Author: Chris Lamb <la...@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
+  ##^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--- a/debian/patches/series     2016-08-04 09:31:13.702531292 +0100
--- b/debian/patches/series     2016-08-04 09:40:31.586585936 +0100
@@ -1 +1,2 @@
 fix-help-files-install-dir.patch
+reproducible-build.patch
--- a/debian/rules      2016-08-04 09:31:13.702531292 +0100
--- b/debian/rules      2016-08-04 09:42:15.107347958 +0100
@@ -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 \
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to