Subject: [PATCH] Add patch to make the build reproducible

From: Jochen Sprickerhof <[email-masked]>
Date: Mon, 20 Jul 2026 10:36:12 +0200

---
 ...nd-output-to-make-build-reproducible.patch | 21 +++++++++++++++++++
 debian/patches/series                         |  2 +-
 2 files changed, 22 insertions(+), 1 deletion(-)
 create mode 100644 debian/patches/0006-Sort-find-output-to-make-build-reproducible.patch

diff --git a/debian/patches/0006-Sort-find-output-to-make-build-reproducible.patch b/debian/patches/0006-Sort-find-output-to-make-build-reproducible.patch
new file mode 100644
index 0000000..560bf3b
--- /dev/null
+++ b/debian/patches/0006-Sort-find-output-to-make-build-reproducible.patch
@@ -0,0 +1,21 @@
+From: Jochen Sprickerhof <[email-masked]>
+Date: Mon, 20 Jul 2026 10:22:28 +0200
+Subject: Sort find output to make build reproducible
+
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 3f111de..3d20503 100644
+--- a/Makefile
++++ b/Makefile
+@@ -84,7 +84,7 @@ RELEASEFLAGS = -O3 -DNDEBUG
+ 
+ TARGET       = unicycler/cpp_functions.so
+ SHELL        = /bin/sh
+-SOURCES      = $(shell find unicycler -name "*.cpp")
++SOURCES      = $(shell find unicycler -name "*.cpp" | sort)
+ HEADERS      = $(shell find unicycler -name "*.h")
+ OBJECTS      = $(SOURCES:.cpp=.o)
+ 
diff --git a/debian/patches/series b/debian/patches/series
index f7a41b3..fb9e271 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,6 +1,6 @@
 spades.patch
-# bowtie.patch 
 install_wo_extra_steps.patch
 append_flags
 0004-Upgrade-to-SeqAn-2.5.0.patch
 leftover-syntax-warnings.patch
+0006-Sort-find-output-to-make-build-reproducible.patch
-- 
2.53.0