1From 71dab751a27a2e582b711de22873065dd28f4b65 Mon Sep 17 00:00:00 2001
2From: Paulo Neves <ptsneves@gmail.com>
3Date: Thu, 28 Jul 2022 11:42:31 +0200
4Subject: [PATCH] flb_info.h.in: Do not hardcode compilation directories
5
6Including the source dir in the header makes the header not
7reproducible and contaminates it with host builder paths. Instead
8make it take CMAKE_DEBUG_SRCDIR that can be set to a known
9reproducible value
10---
11Upstream-Status: Pending
12
13 include/fluent-bit/flb_info.h.in | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/include/fluent-bit/flb_info.h.in b/include/fluent-bit/flb_info.h.in
17index a89485c..2579afc 100644
18--- a/include/fluent-bit/flb_info.h.in
19+++ b/include/fluent-bit/flb_info.h.in
20@@ -23,7 +23,7 @@
21 #define STR_HELPER(s)      #s
22 #define STR(s)             STR_HELPER(s)
23
24-#define FLB_SOURCE_DIR "@CMAKE_SOURCE_DIR@"
25+#define FLB_SOURCE_DIR "@CMAKE_DEBUG_SRCDIR@"
26
27 /* General flags set by CMakeLists.txt */
28 @FLB_BUILD_FLAGS@
29