summaryrefslogtreecommitdiffstats
path: root/debian/patches/30_build_path_in_binary.diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/patches/30_build_path_in_binary.diff18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/patches/30_build_path_in_binary.diff b/debian/patches/30_build_path_in_binary.diff
new file mode 100644
index 0000000..a285533
--- /dev/null
+++ b/debian/patches/30_build_path_in_binary.diff
@@ -0,0 +1,18 @@
+Description: Strip out build path from cfg_defs.h
+ For build reproducibility when building in a different directory. Debian
+ builds use -fdebug-prefix-map=$builddir=.
+Author: Andreas Metzler <ametzler@debian.org>
+Origin: vendor
+Forwarded: no
+Last-Update: 2021-07-27
+
+--- a/scripts/cfg_defs.sh
++++ b/scripts/cfg_defs.sh
+@@ -21,6 +21,7 @@ static const struct {
+ EOF
+
+ sed \
++ -e "s@`pwd`@SUPRRESSED4REPRODUCIBLEBUILD@g" \
+ -e '/^#/d' \
+ -e 's/^.[^=]*_cv_//' \
+ -e 's/=\${.*=/=/' \