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