summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-extended/fluentbit/fluentbit/0001-Control-sytemd-unit-install-location-with-SYSTEM_DIR.patch28
-rw-r--r--meta-oe/recipes-extended/fluentbit/fluentbit_1.3.5.bb3
2 files changed, 30 insertions, 1 deletions
diff --git a/meta-oe/recipes-extended/fluentbit/fluentbit/0001-Control-sytemd-unit-install-location-with-SYSTEM_DIR.patch b/meta-oe/recipes-extended/fluentbit/fluentbit/0001-Control-sytemd-unit-install-location-with-SYSTEM_DIR.patch
new file mode 100644
index 0000000000..b90a62ef19
--- /dev/null
+++ b/meta-oe/recipes-extended/fluentbit/fluentbit/0001-Control-sytemd-unit-install-location-with-SYSTEM_DIR.patch
@@ -0,0 +1,28 @@
1From 5571f949fa2048b79c197b5b10a11ecb1891cbe9 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 23 Apr 2022 08:24:34 -0700
4Subject: [PATCH] Control sytemd unit install location with SYSTEM_DIR
5
6This helps building when usrmerge is on
7
8Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 src/CMakeLists.txt | 6 +++++-
12 1 file changed, 5 insertions(+), 1 deletion(-)
13
14--- a/src/CMakeLists.txt
15+++ b/src/CMakeLists.txt
16@@ -323,7 +323,11 @@ if(FLB_BINARY)
17 "${PROJECT_SOURCE_DIR}/init/systemd.in"
18 ${FLB_SYSTEMD_SCRIPT}
19 )
20- install(FILES ${FLB_SYSTEMD_SCRIPT} DESTINATION /lib/systemd/system)
21+ if(SYSTEMD_DIR)
22+ install(FILES ${FLB_SYSTEMD_SCRIPT} DESTINATION ${SYSTEMD_DIR})
23+ else()
24+ install(FILES ${FLB_SYSTEMD_SCRIPT} DESTINATION /lib/systemd/system)
25+ endif()
26 install(DIRECTORY DESTINATION ${FLB_INSTALL_CONFDIR})
27 elseif(IS_DIRECTORY /usr/share/upstart OR FLB_UPSTART)
28 set(FLB_UPSTART_SCRIPT "${PROJECT_SOURCE_DIR}/init/${FLB_OUT_NAME}.conf")
diff --git a/meta-oe/recipes-extended/fluentbit/fluentbit_1.3.5.bb b/meta-oe/recipes-extended/fluentbit/fluentbit_1.3.5.bb
index 670d596cad..e586262a60 100644
--- a/meta-oe/recipes-extended/fluentbit/fluentbit_1.3.5.bb
+++ b/meta-oe/recipes-extended/fluentbit/fluentbit_1.3.5.bb
@@ -18,6 +18,7 @@ SRC_URI = "http://fluentbit.io/releases/1.3/fluent-bit-${PV}.tar.gz \
18 file://0001-ppc-Fix-signature-for-co_create-API.patch \ 18 file://0001-ppc-Fix-signature-for-co_create-API.patch \
19 file://0001-bin-fix-SIGSEGV-caused-by-using-flb_free-instead-of-.patch \ 19 file://0001-bin-fix-SIGSEGV-caused-by-using-flb_free-instead-of-.patch \
20 file://0002-parser-Fix-SIGSEGV-caused-by-using-flb_free-instead-.patch \ 20 file://0002-parser-Fix-SIGSEGV-caused-by-using-flb_free-instead-.patch \
21 file://0001-Control-sytemd-unit-install-location-with-SYSTEM_DIR.patch \
21 " 22 "
22SRC_URI[md5sum] = "6eae6dfd0a874e5dd270c36e9c68f747" 23SRC_URI[md5sum] = "6eae6dfd0a874e5dd270c36e9c68f747"
23SRC_URI[sha256sum] = "e037c76c89269c8dc4027a08e442fefd2751b0f1e0f9c38f9a4b12d781a9c789" 24SRC_URI[sha256sum] = "e037c76c89269c8dc4027a08e442fefd2751b0f1e0f9c38f9a4b12d781a9c789"
@@ -47,7 +48,7 @@ EXTRA_OECMAKE += "-DFLB_LUAJIT=Off -DFLB_FILTER_LUA=Off "
47# Disable Library and examples 48# Disable Library and examples
48EXTRA_OECMAKE += "-DFLB_SHARED_LIB=Off -DFLB_EXAMPLES=Off " 49EXTRA_OECMAKE += "-DFLB_SHARED_LIB=Off -DFLB_EXAMPLES=Off "
49 50
50EXTRA_OECMAKE += "${@bb.utils.contains('DISTRO_FEATURES','systemd','-DFLB_SYSTEMD=On','',d)}" 51EXTRA_OECMAKE += "${@bb.utils.contains('DISTRO_FEATURES','systemd','-DFLB_SYSTEMD=On -DSYSTEMD_DIR=${systemd_system_unitdir}','',d)}"
51 52
52EXTRA_OECMAKE:append:riscv64 = " -DFLB_DEPS='atomic'" 53EXTRA_OECMAKE:append:riscv64 = " -DFLB_DEPS='atomic'"
53EXTRA_OECMAKE:append:riscv32 = " -DFLB_DEPS='atomic'" 54EXTRA_OECMAKE:append:riscv32 = " -DFLB_DEPS='atomic'"