summaryrefslogtreecommitdiffstats
path: root/debian/patches/reproducible.patch
blob: 399573113866b5416183ab0ddaa848ff313478f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Arturo Borrero Gonzalez <arturo@debian.org>
Subject: Patch to make the suricata build reproducible
 This patch makes some changes to the suricata build to make it reproducible
 .
 Currently, it only filters out the -fdebug-prefix-map CFLAG which embeds
 the build path.
Forwarded: not-needed
Last-Update: 2016-09-05

--- a/configure.ac
+++ b/configure.ac
@@ -2699,7 +2699,8 @@
 echo
 echo "$SURICATA_BUILD_CONF"
 echo "printf(" >src/build-info.h
-echo "$SURICATA_BUILD_CONF" | sed -e 's/^/"/' | sed -e 's/$/\\n"/' >>src/build-info.h
+echo "$SURICATA_BUILD_CONF" | sed -e 's/^/"/' | sed -e 's/$/\\n"/' \
+			| sed 's/-fdebug-prefix-map=.*=. //' >>src/build-info.h
 echo ");" >>src/build-info.h
 
 echo "