diff options
| author | Changqing Li <changqing.li@windriver.com> | 2026-04-10 17:26:33 +0800 |
|---|---|---|
| committer | Khem Raj <khem.raj@oss.qualcomm.com> | 2026-04-10 17:25:49 -0700 |
| commit | 92637ef9eb9ece0dee4ce0324839e9c9dbb99497 (patch) | |
| tree | 1b779bd59d8854972a047bc50468a5161df61763 /meta-oe | |
| parent | 563b91e5cab19152333b9269b2c0f696d7c6bfe3 (diff) | |
| download | meta-openembedded-92637ef9eb9ece0dee4ce0324839e9c9dbb99497.tar.gz | |
dlt-daemon: disable DLT_USE_IPv6
There is a bug when DLT_USE_IPv6 enabled, refer [1]. This make
dlt-adaptor-udp.service startup failed with error "Bind: Invalid
argument". Disable DLT_USE_IPv6 to workaround the issue
[1] https://github.com/COVESA/dlt-daemon/issues/849
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-fix-build-failure-when-systemd-is-enabled.patch | 15 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/dlt-daemon/dlt-daemon_3.0.0.bb | 2 |
2 files changed, 11 insertions, 6 deletions
diff --git a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-fix-build-failure-when-systemd-is-enabled.patch b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-fix-build-failure-when-systemd-is-enabled.patch index d19a23cd9c..b1ba08a7d3 100644 --- a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-fix-build-failure-when-systemd-is-enabled.patch +++ b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon/0001-fix-build-failure-when-systemd-is-enabled.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From 28322f951bb8510ddb4cf767426a67c81ce826ab Mon Sep 17 00:00:00 2001 | 1 | From 6a95cc20d3c5adfc5c16f269f6dca9f7e2305b4e Mon Sep 17 00:00:00 2001 |
| 2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From: Changqing Li <changqing.li@windriver.com> |
| 3 | Date: Tue, 17 Mar 2026 13:04:11 +0800 | 3 | Date: Tue, 17 Mar 2026 13:04:11 +0800 |
| 4 | Subject: [PATCH] fix build failure when systemd is enabled | 4 | Subject: [PATCH] fix build failure when systemd is enabled |
| @@ -42,10 +42,10 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com> | |||
| 42 | src/system/dlt-system-logfile.c | 4 +-- | 42 | src/system/dlt-system-logfile.c | 4 +-- |
| 43 | src/system/dlt-system-process-handling.c | 2 +- | 43 | src/system/dlt-system-process-handling.c | 2 +- |
| 44 | src/system/dlt-system-processes.c | 2 +- | 44 | src/system/dlt-system-processes.c | 2 +- |
| 45 | src/system/dlt-system-syslog.c | 6 ++-- | 45 | src/system/dlt-system-syslog.c | 8 ++--- |
| 46 | src/system/dlt-system-watchdog.c | 8 ++--- | 46 | src/system/dlt-system-watchdog.c | 8 ++--- |
| 47 | systemd/3rdparty/sd-daemon.c | 5 +-- | 47 | systemd/3rdparty/sd-daemon.c | 5 +-- |
| 48 | 10 files changed, 40 insertions(+), 42 deletions(-) | 48 | 10 files changed, 41 insertions(+), 43 deletions(-) |
| 49 | 49 | ||
| 50 | diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c | 50 | diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c |
| 51 | index ef42f89..8c318a4 100644 | 51 | index ef42f89..8c318a4 100644 |
| @@ -329,10 +329,10 @@ index c35596c..b17b8ee 100644 | |||
| 329 | 329 | ||
| 330 | /* go through all process files in directory */ | 330 | /* go through all process files in directory */ |
| 331 | diff --git a/src/system/dlt-system-syslog.c b/src/system/dlt-system-syslog.c | 331 | diff --git a/src/system/dlt-system-syslog.c b/src/system/dlt-system-syslog.c |
| 332 | index 59e9d3f..d6b1b8a 100644 | 332 | index 59e9d3f..f0bf3dc 100644 |
| 333 | --- a/src/system/dlt-system-syslog.c | 333 | --- a/src/system/dlt-system-syslog.c |
| 334 | +++ b/src/system/dlt-system-syslog.c | 334 | +++ b/src/system/dlt-system-syslog.c |
| 335 | @@ -88,7 +88,7 @@ int init_socket(SyslogOptions opts) | 335 | @@ -88,11 +88,11 @@ int init_socket(SyslogOptions opts) |
| 336 | #ifdef DLT_USE_IPv6 | 336 | #ifdef DLT_USE_IPv6 |
| 337 | syslog_addr.sin6_family = AF_INET6; | 337 | syslog_addr.sin6_family = AF_INET6; |
| 338 | syslog_addr.sin6_addr = in6addr_any; | 338 | syslog_addr.sin6_addr = in6addr_any; |
| @@ -341,6 +341,11 @@ index 59e9d3f..d6b1b8a 100644 | |||
| 341 | #else | 341 | #else |
| 342 | syslog_addr.sin_family = AF_INET; | 342 | syslog_addr.sin_family = AF_INET; |
| 343 | syslog_addr.sin_addr.s_addr = INADDR_ANY; | 343 | syslog_addr.sin_addr.s_addr = INADDR_ANY; |
| 344 | - syslog_addr.sin_port = htons(opts.Port); | ||
| 345 | + syslog_addr.sin_port = htons((uint16_t)opts.Port); | ||
| 346 | memset(&(syslog_addr.sin_zero), 0, 8); | ||
| 347 | #endif | ||
| 348 | |||
| 344 | @@ -117,7 +117,7 @@ int read_socket(int sock) | 349 | @@ -117,7 +117,7 @@ int read_socket(int sock) |
| 345 | struct sockaddr_in client_addr; | 350 | struct sockaddr_in client_addr; |
| 346 | socklen_t addr_len = sizeof(struct sockaddr_in); | 351 | socklen_t addr_len = sizeof(struct sockaddr_in); |
diff --git a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_3.0.0.bb b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_3.0.0.bb index 609566a1b3..1c15ef0483 100644 --- a/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_3.0.0.bb +++ b/meta-oe/recipes-extended/dlt-daemon/dlt-daemon_3.0.0.bb | |||
| @@ -54,7 +54,7 @@ inherit autotools gettext cmake pkgconfig systemd | |||
| 54 | 54 | ||
| 55 | # -DWITH_DLT_COREDUMPHANDLER=ON this feature is too experimental, disable for now | 55 | # -DWITH_DLT_COREDUMPHANDLER=ON this feature is too experimental, disable for now |
| 56 | #FILES:${PN} += "${libdir}/sysctl.d" | 56 | #FILES:${PN} += "${libdir}/sysctl.d" |
| 57 | EXTRA_OECMAKE += "-DWITH_DLT_LOGSTORAGE_GZIP=ON -DWITH_EXTENDED_FILTERING=ON -DSYSTEMD_UNITDIR=${systemd_system_unitdir}" | 57 | EXTRA_OECMAKE += "-DWITH_DLT_LOGSTORAGE_GZIP=ON -DWITH_EXTENDED_FILTERING=ON -DSYSTEMD_UNITDIR=${systemd_system_unitdir} -DWITH_DLT_USE_IPv6=OFF" |
| 58 | 58 | ||
| 59 | PACKAGES += "${PN}-systemd" | 59 | PACKAGES += "${PN}-systemd" |
| 60 | SYSTEMD_PACKAGES = "${PN} ${PN}-systemd" | 60 | SYSTEMD_PACKAGES = "${PN} ${PN}-systemd" |
