summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorKhem Raj <khem.raj@oss.qualcomm.com>2026-04-15 10:43:44 -0700
committerKhem Raj <khem.raj@oss.qualcomm.com>2026-04-15 22:46:00 -0700
commit0d39d65c0e0ced4e130718f39ed8b262605134b7 (patch)
tree0399772b42ae1433468ffa54615806498df10e20 /meta-oe
parent0556ca04c65ee4316effa77f57275286c121e50e (diff)
downloadmeta-openembedded-0d39d65c0e0ced4e130718f39ed8b262605134b7.tar.gz
systemd-netlogd: Upgrade to 1.4.5 release
Fix build on 32-bit with 64-bit time_t Fix build with C23 on For full details: https://github.com/systemd/systemd-netlogd/releases/tag/v1.4.5 Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-support/systemd-netlogd/systemd-netlogd/0001-Fix-const-correctness-for-pointer-variables-to-refer.patch60
-rw-r--r--meta-oe/recipes-support/systemd-netlogd/systemd-netlogd_1.4.5.bb (renamed from meta-oe/recipes-support/systemd-netlogd/systemd-netlogd_1.4.4.bb)6
2 files changed, 64 insertions, 2 deletions
diff --git a/meta-oe/recipes-support/systemd-netlogd/systemd-netlogd/0001-Fix-const-correctness-for-pointer-variables-to-refer.patch b/meta-oe/recipes-support/systemd-netlogd/systemd-netlogd/0001-Fix-const-correctness-for-pointer-variables-to-refer.patch
new file mode 100644
index 0000000000..190baff606
--- /dev/null
+++ b/meta-oe/recipes-support/systemd-netlogd/systemd-netlogd/0001-Fix-const-correctness-for-pointer-variables-to-refer.patch
@@ -0,0 +1,60 @@
1From 515e23b37ad1400bfb73797771c4f0fd78655328 Mon Sep 17 00:00:00 2001
2From: Khem Raj <khem.raj@oss.qualcomm.com>
3Date: Wed, 15 Apr 2026 10:52:05 -0700
4Subject: [PATCH] Fix const-correctness for pointer variables to referred
5 strings
6
7Mark pointer variables 'e' as 'const char *' in
8config_parse_netlog_remote_address,file_in_same_dir, and
9socket_address_parse, since they point to memory they do not
10own or modify.
11
12Upstream-Status: Submitted [https://github.com/systemd/systemd-netlogd/pull/148]
13Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
14---
15 src/netlog/netlog-conf.c | 2 +-
16 src/share/path-util.c | 3 ++-
17 src/share/socket-util.c | 3 ++-
18 3 files changed, 5 insertions(+), 3 deletions(-)
19
20diff --git a/src/netlog/netlog-conf.c b/src/netlog/netlog-conf.c
21index a4cf0da..59bdd23 100644
22--- a/src/netlog/netlog-conf.c
23+++ b/src/netlog/netlog-conf.c
24@@ -22,7 +22,7 @@ int config_parse_netlog_remote_address(const char *unit,
25 void *data,
26 void *userdata) {
27 Manager *m = userdata;
28- char *e;
29+ const char *e;
30 int r;
31
32 assert(filename);
33diff --git a/src/share/path-util.c b/src/share/path-util.c
34index dda7ec6..ad6f24a 100644
35--- a/src/share/path-util.c
36+++ b/src/share/path-util.c
37@@ -327,7 +327,8 @@ bool path_is_safe(const char *p) {
38 }
39
40 char *file_in_same_dir(const char *path, const char *filename) {
41- char *e, *ret;
42+ const char *e;
43+ char *ret;
44 size_t k;
45
46 assert(path);
47diff --git a/src/share/socket-util.c b/src/share/socket-util.c
48index ae33338..5a6284b 100644
49--- a/src/share/socket-util.c
50+++ b/src/share/socket-util.c
51@@ -33,7 +33,8 @@
52 #include "util.h"
53
54 int socket_address_parse(SocketAddress *a, const char *s) {
55- char *e, *n;
56+ const char *e;
57+ char *n;
58 unsigned u;
59 int r;
60
diff --git a/meta-oe/recipes-support/systemd-netlogd/systemd-netlogd_1.4.4.bb b/meta-oe/recipes-support/systemd-netlogd/systemd-netlogd_1.4.5.bb
index 019098fdf7..c52940ec70 100644
--- a/meta-oe/recipes-support/systemd-netlogd/systemd-netlogd_1.4.4.bb
+++ b/meta-oe/recipes-support/systemd-netlogd/systemd-netlogd_1.4.5.bb
@@ -3,8 +3,10 @@ SUMMARY = "Forwards messages from the journal to other hosts over the network us
3LICENSE = "LGPL-2.1-or-later" 3LICENSE = "LGPL-2.1-or-later"
4LIC_FILES_CHKSUM = "file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c" 4LIC_FILES_CHKSUM = "file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c"
5 5
6SRC_URI = "git://github.com/systemd/systemd-netlogd.git;protocol=https;branch=main" 6SRC_URI = "git://github.com/systemd/systemd-netlogd.git;protocol=https;branch=main;tag=v${PV} \
7SRCREV = "b03cc3b1a75048c7cf19467d8918a4b7320767e6" 7 file://0001-Fix-const-correctness-for-pointer-variables-to-refer.patch \
8 "
9SRCREV = "20534091417686d1185acb3f29e93944d8663c4b"
8 10
9inherit meson systemd pkgconfig useradd features_check 11inherit meson systemd pkgconfig useradd features_check
10 12