summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/kea/files/0001-src-lib-log-logger_unittest_support.cc-do-not-write-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/kea/files/0001-src-lib-log-logger_unittest_support.cc-do-not-write-.patch')
-rw-r--r--meta/recipes-connectivity/kea/files/0001-src-lib-log-logger_unittest_support.cc-do-not-write-.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/kea/files/0001-src-lib-log-logger_unittest_support.cc-do-not-write-.patch b/meta/recipes-connectivity/kea/files/0001-src-lib-log-logger_unittest_support.cc-do-not-write-.patch
new file mode 100644
index 0000000000..226bc5b311
--- /dev/null
+++ b/meta/recipes-connectivity/kea/files/0001-src-lib-log-logger_unittest_support.cc-do-not-write-.patch
@@ -0,0 +1,27 @@
1From 9985a03f13da4d7bb0a433f7305d2ffae3d82a27 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Tue, 10 Nov 2020 15:57:03 +0000
4Subject: [PATCH] src/lib/log/logger_unittest_support.cc: do not write build
5 path into binary
6
7This breaks reproducibility and is needed only in unit testing.
8
9Upstream-Status: Inappropriate [oe-core specific]
10Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
11---
12 src/lib/log/logger_unittest_support.cc | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/src/lib/log/logger_unittest_support.cc b/src/lib/log/logger_unittest_support.cc
16index 58dbef8..9a2929c 100644
17--- a/src/lib/log/logger_unittest_support.cc
18+++ b/src/lib/log/logger_unittest_support.cc
19@@ -84,7 +84,7 @@ void initLogger(isc::log::Severity severity, int dbglevel) {
20 const char* localfile = getenv("KEA_LOGGER_LOCALMSG");
21
22 // Set a directory for creating lockfiles when running tests
23- setenv("KEA_LOCKFILE_DIR", TOP_BUILDDIR, 0);
24+ //setenv("KEA_LOCKFILE_DIR", TOP_BUILDDIR, 0);
25
26 // Initialize logging
27 initLogger(root, isc::log::DEBUG, isc::log::MAX_DEBUG_LEVEL, localfile);