Source: ndpi
Version: 2.6-3
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that ndpi could not be built reproducibly.

Patch attached.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/patches/reproducible-build.patch   1970-01-01 01:00:00.000000000 
+0100
--- b/debian/patches/reproducible-build.patch   2019-05-27 09:33:22.480668410 
+0100
@@ -0,0 +1,17 @@
+Description: Make the build reproducible
+Author: Chris Lamb <[email protected]>
+Last-Update: 2019-05-27
+
+--- ndpi-2.6.orig/configure.seed
++++ ndpi-2.6/configure.seed
+@@ -19,7 +19,9 @@ AC_DEFINE_UNQUOTED(NDPI_MAJOR_RELEASE, "
+ AC_DEFINE_UNQUOTED(NDPI_MINOR_RELEASE, "${NDPI_MINOR}", [nDPI minor release])
+ AC_DEFINE_UNQUOTED(NDPI_PATCH_LEVEL,   "${NDPI_PATCH}", [nDPI patch level])
+ 
+-if test -d ".git"; then :
++if test -n "${SOURCE_DATE_EPOCH}"; then :
++     GIT_DATE=`date --utc --date="@${SOURCE_DATE_EPOCH}"`
++elif test -d ".git"; then :
+      GIT_TAG=`git log -1 --format=%h`
+      GIT_DATE=`git log -1 --format=%cd`
+      #
--- a/debian/patches/series     2019-05-27 09:14:48.728802022 +0100
--- b/debian/patches/series     2019-05-27 09:24:48.598741957 +0100
@@ -5,3 +5,4 @@
 ndpireader-no-free.patch
 quic.patch
 packet-direction.patch
+reproducible-build.patch

Reply via email to