File: reproducible.patch

package info (click to toggle)
suricata 1%3A8.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 240,704 kB
  • sloc: ansic: 357,736; python: 8,721; sh: 5,043; makefile: 2,411; perl: 570; php: 170
file content (21 lines) | stat: -rw-r--r-- 709 bytes parent folder | download | duplicates (2)
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: 2025-07-11

--- a/configure.ac
+++ b/configure.ac
@@ -2643,7 +2643,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 "