From 55b5c68b79748789dd2f374e21db9e883f4b8d84 Mon Sep 17 00:00:00 2001 From: Jonathan McCrohan Date: Wed, 4 Jan 2017 00:31:52 +0000 Subject: d/patches: add patch from Reiner Herrmann which adds support for reproducible builds --- debian/changelog | 2 ++ debian/patches/02-reproducible-build.patch | 14 ++++++++++++++ debian/patches/series | 1 + 3 files changed, 17 insertions(+) create mode 100644 debian/patches/02-reproducible-build.patch diff --git a/debian/changelog b/debian/changelog index 19cff9c..aa9ecd5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,8 @@ wavemon (0.8.1-2) UNRELEASED; urgency=medium * d/control: update homepage to reflect move to github (Closes: #794535) + * d/patches: add patch from Reiner Herrmann which adds + support for reproducible builds (Closes: #825544) -- Jonathan McCrohan Wed, 04 Jan 2017 00:24:11 +0000 diff --git a/debian/patches/02-reproducible-build.patch b/debian/patches/02-reproducible-build.patch new file mode 100644 index 0000000..f583e36 --- /dev/null +++ b/debian/patches/02-reproducible-build.patch @@ -0,0 +1,14 @@ +Author: Reiner Herrmann +Description: Sort object files for deterministic linking order + +--- a/Makefile.in ++++ b/Makefile.in +@@ -21,7 +21,7 @@ + MAIN = @PACKAGE_NAME@.c + HEADERS = $(wildcard *.h) + PURESRC = $(filter-out $(MAIN),$(wildcard *.c)) +-OBJS = $(PURESRC:.c=.o) ++OBJS = $(sort $(PURESRC:.c=.o)) + + %.o: %.c $(HEADERS) + @echo ' CC ' $< diff --git a/debian/patches/series b/debian/patches/series index 18ef635..d9aa474 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 01-patch-makefile.in-to-not-install-docs.patch +02-reproducible-build.patch -- cgit v1.2.3