Package: bowtie / 1.2.2+dfsg-4

reproducible.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: make build reproducible
Author: Sascha Steinbiss <sascha@steinbiss.name>
--- bowtie.orig/Makefile
+++ bowtie/Makefile
@@ -244,9 +244,9 @@
 
 DEFS=-fno-strict-aliasing \
      -DBOWTIE_VERSION="\"`cat VERSION`\"" \
-     -DBUILD_HOST="\"`hostname`\"" \
-     -DBUILD_TIME="\"`date`\"" \
-     -DCOMPILER_VERSION="\"`$(CXX) -v 2>&1 | tail -1`\"" \
+     -DBUILD_HOST="\"Debian-reproducible\"" \
+     -DBUILD_TIME="\"`dpkg-parsechangelog --show-field Date`\"" \
+     -DCOMPILER_VERSION="\"`$(CXX) -v 2>&1 | tail -1 | sed 's/ *(.*//'`\"" \
      $(FILE_FLAGS) \
      $(PTHREAD_DEF) \
      $(PREF_DEF) \
@@ -254,8 +254,8 @@
      $(SHMEM_DEF)
 
 ALL_FLAGS = $(EXTRA_FLAGS) $(CPPFLAGS) $(CFLAGS) $(CXXFLAGS) $(LDFLAGS)
-DEBUG_DEFS = -DCOMPILER_OPTIONS="\"$(DEBUG_FLAGS) $(ALL_FLAGS)\""
-RELEASE_DEFS = -DCOMPILER_OPTIONS="\"$(RELEASE_FLAGS) $(ALL_FLAGS)\""
+DEBUG_DEFS = -DCOMPILER_OPTIONS="\"$(DEBUG_FLAGS) $(subst $(shell pwd),.,$(ALL_FLAGS))\""
+RELEASE_DEFS = -DCOMPILER_OPTIONS="\"$(RELEASE_FLAGS) $(subst $(shell pwd),.,$(ALL_FLAGS))\""
 
 #
 # bowtie-build targets