diff options
| author | Khem Raj <khem.raj@oss.qualcomm.com> | 2026-04-15 10:43:44 -0700 |
|---|---|---|
| committer | Khem Raj <khem.raj@oss.qualcomm.com> | 2026-04-15 22:46:00 -0700 |
| commit | 0d39d65c0e0ced4e130718f39ed8b262605134b7 (patch) | |
| tree | 0399772b42ae1433468ffa54615806498df10e20 /meta-oe | |
| parent | 0556ca04c65ee4316effa77f57275286c121e50e (diff) | |
| download | meta-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.patch | 60 | ||||
| -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 @@ | |||
| 1 | From 515e23b37ad1400bfb73797771c4f0fd78655328 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <khem.raj@oss.qualcomm.com> | ||
| 3 | Date: Wed, 15 Apr 2026 10:52:05 -0700 | ||
| 4 | Subject: [PATCH] Fix const-correctness for pointer variables to referred | ||
| 5 | strings | ||
| 6 | |||
| 7 | Mark pointer variables 'e' as 'const char *' in | ||
| 8 | config_parse_netlog_remote_address,file_in_same_dir, and | ||
| 9 | socket_address_parse, since they point to memory they do not | ||
| 10 | own or modify. | ||
| 11 | |||
| 12 | Upstream-Status: Submitted [https://github.com/systemd/systemd-netlogd/pull/148] | ||
| 13 | Signed-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 | |||
| 20 | diff --git a/src/netlog/netlog-conf.c b/src/netlog/netlog-conf.c | ||
| 21 | index 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); | ||
| 33 | diff --git a/src/share/path-util.c b/src/share/path-util.c | ||
| 34 | index 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); | ||
| 47 | diff --git a/src/share/socket-util.c b/src/share/socket-util.c | ||
| 48 | index 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 | |||
| 3 | LICENSE = "LGPL-2.1-or-later" | 3 | LICENSE = "LGPL-2.1-or-later" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c" | 4 | LIC_FILES_CHKSUM = "file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c" |
| 5 | 5 | ||
| 6 | SRC_URI = "git://github.com/systemd/systemd-netlogd.git;protocol=https;branch=main" | 6 | SRC_URI = "git://github.com/systemd/systemd-netlogd.git;protocol=https;branch=main;tag=v${PV} \ |
| 7 | SRCREV = "b03cc3b1a75048c7cf19467d8918a4b7320767e6" | 7 | file://0001-Fix-const-correctness-for-pointer-variables-to-refer.patch \ |
| 8 | " | ||
| 9 | SRCREV = "20534091417686d1185acb3f29e93944d8663c4b" | ||
| 8 | 10 | ||
| 9 | inherit meson systemd pkgconfig useradd features_check | 11 | inherit meson systemd pkgconfig useradd features_check |
| 10 | 12 | ||
