Package: suricata / 1:4.1.2-2~bpo9+1

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
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
@@ -2522,7 +2522,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 "