From 9b76e054ada927209cbc53e0f740258a82c562e1 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Tue, 30 Oct 2018 02:02:00 +0100 Subject: [PATCH] build: fix reproducibility re. -fdebug-prefix-map If CFLAGS contains something like `-fdebug-prefix-map=/build/path=.`, we need to remove it from CONFIG_ARGS so it doesn't get baked into `show version`. Otherwise, build becomes non-reproducible if the build path changes. To avoid other things creeping in, let's just remove *FLAGS in their entirety. (Not really reliable information anyway.) With this commit, FRR build should be 100% reproducible. Signed-off-by: David Lamparter --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 09d57ab0f2..1de3081522 100755 --- a/configure.ac +++ b/configure.ac @@ -13,7 +13,7 @@ AC_SUBST([PACKAGE_URL]) PACKAGE_FULLNAME="FRRouting" AC_SUBST([PACKAGE_FULLNAME]) -CONFIG_ARGS="$ac_configure_args" +CONFIG_ARGS="`echo $ac_configure_args | sed -e \"s% '[[A-Z]]*FLAGS=[[^']]\+'%%g\"`" AC_SUBST([CONFIG_ARGS]) AC_CONFIG_SRCDIR([lib/zebra.h]) -- 2.39.5