[proftpd-dfsg] 01/01: Add patch for reproducible build.

Hilmar Preuße hilmar-guest at moszumanska.debian.org
Tue Sep 6 20:30:48 UTC 2016


This is an automated email from the git hooks/post-receive script.

hilmar-guest pushed a commit to branch master
in repository proftpd-dfsg.

commit b9dfc4d8d83be5e2a7c0987d2176bb138b4b0208
Author: Hilmar Preuße <hille42 at web.de>
Date:   Tue Sep 6 22:30:11 2016 +0200

    Add patch for reproducible build.
---
 debian/changelog                  |  1 +
 debian/patches/reproducible_build | 26 ++++++++++++++++++++++++++
 debian/patches/series             |  1 +
 3 files changed, 28 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 597e5d9..d710466 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,7 @@ proftpd-dfsg (1.3.5a-2) UNRELEASED; urgency=medium
   * Apply patch for ftpasswd.8 (Closes: #774390)
   * Apply patch to allow transfer large files (more than 1 GB)
     with SFTP module (Closes: #809068), large_files_SFTP.diff
+  * Apply patch reproducible build. Thanks to Chris Lamb (Closes: #831381).
 
  -- Mahyuddin Susanto <udienz at gmail.com>  Wed, 24 Aug 2016 15:23:38 -0700
 
diff --git a/debian/patches/reproducible_build b/debian/patches/reproducible_build
new file mode 100644
index 0000000..1c9ac71
--- /dev/null
+++ b/debian/patches/reproducible_build
@@ -0,0 +1,26 @@
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-07-15
+Forwarded: not done, could be done
+Bug-Debian: http://bugs.debian.org/831381
+
+--- proftpd-dfsg-1.3.5a.orig/Makefile.in
++++ proftpd-dfsg-1.3.5a/Makefile.in
+@@ -21,11 +21,17 @@ BUILD_PROFTPD_OBJS=$(BUILD_OBJS) $(BUILD
+ BUILD_PROFTPD_ARCHIVES=$(BUILD_STATIC_MODULE_ARCHIVES)
+ BUILD_BIN=proftpd$(EXEEXT) ftpcount$(EXEEXT) ftpdctl$(EXEEXT) ftpscrub$(EXEEXT) ftpshut$(EXEEXT) ftptop$(EXEEXT) ftpwho$(EXEEXT)
+ 
++DATE_FMT = %a %b %e %Y %H:%M:%S %Z
++ifdef SOURCE_DATE_EPOCH
++	BUILD_STAMP ?= $(shell LC_ALL=C date --utc --date="@$(SOURCE_DATE_EPOCH)" "+$(DATE_FMT)")
++else
++	BUILD_STAMP ?= $(shell date "+$(DATE_FMT)")
++endif
+ 
+ all: $(BUILD_BIN)
+ 
+ include/buildstamp.h:
+-	echo \#define BUILD_STAMP \"`date +"%a %b %e %Y %H:%M:%S %Z"`\" > include/buildstamp.h
++	echo \#define BUILD_STAMP \"$(BUILD_STAMP)\" > include/buildstamp.h
+ 
+ dummy:
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 5fa359f..9a3f646 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -12,3 +12,4 @@ silent
 use_hypen_in_manpage
 contrib_hardening_flags
 large_files_SFTP.diff
+reproducible_build

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-proftpd/proftpd-dfsg.git



More information about the Pkg-proftpd-maintainers mailing list