File: 07-reproducible-build.patch

package info (click to toggle)
stunnel4 3%3A5.76-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,396 kB
  • sloc: ansic: 19,572; sh: 4,958; python: 4,950; perl: 437; makefile: 227
file content (20 lines) | stat: -rw-r--r-- 611 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Make the build reproducible
Forwarded: not-needed
Author: Chris Lamb <lamby@debian.org>
Last-Update: 2023-12-19

--- stunnel4-5.70.orig/doc/Makefile.am
+++ stunnel4-5.70/doc/Makefile.am
@@ -14,9 +14,11 @@ DISTCLEANFILES = $(doc_DATA)
 
 SUFFIXES = .pod.in .8.in .html.in
 
+BUILD_DATE = $(shell date --utc --date=@$(or $(SOURCE_DATE_EPOCH),$(shell date +%s)) +%Y.%m.%d)
+
 .pod.in.8.in:
 	pod2man -u -n stunnel -s 8 -r $(VERSION) \
-		-c "stunnel4 TLS Proxy" -d `date +%Y.%m.%d` $< $@
+		-c "stunnel4 TLS Proxy" -d '$(BUILD_DATE)' $< $@
 
 .pod.in.html.in:
 	pod2html --index --backlink --header \