Skip to contentSkip to conversation

dlt-daemon: upgrade 2.18.10 to 3.0.0

PATCH New Changqing Li 1 participant 1 message Mar 18

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 dlt-daemon: upgrade 2.18.10 to 3.0.0

Changes:
https://github.com/COVESA/dlt-daemon/releases

Remove patches already in 3.0.0:
544.patch
567.patch 0001-CMakeLists-txt-make-DLT_WatchdogSec-can-be-set-by-user.patch 0003-allow-build-with-cmake-4.patch

Add patches to fix build failures 0001-Fix-compile-failure-related-to-gzlog.patch 0001-Fix-kinds-of-build-failure.patch 0001-Fix-build-failures.patch 0001-fix-build-failure-when-systemd-is-enabled.patch 0001-Fix-build-failure-with-glibc-2.43.patch

---
 ...e-DLT_WatchdogSec-can-be-set-by-user.patch |  40 --
 ...01-Fix-build-failure-with-glibc-2.43.patch |  55 +++
 .../dlt-daemon/0001-Fix-build-failures.patch  | 360 +++++++++++++++
 ...Fix-compile-failure-related-to-gzlog.patch |  69 +++
 .../0001-Fix-kinds-of-build-failure.patch     | 174 +++++++
 ...uild-failure-when-systemd-is-enabled.patch | 423 ++++++++++++++++++
 .../0003-allow-build-with-cmake-4.patch       |  99 ----
 .../dlt-daemon/dlt-daemon/544.patch           |  80 ----
 .../dlt-daemon/dlt-daemon/567.patch           |  36 --
 ...-daemon_2.18.10.bb => dlt-daemon_3.0.0.bb} |  12 +-
 10 files changed, 1088 insertions(+), 260 deletions(-)
 delete mode 100644 meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-CMakeLists-txt-make-DLT_WatchdogSec-can-be-set-by-user.patch
 create mode 100644 meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-Fix-build-failure-with-glibc-2.43.patch
 create mode 100644 meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-Fix-build-failures.patch
 create mode 100644 meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-Fix-compile-failure-related-to-gzlog.patch
 create mode 100644 meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-Fix-kinds-of-build-failure.patch
 create mode 100644 meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-fix-build-failure-when-systemd-is-enabled.patch
 delete mode 100644 meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0003-allow-build-with-cmake-4.patch
 delete mode 100644 meta-oe/recipes-extended/dlt-daemon/dlt-daemon/544.patch
 delete mode 100644 meta-oe/recipes-extended/dlt-daemon/dlt-daemon/567.patch
 rename meta-oe/recipes-extended/dlt-daemon/{dlt-daemon_2.18.10.bb => dlt-daemon_3.0.0.bb} (88%)
meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-CMakeLists-txt-make-DLT_WatchdogSec-can-be-set-by-user.patch deleted +0 -40
deleted file mode 100644
index 335872c40f..0000000000
@@ -1,40 +0,0 @@
-From bc03f142507da92add8ba325fdf8187d47a7d719 Mon Sep 17 00:00:00 2001
-From: Changqing Li <[email protected]>
-Date: Fri, 13 Dec 2024 16:37:24 +0800
-Subject: [PATCH] CMakeLists.txt: make DLT_WatchdogSec can be set by user
-
-In my test env, WatchdogSec default value 2 is not enough, manually
-changed to 3 is ok. This makes dlt.service/dlt-system.service start
-failed during boot time. So, make DLT_WatchdogSec can be set by user, so
-user can set them to proper value at build time, then service can start
-successfully in boot time.
-
-Signed-off-by: Changqing Li <[email protected]>
-
-Upstream-Status: Backport [https://github.com/COVESA/dlt-daemon/pull/720/commits/bc03f142507da92add8ba325fdf8187d47a7d719]
-
-Signed-off-by: Changqing Li <[email protected]>
----
- systemd/CMakeLists.txt | 8 ++++++--
- 1 file changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/systemd/CMakeLists.txt b/systemd/CMakeLists.txt
-index 16cbe86b5..659378d16 100644
---- a/systemd/CMakeLists.txt
-+++ b/systemd/CMakeLists.txt
-@@ -18,10 +18,14 @@ if(WITH_SYSTEMD)
-     set(SYSTEMD_CONFIGURATIONS_FILES_DIR ${SYSTEMD_UNITDIR} )
- 
-     if(WITH_SYSTEMD_WATCHDOG)
--        set( DLT_WatchdogSec 2 )
-+        if(NOT DEFINED DLT_WatchdogSec)
-+            set(DLT_WatchdogSec 2 CACHE STRING "Watchdog timeout in seconds")
-+        endif()
-         message( STATUS "The systemd watchdog is enabled - timeout is set to ${DLT_WatchdogSec} seconds")
-     else(WITH_SYSTEMD_WATCHDOG)
--        set( DLT_WatchdogSec 0 )
-+        if(NOT DEFINED DLT_WatchdogSec)
-+             set(DLT_WatchdogSec 0 CACHE STRING "Watchdog timeout in seconds")
-+        endif()
-         message( STATUS "The systemd watchdog is disabled")
-     endif(WITH_SYSTEMD_WATCHDOG)
meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-Fix-build-failure-with-glibc-2.43.patch new file +55 -0

55 lines not on this page · raw message

meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-Fix-build-failures.patch new file +360 -0

360 lines not on this page · raw message

meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-Fix-compile-failure-related-to-gzlog.patch new file +69 -0

69 lines not on this page · raw message

meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-Fix-kinds-of-build-failure.patch new file +174 -0

174 lines not on this page · raw message

meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-fix-build-failure-when-systemd-is-enabled.patch new file +423 -0

423 lines not on this page · raw message

meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0003-allow-build-with-cmake-4.patch deleted +0 -99

99 lines not on this page · raw message

meta-oe/recipes-extended/dlt-daemon/dlt-daemon/544.patch deleted +0 -80

80 lines not on this page · raw message

meta-oe/recipes-extended/dlt-daemon/dlt-daemon/567.patch deleted +0 -36
deleted file mode 100644
index fd36480456..0000000000
@@ -1,36 +0,0 @@
-Upstream-Status: Submitted [https://github.com/COVESA/dlt-daemon/pull/567]
-
-From c84e48f6986054cf8b9459e608235b7bd1635746 Mon Sep 17 00:00:00 2001
-From: Gianfranco Costamagna <[email protected]>
-Date: Mon, 13 Nov 2023 12:37:23 +0100
-Subject: [PATCH] dlt_cdh:
-
-Make sure on 64 bit we read an ELF64 structure.
-Otherwise we get a read error, and the context file is missing some good
-to know information
----
- src/core_dump_handler/dlt_cdh.h | 7 +++++++
- 1 file changed, 7 insertions(+)
-
-diff --git a/src/core_dump_handler/dlt_cdh.h b/src/core_dump_handler/dlt_cdh.h
-index 8608c6c4..3dac480a 100644
---- a/src/core_dump_handler/dlt_cdh.h
-+++ b/src/core_dump_handler/dlt_cdh.h
-@@ -45,10 +45,17 @@
- #define CORE_FILE_PATTERN           "%s/core.%d.%s.%d.gz"
- #define CONTEXT_FILE_PATTERN        "%s/context.%d.%s.%d.txt"
- 
-+#if ((__SIZEOF_POINTER) == 4)
- #define ELF_Ehdr    Elf32_Ehdr
- #define ELF_Phdr    Elf32_Phdr
- #define ELF_Shdr    Elf32_Shdr
- #define ELF_Nhdr    Elf32_Nhdr
-+#else
-+#define ELF_Ehdr    Elf64_Ehdr
-+#define ELF_Phdr    Elf64_Phdr
-+#define ELF_Shdr    Elf64_Shdr
-+#define ELF_Nhdr    Elf64_Nhdr
-+#endif
- 
- typedef struct
- {
meta-oe/recipes-extended/dlt-daemon/dlt-daemon_3.0.0.bb renamed from meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.10.bb +7 -5
similarity index 88%
rename from meta-oe/recipes-extended/dlt-daemon/dlt-daemon_2.18.10.bb
rename to meta-oe/recipes-extended/dlt-daemon/dlt-daemon_3.0.0.bb
index 82edde6c9d..5e80acd67e 100644
@@ -17,12 +17,13 @@ DEPENDS = "zlib gzip-native json-c"
 SRC_URI = "git://github.com/COVESA/${BPN}.git;protocol=https;branch=master \
            file://0002-Don-t-execute-processes-as-a-specific-user.patch \
            file://0004-Modify-systemd-config-directory.patch \
-           file://544.patch \
-           file://567.patch \
-           file://0001-CMakeLists-txt-make-DLT_WatchdogSec-can-be-set-by-user.patch \
-           file://0003-allow-build-with-cmake-4.patch \
+           file://0001-Fix-compile-failure-related-to-gzlog.patch \
+           file://0001-Fix-kinds-of-build-failure.patch \
+           file://0001-Fix-build-failures.patch \
+           file://0001-fix-build-failure-when-systemd-is-enabled.patch \
+           file://0001-Fix-build-failure-with-glibc-2.43.patch \
            "
-SRCREV = "0f2d4cfffada6f8448a2cb27995b38eb4271044f"
+SRCREV = "f595ea29d1007ca1c3b2d1fd3a88adf7d3db6320"
 
 
 PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd systemd-watchdog systemd-journal ', '', d)} \
@@ -71,4 +72,5 @@ FILES:${PN}-doc += "${datadir}/dlt-filetransfer"
 
 do_install:append() {
     rm -f ${D}${bindir}/dlt-test-*
+    sed -i -e 's:${RECIPE_SYSROOT}::g' ${D}/usr/lib/pkgconfig/automotive-dlt.pc
 }
Signature · 1 line
2.34.1