From 8fb4053566f150f3822db46af63687063e192f8a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 5 May 2024 19:40:17 +0200 Subject: Adding debian version 1:2.1.2-1. Signed-off-by: Daniel Baumann --- debian/patches/07-reproducible-build.patch | 37 ++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 debian/patches/07-reproducible-build.patch (limited to 'debian/patches/07-reproducible-build.patch') diff --git a/debian/patches/07-reproducible-build.patch b/debian/patches/07-reproducible-build.patch new file mode 100644 index 0000000..c00d349 --- /dev/null +++ b/debian/patches/07-reproducible-build.patch @@ -0,0 +1,37 @@ +Author: Reiner Herrmann +Description: Sort lists of libraries/source/object files + for deterministic linking order + +--- a/Make.rules ++++ b/Make.rules +@@ -136,8 +136,8 @@ + _libs = $(strip $(foreach _lib,$(LIBDIRS),\ + $(if $(filter lib%,$(_lib)),\ + $(patsubst lib%,-l%,$(_lib)),\ +- $(wildcard $(srcdir)/$(_lib)/$(_lib).so \ +- $(srcdir)/$(_lib)/$(_lib).a)))) ++ $(sort $(wildcard $(srcdir)/$(_lib)/$(_lib).so \ ++ $(srcdir)/$(_lib)/$(_lib).a))))) + + override LIBS := $(_libs) -lm $(LIBS) + +@@ -166,7 +166,7 @@ + endif + endif + +-sources = $(wildcard *.c) ++sources = $(sort $(wildcard *.c)) + OBJS = $(sources:.c=.$(obj)) + + +--- a/default.rules ++++ b/default.rules +@@ -143,7 +143,7 @@ + ifeq ($(filter $(TARGET),$(EXEDIRS)),$(TARGET)) + + ifeq ($(filter $(TARGET),$(MODUSERS)),$(TARGET)) +-MOD_OBJS = $(wildcard $(foreach dir,$(MODDIRS),$(srcdir)/$(dir)/*.o)) ++MOD_OBJS = $(sort $(wildcard $(foreach dir,$(MODDIRS),$(srcdir)/$(dir)/*.o))) + ifeq ($(shared),yes) + override LDFLAGS := -rdynamic $(LDFLAGS) + endif -- cgit v1.2.3