* [OE-core][PATCH 1/6] systemd/systemd-boot: upgrade from 255.4 to 255.6
@ 2024-05-20 8:10 Qi.Chen
2024-05-20 8:10 ` [OE-core][PATCH 2/6] util-linux/util-linux-libuuid: upgrade from 2.39.3 to 2.40.1 Qi.Chen
` (5 more replies)
0 siblings, 6 replies; 14+ messages in thread
From: Qi.Chen @ 2024-05-20 8:10 UTC (permalink / raw)
To: openembedded-core
From: Chen Qi <Qi.Chen@windriver.com>
musl patches are refreshed to avoid 'patch-fuzz' error.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
..._255.4.bb => systemd-boot-native_255.6.bb} | 0
...md-boot_255.4.bb => systemd-boot_255.6.bb} | 0
meta/recipes-core/systemd/systemd.inc | 2 +-
...1-missing_type.h-add-comparison_fn_t.patch | 7 +--
...k-parse_printf_format-implementation.patch | 13 ++---
...tall-dependency-links-at-install-tim.patch | 9 +--
...missing.h-check-for-missing-strndupa.patch | 55 +++++++++----------
...OB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch | 14 ++---
...005-add-missing-FTW_-macros-for-musl.patch | 7 +--
...06-Use-uintmax_t-for-handling-rlim_t.patch | 11 ++--
...T_SYMLINK_NOFOLLOW-flag-to-faccessat.patch | 11 ++--
...patible-basename-for-non-glibc-syste.patch | 8 +--
...implment-systemd-sysv-install-for-OE.patch | 5 +-
...uffering-when-writing-to-oom_score_a.patch | 9 +--
...compliant-strerror_r-from-GNU-specif.patch | 13 ++---
...definition-of-prctl_mm_map-structure.patch | 7 +--
...-not-disable-buffer-in-writing-files.patch | 35 ++++++------
.../0013-Handle-__cpu_mask-usage.patch | 7 +--
.../systemd/0014-Handle-missing-gshadow.patch | 7 +--
...l.h-Define-MIPS-ABI-defines-for-musl.patch | 11 ++--
...ass-correct-parameters-to-getdents64.patch | 7 +--
| 17 +++---
...trerror-is-assumed-to-be-GNU-specifi.patch | 9 +--
...util-Make-STRERROR-portable-for-musl.patch | 7 +--
...ake-malloc_trim-conditional-on-glibc.patch | 9 +--
...hared-Do-not-use-malloc_info-on-musl.patch | 7 +--
...22-avoid-missing-LOCK_EX-declaration.patch | 9 +--
.../{systemd_255.4.bb => systemd_255.6.bb} | 0
28 files changed, 111 insertions(+), 185 deletions(-)
rename meta/recipes-core/systemd/{systemd-boot-native_255.4.bb => systemd-boot-native_255.6.bb} (100%)
rename meta/recipes-core/systemd/{systemd-boot_255.4.bb => systemd-boot_255.6.bb} (100%)
rename meta/recipes-core/systemd/{systemd_255.4.bb => systemd_255.6.bb} (100%)
diff --git a/meta/recipes-core/systemd/systemd-boot-native_255.4.bb b/meta/recipes-core/systemd/systemd-boot-native_255.6.bb
similarity index 100%
rename from meta/recipes-core/systemd/systemd-boot-native_255.4.bb
rename to meta/recipes-core/systemd/systemd-boot-native_255.6.bb
diff --git a/meta/recipes-core/systemd/systemd-boot_255.4.bb b/meta/recipes-core/systemd/systemd-boot_255.6.bb
similarity index 100%
rename from meta/recipes-core/systemd/systemd-boot_255.4.bb
rename to meta/recipes-core/systemd/systemd-boot_255.6.bb
diff --git a/meta/recipes-core/systemd/systemd.inc b/meta/recipes-core/systemd/systemd.inc
index a35db5091e..8bda47dd38 100644
--- a/meta/recipes-core/systemd/systemd.inc
+++ b/meta/recipes-core/systemd/systemd.inc
@@ -15,7 +15,7 @@ LICENSE:libsystemd = "LGPL-2.1-or-later"
LIC_FILES_CHKSUM = "file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \
file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c"
-SRCREV = "387a14a7b67b8b76adaed4175e14bb7e39b2f738"
+SRCREV = "5810c25792d4268282dd3892af1a253b690423c9"
SRCBRANCH = "v255-stable"
SRC_URI = "git://github.com/systemd/systemd-stable.git;protocol=https;branch=${SRCBRANCH}"
diff --git a/meta/recipes-core/systemd/systemd/0001-missing_type.h-add-comparison_fn_t.patch b/meta/recipes-core/systemd/systemd/0001-missing_type.h-add-comparison_fn_t.patch
index 2aa5dee6b5..49871d16a8 100644
--- a/meta/recipes-core/systemd/systemd/0001-missing_type.h-add-comparison_fn_t.patch
+++ b/meta/recipes-core/systemd/systemd/0001-missing_type.h-add-comparison_fn_t.patch
@@ -1,7 +1,7 @@
-From 01195eb9f7d59139fb45df506ac6b3968c14a57f Mon Sep 17 00:00:00 2001
+From d4b0bb9c7651017985fdd75469f37c34ce2f2c50 Mon Sep 17 00:00:00 2001
From: Chen Qi <Qi.Chen@windriver.com>
Date: Mon, 25 Feb 2019 13:55:12 +0800
-Subject: [PATCH 01/22] missing_type.h: add comparison_fn_t
+Subject: [PATCH] missing_type.h: add comparison_fn_t
Make it work with musl where comparison_fn_t and is not provided.
@@ -56,6 +56,3 @@ index ae91534198..7f67eea38b 100644
const char * const catalog_file_dirs[] = {
"/usr/local/lib/systemd/catalog/",
---
-2.34.1
-
diff --git a/meta/recipes-core/systemd/systemd/0002-add-fallback-parse_printf_format-implementation.patch b/meta/recipes-core/systemd/systemd/0002-add-fallback-parse_printf_format-implementation.patch
index 900a931632..593d6261e1 100644
--- a/meta/recipes-core/systemd/systemd/0002-add-fallback-parse_printf_format-implementation.patch
+++ b/meta/recipes-core/systemd/systemd/0002-add-fallback-parse_printf_format-implementation.patch
@@ -1,7 +1,7 @@
-From 872b72739e62123867ce6c4f82aa37de24cc3f75 Mon Sep 17 00:00:00 2001
+From 776913624aaf696a3b2920b8d7506b3aae042bf1 Mon Sep 17 00:00:00 2001
From: Alexander Kanavin <alex.kanavin@gmail.com>
Date: Sat, 22 May 2021 20:26:24 +0200
-Subject: [PATCH 02/22] add fallback parse_printf_format implementation
+Subject: [PATCH] add fallback parse_printf_format implementation
Upstream-Status: Inappropriate [musl specific]
@@ -22,10 +22,10 @@ Signed-off-by: Scott Murray <scott.murray@konsulko.com>
create mode 100644 src/basic/parse-printf-format.h
diff --git a/meson.build b/meson.build
-index 7419e2b0b0..01fd3ffc19 100644
+index 187e7b216d..c4694a9ddc 100644
--- a/meson.build
+++ b/meson.build
-@@ -725,6 +725,7 @@ endif
+@@ -727,6 +727,7 @@ endif
foreach header : ['crypt.h',
'linux/memfd.h',
'linux/vm_sockets.h',
@@ -34,7 +34,7 @@ index 7419e2b0b0..01fd3ffc19 100644
'threads.h',
'valgrind/memcheck.h',
diff --git a/src/basic/meson.build b/src/basic/meson.build
-index d7450d8b44..c3e3daf4bd 100644
+index 111253e3a5..bdaa2fc5e4 100644
--- a/src/basic/meson.build
+++ b/src/basic/meson.build
@@ -183,6 +183,11 @@ endforeach
@@ -429,6 +429,3 @@ index be23b2fe75..69a2eb6404 100644
#define SNDBUF_SIZE (8*1024*1024)
---
-2.34.1
-
diff --git a/meta/recipes-core/systemd/systemd/0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch b/meta/recipes-core/systemd/systemd/0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch
index be231cf6b2..4c73c924ef 100644
--- a/meta/recipes-core/systemd/systemd/0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch
+++ b/meta/recipes-core/systemd/systemd/0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch
@@ -1,8 +1,8 @@
-From 29a58009a172e369ad7166e16dab2f4945c6b0d2 Mon Sep 17 00:00:00 2001
+From 661a34c3de30d4ff4a2a62c9a0573c6ce55424e4 Mon Sep 17 00:00:00 2001
From: Chen Qi <Qi.Chen@windriver.com>
Date: Thu, 21 Feb 2019 16:23:24 +0800
-Subject: [PATCH 1/2] binfmt: Don't install dependency links at install time
- for the binfmt services
+Subject: [PATCH] binfmt: Don't install dependency links at install time for
+ the binfmt services
use [Install] blocks so that they get created when the service is enabled
like a traditional service.
@@ -74,6 +74,3 @@ index 6861c76674..531e9fbd90 100644
+
+[Install]
+WantedBy=sysinit.target
---
-2.34.1
-
diff --git a/meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch b/meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch
index 5595b5bc23..f09f2114d3 100644
--- a/meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch
+++ b/meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch
@@ -1,7 +1,7 @@
-From 87f1d38f40c5fe9cadf2b2de442473e4e5605788 Mon Sep 17 00:00:00 2001
+From 843c6c94bf6a29eaceeefafa420cd86a32e844d2 Mon Sep 17 00:00:00 2001
From: Chen Qi <Qi.Chen@windriver.com>
Date: Mon, 25 Feb 2019 14:18:21 +0800
-Subject: [PATCH 03/22] src/basic/missing.h: check for missing strndupa
+Subject: [PATCH] src/basic/missing.h: check for missing strndupa
include missing.h for definition of strndupa
@@ -75,10 +75,10 @@ Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
51 files changed, 62 insertions(+)
diff --git a/meson.build b/meson.build
-index 01fd3ffc19..61a872b753 100644
+index c4694a9ddc..d376b76afa 100644
--- a/meson.build
+++ b/meson.build
-@@ -567,6 +567,7 @@ foreach ident : ['secure_getenv', '__secure_getenv']
+@@ -569,6 +569,7 @@ foreach ident : ['secure_getenv', '__secure_getenv']
endforeach
foreach ident : [
@@ -87,7 +87,7 @@ index 01fd3ffc19..61a872b753 100644
['gettid', '''#include <sys/types.h>
#include <unistd.h>'''],
diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c
-index 5ac9f904a9..99d5122dd7 100644
+index b2032adaa5..ee9201826d 100644
--- a/src/backlight/backlight.c
+++ b/src/backlight/backlight.c
@@ -20,6 +20,7 @@
@@ -111,7 +111,7 @@ index 18b16ecc0e..d2be79622f 100644
static int cg_enumerate_items(const char *controller, const char *path, FILE **ret, const char *item) {
_cleanup_free_ char *fs = NULL;
diff --git a/src/basic/env-util.c b/src/basic/env-util.c
-index d3bf73385f..16b17358ca 100644
+index a97651d7af..09fa601250 100644
--- a/src/basic/env-util.c
+++ b/src/basic/env-util.c
@@ -19,6 +19,7 @@
@@ -123,7 +123,7 @@ index d3bf73385f..16b17358ca 100644
/* We follow bash for the character set. Different shells have different rules. */
#define VALID_BASH_ENV_NAME_CHARS \
diff --git a/src/basic/log.c b/src/basic/log.c
-index 1470611a75..9924ec2b9a 100644
+index 7a443005f6..eed69a48ee 100644
--- a/src/basic/log.c
+++ b/src/basic/log.c
@@ -40,6 +40,7 @@
@@ -251,7 +251,7 @@ index f9014dc560..1d7840a5b5 100644
static clockid_t map_clock_id(clockid_t c) {
diff --git a/src/boot/bless-boot.c b/src/boot/bless-boot.c
-index 0c0b4f23c7..68fe5ca509 100644
+index 12dfdf76fa..e66332519a 100644
--- a/src/boot/bless-boot.c
+++ b/src/boot/bless-boot.c
@@ -22,6 +22,7 @@
@@ -263,7 +263,7 @@ index 0c0b4f23c7..68fe5ca509 100644
static char **arg_path = NULL;
diff --git a/src/core/dbus-cgroup.c b/src/core/dbus-cgroup.c
-index 4237e694c0..05f9d9d9a9 100644
+index 8a9570fd21..ac4202e5ce 100644
--- a/src/core/dbus-cgroup.c
+++ b/src/core/dbus-cgroup.c
@@ -25,6 +25,7 @@
@@ -275,7 +275,7 @@ index 4237e694c0..05f9d9d9a9 100644
BUS_DEFINE_PROPERTY_GET(bus_property_get_tasks_max, "t", CGroupTasksMax, cgroup_tasks_max_resolve);
diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c
-index 4daa1cefd3..2c77901471 100644
+index 2d05ba7e1d..61a7de0037 100644
--- a/src/core/dbus-execute.c
+++ b/src/core/dbus-execute.c
@@ -42,6 +42,7 @@
@@ -287,10 +287,10 @@ index 4daa1cefd3..2c77901471 100644
BUS_DEFINE_PROPERTY_GET_ENUM(bus_property_get_exec_output, exec_output, ExecOutput);
static BUS_DEFINE_PROPERTY_GET_ENUM(property_get_exec_input, exec_input, ExecInput);
diff --git a/src/core/dbus-util.c b/src/core/dbus-util.c
-index d680a64268..e59f48103e 100644
+index 7bb026af48..a86128e40c 100644
--- a/src/core/dbus-util.c
+++ b/src/core/dbus-util.c
-@@ -9,6 +9,7 @@
+@@ -10,6 +10,7 @@
#include "unit-printf.h"
#include "user-util.h"
#include "unit.h"
@@ -299,7 +299,7 @@ index d680a64268..e59f48103e 100644
int bus_property_get_triggered_unit(
sd_bus *bus,
diff --git a/src/core/execute.c b/src/core/execute.c
-index ef0bf88687..bd3da0c401 100644
+index 8dbdfcf369..531bec4c92 100644
--- a/src/core/execute.c
+++ b/src/core/execute.c
@@ -72,6 +72,7 @@
@@ -323,7 +323,7 @@ index b8e3f7aadd..8ce8ca68d8 100644
#if HAVE_KMOD
#include "module-util.h"
diff --git a/src/core/service.c b/src/core/service.c
-index b9eb40c555..268fe7573b 100644
+index 42fffbbd67..80a8d05a19 100644
--- a/src/core/service.c
+++ b/src/core/service.c
@@ -45,6 +45,7 @@
@@ -359,7 +359,7 @@ index 016f3baa7f..b1def81313 100644
typedef enum MountPointFlags {
MOUNT_NOAUTO = 1 << 0,
diff --git a/src/journal-remote/journal-remote-main.c b/src/journal-remote/journal-remote-main.c
-index da0f20d3ce..f22ce41908 100644
+index 2d380bc7a7..d3f5612728 100644
--- a/src/journal-remote/journal-remote-main.c
+++ b/src/journal-remote/journal-remote-main.c
@@ -27,6 +27,7 @@
@@ -371,7 +371,7 @@ index da0f20d3ce..f22ce41908 100644
#define PRIV_KEY_FILE CERTIFICATE_ROOT "/private/journal-remote.pem"
#define CERT_FILE CERTIFICATE_ROOT "/certs/journal-remote.pem"
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
-index 7f3dcd56a4..41b7cbaaf1 100644
+index 87e2f28841..58275f41f1 100644
--- a/src/journal/journalctl.c
+++ b/src/journal/journalctl.c
@@ -77,6 +77,7 @@
@@ -383,7 +383,7 @@ index 7f3dcd56a4..41b7cbaaf1 100644
#define DEFAULT_FSS_INTERVAL_USEC (15*USEC_PER_MINUTE)
#define PROCESS_INOTIFY_INTERVAL 1024 /* Every 1,024 messages processed */
diff --git a/src/libsystemd/sd-bus/bus-message.c b/src/libsystemd/sd-bus/bus-message.c
-index ff0228081f..9066fcb133 100644
+index ab8b06896d..43f9131205 100644
--- a/src/libsystemd/sd-bus/bus-message.c
+++ b/src/libsystemd/sd-bus/bus-message.c
@@ -19,6 +19,7 @@
@@ -407,7 +407,7 @@ index c25c40ff37..57a5da704f 100644
static int node_vtable_get_userdata(
sd_bus *bus,
diff --git a/src/libsystemd/sd-bus/bus-socket.c b/src/libsystemd/sd-bus/bus-socket.c
-index 3c59d0d615..746922d46f 100644
+index 5ade8e99aa..7553cf319d 100644
--- a/src/libsystemd/sd-bus/bus-socket.c
+++ b/src/libsystemd/sd-bus/bus-socket.c
@@ -29,6 +29,7 @@
@@ -419,7 +419,7 @@ index 3c59d0d615..746922d46f 100644
#define SNDBUF_SIZE (8*1024*1024)
diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c
-index 4a0259f8bb..aaa90d2223 100644
+index 8befc97460..6ee4d4f595 100644
--- a/src/libsystemd/sd-bus/sd-bus.c
+++ b/src/libsystemd/sd-bus/sd-bus.c
@@ -46,6 +46,7 @@
@@ -443,7 +443,7 @@ index d988588de0..458df8df9a 100644
#define MAX_SIZE (2*1024*1024)
diff --git a/src/libsystemd/sd-journal/sd-journal.c b/src/libsystemd/sd-journal/sd-journal.c
-index 6b9ff0a4ed..4a5027ad0f 100644
+index 7a1dd2569f..d187baad47 100644
--- a/src/libsystemd/sd-journal/sd-journal.c
+++ b/src/libsystemd/sd-journal/sd-journal.c
@@ -44,6 +44,7 @@
@@ -455,7 +455,7 @@ index 6b9ff0a4ed..4a5027ad0f 100644
#define JOURNAL_FILES_RECHECK_USEC (2 * USEC_PER_SEC)
diff --git a/src/login/pam_systemd.c b/src/login/pam_systemd.c
-index b8da266e27..4bb8dd9496 100644
+index bf45974ca5..2cb7e930c0 100644
--- a/src/login/pam_systemd.c
+++ b/src/login/pam_systemd.c
@@ -35,6 +35,7 @@
@@ -503,10 +503,10 @@ index c64e79bdff..eda26b0b9a 100644
static void setup_logging_once(void) {
static pthread_once_t once = PTHREAD_ONCE_INIT;
diff --git a/src/portable/portable.c b/src/portable/portable.c
-index d4b448a627..bb26623565 100644
+index 3b2a37912f..835a3fdeaa 100644
--- a/src/portable/portable.c
+++ b/src/portable/portable.c
-@@ -40,6 +40,7 @@
+@@ -42,6 +42,7 @@
#include "strv.h"
#include "tmpfile-util.h"
#include "user-util.h"
@@ -551,7 +551,7 @@ index 8b462b5627..183ce1c18e 100644
struct CGroupInfo {
char *cgroup_path;
diff --git a/src/shared/bus-unit-util.c b/src/shared/bus-unit-util.c
-index 4ee9706847..30c8084847 100644
+index 50de98941f..d47beccb0b 100644
--- a/src/shared/bus-unit-util.c
+++ b/src/shared/bus-unit-util.c
@@ -50,6 +50,7 @@
@@ -599,7 +599,7 @@ index 83e9834bbf..74eaae6f5e 100644
enum {
IMPORTER_STATE_LINE = 0, /* waiting to read, or reading line */
diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c
-index a5d04003bd..10392c132d 100644
+index 0a31be382f..92d629e7e0 100644
--- a/src/shared/logs-show.c
+++ b/src/shared/logs-show.c
@@ -41,6 +41,7 @@
@@ -683,7 +683,7 @@ index ed22c8b679..19ebe20237 100644
UdevEvent *udev_event_new(sd_device *dev, usec_t exec_delay_usec, sd_netlink *rtnl, int log_level) {
UdevEvent *event;
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
-index 5f12002394..febe345b4c 100644
+index c242549654..e5b8df5c2d 100644
--- a/src/udev/udev-rules.c
+++ b/src/udev/udev-rules.c
@@ -41,6 +41,7 @@
@@ -694,6 +694,3 @@ index 5f12002394..febe345b4c 100644
#define RULES_DIRS ((const char* const*) CONF_PATHS_STRV("udev/rules.d"))
---
-2.34.1
-
diff --git a/meta/recipes-core/systemd/systemd/0004-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch b/meta/recipes-core/systemd/systemd/0004-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch
index 15877bea88..15d25e9f19 100644
--- a/meta/recipes-core/systemd/systemd/0004-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch
+++ b/meta/recipes-core/systemd/systemd/0004-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch
@@ -1,8 +1,7 @@
-From 5325ab5813617f35f03806ec420829dde7104387 Mon Sep 17 00:00:00 2001
+From 2903e42c7cd727a2374d21b78950308de792ebe8 Mon Sep 17 00:00:00 2001
From: Chen Qi <Qi.Chen@windriver.com>
Date: Mon, 25 Feb 2019 14:56:21 +0800
-Subject: [PATCH 04/22] don't fail if GLOB_BRACE and GLOB_ALTDIRFUNC is not
- defined
+Subject: [PATCH] don't fail if GLOB_BRACE and GLOB_ALTDIRFUNC is not defined
If the standard library doesn't provide brace
expansion users just won't get it.
@@ -115,7 +114,7 @@ index 9b3e73cce0..3790ba3be5 100644
(void) rm_rf(template, REMOVE_ROOT|REMOVE_PHYSICAL);
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
-index 230ec09b97..2cc5f391d7 100644
+index 6a1c7725a1..138b3ac561 100644
--- a/src/tmpfiles/tmpfiles.c
+++ b/src/tmpfiles/tmpfiles.c
@@ -73,6 +73,12 @@
@@ -131,7 +130,7 @@ index 230ec09b97..2cc5f391d7 100644
/* This reads all files listed in /etc/tmpfiles.d/?*.conf and creates
* them in the file system. This is intended to be used to create
* properly owned directories beneath /tmp, /var/tmp, /run, which are
-@@ -2434,7 +2440,9 @@ finish:
+@@ -2426,7 +2432,9 @@ finish:
static int glob_item(Context *c, Item *i, action_t action) {
_cleanup_globfree_ glob_t g = {
@@ -141,7 +140,7 @@ index 230ec09b97..2cc5f391d7 100644
};
int r = 0, k;
-@@ -2461,7 +2469,9 @@ static int glob_item_recursively(
+@@ -2453,7 +2461,9 @@ static int glob_item_recursively(
fdaction_t action) {
_cleanup_globfree_ glob_t g = {
@@ -151,6 +150,3 @@ index 230ec09b97..2cc5f391d7 100644
};
int r = 0, k;
---
-2.34.1
-
diff --git a/meta/recipes-core/systemd/systemd/0005-add-missing-FTW_-macros-for-musl.patch b/meta/recipes-core/systemd/systemd/0005-add-missing-FTW_-macros-for-musl.patch
index a1dfca22cd..deb0e83b6d 100644
--- a/meta/recipes-core/systemd/systemd/0005-add-missing-FTW_-macros-for-musl.patch
+++ b/meta/recipes-core/systemd/systemd/0005-add-missing-FTW_-macros-for-musl.patch
@@ -1,7 +1,7 @@
-From dad7f897c0de654fa5592fda3e90f874639849f9 Mon Sep 17 00:00:00 2001
+From dcd9639657e4122b7665b01a067219f990ee3ace Mon Sep 17 00:00:00 2001
From: Chen Qi <Qi.Chen@windriver.com>
Date: Mon, 25 Feb 2019 15:00:06 +0800
-Subject: [PATCH 05/22] add missing FTW_ macros for musl
+Subject: [PATCH] add missing FTW_ macros for musl
This is to avoid build failures like below for musl.
@@ -39,6 +39,3 @@ index 8684d064ec..70fc2b5376 100644
static char **list_nftw = NULL;
---
-2.34.1
-
diff --git a/meta/recipes-core/systemd/systemd/0006-Use-uintmax_t-for-handling-rlim_t.patch b/meta/recipes-core/systemd/systemd/0006-Use-uintmax_t-for-handling-rlim_t.patch
index 4be14b72ec..f02675604d 100644
--- a/meta/recipes-core/systemd/systemd/0006-Use-uintmax_t-for-handling-rlim_t.patch
+++ b/meta/recipes-core/systemd/systemd/0006-Use-uintmax_t-for-handling-rlim_t.patch
@@ -1,7 +1,7 @@
-From 96e975a2412a20e5f80bd3ab144057d275eb8597 Mon Sep 17 00:00:00 2001
+From c58933386caa8e45b5e814ec4ff210b18ab401da Mon Sep 17 00:00:00 2001
From: Chen Qi <Qi.Chen@windriver.com>
Date: Mon, 25 Feb 2019 15:12:41 +0800
-Subject: [PATCH 06/22] Use uintmax_t for handling rlim_t
+Subject: [PATCH] Use uintmax_t for handling rlim_t
PRIu{32,64} is not right format to represent rlim_t type
therefore use %ju and typecast the rlim_t variables to
@@ -86,10 +86,10 @@ index c1f0b2b974..61c5412582 100644
return 1;
}
diff --git a/src/core/execute.c b/src/core/execute.c
-index bd3da0c401..df1870fd2f 100644
+index 531bec4c92..602a95f674 100644
--- a/src/core/execute.c
+++ b/src/core/execute.c
-@@ -1045,9 +1045,9 @@ void exec_context_dump(const ExecContext *c, FILE* f, const char *prefix) {
+@@ -1041,9 +1041,9 @@ void exec_context_dump(const ExecContext *c, FILE* f, const char *prefix) {
for (unsigned i = 0; i < RLIM_NLIMITS; i++)
if (c->rlimit[i]) {
fprintf(f, "%sLimit%s: " RLIM_FMT "\n",
@@ -101,6 +101,3 @@ index bd3da0c401..df1870fd2f 100644
}
if (c->ioprio_set) {
---
-2.34.1
-
diff --git a/meta/recipes-core/systemd/systemd/0007-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch b/meta/recipes-core/systemd/systemd/0007-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch
index 8d6084239e..1d4ce33712 100644
--- a/meta/recipes-core/systemd/systemd/0007-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch
+++ b/meta/recipes-core/systemd/systemd/0007-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch
@@ -1,7 +1,7 @@
-From 4842cff4f1329f0b5034b529d56f8ad1f234ac4c Mon Sep 17 00:00:00 2001
+From 5bf8235bc5c802908aa5d95740350927d87e953a Mon Sep 17 00:00:00 2001
From: Andre McCurdy <armccurdy@gmail.com>
Date: Tue, 10 Oct 2017 14:33:30 -0700
-Subject: [PATCH 07/22] don't pass AT_SYMLINK_NOFOLLOW flag to faccessat()
+Subject: [PATCH] don't pass AT_SYMLINK_NOFOLLOW flag to faccessat()
Avoid using AT_SYMLINK_NOFOLLOW flag. It doesn't seem like the right
thing to do and it's not portable (not supported by musl). See:
@@ -31,7 +31,7 @@ Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
2 files changed, 23 insertions(+), 4 deletions(-)
diff --git a/src/basic/fs-util.h b/src/basic/fs-util.h
-index 1023ab73ca..c78ff6f27f 100644
+index 6a1e2e76d1..c3f7235e09 100644
--- a/src/basic/fs-util.h
+++ b/src/basic/fs-util.h
@@ -49,8 +49,27 @@ int futimens_opath(int fd, const struct timespec ts[2]);
@@ -64,7 +64,7 @@ index 1023ab73ca..c78ff6f27f 100644
int touch_file(const char *path, bool parents, usec_t stamp, uid_t uid, gid_t gid, mode_t mode);
diff --git a/src/shared/base-filesystem.c b/src/shared/base-filesystem.c
-index 569ef466c3..7ae921a113 100644
+index a4e2dae245..67aa8ea1f2 100644
--- a/src/shared/base-filesystem.c
+++ b/src/shared/base-filesystem.c
@@ -145,7 +145,7 @@ int base_filesystem_create_fd(int fd, const char *root, uid_t uid, gid_t gid) {
@@ -94,6 +94,3 @@ index 569ef466c3..7ae921a113 100644
continue;
}
---
-2.34.1
-
diff --git a/meta/recipes-core/systemd/systemd/0008-Define-glibc-compatible-basename-for-non-glibc-syste.patch b/meta/recipes-core/systemd/systemd/0008-Define-glibc-compatible-basename-for-non-glibc-syste.patch
index c1a8bb19fe..1ab23553f9 100644
--- a/meta/recipes-core/systemd/systemd/0008-Define-glibc-compatible-basename-for-non-glibc-syste.patch
+++ b/meta/recipes-core/systemd/systemd/0008-Define-glibc-compatible-basename-for-non-glibc-syste.patch
@@ -1,8 +1,7 @@
-From bab07e779ff23d5593bb118efaaa31b60a6dce87 Mon Sep 17 00:00:00 2001
+From d98f6bd4d8acdc4c1a5bff4c699f5004a6ebccce Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sun, 27 May 2018 08:36:44 -0700
-Subject: [PATCH 08/22] Define glibc compatible basename() for non-glibc
- systems
+Subject: [PATCH] Define glibc compatible basename() for non-glibc systems
Fixes builds with musl, even though systemd is adamant about
using non-posix basename implementation, we have a way out
@@ -29,6 +28,3 @@ index b6d8be3083..0a29036c4c 100644
static inline char* strstr_ptr(const char *haystack, const char *needle) {
if (!haystack || !needle)
return NULL;
---
-2.34.1
-
diff --git a/meta/recipes-core/systemd/systemd/0008-implment-systemd-sysv-install-for-OE.patch b/meta/recipes-core/systemd/systemd/0008-implment-systemd-sysv-install-for-OE.patch
index acff18dc43..8b833ce073 100644
--- a/meta/recipes-core/systemd/systemd/0008-implment-systemd-sysv-install-for-OE.patch
+++ b/meta/recipes-core/systemd/systemd/0008-implment-systemd-sysv-install-for-OE.patch
@@ -1,4 +1,4 @@
-From 5712d56f1cd654d2e5d2e9117ff77fe4c299f76b Mon Sep 17 00:00:00 2001
+From 5f89867f2b15f9bd411564d04e660cdeedd370ca Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 5 Sep 2015 06:31:47 +0000
Subject: [PATCH] implment systemd-sysv-install for OE
@@ -38,6 +38,3 @@ index cb58d8243b..000bdf6165 100755
;;
*)
usage ;;
---
-2.39.2
-
diff --git a/meta/recipes-core/systemd/systemd/0009-Do-not-disable-buffering-when-writing-to-oom_score_a.patch b/meta/recipes-core/systemd/systemd/0009-Do-not-disable-buffering-when-writing-to-oom_score_a.patch
index 3ff0177ae3..98ab397eff 100644
--- a/meta/recipes-core/systemd/systemd/0009-Do-not-disable-buffering-when-writing-to-oom_score_a.patch
+++ b/meta/recipes-core/systemd/systemd/0009-Do-not-disable-buffering-when-writing-to-oom_score_a.patch
@@ -1,7 +1,7 @@
-From 25093c5017725b8577c444dfea0f42ad85b43522 Mon Sep 17 00:00:00 2001
+From f3943f58f3c8a9d20dcada56eb5ca5f673a49b3d Mon Sep 17 00:00:00 2001
From: Chen Qi <Qi.Chen@windriver.com>
Date: Wed, 4 Jul 2018 15:00:44 +0800
-Subject: [PATCH 09/22] Do not disable buffering when writing to oom_score_adj
+Subject: [PATCH] Do not disable buffering when writing to oom_score_adj
On musl, disabling buffering when writing to oom_score_adj will
cause the following error.
@@ -24,7 +24,7 @@ Signed-off-by: Scott Murray <scott.murray@konsulko.com>
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/basic/process-util.c b/src/basic/process-util.c
-index 201c5596ae..ea51595b6c 100644
+index 4492e7ded2..b61a2aba74 100644
--- a/src/basic/process-util.c
+++ b/src/basic/process-util.c
@@ -1716,7 +1716,7 @@ int set_oom_score_adjust(int value) {
@@ -36,6 +36,3 @@ index 201c5596ae..ea51595b6c 100644
}
int get_oom_score_adjust(int *ret) {
---
-2.34.1
-
diff --git a/meta/recipes-core/systemd/systemd/0010-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch b/meta/recipes-core/systemd/systemd/0010-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch
index cf59ac7d06..e1ffe4ddb5 100644
--- a/meta/recipes-core/systemd/systemd/0010-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch
+++ b/meta/recipes-core/systemd/systemd/0010-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch
@@ -1,7 +1,7 @@
-From 2adbe9773cd65c48eec9df96868d4a738927c8d9 Mon Sep 17 00:00:00 2001
+From 5305c5f18236a9d7f2e633ea6ad317e09e8f29d5 Mon Sep 17 00:00:00 2001
From: Chen Qi <Qi.Chen@windriver.com>
Date: Tue, 10 Jul 2018 15:40:17 +0800
-Subject: [PATCH 10/22] distinguish XSI-compliant strerror_r from GNU-specifi
+Subject: [PATCH] distinguish XSI-compliant strerror_r from GNU-specifi
strerror_r
XSI-compliant strerror_r and GNU-specifi strerror_r are different.
@@ -24,10 +24,10 @@ Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/src/libsystemd/sd-bus/bus-error.c b/src/libsystemd/sd-bus/bus-error.c
-index 77b2e1a0fd..fdba0e0142 100644
+index f415797700..a5c6e9a3bd 100644
--- a/src/libsystemd/sd-bus/bus-error.c
+++ b/src/libsystemd/sd-bus/bus-error.c
-@@ -408,7 +408,12 @@ static void bus_error_strerror(sd_bus_error *e, int error) {
+@@ -410,7 +410,12 @@ static void bus_error_strerror(sd_bus_error *e, int error) {
return;
errno = 0;
@@ -40,7 +40,7 @@ index 77b2e1a0fd..fdba0e0142 100644
if (errno == ERANGE || strlen(x) >= k - 1) {
free(m);
k *= 2;
-@@ -593,8 +598,12 @@ const char* _bus_error_message(const sd_bus_error *e, int error, char buf[static
+@@ -595,8 +600,12 @@ const char* _bus_error_message(const sd_bus_error *e, int error, char buf[static
if (e && e->message)
return e->message;
@@ -71,6 +71,3 @@ index 69a2eb6404..1561859650 100644
if (errno == 0) {
char error[STRLEN("ERRNO=") + DECIMAL_STR_MAX(int) + 1];
---
-2.34.1
-
diff --git a/meta/recipes-core/systemd/systemd/0011-avoid-redefinition-of-prctl_mm_map-structure.patch b/meta/recipes-core/systemd/systemd/0011-avoid-redefinition-of-prctl_mm_map-structure.patch
index e481b2e2e4..3075f9d003 100644
--- a/meta/recipes-core/systemd/systemd/0011-avoid-redefinition-of-prctl_mm_map-structure.patch
+++ b/meta/recipes-core/systemd/systemd/0011-avoid-redefinition-of-prctl_mm_map-structure.patch
@@ -1,7 +1,7 @@
-From 49c446cfb78cf74a909bed8c3798b77a5469866a Mon Sep 17 00:00:00 2001
+From c866c8652f06af4cd0b9bd7eedc606449f432b95 Mon Sep 17 00:00:00 2001
From: Chen Qi <Qi.Chen@windriver.com>
Date: Mon, 25 Feb 2019 15:44:54 +0800
-Subject: [PATCH 11/22] avoid redefinition of prctl_mm_map structure
+Subject: [PATCH] avoid redefinition of prctl_mm_map structure
Fix the following compile failure:
error: redefinition of 'struct prctl_mm_map'
@@ -27,6 +27,3 @@ index 7d9e395c92..88c2d7dfac 100644
/* 58319057b7847667f0c9585b9de0e8932b0fdb08 (4.3) */
#ifndef PR_CAP_AMBIENT
---
-2.34.1
-
diff --git a/meta/recipes-core/systemd/systemd/0012-do-not-disable-buffer-in-writing-files.patch b/meta/recipes-core/systemd/systemd/0012-do-not-disable-buffer-in-writing-files.patch
index 66be79077e..0fec84724d 100644
--- a/meta/recipes-core/systemd/systemd/0012-do-not-disable-buffer-in-writing-files.patch
+++ b/meta/recipes-core/systemd/systemd/0012-do-not-disable-buffer-in-writing-files.patch
@@ -1,7 +1,7 @@
-From e4885a8e60f883d9217e26e1db3754c2906aca31 Mon Sep 17 00:00:00 2001
+From 8464b845e6df1be303e09274c13e653072701671 Mon Sep 17 00:00:00 2001
From: Chen Qi <Qi.Chen@windriver.com>
Date: Fri, 1 Mar 2019 15:22:15 +0800
-Subject: [PATCH 12/22] do not disable buffer in writing files
+Subject: [PATCH] do not disable buffer in writing files
Do not disable buffer in writing files, otherwise we get
failure at boot for musl like below.
@@ -201,7 +201,7 @@ index 61ac4df1a6..ea18970196 100644
return r;
diff --git a/src/core/main.c b/src/core/main.c
-index 3f71cc0947..0e5aec3e9e 100644
+index 1c0030a75f..7108a87d46 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -1678,7 +1678,7 @@ static void initialize_core_pattern(bool skip_setup) {
@@ -253,7 +253,7 @@ index 066483e342..5f92dd7064 100644
log_warning_errno(r, "Failed to drop caches, ignoring: %m");
else
diff --git a/src/libsystemd/sd-device/sd-device.c b/src/libsystemd/sd-device/sd-device.c
-index 2fbc619a34..09d9591e37 100644
+index 01e66b4658..f3ea82ca1b 100644
--- a/src/libsystemd/sd-device/sd-device.c
+++ b/src/libsystemd/sd-device/sd-device.c
@@ -2516,7 +2516,7 @@ _public_ int sd_device_set_sysattr_value(sd_device *device, const char *sysattr,
@@ -279,10 +279,10 @@ index a5002437c6..b12e6cd9c9 100644
log_error_errno(r, "Failed to move process: %m");
goto finish;
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
-index 6ab604d3dc..bbec6b686c 100644
+index 0600f3e014..ea369c32b2 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
-@@ -2688,7 +2688,7 @@ static int reset_audit_loginuid(void) {
+@@ -2690,7 +2690,7 @@ static int reset_audit_loginuid(void) {
if (streq(p, "4294967295"))
return 0;
@@ -291,7 +291,7 @@ index 6ab604d3dc..bbec6b686c 100644
if (r < 0) {
log_error_errno(r,
"Failed to reset audit login UID. This probably means that your kernel is too\n"
-@@ -4141,7 +4141,7 @@ static int setup_uid_map(
+@@ -4143,7 +4143,7 @@ static int setup_uid_map(
return log_oom();
xsprintf(uid_map, "/proc/" PID_FMT "/uid_map", pid);
@@ -300,7 +300,7 @@ index 6ab604d3dc..bbec6b686c 100644
if (r < 0)
return log_error_errno(r, "Failed to write UID map: %m");
-@@ -4151,7 +4151,7 @@ static int setup_uid_map(
+@@ -4153,7 +4153,7 @@ static int setup_uid_map(
return log_oom();
xsprintf(uid_map, "/proc/" PID_FMT "/gid_map", pid);
@@ -367,10 +367,10 @@ index 805503f366..01a7ccb291 100644
log_debug_errno(r, "Failed to turn off coredumps, ignoring: %m");
}
diff --git a/src/shared/hibernate-util.c b/src/shared/hibernate-util.c
-index 3eb13d48f6..d09b901be1 100644
+index c3991cfa4c..7d522d8d1f 100644
--- a/src/shared/hibernate-util.c
+++ b/src/shared/hibernate-util.c
-@@ -481,7 +481,7 @@ int write_resume_config(dev_t devno, uint64_t offset, const char *device) {
+@@ -501,7 +501,7 @@ int write_resume_config(dev_t devno, uint64_t offset, const char *device) {
/* We write the offset first since it's safer. Note that this file is only available in 4.17+, so
* fail gracefully if it doesn't exist and we're only overwriting it with 0. */
@@ -379,7 +379,7 @@ index 3eb13d48f6..d09b901be1 100644
if (r == -ENOENT) {
if (offset != 0)
return log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP),
-@@ -497,7 +497,7 @@ int write_resume_config(dev_t devno, uint64_t offset, const char *device) {
+@@ -517,7 +517,7 @@ int write_resume_config(dev_t devno, uint64_t offset, const char *device) {
log_debug("Wrote resume_offset=%s for device '%s' to /sys/power/resume_offset.",
offset_str, device);
@@ -402,7 +402,7 @@ index 1f88e724d0..feb18b320a 100644
return r;
diff --git a/src/shared/watchdog.c b/src/shared/watchdog.c
-index 4c1a968718..6faf6806a5 100644
+index 99ccefb227..e4975018ab 100644
--- a/src/shared/watchdog.c
+++ b/src/shared/watchdog.c
@@ -93,7 +93,7 @@ static int set_pretimeout_governor(const char *governor) {
@@ -412,10 +412,10 @@ index 4c1a968718..6faf6806a5 100644
- WRITE_STRING_FILE_DISABLE_BUFFER | WRITE_STRING_FILE_VERIFY_ON_FAILURE | WRITE_STRING_FILE_VERIFY_IGNORE_NEWLINE);
+ WRITE_STRING_FILE_VERIFY_ON_FAILURE | WRITE_STRING_FILE_VERIFY_IGNORE_NEWLINE);
if (r < 0)
- return log_error_errno(r, "Failed to set pretimeout_governor to '%s': %m", governor);
+ return log_error_errno(r, "Failed to set watchdog pretimeout_governor to '%s': %m", governor);
diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c
-index 21af3e9e52..6d4b84b5d5 100644
+index 21062b24e0..262dd71d72 100644
--- a/src/sleep/sleep.c
+++ b/src/sleep/sleep.c
@@ -137,7 +137,7 @@ static int write_state(int fd, char * const *states) {
@@ -437,7 +437,7 @@ index 21af3e9e52..6d4b84b5d5 100644
log_debug("Using sleep disk mode '%s'.", *mode);
return 0;
diff --git a/src/storagetm/storagetm.c b/src/storagetm/storagetm.c
-index ae63baaf79..82eeca479a 100644
+index 16d4fb07d4..aca7506463 100644
--- a/src/storagetm/storagetm.c
+++ b/src/storagetm/storagetm.c
@@ -186,7 +186,7 @@ static int nvme_subsystem_unlink(NvmeSubsystem *s) {
@@ -533,7 +533,7 @@ index ae63baaf79..82eeca479a 100644
return log_error_errno(r, "Failed to set IP address on NVME port %" PRIu16 ": %m", portnr);
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
-index febe345b4c..a90b610ba1 100644
+index e5b8df5c2d..63ca15628c 100644
--- a/src/udev/udev-rules.c
+++ b/src/udev/udev-rules.c
@@ -2711,7 +2711,6 @@ static int udev_rule_apply_token_to_event(
@@ -557,6 +557,3 @@ index 4d82c65f0a..3a3d861b83 100644
if (r < 0)
return log_warning_errno(r, "Failed to %s sysfs UTF-8 flag: %m", enable_disable(utf8));
---
-2.34.1
-
diff --git a/meta/recipes-core/systemd/systemd/0013-Handle-__cpu_mask-usage.patch b/meta/recipes-core/systemd/systemd/0013-Handle-__cpu_mask-usage.patch
index 43f75373a6..6d7e002d61 100644
--- a/meta/recipes-core/systemd/systemd/0013-Handle-__cpu_mask-usage.patch
+++ b/meta/recipes-core/systemd/systemd/0013-Handle-__cpu_mask-usage.patch
@@ -1,7 +1,7 @@
-From 2f90f8463423cfbb7e83fcef42f1071018c3b56e Mon Sep 17 00:00:00 2001
+From f6b69f28657c09b1181552d85e52ced0e01182e3 Mon Sep 17 00:00:00 2001
From: Scott Murray <scott.murray@konsulko.com>
Date: Fri, 13 Sep 2019 19:26:27 -0400
-Subject: [PATCH 13/22] Handle __cpu_mask usage
+Subject: [PATCH] Handle __cpu_mask usage
Fixes errors:
@@ -55,6 +55,3 @@ index ea0c58770e..b65c0bd370 100644
/* Print information about various types. Useful when diagnosing
* gcc diagnostics on an unfamiliar architecture. */
---
-2.34.1
-
diff --git a/meta/recipes-core/systemd/systemd/0014-Handle-missing-gshadow.patch b/meta/recipes-core/systemd/systemd/0014-Handle-missing-gshadow.patch
index a751e1ba6f..40b60399aa 100644
--- a/meta/recipes-core/systemd/systemd/0014-Handle-missing-gshadow.patch
+++ b/meta/recipes-core/systemd/systemd/0014-Handle-missing-gshadow.patch
@@ -1,7 +1,7 @@
-From b7c827bb44edbb6251c9fcdb80aa03982c0e7bf3 Mon Sep 17 00:00:00 2001
+From 5442d8ddb285d33b459aefc76962640afd131280 Mon Sep 17 00:00:00 2001
From: Alex Kiernan <alex.kiernan@gmail.com>
Date: Tue, 10 Mar 2020 11:05:20 +0000
-Subject: [PATCH 14/22] Handle missing gshadow
+Subject: [PATCH] Handle missing gshadow
gshadow usage is now present in the userdb code. Mask all uses of it to
allow compilation on musl
@@ -168,6 +168,3 @@ index f60d48ace4..e878199a28 100644
if (r < 0)
return r;
---
-2.34.1
-
diff --git a/meta/recipes-core/systemd/systemd/0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch b/meta/recipes-core/systemd/systemd/0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch
index e112766a9b..51f0b048fa 100644
--- a/meta/recipes-core/systemd/systemd/0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch
+++ b/meta/recipes-core/systemd/systemd/0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch
@@ -1,7 +1,7 @@
-From 3dc9d9d410bcce54fddfd94f43f7f77f3aa8e281 Mon Sep 17 00:00:00 2001
+From 863dd6f502d53a4a2644e031eee2e8dfa3fd05aa Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Mon, 12 Apr 2021 23:44:53 -0700
-Subject: [PATCH 15/22] missing_syscall.h: Define MIPS ABI defines for musl
+Subject: [PATCH] missing_syscall.h: Define MIPS ABI defines for musl
musl does not define _MIPS_SIM_ABI32, _MIPS_SIM_NABI32, _MIPS_SIM_ABI64
unlike glibc where these are provided by libc headers, therefore define
@@ -16,7 +16,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
2 files changed, 7 insertions(+)
diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h
-index d795efd8f2..d6729d3c1d 100644
+index 86280771c4..20d05db506 100644
--- a/src/basic/missing_syscall.h
+++ b/src/basic/missing_syscall.h
@@ -20,6 +20,12 @@
@@ -33,7 +33,7 @@ index d795efd8f2..d6729d3c1d 100644
#include "missing_keyctl.h"
#include "missing_stat.h"
diff --git a/src/shared/base-filesystem.c b/src/shared/base-filesystem.c
-index 7ae921a113..0ef9d1fd39 100644
+index 67aa8ea1f2..8d9824495e 100644
--- a/src/shared/base-filesystem.c
+++ b/src/shared/base-filesystem.c
@@ -20,6 +20,7 @@
@@ -44,6 +44,3 @@ index 7ae921a113..0ef9d1fd39 100644
typedef struct BaseFilesystem {
const char *dir; /* directory or symlink to create */
---
-2.34.1
-
diff --git a/meta/recipes-core/systemd/systemd/0016-pass-correct-parameters-to-getdents64.patch b/meta/recipes-core/systemd/systemd/0016-pass-correct-parameters-to-getdents64.patch
index 0be817e62d..66b8f66806 100644
--- a/meta/recipes-core/systemd/systemd/0016-pass-correct-parameters-to-getdents64.patch
+++ b/meta/recipes-core/systemd/systemd/0016-pass-correct-parameters-to-getdents64.patch
@@ -1,7 +1,7 @@
-From 0994b59dba9f248ad31cb7087046dc00b72cb4ea Mon Sep 17 00:00:00 2001
+From 01de9e5a6e4ad2f361d3eb4d9839c7afd91cc677 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Fri, 21 Jan 2022 15:15:11 -0800
-Subject: [PATCH 16/22] pass correct parameters to getdents64
+Subject: [PATCH] pass correct parameters to getdents64
Fixes
../git/src/basic/recurse-dir.c:57:40: error: incompatible pointer types passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'struct dirent *' [-Werror,-Wincompatible-pointer-types]
@@ -32,6 +32,3 @@ index 5e98b7a5d8..aef065047b 100644
if (n < 0)
return -errno;
if (n == 0)
---
-2.34.1
-
--git a/meta/recipes-core/systemd/systemd/0017-Adjust-for-musl-headers.patch b/meta/recipes-core/systemd/systemd/0017-Adjust-for-musl-headers.patch
index 4176522a1c..f86b8c889c 100644
--- a/meta/recipes-core/systemd/systemd/0017-Adjust-for-musl-headers.patch
+++ b/meta/recipes-core/systemd/systemd/0017-Adjust-for-musl-headers.patch
@@ -1,7 +1,7 @@
-From 3c094d443ca30f19114392fd8ef274af6eabc12d Mon Sep 17 00:00:00 2001
+From a45cf93772ac5055665cc55454509747b9c68ad2 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Fri, 21 Jan 2022 22:19:37 -0800
-Subject: [PATCH 17/22] Adjust for musl headers
+Subject: [PATCH] Adjust for musl headers
Upstream-Status: Inappropriate [musl specific]
@@ -425,7 +425,7 @@ index 607fe0053c..9ce4005874 100644
#include "sd-dhcp-server.h"
diff --git a/src/network/networkd-dhcp4.c b/src/network/networkd-dhcp4.c
-index efbae6d868..1ea2151d50 100644
+index 49c452da7c..98aad1f3cd 100644
--- a/src/network/networkd-dhcp4.c
+++ b/src/network/networkd-dhcp4.c
@@ -3,7 +3,7 @@
@@ -451,7 +451,7 @@ index 32229a3fc7..662a345d6e 100644
#include "in-addr-util.h"
#include "networkd-address.h"
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
-index ee5f0f2c0a..ea5269a2de 100644
+index 4ef1be4bad..e5aa53604d 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -3,7 +3,7 @@
@@ -464,7 +464,7 @@ index ee5f0f2c0a..ea5269a2de 100644
#include <linux/netdevice.h>
#include <sys/socket.h>
diff --git a/src/network/networkd-ndisc.c b/src/network/networkd-ndisc.c
-index ab9eeb13a5..dd96fe7483 100644
+index 840ccb158d..9f2e85e32f 100644
--- a/src/network/networkd-ndisc.c
+++ b/src/network/networkd-ndisc.c
@@ -6,7 +6,7 @@
@@ -477,7 +477,7 @@ index ab9eeb13a5..dd96fe7483 100644
#include "sd-ndisc.h"
diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c
-index 7218d799fc..30d5574eae 100644
+index eb502ae2cf..5b25ee4523 100644
--- a/src/network/networkd-route.c
+++ b/src/network/networkd-route.c
@@ -1,9 +1,5 @@
@@ -502,7 +502,7 @@ index 7218d799fc..30d5574eae 100644
_cleanup_(route_freep) Route *route = NULL;
diff --git a/src/network/networkd-setlink.c b/src/network/networkd-setlink.c
-index 2298f9ea3a..7d5f87de53 100644
+index 011ea1fe6e..59dfe733eb 100644
--- a/src/network/networkd-setlink.c
+++ b/src/network/networkd-setlink.c
@@ -2,7 +2,7 @@
@@ -567,6 +567,3 @@ index f528a46b8e..830318cda5 100644
#include <linux/netdevice.h>
#include <linux/pci_regs.h>
---
-2.34.1
-
diff --git a/meta/recipes-core/systemd/systemd/0018-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch b/meta/recipes-core/systemd/systemd/0018-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch
index 75f6b9094a..67388e6807 100644
--- a/meta/recipes-core/systemd/systemd/0018-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch
+++ b/meta/recipes-core/systemd/systemd/0018-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch
@@ -1,8 +1,8 @@
-From be02bd0876a061728661535a709d313e39fe1ac3 Mon Sep 17 00:00:00 2001
+From 20dfb0b5e7113c2e7f82c01488b419dffe8714ab Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 8 Nov 2022 13:31:34 -0800
-Subject: [PATCH 18/22] test-bus-error: strerror() is assumed to be GNU
- specific version mark it so
+Subject: [PATCH] test-bus-error: strerror() is assumed to be GNU specific
+ version mark it so
Upstream-Status: Inappropriate [Upstream systemd only supports glibc]
@@ -47,6 +47,3 @@ index 376d532281..967cfd4d67 100644
TEST(PROTECT_ERRNO) {
errno = 12;
---
-2.34.1
-
diff --git a/meta/recipes-core/systemd/systemd/0019-errno-util-Make-STRERROR-portable-for-musl.patch b/meta/recipes-core/systemd/systemd/0019-errno-util-Make-STRERROR-portable-for-musl.patch
index e038b73678..36d468959a 100644
--- a/meta/recipes-core/systemd/systemd/0019-errno-util-Make-STRERROR-portable-for-musl.patch
+++ b/meta/recipes-core/systemd/systemd/0019-errno-util-Make-STRERROR-portable-for-musl.patch
@@ -1,7 +1,7 @@
-From 46d80840bfe37e67d4f18c37a77751ea1fe63a07 Mon Sep 17 00:00:00 2001
+From 32371040c2aa649e23c3b0f2c5ee27995a16526a Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Mon, 23 Jan 2023 23:39:46 -0800
-Subject: [PATCH 19/22] errno-util: Make STRERROR portable for musl
+Subject: [PATCH] errno-util: Make STRERROR portable for musl
Sadly, systemd has decided to use yet another GNU extention in a macro
lets make this such that we can use XSI compliant strerror_r() for
@@ -37,6 +37,3 @@ index 27804e6382..274c1c6ef1 100644
/* A helper to print an error message or message for functions that return 0 on EOF.
* Note that we can't use ({ … }) to define a temporary variable, so errnum is
* evaluated twice. */
---
-2.34.1
-
diff --git a/meta/recipes-core/systemd/systemd/0020-sd-event-Make-malloc_trim-conditional-on-glibc.patch b/meta/recipes-core/systemd/systemd/0020-sd-event-Make-malloc_trim-conditional-on-glibc.patch
index b83fffe793..f860b5f542 100644
--- a/meta/recipes-core/systemd/systemd/0020-sd-event-Make-malloc_trim-conditional-on-glibc.patch
+++ b/meta/recipes-core/systemd/systemd/0020-sd-event-Make-malloc_trim-conditional-on-glibc.patch
@@ -1,7 +1,7 @@
-From 9eb4867b4e2dbdb2484ae854022aff97e2f0feb3 Mon Sep 17 00:00:00 2001
+From 751fb8c9a05115f5329cfa25e69afe7657124c20 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 2 Aug 2023 12:06:27 -0700
-Subject: [PATCH 20/22] sd-event: Make malloc_trim() conditional on glibc
+Subject: [PATCH] sd-event: Make malloc_trim() conditional on glibc
musl does not have this API
@@ -12,7 +12,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/libsystemd/sd-event/sd-event.c b/src/libsystemd/sd-event/sd-event.c
-index 288798a0dc..6419a7f216 100644
+index b6899df192..0c03287004 100644
--- a/src/libsystemd/sd-event/sd-event.c
+++ b/src/libsystemd/sd-event/sd-event.c
@@ -1874,7 +1874,7 @@ _public_ int sd_event_add_exit(
@@ -34,6 +34,3 @@ index 288798a0dc..6419a7f216 100644
usec_t after_timestamp = now(CLOCK_MONOTONIC);
if (r > 0)
---
-2.34.1
-
diff --git a/meta/recipes-core/systemd/systemd/0021-shared-Do-not-use-malloc_info-on-musl.patch b/meta/recipes-core/systemd/systemd/0021-shared-Do-not-use-malloc_info-on-musl.patch
index 7eff069bb7..ece9873bbc 100644
--- a/meta/recipes-core/systemd/systemd/0021-shared-Do-not-use-malloc_info-on-musl.patch
+++ b/meta/recipes-core/systemd/systemd/0021-shared-Do-not-use-malloc_info-on-musl.patch
@@ -1,7 +1,7 @@
-From 502597b9ddd6b145541b23fadca0b1d3ca9f6367 Mon Sep 17 00:00:00 2001
+From 4fe2a8b1aab7297beac50f6ce46f3df4169de218 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 2 Aug 2023 12:20:40 -0700
-Subject: [PATCH 21/22] shared: Do not use malloc_info on musl
+Subject: [PATCH] shared: Do not use malloc_info on musl
Upstream-Status: Inappropriate [musl-specific]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
@@ -52,6 +52,3 @@ index 8e70e365dd..9e782caec9 100644
(void) memstream_dump(LOG_INFO, &m);
break;
}
---
-2.34.1
-
diff --git a/meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch b/meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch
index 24f3bf74a0..f517392e58 100644
--- a/meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch
+++ b/meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch
@@ -1,7 +1,7 @@
-From fd52f1764647e03a35e8f0ed0ef952049073ccbd Mon Sep 17 00:00:00 2001
+From 97d3ed7834bd86615ba4acdbef984c677b7e7791 Mon Sep 17 00:00:00 2001
From: Chen Qi <Qi.Chen@windriver.com>
Date: Tue, 2 Jan 2024 11:03:27 +0800
-Subject: [PATCH 22/22] avoid missing LOCK_EX declaration
+Subject: [PATCH] avoid missing LOCK_EX declaration
This only happens on MUSL. Include sys/file.h to avoid compilation
error about missing LOCK_EX declaration.
@@ -15,7 +15,7 @@ Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2 files changed, 2 insertions(+)
diff --git a/src/core/exec-invoke.c b/src/core/exec-invoke.c
-index 70d963e269..7084811439 100644
+index fe14ceeb31..521e7b87ff 100644
--- a/src/core/exec-invoke.c
+++ b/src/core/exec-invoke.c
@@ -4,6 +4,7 @@
@@ -38,6 +38,3 @@ index 5339bc4e5e..0697495f23 100644
int lock_dev_console(void);
---
-2.34.1
-
diff --git a/meta/recipes-core/systemd/systemd_255.4.bb b/meta/recipes-core/systemd/systemd_255.6.bb
similarity index 100%
rename from meta/recipes-core/systemd/systemd_255.4.bb
rename to meta/recipes-core/systemd/systemd_255.6.bb
--
2.34.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [OE-core][PATCH 2/6] util-linux/util-linux-libuuid: upgrade from 2.39.3 to 2.40.1
2024-05-20 8:10 [OE-core][PATCH 1/6] systemd/systemd-boot: upgrade from 255.4 to 255.6 Qi.Chen
@ 2024-05-20 8:10 ` Qi.Chen
2024-05-21 9:32 ` Alexandre Belloni
2024-05-20 8:10 ` [OE-core][PATCH 3/6] pciutils: upgrade from 3.11.1 to 3.12.0 Qi.Chen
` (4 subsequent siblings)
5 siblings, 1 reply; 14+ messages in thread
From: Qi.Chen @ 2024-05-20 8:10 UTC (permalink / raw)
To: openembedded-core
From: Chen Qi <Qi.Chen@windriver.com>
License-Update:
===============
GPL-2.0 is changed to GPL-2.0-only in README.licensing.
The following two patches are removed as they've been there in new release:
0001-login-utils-include-libgen.h-for-basename-API.patch
mit-license.patch
Other existing patches are refreshed to avoid patch-fuzz error.
A new PACKAGECONFIG, lastlog2, is added, which serves as a switch to build Y2038
safe lastlog pam module. This is a new functionality added in 2.40.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
...2.39.3.bb => util-linux-libuuid_2.40.1.bb} | 0
meta/recipes-core/util-linux/util-linux.inc | 8 +--
...ls-include-libgen.h-for-basename-API.patch | 60 -------------------
.../util-linux/avoid_parallel_tests.patch | 5 +-
.../util-linux/configure-sbindir.patch | 7 +--
.../display_testname_for_subtest.patch | 7 +--
.../util-linux/util-linux/mit-license.patch | 45 --------------
.../util-linux/util-linux/ptest.patch | 11 ++--
...l-linux_2.39.3.bb => util-linux_2.40.1.bb} | 3 +-
9 files changed, 18 insertions(+), 128 deletions(-)
rename meta/recipes-core/util-linux/{util-linux-libuuid_2.39.3.bb => util-linux-libuuid_2.40.1.bb} (100%)
delete mode 100644 meta/recipes-core/util-linux/util-linux/0001-login-utils-include-libgen.h-for-basename-API.patch
delete mode 100644 meta/recipes-core/util-linux/util-linux/mit-license.patch
rename meta/recipes-core/util-linux/{util-linux_2.39.3.bb => util-linux_2.40.1.bb} (99%)
diff --git a/meta/recipes-core/util-linux/util-linux-libuuid_2.39.3.bb b/meta/recipes-core/util-linux/util-linux-libuuid_2.40.1.bb
similarity index 100%
rename from meta/recipes-core/util-linux/util-linux-libuuid_2.39.3.bb
rename to meta/recipes-core/util-linux/util-linux-libuuid_2.40.1.bb
diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc
index d506783f9a..0f5f838e84 100644
--- a/meta/recipes-core/util-linux/util-linux.inc
+++ b/meta/recipes-core/util-linux/util-linux.inc
@@ -6,7 +6,7 @@ disk partitioning, kernel message management, filesystem creation, and system lo
SECTION = "base"
-LICENSE = "GPL-1.0-or-later & GPL-2.0-or-later & LGPL-2.1-or-later & BSD-2-Clause & BSD-3-Clause & BSD-4-Clause & MIT"
+LICENSE = "GPL-1.0-or-later & GPL-2.0-only & GPL-2.0-or-later & LGPL-2.1-or-later & BSD-2-Clause & BSD-3-Clause & BSD-4-Clause & MIT"
LICENSE:${PN}-fcntl-lock = "MIT"
LICENSE:${PN}-fdisk = "GPL-1.0-or-later"
LICENSE:${PN}-libblkid = "LGPL-2.1-or-later"
@@ -14,7 +14,7 @@ LICENSE:${PN}-libfdisk = "LGPL-2.1-or-later"
LICENSE:${PN}-libmount = "LGPL-2.1-or-later"
LICENSE:${PN}-libsmartcols = "LGPL-2.1-or-later"
-LIC_FILES_CHKSUM = "file://README.licensing;md5=cc80239f106687ab39ef0271ff5cf4ba \
+LIC_FILES_CHKSUM = "file://README.licensing;md5=ddd58b6c94da86ff4f03e91208eb9cfc \
file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
file://Documentation/licenses/COPYING.GPL-2.0-or-later;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
file://Documentation/licenses/COPYING.LGPL-2.1-or-later;md5=4fbd65380cdd255951079008b364516c \
@@ -30,7 +30,6 @@ LIC_FILES_CHKSUM = "file://README.licensing;md5=cc80239f106687ab39ef0271ff5cf4ba
FILESEXTRAPATHS:prepend := "${THISDIR}/util-linux:"
MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:2])}"
SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-linux-${PV}.tar.xz \
- file://mit-license.patch \
file://configure-sbindir.patch \
file://runuser.pamd \
file://runuser-l.pamd \
@@ -38,8 +37,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-lin
file://run-ptest \
file://display_testname_for_subtest.patch \
file://avoid_parallel_tests.patch \
- file://0001-login-utils-include-libgen.h-for-basename-API.patch \
file://fcntl-lock.c \
"
-SRC_URI[sha256sum] = "7b6605e48d1a49f43cc4b4cfc59f313d0dd5402fa40b96810bd572e167dfed0f"
+SRC_URI[sha256sum] = "59e676aa53ccb44b6c39f0ffe01a8fa274891c91bef1474752fad92461def24f"
diff --git a/meta/recipes-core/util-linux/util-linux/0001-login-utils-include-libgen.h-for-basename-API.patch b/meta/recipes-core/util-linux/util-linux/0001-login-utils-include-libgen.h-for-basename-API.patch
deleted file mode 100644
index 6258710e1e..0000000000
--- a/meta/recipes-core/util-linux/util-linux/0001-login-utils-include-libgen.h-for-basename-API.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From d44e3ad1f6f8b5c1b3098bb7d537943a4c21d22f Mon Sep 17 00:00:00 2001
-From: Khem Raj <raj.khem@gmail.com>
-Date: Sun, 3 Dec 2023 19:59:46 -0800
-Subject: [PATCH] login-utils: include libgen.h for basename API
-
-musl has removed the non-prototype declaration of basename from string.h [1] which now results in build errors with clang-17+ compiler
-
-include libgen.h for using the posix declaration of the funciton.
-
-Fixes
-
-../util-linux-2.39.2/login-utils/su-common.c:847:20: error: call to undeclared function 'basename'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
- 847 | shell_basename = basename(shell);
- | ^
-
-[1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7
-
-Upstream-Status: Submitted [https://github.com/util-linux/util-linux/pull/2615]
-Signed-off-by: Khem Raj <raj.khem@gmail.com>
-
----
- login-utils/su-common.c | 10 +++++++---
- 1 file changed, 7 insertions(+), 3 deletions(-)
-
-diff --git a/login-utils/su-common.c b/login-utils/su-common.c
-index b674920..3297c78 100644
---- a/login-utils/su-common.c
-+++ b/login-utils/su-common.c
-@@ -26,6 +26,7 @@
- #include <sys/types.h>
- #include <pwd.h>
- #include <grp.h>
-+#include <libgen.h>
- #include <security/pam_appl.h>
- #ifdef HAVE_SECURITY_PAM_MISC_H
- # include <security/pam_misc.h>
-@@ -840,17 +841,20 @@ static void run_shell(
- su->simulate_login ? " login" : "",
- su->fast_startup ? " fast-start" : ""));
-
-+ char* tmp = xstrdup(shell);
- if (su->simulate_login) {
- char *arg0;
- char *shell_basename;
-
-- shell_basename = basename(shell);
-+ shell_basename = basename(tmp);
- arg0 = xmalloc(strlen(shell_basename) + 2);
- arg0[0] = '-';
- strcpy(arg0 + 1, shell_basename);
- args[0] = arg0;
-- } else
-- args[0] = basename(shell);
-+ } else {
-+ args[0] = basename(tmp);
-+ }
-+ free(tmp);
-
- if (su->fast_startup)
- args[argno++] = "-f";
diff --git a/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch b/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch
index 85ad7a5575..8ea00dbb95 100644
--- a/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch
+++ b/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch
@@ -1,4 +1,4 @@
-From 0b05e4695a0616badef71dfa459a00ef6ff1b521 Mon Sep 17 00:00:00 2001
+From da58b4150f6932de36c962ea657713bcf4ea44be Mon Sep 17 00:00:00 2001
From: Tudor Florea <tudor.florea@enea.com>
Date: Mon, 14 Jun 2021 14:00:31 +0200
Subject: [PATCH] util-linux: Add ptest
@@ -9,13 +9,12 @@ Revert run.sh script accordingly to serialize running tests
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Upstream-Status: Inappropriate
-
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
-index 890212f..870e817 100644
+index 651ef2b..2a8012e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11,7 +11,7 @@ AC_CONFIG_MACRO_DIR([m4])
diff --git a/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch b/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch
index 75adeca188..74abdc2038 100644
--- a/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch
+++ b/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch
@@ -1,4 +1,4 @@
-From c79222a9a5e3425c55e150edc0b7ac59c573aa2f Mon Sep 17 00:00:00 2001
+From 0387d71516c978899cfd556ca512f530a212b4a9 Mon Sep 17 00:00:00 2001
From: Phil Blundell <pb@pbcl.net>
Date: Mon, 24 Sep 2012 07:24:51 +0100
Subject: [PATCH] util-linux: Ensure that ${sbindir} is respected
@@ -9,16 +9,15 @@ fix the test, the [ ] syntax was getting eaten by autoconf
Signed-off-by: Phil Blundell <pb@pbcl.net>
Signed-off-by: Saul Wold <sgw@linux.intel.com
Upstream-Status: Inappropriate [configuration]
-
---
configure.ac | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
-index 36c24b4..890212f 100644
+index 23594ff..651ef2b 100644
--- a/configure.ac
+++ b/configure.ac
-@@ -102,7 +102,10 @@ AC_SUBST([runstatedir])
+@@ -110,7 +110,10 @@ AC_SUBST([runstatedir])
usrbin_execdir='${exec_prefix}/bin'
AC_SUBST([usrbin_execdir])
diff --git a/meta/recipes-core/util-linux/util-linux/display_testname_for_subtest.patch b/meta/recipes-core/util-linux/util-linux/display_testname_for_subtest.patch
index 815ae9c915..871b0b2d30 100644
--- a/meta/recipes-core/util-linux/util-linux/display_testname_for_subtest.patch
+++ b/meta/recipes-core/util-linux/util-linux/display_testname_for_subtest.patch
@@ -1,20 +1,19 @@
-From fc5de1de898fd1a372a2fd2fa493dc57323a029d Mon Sep 17 00:00:00 2001
+From 45450d0339cd7ee27f53c0f2fac1cc74ed9bbfb8 Mon Sep 17 00:00:00 2001
From: Tudor Florea <tudor.florea@enea.com>
Date: Thu, 3 Dec 2015 04:08:00 +0100
Subject: [PATCH] Display testname for subtest
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Upstream-Status: Pending
-
---
tests/functions.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/functions.sh b/tests/functions.sh
-index 5a562a3..098145e 100644
+index 5fe5ba0..a6c703e 100644
--- a/tests/functions.sh
+++ b/tests/functions.sh
-@@ -437,7 +437,7 @@ function ts_init_subtest {
+@@ -450,7 +450,7 @@ function ts_init_subtest {
if [ "$TS_PARSABLE" != "yes" ]; then
[ $TS_NSUBTESTS -eq 1 ] && echo
diff --git a/meta/recipes-core/util-linux/util-linux/mit-license.patch b/meta/recipes-core/util-linux/util-linux/mit-license.patch
deleted file mode 100644
index afbec98f18..0000000000
--- a/meta/recipes-core/util-linux/util-linux/mit-license.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-From 5b8fab1584017d9d9be008c23b90128bba41a7b5 Mon Sep 17 00:00:00 2001
-From: Richard Purdie <richard.purdie@linuxfoundation.org>
-Date: Thu, 28 Mar 2024 12:16:57 +0000
-Subject: [PATCH] README.licensing/flock: Add MIT license mention
-
-Looking at the license text, flock.c is under the MIT license (see
-https://spdx.org/licenses/MIT).
-
-Add an SPDX license identifier header and add to the list of licenses the
-source so everything is correctly listed/identified.
-
-Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-
-Upstream-Status: Submitted [https://github.com/util-linux/util-linux/pull/2870]
-
----
- README.licensing | 2 ++
- sys-utils/flock.c | 4 +++-
- 2 files changed, 5 insertions(+), 1 deletion(-)
-
-diff --git a/README.licensing b/README.licensing
-index 4454f8392a..535ad34813 100644
---- a/README.licensing
-+++ b/README.licensing
-@@ -12,6 +12,8 @@ There is code under:
-
- * LGPL-2.1-or-later - GNU Lesser General Public License 2.1 or any later version
-
-+ * MIT - MIT License
-+
- * BSD-2-Clause - Simplified BSD License
-
- * BSD-3-Clause - BSD 3-Clause "New" or "Revised" License
-diff --git a/sys-utils/flock.c b/sys-utils/flock.c
-index fed29d7270..7d878ff810 100644
---- a/sys-utils/flock.c
-+++ b/sys-utils/flock.c
-@@ -1,4 +1,6 @@
--/* Copyright 2003-2005 H. Peter Anvin - All Rights Reserved
-+/* SPDX-License-Identifier: MIT
-+ *
-+ * Copyright 2003-2005 H. Peter Anvin - All Rights Reserved
- *
- * Permission is hereby granted, free of charge, to any person
- * obtaining a copy of this software and associated documentation
diff --git a/meta/recipes-core/util-linux/util-linux/ptest.patch b/meta/recipes-core/util-linux/util-linux/ptest.patch
index 6221de7182..7345926b88 100644
--- a/meta/recipes-core/util-linux/util-linux/ptest.patch
+++ b/meta/recipes-core/util-linux/util-linux/ptest.patch
@@ -1,24 +1,23 @@
-From d0a69ce80c579cbb7627a2f20e8b92e006a8d8ad Mon Sep 17 00:00:00 2001
+From f9be73c3e2b0a4f0923950dcb058be85d3ee8ed7 Mon Sep 17 00:00:00 2001
From: Tudor Florea <tudor.florea@enea.com>
Date: Thu, 3 Dec 2015 04:08:00 +0100
Subject: [PATCH] Define TESTS variable
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Upstream-Status: Pending
-
---
Makefile.am | 1 +
1 file changed, 1 insertion(+)
diff --git a/Makefile.am b/Makefile.am
-index effbb02..7d2bd1e 100644
+index 50ab8d0..7e2340d 100644
--- a/Makefile.am
+++ b/Makefile.am
-@@ -57,6 +57,7 @@ systemdsystemunit_DATA =
+@@ -64,6 +64,7 @@ tmpfiles_DATA =
dist_bashcompletion_DATA =
check_PROGRAMS =
dist_check_SCRIPTS =
+TESTS = $(check_PROGRAMS)
- PATHFILES =
- ADOCFILES_COMMON =
+ BUILT_SOURCES =
+
diff --git a/meta/recipes-core/util-linux/util-linux_2.39.3.bb b/meta/recipes-core/util-linux/util-linux_2.40.1.bb
similarity index 99%
rename from meta/recipes-core/util-linux/util-linux_2.39.3.bb
rename to meta/recipes-core/util-linux/util-linux_2.40.1.bb
index 2cd7750afc..eceb0495a7 100644
--- a/meta/recipes-core/util-linux/util-linux_2.39.3.bb
+++ b/meta/recipes-core/util-linux/util-linux_2.40.1.bb
@@ -90,7 +90,7 @@ EXTRA_OECONF:append = " --disable-hwclock-gplv3"
# build host versions during development
#
PACKAGECONFIG ?= "pcre2"
-PACKAGECONFIG:class-target ?= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'chfn-chsh pam', '', d)}"
+PACKAGECONFIG:class-target ?= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'chfn-chsh pam lastlog2', '', d)}"
# inherit manpages requires this to be present, however util-linux does not have
# configuration options, and installs manpages always
PACKAGECONFIG[manpages] = ""
@@ -106,6 +106,7 @@ PACKAGECONFIG[pcre2] = ",,libpcre2"
PACKAGECONFIG[cryptsetup] = "--with-cryptsetup,--without-cryptsetup,cryptsetup"
PACKAGECONFIG[chfn-chsh] = "--enable-chfn-chsh,--disable-chfn-chsh,"
PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
+PACKAGECONFIG[lastlog2] = "--enable-liblastlog2,--disable-liblastlog2,sqlite3"
EXTRA_OEMAKE = "ARCH=${TARGET_ARCH} CPU= CPUOPT= 'OPT=${CFLAGS}'"
--
2.34.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [OE-core][PATCH 3/6] pciutils: upgrade from 3.11.1 to 3.12.0
2024-05-20 8:10 [OE-core][PATCH 1/6] systemd/systemd-boot: upgrade from 255.4 to 255.6 Qi.Chen
2024-05-20 8:10 ` [OE-core][PATCH 2/6] util-linux/util-linux-libuuid: upgrade from 2.39.3 to 2.40.1 Qi.Chen
@ 2024-05-20 8:10 ` Qi.Chen
2024-05-20 8:10 ` [OE-core][PATCH 4/6] shadow: upgrade from 4.15.0 to 4.15.1 Qi.Chen
` (3 subsequent siblings)
5 siblings, 0 replies; 14+ messages in thread
From: Qi.Chen @ 2024-05-20 8:10 UTC (permalink / raw)
To: openembedded-core
From: Chen Qi <Qi.Chen@windriver.com>
configure.patch is rebased against the new version.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
meta/recipes-bsp/pciutils/pciutils/configure.patch | 13 ++++++++-----
.../{pciutils_3.11.1.bb => pciutils_3.12.0.bb} | 2 +-
2 files changed, 9 insertions(+), 6 deletions(-)
rename meta/recipes-bsp/pciutils/{pciutils_3.11.1.bb => pciutils_3.12.0.bb} (95%)
diff --git a/meta/recipes-bsp/pciutils/pciutils/configure.patch b/meta/recipes-bsp/pciutils/pciutils/configure.patch
index 5015cf4884..0ff151b8cf 100644
--- a/meta/recipes-bsp/pciutils/pciutils/configure.patch
+++ b/meta/recipes-bsp/pciutils/pciutils/configure.patch
@@ -1,4 +1,4 @@
-From 561216c8cbc280aaa9aecf30cb11835a4a0a78ed Mon Sep 17 00:00:00 2001
+From 6af07e1f812b2444d33ce199308c87e04b2f5dc7 Mon Sep 17 00:00:00 2001
From: Richard Purdie <rpurdie@linux.intel.com>
Date: Wed, 31 Dec 2008 17:20:38 +0000
Subject: [PATCH] pciutils: Upgarde 2.2.4 -> 3.0.3
@@ -23,20 +23,20 @@ Upstream-Status: Inappropriate [embedded specific]
2 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/Makefile b/Makefile
-index aaec04e..9c1dab0 100644
+index be23593..aa13be5 100644
--- a/Makefile
+++ b/Makefile
@@ -123,7 +123,7 @@ pcilmr$(EXEEXT): pcilmr.o $(LMROBJS) $(COMMON) lib/$(PCIIMPLIB)
pcilmr.o: pcilmr.c $(LMRINC)
%$(EXEEXT): %.o
-- $(CC) $(LDFLAGS) $(TARGET_ARCH) $^ $(LDLIBS) -o $@
-+ $(CC) $(LDFLAGS) $(TARGET_ARCH) $^ $(LIB_LDLIBS) $(LDLIBS) -o $@
+- $(CC) $(CFLAGS) $(LDFLAGS) $(TARGET_ARCH) $^ $(LDLIBS) -o $@
++ $(CC) $(CFLAGS) $(LDFLAGS) $(TARGET_ARCH) $^ $(LIB_LDLIBS) $(LDLIBS) -o $@
ifdef PCI_OS_WINDOWS
comma := ,
diff --git a/lib/configure b/lib/configure
-index 3df057a..c87e71c 100755
+index d02160b..52c1eee 100755
--- a/lib/configure
+++ b/lib/configure
@@ -9,6 +9,10 @@ echo_n() {
@@ -88,3 +88,6 @@ index 3df057a..c87e71c 100755
c=config.h
m=config.mk
echo >$c '#define PCI_CONFIG_H'
+--
+2.42.0
+
diff --git a/meta/recipes-bsp/pciutils/pciutils_3.11.1.bb b/meta/recipes-bsp/pciutils/pciutils_3.12.0.bb
similarity index 95%
rename from meta/recipes-bsp/pciutils/pciutils_3.11.1.bb
rename to meta/recipes-bsp/pciutils/pciutils_3.12.0.bb
index 044074ccc3..480a338696 100644
--- a/meta/recipes-bsp/pciutils/pciutils_3.11.1.bb
+++ b/meta/recipes-bsp/pciutils/pciutils_3.12.0.bb
@@ -14,7 +14,7 @@ DEPENDS = "zlib kmod make-native"
SRC_URI = "${KERNELORG_MIRROR}/software/utils/pciutils/pciutils-${PV}.tar.xz \
file://configure.patch"
-SRC_URI[sha256sum] = "3f472ad864473de5ba17f765cc96ef5f33e1b730918d3adda6f945a2a9290df4"
+SRC_URI[sha256sum] = "f185d116d5ff99b797497efce8f19f1ee8ccc5a668b97a159e3d13472f674154"
inherit multilib_header pkgconfig update-alternatives
--
2.34.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [OE-core][PATCH 4/6] shadow: upgrade from 4.15.0 to 4.15.1
2024-05-20 8:10 [OE-core][PATCH 1/6] systemd/systemd-boot: upgrade from 255.4 to 255.6 Qi.Chen
2024-05-20 8:10 ` [OE-core][PATCH 2/6] util-linux/util-linux-libuuid: upgrade from 2.39.3 to 2.40.1 Qi.Chen
2024-05-20 8:10 ` [OE-core][PATCH 3/6] pciutils: upgrade from 3.11.1 to 3.12.0 Qi.Chen
@ 2024-05-20 8:10 ` Qi.Chen
2024-05-20 8:10 ` [OE-core][PATCH 5/6] cups: upgrade from 2.4.7 to 2.4.8 Qi.Chen
` (2 subsequent siblings)
5 siblings, 0 replies; 14+ messages in thread
From: Qi.Chen @ 2024-05-20 8:10 UTC (permalink / raw)
To: openembedded-core
From: Chen Qi <Qi.Chen@windriver.com>
0001-lib-copydir-copy_entry-use-temporary-stat-buffer.patch is dropped
as it has been merged and is in this new release.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
...copy_entry-use-temporary-stat-buffer.patch | 37 -------------------
meta/recipes-extended/shadow/shadow.inc | 3 +-
.../{shadow_4.15.0.bb => shadow_4.15.1.bb} | 0
3 files changed, 1 insertion(+), 39 deletions(-)
delete mode 100644 meta/recipes-extended/shadow/files/0001-lib-copydir-copy_entry-use-temporary-stat-buffer.patch
rename meta/recipes-extended/shadow/{shadow_4.15.0.bb => shadow_4.15.1.bb} (100%)
diff --git a/meta/recipes-extended/shadow/files/0001-lib-copydir-copy_entry-use-temporary-stat-buffer.patch b/meta/recipes-extended/shadow/files/0001-lib-copydir-copy_entry-use-temporary-stat-buffer.patch
deleted file mode 100644
index 2e5503bfd4..0000000000
--- a/meta/recipes-extended/shadow/files/0001-lib-copydir-copy_entry-use-temporary-stat-buffer.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From af4b8cb780587aa736692a3baa76b60474f19c5d Mon Sep 17 00:00:00 2001
-From: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
-Date: Mon, 18 Mar 2024 12:14:21 +0100
-Subject: [PATCH] lib/copydir:copy_entry(): use temporary stat buffer
-
-There are no guarantees that fstatat() does not clobber the stat
-buffer on errors.
-
-Use a temporary buffer so that the following code sees correct
-attributes of the source entry.
-
-Upstream-Status: Submitted [https://github.com/shadow-maint/shadow/pull/974]
-
-Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
----
- lib/copydir.c | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
---- a/lib/copydir.c
-+++ b/lib/copydir.c
-@@ -400,6 +400,7 @@ static int copy_entry (const struct path
- {
- int err = 0;
- struct stat sb;
-+ struct stat tmp_sb;
- struct link_name *lp;
- struct timespec mt[2];
-
-@@ -423,7 +424,7 @@ static int copy_entry (const struct path
- * If the destination already exists do nothing.
- * This is after the copy_dir above to still iterate into subdirectories.
- */
-- if (fstatat(dst->dirfd, dst->name, &sb, AT_SYMLINK_NOFOLLOW) != -1) {
-+ if (fstatat(dst->dirfd, dst->name, &tmp_sb, AT_SYMLINK_NOFOLLOW) != -1) {
- return err;
- }
-
diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc
index 25930b64c1..3991006b43 100644
--- a/meta/recipes-extended/shadow/shadow.inc
+++ b/meta/recipes-extended/shadow/shadow.inc
@@ -12,7 +12,6 @@ DEPENDS = "virtual/crypt"
GITHUB_BASE_URI = "https://github.com/shadow-maint/shadow/releases"
SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/${BP}.tar.gz \
- file://0001-lib-copydir-copy_entry-use-temporary-stat-buffer.patch \
${@bb.utils.contains('PACKAGECONFIG', 'pam', '${PAM_SRC_URI}', '', d)} \
file://useradd \
"
@@ -25,7 +24,7 @@ SRC_URI:append:class-target = " \
SRC_URI:append:class-native = " \
file://commonio.c-fix-unexpected-open-failure-in-chroot-env.patch \
"
-SRC_URI[sha256sum] = "377fe0d7c1a0aa5e3514c08fdf5ddc70c9dcbb391678c2134445ed97326bcc26"
+SRC_URI[sha256sum] = "b34686b89b279887ffbf1f33128902ccc0fa1a998a3add44213bb12d7385b218"
# Additional Policy files for PAM
PAM_SRC_URI = "file://pam.d/chfn \
diff --git a/meta/recipes-extended/shadow/shadow_4.15.0.bb b/meta/recipes-extended/shadow/shadow_4.15.1.bb
similarity index 100%
rename from meta/recipes-extended/shadow/shadow_4.15.0.bb
rename to meta/recipes-extended/shadow/shadow_4.15.1.bb
--
2.34.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [OE-core][PATCH 5/6] cups: upgrade from 2.4.7 to 2.4.8
2024-05-20 8:10 [OE-core][PATCH 1/6] systemd/systemd-boot: upgrade from 255.4 to 255.6 Qi.Chen
` (2 preceding siblings ...)
2024-05-20 8:10 ` [OE-core][PATCH 4/6] shadow: upgrade from 4.15.0 to 4.15.1 Qi.Chen
@ 2024-05-20 8:10 ` Qi.Chen
2024-05-20 8:10 ` [OE-core][PATCH 6/6] kmod: upgrade from 31 to 32 Qi.Chen
2024-05-21 9:38 ` [OE-core][PATCH 1/6] systemd/systemd-boot: upgrade from 255.4 to 255.6 Alexandre Belloni
5 siblings, 0 replies; 14+ messages in thread
From: Qi.Chen @ 2024-05-20 8:10 UTC (permalink / raw)
To: openembedded-core
From: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
meta/recipes-extended/cups/{cups_2.4.7.bb => cups_2.4.8.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta/recipes-extended/cups/{cups_2.4.7.bb => cups_2.4.8.bb} (51%)
diff --git a/meta/recipes-extended/cups/cups_2.4.7.bb b/meta/recipes-extended/cups/cups_2.4.8.bb
similarity index 51%
rename from meta/recipes-extended/cups/cups_2.4.7.bb
rename to meta/recipes-extended/cups/cups_2.4.8.bb
index f4b0282e4c..c0cddf7e99 100644
--- a/meta/recipes-extended/cups/cups_2.4.7.bb
+++ b/meta/recipes-extended/cups/cups_2.4.8.bb
@@ -2,4 +2,4 @@ require cups.inc
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
-SRC_URI[sha256sum] = "dd54228dd903526428ce7e37961afaed230ad310788141da75cebaa08362cf6c"
+SRC_URI[sha256sum] = "75c326b4ba73975efcc9a25078c4b04cdb4ee333caaad0d0823dbd522c6479a0"
--
2.34.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [OE-core][PATCH 6/6] kmod: upgrade from 31 to 32
2024-05-20 8:10 [OE-core][PATCH 1/6] systemd/systemd-boot: upgrade from 255.4 to 255.6 Qi.Chen
` (3 preceding siblings ...)
2024-05-20 8:10 ` [OE-core][PATCH 5/6] cups: upgrade from 2.4.7 to 2.4.8 Qi.Chen
@ 2024-05-20 8:10 ` Qi.Chen
2024-05-21 22:26 ` Richard Purdie
2024-05-21 9:38 ` [OE-core][PATCH 1/6] systemd/systemd-boot: upgrade from 255.4 to 255.6 Alexandre Belloni
5 siblings, 1 reply; 14+ messages in thread
From: Qi.Chen @ 2024-05-20 8:10 UTC (permalink / raw)
To: openembedded-core
From: Chen Qi <Qi.Chen@windriver.com>
kmod now installs symlinks in 'make install'.
https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/commit/?
id=e98cef6f3f8cd6f8bfb26d147b2c209297453cca
With this change, we no longer need to deal with the symlinks in
do_install. Besides, as upstream chooses 'bin' instead of 'sbin'
to hold the tools, we'd better sync with it. That's the reason for
the sbindir -> bindir changes.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
.../kmod/{kmod_31.bb => kmod_32.bb} | 24 +++++++------------
1 file changed, 8 insertions(+), 16 deletions(-)
rename meta/recipes-kernel/kmod/{kmod_31.bb => kmod_32.bb} (78%)
diff --git a/meta/recipes-kernel/kmod/kmod_31.bb b/meta/recipes-kernel/kmod/kmod_32.bb
similarity index 78%
rename from meta/recipes-kernel/kmod/kmod_31.bb
rename to meta/recipes-kernel/kmod/kmod_32.bb
index 718a5565b4..1235bc1bf8 100644
--- a/meta/recipes-kernel/kmod/kmod_31.bb
+++ b/meta/recipes-kernel/kmod/kmod_32.bb
@@ -15,7 +15,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \
"
inherit autotools bash-completion gtk-doc pkgconfig manpages update-alternatives
-SRCREV = "aff617ea871d0568cc491bd116c0be1e857463bb"
+SRCREV = "41faa59711742c1476d59985011ee0f27ed91d30"
SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git;branch=master;protocol=https \
file://depmod-search.conf \
@@ -50,12 +50,6 @@ EXTRA_OECONF += "--bindir=${base_bindir} --sbindir=${base_sbindir}"
do_install:append () {
install -dm755 ${D}${base_bindir}
- install -dm755 ${D}${base_sbindir}
- # add symlinks to kmod
- ln -rs ${D}${base_bindir}/kmod ${D}${base_bindir}/lsmod
- for tool in insmod rmmod depmod modinfo modprobe; do
- ln -rs ${D}${base_bindir}/kmod ${D}${base_sbindir}/${tool}
- done
# configuration directories
install -dm755 ${D}${nonarch_base_libdir}/depmod.d
install -dm755 ${D}${nonarch_base_libdir}/modprobe.d
@@ -71,16 +65,14 @@ do_install:append () {
ALTERNATIVE_PRIORITY = "70"
-ALTERNATIVE:kmod = "insmod modprobe rmmod modinfo bin-lsmod lsmod depmod"
+ALTERNATIVE:kmod = "insmod modprobe rmmod modinfo lsmod depmod"
-ALTERNATIVE_LINK_NAME[depmod] = "${base_sbindir}/depmod"
-ALTERNATIVE_LINK_NAME[insmod] = "${base_sbindir}/insmod"
-ALTERNATIVE_LINK_NAME[modprobe] = "${base_sbindir}/modprobe"
-ALTERNATIVE_LINK_NAME[rmmod] = "${base_sbindir}/rmmod"
-ALTERNATIVE_LINK_NAME[modinfo] = "${base_sbindir}/modinfo"
-ALTERNATIVE_LINK_NAME[bin-lsmod] = "${base_bindir}/lsmod"
-ALTERNATIVE_LINK_NAME[lsmod] = "${base_sbindir}/lsmod"
-ALTERNATIVE_TARGET[lsmod] = "${base_bindir}/lsmod.${BPN}"
+ALTERNATIVE_LINK_NAME[depmod] = "${base_bindir}/depmod"
+ALTERNATIVE_LINK_NAME[insmod] = "${base_bindir}/insmod"
+ALTERNATIVE_LINK_NAME[modprobe] = "${base_bindir}/modprobe"
+ALTERNATIVE_LINK_NAME[rmmod] = "${base_bindir}/rmmod"
+ALTERNATIVE_LINK_NAME[modinfo] = "${base_bindir}/modinfo"
+ALTERNATIVE_LINK_NAME[lsmod] = "${base_bindir}/lsmod"
PACKAGES =+ "libkmod"
FILES:libkmod = "${base_libdir}/libkmod*${SOLIBS} ${libdir}/libkmod*${SOLIBS}"
--
2.34.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [OE-core][PATCH 2/6] util-linux/util-linux-libuuid: upgrade from 2.39.3 to 2.40.1
2024-05-20 8:10 ` [OE-core][PATCH 2/6] util-linux/util-linux-libuuid: upgrade from 2.39.3 to 2.40.1 Qi.Chen
@ 2024-05-21 9:32 ` Alexandre Belloni
2024-05-21 9:33 ` Alexandre Belloni
2024-05-21 10:23 ` Chen, Qi
0 siblings, 2 replies; 14+ messages in thread
From: Alexandre Belloni @ 2024-05-21 9:32 UTC (permalink / raw)
To: Qi.Chen; +Cc: openembedded-core
This fails on the autobuilders:
ERROR: util-linux-2.40.1-r0 do_package: QA Issue: util-linux: Files/directories were installed but not shipped in any package:
/lib/security/pam_lastlog2.so
https://autobuilder.yoctoproject.org/typhoon/#/builders/72/builds/9011/steps/15/logs/stdio
On 20/05/2024 16:10:36+0800, Chen Qi via lists.openembedded.org wrote:
> From: Chen Qi <Qi.Chen@windriver.com>
>
> License-Update:
> ===============
> GPL-2.0 is changed to GPL-2.0-only in README.licensing.
>
> The following two patches are removed as they've been there in new release:
>
> 0001-login-utils-include-libgen.h-for-basename-API.patch
> mit-license.patch
>
> Other existing patches are refreshed to avoid patch-fuzz error.
>
> A new PACKAGECONFIG, lastlog2, is added, which serves as a switch to build Y2038
> safe lastlog pam module. This is a new functionality added in 2.40.
>
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
> ...2.39.3.bb => util-linux-libuuid_2.40.1.bb} | 0
> meta/recipes-core/util-linux/util-linux.inc | 8 +--
> ...ls-include-libgen.h-for-basename-API.patch | 60 -------------------
> .../util-linux/avoid_parallel_tests.patch | 5 +-
> .../util-linux/configure-sbindir.patch | 7 +--
> .../display_testname_for_subtest.patch | 7 +--
> .../util-linux/util-linux/mit-license.patch | 45 --------------
> .../util-linux/util-linux/ptest.patch | 11 ++--
> ...l-linux_2.39.3.bb => util-linux_2.40.1.bb} | 3 +-
> 9 files changed, 18 insertions(+), 128 deletions(-)
> rename meta/recipes-core/util-linux/{util-linux-libuuid_2.39.3.bb => util-linux-libuuid_2.40.1.bb} (100%)
> delete mode 100644 meta/recipes-core/util-linux/util-linux/0001-login-utils-include-libgen.h-for-basename-API.patch
> delete mode 100644 meta/recipes-core/util-linux/util-linux/mit-license.patch
> rename meta/recipes-core/util-linux/{util-linux_2.39.3.bb => util-linux_2.40.1.bb} (99%)
>
> diff --git a/meta/recipes-core/util-linux/util-linux-libuuid_2.39.3.bb b/meta/recipes-core/util-linux/util-linux-libuuid_2.40.1.bb
> similarity index 100%
> rename from meta/recipes-core/util-linux/util-linux-libuuid_2.39.3.bb
> rename to meta/recipes-core/util-linux/util-linux-libuuid_2.40.1.bb
> diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc
> index d506783f9a..0f5f838e84 100644
> --- a/meta/recipes-core/util-linux/util-linux.inc
> +++ b/meta/recipes-core/util-linux/util-linux.inc
> @@ -6,7 +6,7 @@ disk partitioning, kernel message management, filesystem creation, and system lo
>
> SECTION = "base"
>
> -LICENSE = "GPL-1.0-or-later & GPL-2.0-or-later & LGPL-2.1-or-later & BSD-2-Clause & BSD-3-Clause & BSD-4-Clause & MIT"
> +LICENSE = "GPL-1.0-or-later & GPL-2.0-only & GPL-2.0-or-later & LGPL-2.1-or-later & BSD-2-Clause & BSD-3-Clause & BSD-4-Clause & MIT"
> LICENSE:${PN}-fcntl-lock = "MIT"
> LICENSE:${PN}-fdisk = "GPL-1.0-or-later"
> LICENSE:${PN}-libblkid = "LGPL-2.1-or-later"
> @@ -14,7 +14,7 @@ LICENSE:${PN}-libfdisk = "LGPL-2.1-or-later"
> LICENSE:${PN}-libmount = "LGPL-2.1-or-later"
> LICENSE:${PN}-libsmartcols = "LGPL-2.1-or-later"
>
> -LIC_FILES_CHKSUM = "file://README.licensing;md5=cc80239f106687ab39ef0271ff5cf4ba \
> +LIC_FILES_CHKSUM = "file://README.licensing;md5=ddd58b6c94da86ff4f03e91208eb9cfc \
> file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
> file://Documentation/licenses/COPYING.GPL-2.0-or-later;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
> file://Documentation/licenses/COPYING.LGPL-2.1-or-later;md5=4fbd65380cdd255951079008b364516c \
> @@ -30,7 +30,6 @@ LIC_FILES_CHKSUM = "file://README.licensing;md5=cc80239f106687ab39ef0271ff5cf4ba
> FILESEXTRAPATHS:prepend := "${THISDIR}/util-linux:"
> MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:2])}"
> SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-linux-${PV}.tar.xz \
> - file://mit-license.patch \
> file://configure-sbindir.patch \
> file://runuser.pamd \
> file://runuser-l.pamd \
> @@ -38,8 +37,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-lin
> file://run-ptest \
> file://display_testname_for_subtest.patch \
> file://avoid_parallel_tests.patch \
> - file://0001-login-utils-include-libgen.h-for-basename-API.patch \
> file://fcntl-lock.c \
> "
>
> -SRC_URI[sha256sum] = "7b6605e48d1a49f43cc4b4cfc59f313d0dd5402fa40b96810bd572e167dfed0f"
> +SRC_URI[sha256sum] = "59e676aa53ccb44b6c39f0ffe01a8fa274891c91bef1474752fad92461def24f"
> diff --git a/meta/recipes-core/util-linux/util-linux/0001-login-utils-include-libgen.h-for-basename-API.patch b/meta/recipes-core/util-linux/util-linux/0001-login-utils-include-libgen.h-for-basename-API.patch
> deleted file mode 100644
> index 6258710e1e..0000000000
> --- a/meta/recipes-core/util-linux/util-linux/0001-login-utils-include-libgen.h-for-basename-API.patch
> +++ /dev/null
> @@ -1,60 +0,0 @@
> -From d44e3ad1f6f8b5c1b3098bb7d537943a4c21d22f Mon Sep 17 00:00:00 2001
> -From: Khem Raj <raj.khem@gmail.com>
> -Date: Sun, 3 Dec 2023 19:59:46 -0800
> -Subject: [PATCH] login-utils: include libgen.h for basename API
> -
> -musl has removed the non-prototype declaration of basename from string.h [1] which now results in build errors with clang-17+ compiler
> -
> -include libgen.h for using the posix declaration of the funciton.
> -
> -Fixes
> -
> -../util-linux-2.39.2/login-utils/su-common.c:847:20: error: call to undeclared function 'basename'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
> - 847 | shell_basename = basename(shell);
> - | ^
> -
> -[1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7
> -
> -Upstream-Status: Submitted [https://github.com/util-linux/util-linux/pull/2615]
> -Signed-off-by: Khem Raj <raj.khem@gmail.com>
> -
> ----
> - login-utils/su-common.c | 10 +++++++---
> - 1 file changed, 7 insertions(+), 3 deletions(-)
> -
> -diff --git a/login-utils/su-common.c b/login-utils/su-common.c
> -index b674920..3297c78 100644
> ---- a/login-utils/su-common.c
> -+++ b/login-utils/su-common.c
> -@@ -26,6 +26,7 @@
> - #include <sys/types.h>
> - #include <pwd.h>
> - #include <grp.h>
> -+#include <libgen.h>
> - #include <security/pam_appl.h>
> - #ifdef HAVE_SECURITY_PAM_MISC_H
> - # include <security/pam_misc.h>
> -@@ -840,17 +841,20 @@ static void run_shell(
> - su->simulate_login ? " login" : "",
> - su->fast_startup ? " fast-start" : ""));
> -
> -+ char* tmp = xstrdup(shell);
> - if (su->simulate_login) {
> - char *arg0;
> - char *shell_basename;
> -
> -- shell_basename = basename(shell);
> -+ shell_basename = basename(tmp);
> - arg0 = xmalloc(strlen(shell_basename) + 2);
> - arg0[0] = '-';
> - strcpy(arg0 + 1, shell_basename);
> - args[0] = arg0;
> -- } else
> -- args[0] = basename(shell);
> -+ } else {
> -+ args[0] = basename(tmp);
> -+ }
> -+ free(tmp);
> -
> - if (su->fast_startup)
> - args[argno++] = "-f";
> diff --git a/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch b/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch
> index 85ad7a5575..8ea00dbb95 100644
> --- a/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch
> +++ b/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch
> @@ -1,4 +1,4 @@
> -From 0b05e4695a0616badef71dfa459a00ef6ff1b521 Mon Sep 17 00:00:00 2001
> +From da58b4150f6932de36c962ea657713bcf4ea44be Mon Sep 17 00:00:00 2001
> From: Tudor Florea <tudor.florea@enea.com>
> Date: Mon, 14 Jun 2021 14:00:31 +0200
> Subject: [PATCH] util-linux: Add ptest
> @@ -9,13 +9,12 @@ Revert run.sh script accordingly to serialize running tests
>
> Signed-off-by: Tudor Florea <tudor.florea@enea.com>
> Upstream-Status: Inappropriate
> -
> ---
> configure.ac | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/configure.ac b/configure.ac
> -index 890212f..870e817 100644
> +index 651ef2b..2a8012e 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -11,7 +11,7 @@ AC_CONFIG_MACRO_DIR([m4])
> diff --git a/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch b/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch
> index 75adeca188..74abdc2038 100644
> --- a/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch
> +++ b/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch
> @@ -1,4 +1,4 @@
> -From c79222a9a5e3425c55e150edc0b7ac59c573aa2f Mon Sep 17 00:00:00 2001
> +From 0387d71516c978899cfd556ca512f530a212b4a9 Mon Sep 17 00:00:00 2001
> From: Phil Blundell <pb@pbcl.net>
> Date: Mon, 24 Sep 2012 07:24:51 +0100
> Subject: [PATCH] util-linux: Ensure that ${sbindir} is respected
> @@ -9,16 +9,15 @@ fix the test, the [ ] syntax was getting eaten by autoconf
> Signed-off-by: Phil Blundell <pb@pbcl.net>
> Signed-off-by: Saul Wold <sgw@linux.intel.com
> Upstream-Status: Inappropriate [configuration]
> -
> ---
> configure.ac | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/configure.ac b/configure.ac
> -index 36c24b4..890212f 100644
> +index 23594ff..651ef2b 100644
> --- a/configure.ac
> +++ b/configure.ac
> -@@ -102,7 +102,10 @@ AC_SUBST([runstatedir])
> +@@ -110,7 +110,10 @@ AC_SUBST([runstatedir])
> usrbin_execdir='${exec_prefix}/bin'
> AC_SUBST([usrbin_execdir])
>
> diff --git a/meta/recipes-core/util-linux/util-linux/display_testname_for_subtest.patch b/meta/recipes-core/util-linux/util-linux/display_testname_for_subtest.patch
> index 815ae9c915..871b0b2d30 100644
> --- a/meta/recipes-core/util-linux/util-linux/display_testname_for_subtest.patch
> +++ b/meta/recipes-core/util-linux/util-linux/display_testname_for_subtest.patch
> @@ -1,20 +1,19 @@
> -From fc5de1de898fd1a372a2fd2fa493dc57323a029d Mon Sep 17 00:00:00 2001
> +From 45450d0339cd7ee27f53c0f2fac1cc74ed9bbfb8 Mon Sep 17 00:00:00 2001
> From: Tudor Florea <tudor.florea@enea.com>
> Date: Thu, 3 Dec 2015 04:08:00 +0100
> Subject: [PATCH] Display testname for subtest
>
> Signed-off-by: Tudor Florea <tudor.florea@enea.com>
> Upstream-Status: Pending
> -
> ---
> tests/functions.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/functions.sh b/tests/functions.sh
> -index 5a562a3..098145e 100644
> +index 5fe5ba0..a6c703e 100644
> --- a/tests/functions.sh
> +++ b/tests/functions.sh
> -@@ -437,7 +437,7 @@ function ts_init_subtest {
> +@@ -450,7 +450,7 @@ function ts_init_subtest {
>
> if [ "$TS_PARSABLE" != "yes" ]; then
> [ $TS_NSUBTESTS -eq 1 ] && echo
> diff --git a/meta/recipes-core/util-linux/util-linux/mit-license.patch b/meta/recipes-core/util-linux/util-linux/mit-license.patch
> deleted file mode 100644
> index afbec98f18..0000000000
> --- a/meta/recipes-core/util-linux/util-linux/mit-license.patch
> +++ /dev/null
> @@ -1,45 +0,0 @@
> -From 5b8fab1584017d9d9be008c23b90128bba41a7b5 Mon Sep 17 00:00:00 2001
> -From: Richard Purdie <richard.purdie@linuxfoundation.org>
> -Date: Thu, 28 Mar 2024 12:16:57 +0000
> -Subject: [PATCH] README.licensing/flock: Add MIT license mention
> -
> -Looking at the license text, flock.c is under the MIT license (see
> -https://spdx.org/licenses/MIT).
> -
> -Add an SPDX license identifier header and add to the list of licenses the
> -source so everything is correctly listed/identified.
> -
> -Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> -
> -Upstream-Status: Submitted [https://github.com/util-linux/util-linux/pull/2870]
> -
> ----
> - README.licensing | 2 ++
> - sys-utils/flock.c | 4 +++-
> - 2 files changed, 5 insertions(+), 1 deletion(-)
> -
> -diff --git a/README.licensing b/README.licensing
> -index 4454f8392a..535ad34813 100644
> ---- a/README.licensing
> -+++ b/README.licensing
> -@@ -12,6 +12,8 @@ There is code under:
> -
> - * LGPL-2.1-or-later - GNU Lesser General Public License 2.1 or any later version
> -
> -+ * MIT - MIT License
> -+
> - * BSD-2-Clause - Simplified BSD License
> -
> - * BSD-3-Clause - BSD 3-Clause "New" or "Revised" License
> -diff --git a/sys-utils/flock.c b/sys-utils/flock.c
> -index fed29d7270..7d878ff810 100644
> ---- a/sys-utils/flock.c
> -+++ b/sys-utils/flock.c
> -@@ -1,4 +1,6 @@
> --/* Copyright 2003-2005 H. Peter Anvin - All Rights Reserved
> -+/* SPDX-License-Identifier: MIT
> -+ *
> -+ * Copyright 2003-2005 H. Peter Anvin - All Rights Reserved
> - *
> - * Permission is hereby granted, free of charge, to any person
> - * obtaining a copy of this software and associated documentation
> diff --git a/meta/recipes-core/util-linux/util-linux/ptest.patch b/meta/recipes-core/util-linux/util-linux/ptest.patch
> index 6221de7182..7345926b88 100644
> --- a/meta/recipes-core/util-linux/util-linux/ptest.patch
> +++ b/meta/recipes-core/util-linux/util-linux/ptest.patch
> @@ -1,24 +1,23 @@
> -From d0a69ce80c579cbb7627a2f20e8b92e006a8d8ad Mon Sep 17 00:00:00 2001
> +From f9be73c3e2b0a4f0923950dcb058be85d3ee8ed7 Mon Sep 17 00:00:00 2001
> From: Tudor Florea <tudor.florea@enea.com>
> Date: Thu, 3 Dec 2015 04:08:00 +0100
> Subject: [PATCH] Define TESTS variable
>
> Signed-off-by: Tudor Florea <tudor.florea@enea.com>
> Upstream-Status: Pending
> -
> ---
> Makefile.am | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Makefile.am b/Makefile.am
> -index effbb02..7d2bd1e 100644
> +index 50ab8d0..7e2340d 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> -@@ -57,6 +57,7 @@ systemdsystemunit_DATA =
> +@@ -64,6 +64,7 @@ tmpfiles_DATA =
> dist_bashcompletion_DATA =
> check_PROGRAMS =
> dist_check_SCRIPTS =
> +TESTS = $(check_PROGRAMS)
>
> - PATHFILES =
> - ADOCFILES_COMMON =
> + BUILT_SOURCES =
> +
> diff --git a/meta/recipes-core/util-linux/util-linux_2.39.3.bb b/meta/recipes-core/util-linux/util-linux_2.40.1.bb
> similarity index 99%
> rename from meta/recipes-core/util-linux/util-linux_2.39.3.bb
> rename to meta/recipes-core/util-linux/util-linux_2.40.1.bb
> index 2cd7750afc..eceb0495a7 100644
> --- a/meta/recipes-core/util-linux/util-linux_2.39.3.bb
> +++ b/meta/recipes-core/util-linux/util-linux_2.40.1.bb
> @@ -90,7 +90,7 @@ EXTRA_OECONF:append = " --disable-hwclock-gplv3"
> # build host versions during development
> #
> PACKAGECONFIG ?= "pcre2"
> -PACKAGECONFIG:class-target ?= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'chfn-chsh pam', '', d)}"
> +PACKAGECONFIG:class-target ?= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'chfn-chsh pam lastlog2', '', d)}"
> # inherit manpages requires this to be present, however util-linux does not have
> # configuration options, and installs manpages always
> PACKAGECONFIG[manpages] = ""
> @@ -106,6 +106,7 @@ PACKAGECONFIG[pcre2] = ",,libpcre2"
> PACKAGECONFIG[cryptsetup] = "--with-cryptsetup,--without-cryptsetup,cryptsetup"
> PACKAGECONFIG[chfn-chsh] = "--enable-chfn-chsh,--disable-chfn-chsh,"
> PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
> +PACKAGECONFIG[lastlog2] = "--enable-liblastlog2,--disable-liblastlog2,sqlite3"
>
> EXTRA_OEMAKE = "ARCH=${TARGET_ARCH} CPU= CPUOPT= 'OPT=${CFLAGS}'"
>
> --
> 2.34.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#199557): https://lists.openembedded.org/g/openembedded-core/message/199557
> Mute This Topic: https://lists.openembedded.org/mt/106199572/3617179
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [OE-core][PATCH 2/6] util-linux/util-linux-libuuid: upgrade from 2.39.3 to 2.40.1
2024-05-21 9:32 ` Alexandre Belloni
@ 2024-05-21 9:33 ` Alexandre Belloni
2024-05-21 10:23 ` Chen, Qi
1 sibling, 0 replies; 14+ messages in thread
From: Alexandre Belloni @ 2024-05-21 9:33 UTC (permalink / raw)
To: Qi.Chen; +Cc: openembedded-core
This one is a different failure:
https://autobuilder.yoctoproject.org/typhoon/#/builders/166/builds/377/steps/11/logs/stdio
On 21/05/2024 11:32:30+0200, Alexandre Belloni wrote:
> This fails on the autobuilders:
>
> ERROR: util-linux-2.40.1-r0 do_package: QA Issue: util-linux: Files/directories were installed but not shipped in any package:
> /lib/security/pam_lastlog2.so
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/72/builds/9011/steps/15/logs/stdio
>
> On 20/05/2024 16:10:36+0800, Chen Qi via lists.openembedded.org wrote:
> > From: Chen Qi <Qi.Chen@windriver.com>
> >
> > License-Update:
> > ===============
> > GPL-2.0 is changed to GPL-2.0-only in README.licensing.
> >
> > The following two patches are removed as they've been there in new release:
> >
> > 0001-login-utils-include-libgen.h-for-basename-API.patch
> > mit-license.patch
> >
> > Other existing patches are refreshed to avoid patch-fuzz error.
> >
> > A new PACKAGECONFIG, lastlog2, is added, which serves as a switch to build Y2038
> > safe lastlog pam module. This is a new functionality added in 2.40.
> >
> > Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> > ---
> > ...2.39.3.bb => util-linux-libuuid_2.40.1.bb} | 0
> > meta/recipes-core/util-linux/util-linux.inc | 8 +--
> > ...ls-include-libgen.h-for-basename-API.patch | 60 -------------------
> > .../util-linux/avoid_parallel_tests.patch | 5 +-
> > .../util-linux/configure-sbindir.patch | 7 +--
> > .../display_testname_for_subtest.patch | 7 +--
> > .../util-linux/util-linux/mit-license.patch | 45 --------------
> > .../util-linux/util-linux/ptest.patch | 11 ++--
> > ...l-linux_2.39.3.bb => util-linux_2.40.1.bb} | 3 +-
> > 9 files changed, 18 insertions(+), 128 deletions(-)
> > rename meta/recipes-core/util-linux/{util-linux-libuuid_2.39.3.bb => util-linux-libuuid_2.40.1.bb} (100%)
> > delete mode 100644 meta/recipes-core/util-linux/util-linux/0001-login-utils-include-libgen.h-for-basename-API.patch
> > delete mode 100644 meta/recipes-core/util-linux/util-linux/mit-license.patch
> > rename meta/recipes-core/util-linux/{util-linux_2.39.3.bb => util-linux_2.40.1.bb} (99%)
> >
> > diff --git a/meta/recipes-core/util-linux/util-linux-libuuid_2.39.3.bb b/meta/recipes-core/util-linux/util-linux-libuuid_2.40.1.bb
> > similarity index 100%
> > rename from meta/recipes-core/util-linux/util-linux-libuuid_2.39.3.bb
> > rename to meta/recipes-core/util-linux/util-linux-libuuid_2.40.1.bb
> > diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc
> > index d506783f9a..0f5f838e84 100644
> > --- a/meta/recipes-core/util-linux/util-linux.inc
> > +++ b/meta/recipes-core/util-linux/util-linux.inc
> > @@ -6,7 +6,7 @@ disk partitioning, kernel message management, filesystem creation, and system lo
> >
> > SECTION = "base"
> >
> > -LICENSE = "GPL-1.0-or-later & GPL-2.0-or-later & LGPL-2.1-or-later & BSD-2-Clause & BSD-3-Clause & BSD-4-Clause & MIT"
> > +LICENSE = "GPL-1.0-or-later & GPL-2.0-only & GPL-2.0-or-later & LGPL-2.1-or-later & BSD-2-Clause & BSD-3-Clause & BSD-4-Clause & MIT"
> > LICENSE:${PN}-fcntl-lock = "MIT"
> > LICENSE:${PN}-fdisk = "GPL-1.0-or-later"
> > LICENSE:${PN}-libblkid = "LGPL-2.1-or-later"
> > @@ -14,7 +14,7 @@ LICENSE:${PN}-libfdisk = "LGPL-2.1-or-later"
> > LICENSE:${PN}-libmount = "LGPL-2.1-or-later"
> > LICENSE:${PN}-libsmartcols = "LGPL-2.1-or-later"
> >
> > -LIC_FILES_CHKSUM = "file://README.licensing;md5=cc80239f106687ab39ef0271ff5cf4ba \
> > +LIC_FILES_CHKSUM = "file://README.licensing;md5=ddd58b6c94da86ff4f03e91208eb9cfc \
> > file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
> > file://Documentation/licenses/COPYING.GPL-2.0-or-later;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
> > file://Documentation/licenses/COPYING.LGPL-2.1-or-later;md5=4fbd65380cdd255951079008b364516c \
> > @@ -30,7 +30,6 @@ LIC_FILES_CHKSUM = "file://README.licensing;md5=cc80239f106687ab39ef0271ff5cf4ba
> > FILESEXTRAPATHS:prepend := "${THISDIR}/util-linux:"
> > MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:2])}"
> > SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-linux-${PV}.tar.xz \
> > - file://mit-license.patch \
> > file://configure-sbindir.patch \
> > file://runuser.pamd \
> > file://runuser-l.pamd \
> > @@ -38,8 +37,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-lin
> > file://run-ptest \
> > file://display_testname_for_subtest.patch \
> > file://avoid_parallel_tests.patch \
> > - file://0001-login-utils-include-libgen.h-for-basename-API.patch \
> > file://fcntl-lock.c \
> > "
> >
> > -SRC_URI[sha256sum] = "7b6605e48d1a49f43cc4b4cfc59f313d0dd5402fa40b96810bd572e167dfed0f"
> > +SRC_URI[sha256sum] = "59e676aa53ccb44b6c39f0ffe01a8fa274891c91bef1474752fad92461def24f"
> > diff --git a/meta/recipes-core/util-linux/util-linux/0001-login-utils-include-libgen.h-for-basename-API.patch b/meta/recipes-core/util-linux/util-linux/0001-login-utils-include-libgen.h-for-basename-API.patch
> > deleted file mode 100644
> > index 6258710e1e..0000000000
> > --- a/meta/recipes-core/util-linux/util-linux/0001-login-utils-include-libgen.h-for-basename-API.patch
> > +++ /dev/null
> > @@ -1,60 +0,0 @@
> > -From d44e3ad1f6f8b5c1b3098bb7d537943a4c21d22f Mon Sep 17 00:00:00 2001
> > -From: Khem Raj <raj.khem@gmail.com>
> > -Date: Sun, 3 Dec 2023 19:59:46 -0800
> > -Subject: [PATCH] login-utils: include libgen.h for basename API
> > -
> > -musl has removed the non-prototype declaration of basename from string.h [1] which now results in build errors with clang-17+ compiler
> > -
> > -include libgen.h for using the posix declaration of the funciton.
> > -
> > -Fixes
> > -
> > -../util-linux-2.39.2/login-utils/su-common.c:847:20: error: call to undeclared function 'basename'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
> > - 847 | shell_basename = basename(shell);
> > - | ^
> > -
> > -[1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7
> > -
> > -Upstream-Status: Submitted [https://github.com/util-linux/util-linux/pull/2615]
> > -Signed-off-by: Khem Raj <raj.khem@gmail.com>
> > -
> > ----
> > - login-utils/su-common.c | 10 +++++++---
> > - 1 file changed, 7 insertions(+), 3 deletions(-)
> > -
> > -diff --git a/login-utils/su-common.c b/login-utils/su-common.c
> > -index b674920..3297c78 100644
> > ---- a/login-utils/su-common.c
> > -+++ b/login-utils/su-common.c
> > -@@ -26,6 +26,7 @@
> > - #include <sys/types.h>
> > - #include <pwd.h>
> > - #include <grp.h>
> > -+#include <libgen.h>
> > - #include <security/pam_appl.h>
> > - #ifdef HAVE_SECURITY_PAM_MISC_H
> > - # include <security/pam_misc.h>
> > -@@ -840,17 +841,20 @@ static void run_shell(
> > - su->simulate_login ? " login" : "",
> > - su->fast_startup ? " fast-start" : ""));
> > -
> > -+ char* tmp = xstrdup(shell);
> > - if (su->simulate_login) {
> > - char *arg0;
> > - char *shell_basename;
> > -
> > -- shell_basename = basename(shell);
> > -+ shell_basename = basename(tmp);
> > - arg0 = xmalloc(strlen(shell_basename) + 2);
> > - arg0[0] = '-';
> > - strcpy(arg0 + 1, shell_basename);
> > - args[0] = arg0;
> > -- } else
> > -- args[0] = basename(shell);
> > -+ } else {
> > -+ args[0] = basename(tmp);
> > -+ }
> > -+ free(tmp);
> > -
> > - if (su->fast_startup)
> > - args[argno++] = "-f";
> > diff --git a/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch b/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch
> > index 85ad7a5575..8ea00dbb95 100644
> > --- a/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch
> > +++ b/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch
> > @@ -1,4 +1,4 @@
> > -From 0b05e4695a0616badef71dfa459a00ef6ff1b521 Mon Sep 17 00:00:00 2001
> > +From da58b4150f6932de36c962ea657713bcf4ea44be Mon Sep 17 00:00:00 2001
> > From: Tudor Florea <tudor.florea@enea.com>
> > Date: Mon, 14 Jun 2021 14:00:31 +0200
> > Subject: [PATCH] util-linux: Add ptest
> > @@ -9,13 +9,12 @@ Revert run.sh script accordingly to serialize running tests
> >
> > Signed-off-by: Tudor Florea <tudor.florea@enea.com>
> > Upstream-Status: Inappropriate
> > -
> > ---
> > configure.ac | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/configure.ac b/configure.ac
> > -index 890212f..870e817 100644
> > +index 651ef2b..2a8012e 100644
> > --- a/configure.ac
> > +++ b/configure.ac
> > @@ -11,7 +11,7 @@ AC_CONFIG_MACRO_DIR([m4])
> > diff --git a/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch b/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch
> > index 75adeca188..74abdc2038 100644
> > --- a/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch
> > +++ b/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch
> > @@ -1,4 +1,4 @@
> > -From c79222a9a5e3425c55e150edc0b7ac59c573aa2f Mon Sep 17 00:00:00 2001
> > +From 0387d71516c978899cfd556ca512f530a212b4a9 Mon Sep 17 00:00:00 2001
> > From: Phil Blundell <pb@pbcl.net>
> > Date: Mon, 24 Sep 2012 07:24:51 +0100
> > Subject: [PATCH] util-linux: Ensure that ${sbindir} is respected
> > @@ -9,16 +9,15 @@ fix the test, the [ ] syntax was getting eaten by autoconf
> > Signed-off-by: Phil Blundell <pb@pbcl.net>
> > Signed-off-by: Saul Wold <sgw@linux.intel.com
> > Upstream-Status: Inappropriate [configuration]
> > -
> > ---
> > configure.ac | 5 ++++-
> > 1 file changed, 4 insertions(+), 1 deletion(-)
> >
> > diff --git a/configure.ac b/configure.ac
> > -index 36c24b4..890212f 100644
> > +index 23594ff..651ef2b 100644
> > --- a/configure.ac
> > +++ b/configure.ac
> > -@@ -102,7 +102,10 @@ AC_SUBST([runstatedir])
> > +@@ -110,7 +110,10 @@ AC_SUBST([runstatedir])
> > usrbin_execdir='${exec_prefix}/bin'
> > AC_SUBST([usrbin_execdir])
> >
> > diff --git a/meta/recipes-core/util-linux/util-linux/display_testname_for_subtest.patch b/meta/recipes-core/util-linux/util-linux/display_testname_for_subtest.patch
> > index 815ae9c915..871b0b2d30 100644
> > --- a/meta/recipes-core/util-linux/util-linux/display_testname_for_subtest.patch
> > +++ b/meta/recipes-core/util-linux/util-linux/display_testname_for_subtest.patch
> > @@ -1,20 +1,19 @@
> > -From fc5de1de898fd1a372a2fd2fa493dc57323a029d Mon Sep 17 00:00:00 2001
> > +From 45450d0339cd7ee27f53c0f2fac1cc74ed9bbfb8 Mon Sep 17 00:00:00 2001
> > From: Tudor Florea <tudor.florea@enea.com>
> > Date: Thu, 3 Dec 2015 04:08:00 +0100
> > Subject: [PATCH] Display testname for subtest
> >
> > Signed-off-by: Tudor Florea <tudor.florea@enea.com>
> > Upstream-Status: Pending
> > -
> > ---
> > tests/functions.sh | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/tests/functions.sh b/tests/functions.sh
> > -index 5a562a3..098145e 100644
> > +index 5fe5ba0..a6c703e 100644
> > --- a/tests/functions.sh
> > +++ b/tests/functions.sh
> > -@@ -437,7 +437,7 @@ function ts_init_subtest {
> > +@@ -450,7 +450,7 @@ function ts_init_subtest {
> >
> > if [ "$TS_PARSABLE" != "yes" ]; then
> > [ $TS_NSUBTESTS -eq 1 ] && echo
> > diff --git a/meta/recipes-core/util-linux/util-linux/mit-license.patch b/meta/recipes-core/util-linux/util-linux/mit-license.patch
> > deleted file mode 100644
> > index afbec98f18..0000000000
> > --- a/meta/recipes-core/util-linux/util-linux/mit-license.patch
> > +++ /dev/null
> > @@ -1,45 +0,0 @@
> > -From 5b8fab1584017d9d9be008c23b90128bba41a7b5 Mon Sep 17 00:00:00 2001
> > -From: Richard Purdie <richard.purdie@linuxfoundation.org>
> > -Date: Thu, 28 Mar 2024 12:16:57 +0000
> > -Subject: [PATCH] README.licensing/flock: Add MIT license mention
> > -
> > -Looking at the license text, flock.c is under the MIT license (see
> > -https://spdx.org/licenses/MIT).
> > -
> > -Add an SPDX license identifier header and add to the list of licenses the
> > -source so everything is correctly listed/identified.
> > -
> > -Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> > -
> > -Upstream-Status: Submitted [https://github.com/util-linux/util-linux/pull/2870]
> > -
> > ----
> > - README.licensing | 2 ++
> > - sys-utils/flock.c | 4 +++-
> > - 2 files changed, 5 insertions(+), 1 deletion(-)
> > -
> > -diff --git a/README.licensing b/README.licensing
> > -index 4454f8392a..535ad34813 100644
> > ---- a/README.licensing
> > -+++ b/README.licensing
> > -@@ -12,6 +12,8 @@ There is code under:
> > -
> > - * LGPL-2.1-or-later - GNU Lesser General Public License 2.1 or any later version
> > -
> > -+ * MIT - MIT License
> > -+
> > - * BSD-2-Clause - Simplified BSD License
> > -
> > - * BSD-3-Clause - BSD 3-Clause "New" or "Revised" License
> > -diff --git a/sys-utils/flock.c b/sys-utils/flock.c
> > -index fed29d7270..7d878ff810 100644
> > ---- a/sys-utils/flock.c
> > -+++ b/sys-utils/flock.c
> > -@@ -1,4 +1,6 @@
> > --/* Copyright 2003-2005 H. Peter Anvin - All Rights Reserved
> > -+/* SPDX-License-Identifier: MIT
> > -+ *
> > -+ * Copyright 2003-2005 H. Peter Anvin - All Rights Reserved
> > - *
> > - * Permission is hereby granted, free of charge, to any person
> > - * obtaining a copy of this software and associated documentation
> > diff --git a/meta/recipes-core/util-linux/util-linux/ptest.patch b/meta/recipes-core/util-linux/util-linux/ptest.patch
> > index 6221de7182..7345926b88 100644
> > --- a/meta/recipes-core/util-linux/util-linux/ptest.patch
> > +++ b/meta/recipes-core/util-linux/util-linux/ptest.patch
> > @@ -1,24 +1,23 @@
> > -From d0a69ce80c579cbb7627a2f20e8b92e006a8d8ad Mon Sep 17 00:00:00 2001
> > +From f9be73c3e2b0a4f0923950dcb058be85d3ee8ed7 Mon Sep 17 00:00:00 2001
> > From: Tudor Florea <tudor.florea@enea.com>
> > Date: Thu, 3 Dec 2015 04:08:00 +0100
> > Subject: [PATCH] Define TESTS variable
> >
> > Signed-off-by: Tudor Florea <tudor.florea@enea.com>
> > Upstream-Status: Pending
> > -
> > ---
> > Makefile.am | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/Makefile.am b/Makefile.am
> > -index effbb02..7d2bd1e 100644
> > +index 50ab8d0..7e2340d 100644
> > --- a/Makefile.am
> > +++ b/Makefile.am
> > -@@ -57,6 +57,7 @@ systemdsystemunit_DATA =
> > +@@ -64,6 +64,7 @@ tmpfiles_DATA =
> > dist_bashcompletion_DATA =
> > check_PROGRAMS =
> > dist_check_SCRIPTS =
> > +TESTS = $(check_PROGRAMS)
> >
> > - PATHFILES =
> > - ADOCFILES_COMMON =
> > + BUILT_SOURCES =
> > +
> > diff --git a/meta/recipes-core/util-linux/util-linux_2.39.3.bb b/meta/recipes-core/util-linux/util-linux_2.40.1.bb
> > similarity index 99%
> > rename from meta/recipes-core/util-linux/util-linux_2.39.3.bb
> > rename to meta/recipes-core/util-linux/util-linux_2.40.1.bb
> > index 2cd7750afc..eceb0495a7 100644
> > --- a/meta/recipes-core/util-linux/util-linux_2.39.3.bb
> > +++ b/meta/recipes-core/util-linux/util-linux_2.40.1.bb
> > @@ -90,7 +90,7 @@ EXTRA_OECONF:append = " --disable-hwclock-gplv3"
> > # build host versions during development
> > #
> > PACKAGECONFIG ?= "pcre2"
> > -PACKAGECONFIG:class-target ?= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'chfn-chsh pam', '', d)}"
> > +PACKAGECONFIG:class-target ?= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'chfn-chsh pam lastlog2', '', d)}"
> > # inherit manpages requires this to be present, however util-linux does not have
> > # configuration options, and installs manpages always
> > PACKAGECONFIG[manpages] = ""
> > @@ -106,6 +106,7 @@ PACKAGECONFIG[pcre2] = ",,libpcre2"
> > PACKAGECONFIG[cryptsetup] = "--with-cryptsetup,--without-cryptsetup,cryptsetup"
> > PACKAGECONFIG[chfn-chsh] = "--enable-chfn-chsh,--disable-chfn-chsh,"
> > PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
> > +PACKAGECONFIG[lastlog2] = "--enable-liblastlog2,--disable-liblastlog2,sqlite3"
> >
> > EXTRA_OEMAKE = "ARCH=${TARGET_ARCH} CPU= CPUOPT= 'OPT=${CFLAGS}'"
> >
> > --
> > 2.34.1
> >
>
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#199557): https://lists.openembedded.org/g/openembedded-core/message/199557
> > Mute This Topic: https://lists.openembedded.org/mt/106199572/3617179
> > Group Owner: openembedded-core+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
>
>
> --
> Alexandre Belloni, co-owner and COO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [OE-core][PATCH 1/6] systemd/systemd-boot: upgrade from 255.4 to 255.6
2024-05-20 8:10 [OE-core][PATCH 1/6] systemd/systemd-boot: upgrade from 255.4 to 255.6 Qi.Chen
` (4 preceding siblings ...)
2024-05-20 8:10 ` [OE-core][PATCH 6/6] kmod: upgrade from 31 to 32 Qi.Chen
@ 2024-05-21 9:38 ` Alexandre Belloni
2024-05-21 10:22 ` Chen, Qi
5 siblings, 1 reply; 14+ messages in thread
From: Alexandre Belloni @ 2024-05-21 9:38 UTC (permalink / raw)
To: Qi.Chen; +Cc: openembedded-core
This also fails on the autobuilders:
ERROR: systemd-1_255.6-r0 do_patch: Applying patch '0001-basic-add-PIDFS-magic-31709.patch' on target directory '/home/pokybuild/yocto-worker/qemux86-alt/build/build/tmp/work/core2-32-poky-linux/systemd/255.6/git'
CmdError('quilt --quiltrc /home/pokybuild/yocto-worker/qemux86-alt/build/build/tmp/work/core2-32-poky-linux/systemd/255.6/recipe-sysroot-native/etc/quiltrc push', 0, 'stdout: Applying patch 0001-basic-add-PIDFS-magic-31709.patch
patching file src/basic/filesystems-gperf.gperf
Hunk #1 FAILED at 91.
1 out of 1 hunk FAILED -- rejects in file src/basic/filesystems-gperf.gperf
patching file src/basic/missing_magic.h
Hunk #1 succeeded at 133 with fuzz 1 (offset 5 lines).
Patch 0001-basic-add-PIDFS-magic-31709.patch can be reverse-applied
stderr: ')
https://autobuilder.yoctoproject.org/typhoon/#/builders/101/builds/7736/steps/13/logs/stdio
On 20/05/2024 16:10:35+0800, Chen Qi via lists.openembedded.org wrote:
> From: Chen Qi <Qi.Chen@windriver.com>
>
> musl patches are refreshed to avoid 'patch-fuzz' error.
>
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
> ..._255.4.bb => systemd-boot-native_255.6.bb} | 0
> ...md-boot_255.4.bb => systemd-boot_255.6.bb} | 0
> meta/recipes-core/systemd/systemd.inc | 2 +-
> ...1-missing_type.h-add-comparison_fn_t.patch | 7 +--
> ...k-parse_printf_format-implementation.patch | 13 ++---
> ...tall-dependency-links-at-install-tim.patch | 9 +--
> ...missing.h-check-for-missing-strndupa.patch | 55 +++++++++----------
> ...OB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch | 14 ++---
> ...005-add-missing-FTW_-macros-for-musl.patch | 7 +--
> ...06-Use-uintmax_t-for-handling-rlim_t.patch | 11 ++--
> ...T_SYMLINK_NOFOLLOW-flag-to-faccessat.patch | 11 ++--
> ...patible-basename-for-non-glibc-syste.patch | 8 +--
> ...implment-systemd-sysv-install-for-OE.patch | 5 +-
> ...uffering-when-writing-to-oom_score_a.patch | 9 +--
> ...compliant-strerror_r-from-GNU-specif.patch | 13 ++---
> ...definition-of-prctl_mm_map-structure.patch | 7 +--
> ...-not-disable-buffer-in-writing-files.patch | 35 ++++++------
> .../0013-Handle-__cpu_mask-usage.patch | 7 +--
> .../systemd/0014-Handle-missing-gshadow.patch | 7 +--
> ...l.h-Define-MIPS-ABI-defines-for-musl.patch | 11 ++--
> ...ass-correct-parameters-to-getdents64.patch | 7 +--
> .../0017-Adjust-for-musl-headers.patch | 17 +++---
> ...trerror-is-assumed-to-be-GNU-specifi.patch | 9 +--
> ...util-Make-STRERROR-portable-for-musl.patch | 7 +--
> ...ake-malloc_trim-conditional-on-glibc.patch | 9 +--
> ...hared-Do-not-use-malloc_info-on-musl.patch | 7 +--
> ...22-avoid-missing-LOCK_EX-declaration.patch | 9 +--
> .../{systemd_255.4.bb => systemd_255.6.bb} | 0
> 28 files changed, 111 insertions(+), 185 deletions(-)
> rename meta/recipes-core/systemd/{systemd-boot-native_255.4.bb => systemd-boot-native_255.6.bb} (100%)
> rename meta/recipes-core/systemd/{systemd-boot_255.4.bb => systemd-boot_255.6.bb} (100%)
> rename meta/recipes-core/systemd/{systemd_255.4.bb => systemd_255.6.bb} (100%)
>
> diff --git a/meta/recipes-core/systemd/systemd-boot-native_255.4.bb b/meta/recipes-core/systemd/systemd-boot-native_255.6.bb
> similarity index 100%
> rename from meta/recipes-core/systemd/systemd-boot-native_255.4.bb
> rename to meta/recipes-core/systemd/systemd-boot-native_255.6.bb
> diff --git a/meta/recipes-core/systemd/systemd-boot_255.4.bb b/meta/recipes-core/systemd/systemd-boot_255.6.bb
> similarity index 100%
> rename from meta/recipes-core/systemd/systemd-boot_255.4.bb
> rename to meta/recipes-core/systemd/systemd-boot_255.6.bb
> diff --git a/meta/recipes-core/systemd/systemd.inc b/meta/recipes-core/systemd/systemd.inc
> index a35db5091e..8bda47dd38 100644
> --- a/meta/recipes-core/systemd/systemd.inc
> +++ b/meta/recipes-core/systemd/systemd.inc
> @@ -15,7 +15,7 @@ LICENSE:libsystemd = "LGPL-2.1-or-later"
> LIC_FILES_CHKSUM = "file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \
> file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c"
>
> -SRCREV = "387a14a7b67b8b76adaed4175e14bb7e39b2f738"
> +SRCREV = "5810c25792d4268282dd3892af1a253b690423c9"
> SRCBRANCH = "v255-stable"
> SRC_URI = "git://github.com/systemd/systemd-stable.git;protocol=https;branch=${SRCBRANCH}"
>
> diff --git a/meta/recipes-core/systemd/systemd/0001-missing_type.h-add-comparison_fn_t.patch b/meta/recipes-core/systemd/systemd/0001-missing_type.h-add-comparison_fn_t.patch
> index 2aa5dee6b5..49871d16a8 100644
> --- a/meta/recipes-core/systemd/systemd/0001-missing_type.h-add-comparison_fn_t.patch
> +++ b/meta/recipes-core/systemd/systemd/0001-missing_type.h-add-comparison_fn_t.patch
> @@ -1,7 +1,7 @@
> -From 01195eb9f7d59139fb45df506ac6b3968c14a57f Mon Sep 17 00:00:00 2001
> +From d4b0bb9c7651017985fdd75469f37c34ce2f2c50 Mon Sep 17 00:00:00 2001
> From: Chen Qi <Qi.Chen@windriver.com>
> Date: Mon, 25 Feb 2019 13:55:12 +0800
> -Subject: [PATCH 01/22] missing_type.h: add comparison_fn_t
> +Subject: [PATCH] missing_type.h: add comparison_fn_t
>
> Make it work with musl where comparison_fn_t and is not provided.
>
> @@ -56,6 +56,3 @@ index ae91534198..7f67eea38b 100644
>
> const char * const catalog_file_dirs[] = {
> "/usr/local/lib/systemd/catalog/",
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0002-add-fallback-parse_printf_format-implementation.patch b/meta/recipes-core/systemd/systemd/0002-add-fallback-parse_printf_format-implementation.patch
> index 900a931632..593d6261e1 100644
> --- a/meta/recipes-core/systemd/systemd/0002-add-fallback-parse_printf_format-implementation.patch
> +++ b/meta/recipes-core/systemd/systemd/0002-add-fallback-parse_printf_format-implementation.patch
> @@ -1,7 +1,7 @@
> -From 872b72739e62123867ce6c4f82aa37de24cc3f75 Mon Sep 17 00:00:00 2001
> +From 776913624aaf696a3b2920b8d7506b3aae042bf1 Mon Sep 17 00:00:00 2001
> From: Alexander Kanavin <alex.kanavin@gmail.com>
> Date: Sat, 22 May 2021 20:26:24 +0200
> -Subject: [PATCH 02/22] add fallback parse_printf_format implementation
> +Subject: [PATCH] add fallback parse_printf_format implementation
>
> Upstream-Status: Inappropriate [musl specific]
>
> @@ -22,10 +22,10 @@ Signed-off-by: Scott Murray <scott.murray@konsulko.com>
> create mode 100644 src/basic/parse-printf-format.h
>
> diff --git a/meson.build b/meson.build
> -index 7419e2b0b0..01fd3ffc19 100644
> +index 187e7b216d..c4694a9ddc 100644
> --- a/meson.build
> +++ b/meson.build
> -@@ -725,6 +725,7 @@ endif
> +@@ -727,6 +727,7 @@ endif
> foreach header : ['crypt.h',
> 'linux/memfd.h',
> 'linux/vm_sockets.h',
> @@ -34,7 +34,7 @@ index 7419e2b0b0..01fd3ffc19 100644
> 'threads.h',
> 'valgrind/memcheck.h',
> diff --git a/src/basic/meson.build b/src/basic/meson.build
> -index d7450d8b44..c3e3daf4bd 100644
> +index 111253e3a5..bdaa2fc5e4 100644
> --- a/src/basic/meson.build
> +++ b/src/basic/meson.build
> @@ -183,6 +183,11 @@ endforeach
> @@ -429,6 +429,3 @@ index be23b2fe75..69a2eb6404 100644
>
> #define SNDBUF_SIZE (8*1024*1024)
>
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch b/meta/recipes-core/systemd/systemd/0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch
> index be231cf6b2..4c73c924ef 100644
> --- a/meta/recipes-core/systemd/systemd/0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch
> +++ b/meta/recipes-core/systemd/systemd/0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch
> @@ -1,8 +1,8 @@
> -From 29a58009a172e369ad7166e16dab2f4945c6b0d2 Mon Sep 17 00:00:00 2001
> +From 661a34c3de30d4ff4a2a62c9a0573c6ce55424e4 Mon Sep 17 00:00:00 2001
> From: Chen Qi <Qi.Chen@windriver.com>
> Date: Thu, 21 Feb 2019 16:23:24 +0800
> -Subject: [PATCH 1/2] binfmt: Don't install dependency links at install time
> - for the binfmt services
> +Subject: [PATCH] binfmt: Don't install dependency links at install time for
> + the binfmt services
>
> use [Install] blocks so that they get created when the service is enabled
> like a traditional service.
> @@ -74,6 +74,3 @@ index 6861c76674..531e9fbd90 100644
> +
> +[Install]
> +WantedBy=sysinit.target
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch b/meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch
> index 5595b5bc23..f09f2114d3 100644
> --- a/meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch
> +++ b/meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch
> @@ -1,7 +1,7 @@
> -From 87f1d38f40c5fe9cadf2b2de442473e4e5605788 Mon Sep 17 00:00:00 2001
> +From 843c6c94bf6a29eaceeefafa420cd86a32e844d2 Mon Sep 17 00:00:00 2001
> From: Chen Qi <Qi.Chen@windriver.com>
> Date: Mon, 25 Feb 2019 14:18:21 +0800
> -Subject: [PATCH 03/22] src/basic/missing.h: check for missing strndupa
> +Subject: [PATCH] src/basic/missing.h: check for missing strndupa
>
> include missing.h for definition of strndupa
>
> @@ -75,10 +75,10 @@ Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> 51 files changed, 62 insertions(+)
>
> diff --git a/meson.build b/meson.build
> -index 01fd3ffc19..61a872b753 100644
> +index c4694a9ddc..d376b76afa 100644
> --- a/meson.build
> +++ b/meson.build
> -@@ -567,6 +567,7 @@ foreach ident : ['secure_getenv', '__secure_getenv']
> +@@ -569,6 +569,7 @@ foreach ident : ['secure_getenv', '__secure_getenv']
> endforeach
>
> foreach ident : [
> @@ -87,7 +87,7 @@ index 01fd3ffc19..61a872b753 100644
> ['gettid', '''#include <sys/types.h>
> #include <unistd.h>'''],
> diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c
> -index 5ac9f904a9..99d5122dd7 100644
> +index b2032adaa5..ee9201826d 100644
> --- a/src/backlight/backlight.c
> +++ b/src/backlight/backlight.c
> @@ -20,6 +20,7 @@
> @@ -111,7 +111,7 @@ index 18b16ecc0e..d2be79622f 100644
> static int cg_enumerate_items(const char *controller, const char *path, FILE **ret, const char *item) {
> _cleanup_free_ char *fs = NULL;
> diff --git a/src/basic/env-util.c b/src/basic/env-util.c
> -index d3bf73385f..16b17358ca 100644
> +index a97651d7af..09fa601250 100644
> --- a/src/basic/env-util.c
> +++ b/src/basic/env-util.c
> @@ -19,6 +19,7 @@
> @@ -123,7 +123,7 @@ index d3bf73385f..16b17358ca 100644
> /* We follow bash for the character set. Different shells have different rules. */
> #define VALID_BASH_ENV_NAME_CHARS \
> diff --git a/src/basic/log.c b/src/basic/log.c
> -index 1470611a75..9924ec2b9a 100644
> +index 7a443005f6..eed69a48ee 100644
> --- a/src/basic/log.c
> +++ b/src/basic/log.c
> @@ -40,6 +40,7 @@
> @@ -251,7 +251,7 @@ index f9014dc560..1d7840a5b5 100644
> static clockid_t map_clock_id(clockid_t c) {
>
> diff --git a/src/boot/bless-boot.c b/src/boot/bless-boot.c
> -index 0c0b4f23c7..68fe5ca509 100644
> +index 12dfdf76fa..e66332519a 100644
> --- a/src/boot/bless-boot.c
> +++ b/src/boot/bless-boot.c
> @@ -22,6 +22,7 @@
> @@ -263,7 +263,7 @@ index 0c0b4f23c7..68fe5ca509 100644
> static char **arg_path = NULL;
>
> diff --git a/src/core/dbus-cgroup.c b/src/core/dbus-cgroup.c
> -index 4237e694c0..05f9d9d9a9 100644
> +index 8a9570fd21..ac4202e5ce 100644
> --- a/src/core/dbus-cgroup.c
> +++ b/src/core/dbus-cgroup.c
> @@ -25,6 +25,7 @@
> @@ -275,7 +275,7 @@ index 4237e694c0..05f9d9d9a9 100644
>
> BUS_DEFINE_PROPERTY_GET(bus_property_get_tasks_max, "t", CGroupTasksMax, cgroup_tasks_max_resolve);
> diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c
> -index 4daa1cefd3..2c77901471 100644
> +index 2d05ba7e1d..61a7de0037 100644
> --- a/src/core/dbus-execute.c
> +++ b/src/core/dbus-execute.c
> @@ -42,6 +42,7 @@
> @@ -287,10 +287,10 @@ index 4daa1cefd3..2c77901471 100644
> BUS_DEFINE_PROPERTY_GET_ENUM(bus_property_get_exec_output, exec_output, ExecOutput);
> static BUS_DEFINE_PROPERTY_GET_ENUM(property_get_exec_input, exec_input, ExecInput);
> diff --git a/src/core/dbus-util.c b/src/core/dbus-util.c
> -index d680a64268..e59f48103e 100644
> +index 7bb026af48..a86128e40c 100644
> --- a/src/core/dbus-util.c
> +++ b/src/core/dbus-util.c
> -@@ -9,6 +9,7 @@
> +@@ -10,6 +10,7 @@
> #include "unit-printf.h"
> #include "user-util.h"
> #include "unit.h"
> @@ -299,7 +299,7 @@ index d680a64268..e59f48103e 100644
> int bus_property_get_triggered_unit(
> sd_bus *bus,
> diff --git a/src/core/execute.c b/src/core/execute.c
> -index ef0bf88687..bd3da0c401 100644
> +index 8dbdfcf369..531bec4c92 100644
> --- a/src/core/execute.c
> +++ b/src/core/execute.c
> @@ -72,6 +72,7 @@
> @@ -323,7 +323,7 @@ index b8e3f7aadd..8ce8ca68d8 100644
> #if HAVE_KMOD
> #include "module-util.h"
> diff --git a/src/core/service.c b/src/core/service.c
> -index b9eb40c555..268fe7573b 100644
> +index 42fffbbd67..80a8d05a19 100644
> --- a/src/core/service.c
> +++ b/src/core/service.c
> @@ -45,6 +45,7 @@
> @@ -359,7 +359,7 @@ index 016f3baa7f..b1def81313 100644
> typedef enum MountPointFlags {
> MOUNT_NOAUTO = 1 << 0,
> diff --git a/src/journal-remote/journal-remote-main.c b/src/journal-remote/journal-remote-main.c
> -index da0f20d3ce..f22ce41908 100644
> +index 2d380bc7a7..d3f5612728 100644
> --- a/src/journal-remote/journal-remote-main.c
> +++ b/src/journal-remote/journal-remote-main.c
> @@ -27,6 +27,7 @@
> @@ -371,7 +371,7 @@ index da0f20d3ce..f22ce41908 100644
> #define PRIV_KEY_FILE CERTIFICATE_ROOT "/private/journal-remote.pem"
> #define CERT_FILE CERTIFICATE_ROOT "/certs/journal-remote.pem"
> diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
> -index 7f3dcd56a4..41b7cbaaf1 100644
> +index 87e2f28841..58275f41f1 100644
> --- a/src/journal/journalctl.c
> +++ b/src/journal/journalctl.c
> @@ -77,6 +77,7 @@
> @@ -383,7 +383,7 @@ index 7f3dcd56a4..41b7cbaaf1 100644
> #define DEFAULT_FSS_INTERVAL_USEC (15*USEC_PER_MINUTE)
> #define PROCESS_INOTIFY_INTERVAL 1024 /* Every 1,024 messages processed */
> diff --git a/src/libsystemd/sd-bus/bus-message.c b/src/libsystemd/sd-bus/bus-message.c
> -index ff0228081f..9066fcb133 100644
> +index ab8b06896d..43f9131205 100644
> --- a/src/libsystemd/sd-bus/bus-message.c
> +++ b/src/libsystemd/sd-bus/bus-message.c
> @@ -19,6 +19,7 @@
> @@ -407,7 +407,7 @@ index c25c40ff37..57a5da704f 100644
> static int node_vtable_get_userdata(
> sd_bus *bus,
> diff --git a/src/libsystemd/sd-bus/bus-socket.c b/src/libsystemd/sd-bus/bus-socket.c
> -index 3c59d0d615..746922d46f 100644
> +index 5ade8e99aa..7553cf319d 100644
> --- a/src/libsystemd/sd-bus/bus-socket.c
> +++ b/src/libsystemd/sd-bus/bus-socket.c
> @@ -29,6 +29,7 @@
> @@ -419,7 +419,7 @@ index 3c59d0d615..746922d46f 100644
> #define SNDBUF_SIZE (8*1024*1024)
>
> diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c
> -index 4a0259f8bb..aaa90d2223 100644
> +index 8befc97460..6ee4d4f595 100644
> --- a/src/libsystemd/sd-bus/sd-bus.c
> +++ b/src/libsystemd/sd-bus/sd-bus.c
> @@ -46,6 +46,7 @@
> @@ -443,7 +443,7 @@ index d988588de0..458df8df9a 100644
> #define MAX_SIZE (2*1024*1024)
>
> diff --git a/src/libsystemd/sd-journal/sd-journal.c b/src/libsystemd/sd-journal/sd-journal.c
> -index 6b9ff0a4ed..4a5027ad0f 100644
> +index 7a1dd2569f..d187baad47 100644
> --- a/src/libsystemd/sd-journal/sd-journal.c
> +++ b/src/libsystemd/sd-journal/sd-journal.c
> @@ -44,6 +44,7 @@
> @@ -455,7 +455,7 @@ index 6b9ff0a4ed..4a5027ad0f 100644
> #define JOURNAL_FILES_RECHECK_USEC (2 * USEC_PER_SEC)
>
> diff --git a/src/login/pam_systemd.c b/src/login/pam_systemd.c
> -index b8da266e27..4bb8dd9496 100644
> +index bf45974ca5..2cb7e930c0 100644
> --- a/src/login/pam_systemd.c
> +++ b/src/login/pam_systemd.c
> @@ -35,6 +35,7 @@
> @@ -503,10 +503,10 @@ index c64e79bdff..eda26b0b9a 100644
> static void setup_logging_once(void) {
> static pthread_once_t once = PTHREAD_ONCE_INIT;
> diff --git a/src/portable/portable.c b/src/portable/portable.c
> -index d4b448a627..bb26623565 100644
> +index 3b2a37912f..835a3fdeaa 100644
> --- a/src/portable/portable.c
> +++ b/src/portable/portable.c
> -@@ -40,6 +40,7 @@
> +@@ -42,6 +42,7 @@
> #include "strv.h"
> #include "tmpfile-util.h"
> #include "user-util.h"
> @@ -551,7 +551,7 @@ index 8b462b5627..183ce1c18e 100644
> struct CGroupInfo {
> char *cgroup_path;
> diff --git a/src/shared/bus-unit-util.c b/src/shared/bus-unit-util.c
> -index 4ee9706847..30c8084847 100644
> +index 50de98941f..d47beccb0b 100644
> --- a/src/shared/bus-unit-util.c
> +++ b/src/shared/bus-unit-util.c
> @@ -50,6 +50,7 @@
> @@ -599,7 +599,7 @@ index 83e9834bbf..74eaae6f5e 100644
> enum {
> IMPORTER_STATE_LINE = 0, /* waiting to read, or reading line */
> diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c
> -index a5d04003bd..10392c132d 100644
> +index 0a31be382f..92d629e7e0 100644
> --- a/src/shared/logs-show.c
> +++ b/src/shared/logs-show.c
> @@ -41,6 +41,7 @@
> @@ -683,7 +683,7 @@ index ed22c8b679..19ebe20237 100644
> UdevEvent *udev_event_new(sd_device *dev, usec_t exec_delay_usec, sd_netlink *rtnl, int log_level) {
> UdevEvent *event;
> diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
> -index 5f12002394..febe345b4c 100644
> +index c242549654..e5b8df5c2d 100644
> --- a/src/udev/udev-rules.c
> +++ b/src/udev/udev-rules.c
> @@ -41,6 +41,7 @@
> @@ -694,6 +694,3 @@ index 5f12002394..febe345b4c 100644
>
> #define RULES_DIRS ((const char* const*) CONF_PATHS_STRV("udev/rules.d"))
>
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0004-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch b/meta/recipes-core/systemd/systemd/0004-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch
> index 15877bea88..15d25e9f19 100644
> --- a/meta/recipes-core/systemd/systemd/0004-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch
> +++ b/meta/recipes-core/systemd/systemd/0004-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch
> @@ -1,8 +1,7 @@
> -From 5325ab5813617f35f03806ec420829dde7104387 Mon Sep 17 00:00:00 2001
> +From 2903e42c7cd727a2374d21b78950308de792ebe8 Mon Sep 17 00:00:00 2001
> From: Chen Qi <Qi.Chen@windriver.com>
> Date: Mon, 25 Feb 2019 14:56:21 +0800
> -Subject: [PATCH 04/22] don't fail if GLOB_BRACE and GLOB_ALTDIRFUNC is not
> - defined
> +Subject: [PATCH] don't fail if GLOB_BRACE and GLOB_ALTDIRFUNC is not defined
>
> If the standard library doesn't provide brace
> expansion users just won't get it.
> @@ -115,7 +114,7 @@ index 9b3e73cce0..3790ba3be5 100644
>
> (void) rm_rf(template, REMOVE_ROOT|REMOVE_PHYSICAL);
> diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
> -index 230ec09b97..2cc5f391d7 100644
> +index 6a1c7725a1..138b3ac561 100644
> --- a/src/tmpfiles/tmpfiles.c
> +++ b/src/tmpfiles/tmpfiles.c
> @@ -73,6 +73,12 @@
> @@ -131,7 +130,7 @@ index 230ec09b97..2cc5f391d7 100644
> /* This reads all files listed in /etc/tmpfiles.d/?*.conf and creates
> * them in the file system. This is intended to be used to create
> * properly owned directories beneath /tmp, /var/tmp, /run, which are
> -@@ -2434,7 +2440,9 @@ finish:
> +@@ -2426,7 +2432,9 @@ finish:
>
> static int glob_item(Context *c, Item *i, action_t action) {
> _cleanup_globfree_ glob_t g = {
> @@ -141,7 +140,7 @@ index 230ec09b97..2cc5f391d7 100644
> };
> int r = 0, k;
>
> -@@ -2461,7 +2469,9 @@ static int glob_item_recursively(
> +@@ -2453,7 +2461,9 @@ static int glob_item_recursively(
> fdaction_t action) {
>
> _cleanup_globfree_ glob_t g = {
> @@ -151,6 +150,3 @@ index 230ec09b97..2cc5f391d7 100644
> };
> int r = 0, k;
>
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0005-add-missing-FTW_-macros-for-musl.patch b/meta/recipes-core/systemd/systemd/0005-add-missing-FTW_-macros-for-musl.patch
> index a1dfca22cd..deb0e83b6d 100644
> --- a/meta/recipes-core/systemd/systemd/0005-add-missing-FTW_-macros-for-musl.patch
> +++ b/meta/recipes-core/systemd/systemd/0005-add-missing-FTW_-macros-for-musl.patch
> @@ -1,7 +1,7 @@
> -From dad7f897c0de654fa5592fda3e90f874639849f9 Mon Sep 17 00:00:00 2001
> +From dcd9639657e4122b7665b01a067219f990ee3ace Mon Sep 17 00:00:00 2001
> From: Chen Qi <Qi.Chen@windriver.com>
> Date: Mon, 25 Feb 2019 15:00:06 +0800
> -Subject: [PATCH 05/22] add missing FTW_ macros for musl
> +Subject: [PATCH] add missing FTW_ macros for musl
>
> This is to avoid build failures like below for musl.
>
> @@ -39,6 +39,3 @@ index 8684d064ec..70fc2b5376 100644
>
> static char **list_nftw = NULL;
>
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0006-Use-uintmax_t-for-handling-rlim_t.patch b/meta/recipes-core/systemd/systemd/0006-Use-uintmax_t-for-handling-rlim_t.patch
> index 4be14b72ec..f02675604d 100644
> --- a/meta/recipes-core/systemd/systemd/0006-Use-uintmax_t-for-handling-rlim_t.patch
> +++ b/meta/recipes-core/systemd/systemd/0006-Use-uintmax_t-for-handling-rlim_t.patch
> @@ -1,7 +1,7 @@
> -From 96e975a2412a20e5f80bd3ab144057d275eb8597 Mon Sep 17 00:00:00 2001
> +From c58933386caa8e45b5e814ec4ff210b18ab401da Mon Sep 17 00:00:00 2001
> From: Chen Qi <Qi.Chen@windriver.com>
> Date: Mon, 25 Feb 2019 15:12:41 +0800
> -Subject: [PATCH 06/22] Use uintmax_t for handling rlim_t
> +Subject: [PATCH] Use uintmax_t for handling rlim_t
>
> PRIu{32,64} is not right format to represent rlim_t type
> therefore use %ju and typecast the rlim_t variables to
> @@ -86,10 +86,10 @@ index c1f0b2b974..61c5412582 100644
> return 1;
> }
> diff --git a/src/core/execute.c b/src/core/execute.c
> -index bd3da0c401..df1870fd2f 100644
> +index 531bec4c92..602a95f674 100644
> --- a/src/core/execute.c
> +++ b/src/core/execute.c
> -@@ -1045,9 +1045,9 @@ void exec_context_dump(const ExecContext *c, FILE* f, const char *prefix) {
> +@@ -1041,9 +1041,9 @@ void exec_context_dump(const ExecContext *c, FILE* f, const char *prefix) {
> for (unsigned i = 0; i < RLIM_NLIMITS; i++)
> if (c->rlimit[i]) {
> fprintf(f, "%sLimit%s: " RLIM_FMT "\n",
> @@ -101,6 +101,3 @@ index bd3da0c401..df1870fd2f 100644
> }
>
> if (c->ioprio_set) {
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0007-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch b/meta/recipes-core/systemd/systemd/0007-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch
> index 8d6084239e..1d4ce33712 100644
> --- a/meta/recipes-core/systemd/systemd/0007-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch
> +++ b/meta/recipes-core/systemd/systemd/0007-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch
> @@ -1,7 +1,7 @@
> -From 4842cff4f1329f0b5034b529d56f8ad1f234ac4c Mon Sep 17 00:00:00 2001
> +From 5bf8235bc5c802908aa5d95740350927d87e953a Mon Sep 17 00:00:00 2001
> From: Andre McCurdy <armccurdy@gmail.com>
> Date: Tue, 10 Oct 2017 14:33:30 -0700
> -Subject: [PATCH 07/22] don't pass AT_SYMLINK_NOFOLLOW flag to faccessat()
> +Subject: [PATCH] don't pass AT_SYMLINK_NOFOLLOW flag to faccessat()
>
> Avoid using AT_SYMLINK_NOFOLLOW flag. It doesn't seem like the right
> thing to do and it's not portable (not supported by musl). See:
> @@ -31,7 +31,7 @@ Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
> 2 files changed, 23 insertions(+), 4 deletions(-)
>
> diff --git a/src/basic/fs-util.h b/src/basic/fs-util.h
> -index 1023ab73ca..c78ff6f27f 100644
> +index 6a1e2e76d1..c3f7235e09 100644
> --- a/src/basic/fs-util.h
> +++ b/src/basic/fs-util.h
> @@ -49,8 +49,27 @@ int futimens_opath(int fd, const struct timespec ts[2]);
> @@ -64,7 +64,7 @@ index 1023ab73ca..c78ff6f27f 100644
> int touch_file(const char *path, bool parents, usec_t stamp, uid_t uid, gid_t gid, mode_t mode);
>
> diff --git a/src/shared/base-filesystem.c b/src/shared/base-filesystem.c
> -index 569ef466c3..7ae921a113 100644
> +index a4e2dae245..67aa8ea1f2 100644
> --- a/src/shared/base-filesystem.c
> +++ b/src/shared/base-filesystem.c
> @@ -145,7 +145,7 @@ int base_filesystem_create_fd(int fd, const char *root, uid_t uid, gid_t gid) {
> @@ -94,6 +94,3 @@ index 569ef466c3..7ae921a113 100644
> continue;
> }
>
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0008-Define-glibc-compatible-basename-for-non-glibc-syste.patch b/meta/recipes-core/systemd/systemd/0008-Define-glibc-compatible-basename-for-non-glibc-syste.patch
> index c1a8bb19fe..1ab23553f9 100644
> --- a/meta/recipes-core/systemd/systemd/0008-Define-glibc-compatible-basename-for-non-glibc-syste.patch
> +++ b/meta/recipes-core/systemd/systemd/0008-Define-glibc-compatible-basename-for-non-glibc-syste.patch
> @@ -1,8 +1,7 @@
> -From bab07e779ff23d5593bb118efaaa31b60a6dce87 Mon Sep 17 00:00:00 2001
> +From d98f6bd4d8acdc4c1a5bff4c699f5004a6ebccce Mon Sep 17 00:00:00 2001
> From: Khem Raj <raj.khem@gmail.com>
> Date: Sun, 27 May 2018 08:36:44 -0700
> -Subject: [PATCH 08/22] Define glibc compatible basename() for non-glibc
> - systems
> +Subject: [PATCH] Define glibc compatible basename() for non-glibc systems
>
> Fixes builds with musl, even though systemd is adamant about
> using non-posix basename implementation, we have a way out
> @@ -29,6 +28,3 @@ index b6d8be3083..0a29036c4c 100644
> static inline char* strstr_ptr(const char *haystack, const char *needle) {
> if (!haystack || !needle)
> return NULL;
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0008-implment-systemd-sysv-install-for-OE.patch b/meta/recipes-core/systemd/systemd/0008-implment-systemd-sysv-install-for-OE.patch
> index acff18dc43..8b833ce073 100644
> --- a/meta/recipes-core/systemd/systemd/0008-implment-systemd-sysv-install-for-OE.patch
> +++ b/meta/recipes-core/systemd/systemd/0008-implment-systemd-sysv-install-for-OE.patch
> @@ -1,4 +1,4 @@
> -From 5712d56f1cd654d2e5d2e9117ff77fe4c299f76b Mon Sep 17 00:00:00 2001
> +From 5f89867f2b15f9bd411564d04e660cdeedd370ca Mon Sep 17 00:00:00 2001
> From: Khem Raj <raj.khem@gmail.com>
> Date: Sat, 5 Sep 2015 06:31:47 +0000
> Subject: [PATCH] implment systemd-sysv-install for OE
> @@ -38,6 +38,3 @@ index cb58d8243b..000bdf6165 100755
> ;;
> *)
> usage ;;
> ---
> -2.39.2
> -
> diff --git a/meta/recipes-core/systemd/systemd/0009-Do-not-disable-buffering-when-writing-to-oom_score_a.patch b/meta/recipes-core/systemd/systemd/0009-Do-not-disable-buffering-when-writing-to-oom_score_a.patch
> index 3ff0177ae3..98ab397eff 100644
> --- a/meta/recipes-core/systemd/systemd/0009-Do-not-disable-buffering-when-writing-to-oom_score_a.patch
> +++ b/meta/recipes-core/systemd/systemd/0009-Do-not-disable-buffering-when-writing-to-oom_score_a.patch
> @@ -1,7 +1,7 @@
> -From 25093c5017725b8577c444dfea0f42ad85b43522 Mon Sep 17 00:00:00 2001
> +From f3943f58f3c8a9d20dcada56eb5ca5f673a49b3d Mon Sep 17 00:00:00 2001
> From: Chen Qi <Qi.Chen@windriver.com>
> Date: Wed, 4 Jul 2018 15:00:44 +0800
> -Subject: [PATCH 09/22] Do not disable buffering when writing to oom_score_adj
> +Subject: [PATCH] Do not disable buffering when writing to oom_score_adj
>
> On musl, disabling buffering when writing to oom_score_adj will
> cause the following error.
> @@ -24,7 +24,7 @@ Signed-off-by: Scott Murray <scott.murray@konsulko.com>
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/basic/process-util.c b/src/basic/process-util.c
> -index 201c5596ae..ea51595b6c 100644
> +index 4492e7ded2..b61a2aba74 100644
> --- a/src/basic/process-util.c
> +++ b/src/basic/process-util.c
> @@ -1716,7 +1716,7 @@ int set_oom_score_adjust(int value) {
> @@ -36,6 +36,3 @@ index 201c5596ae..ea51595b6c 100644
> }
>
> int get_oom_score_adjust(int *ret) {
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0010-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch b/meta/recipes-core/systemd/systemd/0010-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch
> index cf59ac7d06..e1ffe4ddb5 100644
> --- a/meta/recipes-core/systemd/systemd/0010-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch
> +++ b/meta/recipes-core/systemd/systemd/0010-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch
> @@ -1,7 +1,7 @@
> -From 2adbe9773cd65c48eec9df96868d4a738927c8d9 Mon Sep 17 00:00:00 2001
> +From 5305c5f18236a9d7f2e633ea6ad317e09e8f29d5 Mon Sep 17 00:00:00 2001
> From: Chen Qi <Qi.Chen@windriver.com>
> Date: Tue, 10 Jul 2018 15:40:17 +0800
> -Subject: [PATCH 10/22] distinguish XSI-compliant strerror_r from GNU-specifi
> +Subject: [PATCH] distinguish XSI-compliant strerror_r from GNU-specifi
> strerror_r
>
> XSI-compliant strerror_r and GNU-specifi strerror_r are different.
> @@ -24,10 +24,10 @@ Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> 2 files changed, 15 insertions(+), 1 deletion(-)
>
> diff --git a/src/libsystemd/sd-bus/bus-error.c b/src/libsystemd/sd-bus/bus-error.c
> -index 77b2e1a0fd..fdba0e0142 100644
> +index f415797700..a5c6e9a3bd 100644
> --- a/src/libsystemd/sd-bus/bus-error.c
> +++ b/src/libsystemd/sd-bus/bus-error.c
> -@@ -408,7 +408,12 @@ static void bus_error_strerror(sd_bus_error *e, int error) {
> +@@ -410,7 +410,12 @@ static void bus_error_strerror(sd_bus_error *e, int error) {
> return;
>
> errno = 0;
> @@ -40,7 +40,7 @@ index 77b2e1a0fd..fdba0e0142 100644
> if (errno == ERANGE || strlen(x) >= k - 1) {
> free(m);
> k *= 2;
> -@@ -593,8 +598,12 @@ const char* _bus_error_message(const sd_bus_error *e, int error, char buf[static
> +@@ -595,8 +600,12 @@ const char* _bus_error_message(const sd_bus_error *e, int error, char buf[static
>
> if (e && e->message)
> return e->message;
> @@ -71,6 +71,3 @@ index 69a2eb6404..1561859650 100644
> if (errno == 0) {
> char error[STRLEN("ERRNO=") + DECIMAL_STR_MAX(int) + 1];
>
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0011-avoid-redefinition-of-prctl_mm_map-structure.patch b/meta/recipes-core/systemd/systemd/0011-avoid-redefinition-of-prctl_mm_map-structure.patch
> index e481b2e2e4..3075f9d003 100644
> --- a/meta/recipes-core/systemd/systemd/0011-avoid-redefinition-of-prctl_mm_map-structure.patch
> +++ b/meta/recipes-core/systemd/systemd/0011-avoid-redefinition-of-prctl_mm_map-structure.patch
> @@ -1,7 +1,7 @@
> -From 49c446cfb78cf74a909bed8c3798b77a5469866a Mon Sep 17 00:00:00 2001
> +From c866c8652f06af4cd0b9bd7eedc606449f432b95 Mon Sep 17 00:00:00 2001
> From: Chen Qi <Qi.Chen@windriver.com>
> Date: Mon, 25 Feb 2019 15:44:54 +0800
> -Subject: [PATCH 11/22] avoid redefinition of prctl_mm_map structure
> +Subject: [PATCH] avoid redefinition of prctl_mm_map structure
>
> Fix the following compile failure:
> error: redefinition of 'struct prctl_mm_map'
> @@ -27,6 +27,3 @@ index 7d9e395c92..88c2d7dfac 100644
>
> /* 58319057b7847667f0c9585b9de0e8932b0fdb08 (4.3) */
> #ifndef PR_CAP_AMBIENT
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0012-do-not-disable-buffer-in-writing-files.patch b/meta/recipes-core/systemd/systemd/0012-do-not-disable-buffer-in-writing-files.patch
> index 66be79077e..0fec84724d 100644
> --- a/meta/recipes-core/systemd/systemd/0012-do-not-disable-buffer-in-writing-files.patch
> +++ b/meta/recipes-core/systemd/systemd/0012-do-not-disable-buffer-in-writing-files.patch
> @@ -1,7 +1,7 @@
> -From e4885a8e60f883d9217e26e1db3754c2906aca31 Mon Sep 17 00:00:00 2001
> +From 8464b845e6df1be303e09274c13e653072701671 Mon Sep 17 00:00:00 2001
> From: Chen Qi <Qi.Chen@windriver.com>
> Date: Fri, 1 Mar 2019 15:22:15 +0800
> -Subject: [PATCH 12/22] do not disable buffer in writing files
> +Subject: [PATCH] do not disable buffer in writing files
>
> Do not disable buffer in writing files, otherwise we get
> failure at boot for musl like below.
> @@ -201,7 +201,7 @@ index 61ac4df1a6..ea18970196 100644
> return r;
>
> diff --git a/src/core/main.c b/src/core/main.c
> -index 3f71cc0947..0e5aec3e9e 100644
> +index 1c0030a75f..7108a87d46 100644
> --- a/src/core/main.c
> +++ b/src/core/main.c
> @@ -1678,7 +1678,7 @@ static void initialize_core_pattern(bool skip_setup) {
> @@ -253,7 +253,7 @@ index 066483e342..5f92dd7064 100644
> log_warning_errno(r, "Failed to drop caches, ignoring: %m");
> else
> diff --git a/src/libsystemd/sd-device/sd-device.c b/src/libsystemd/sd-device/sd-device.c
> -index 2fbc619a34..09d9591e37 100644
> +index 01e66b4658..f3ea82ca1b 100644
> --- a/src/libsystemd/sd-device/sd-device.c
> +++ b/src/libsystemd/sd-device/sd-device.c
> @@ -2516,7 +2516,7 @@ _public_ int sd_device_set_sysattr_value(sd_device *device, const char *sysattr,
> @@ -279,10 +279,10 @@ index a5002437c6..b12e6cd9c9 100644
> log_error_errno(r, "Failed to move process: %m");
> goto finish;
> diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
> -index 6ab604d3dc..bbec6b686c 100644
> +index 0600f3e014..ea369c32b2 100644
> --- a/src/nspawn/nspawn.c
> +++ b/src/nspawn/nspawn.c
> -@@ -2688,7 +2688,7 @@ static int reset_audit_loginuid(void) {
> +@@ -2690,7 +2690,7 @@ static int reset_audit_loginuid(void) {
> if (streq(p, "4294967295"))
> return 0;
>
> @@ -291,7 +291,7 @@ index 6ab604d3dc..bbec6b686c 100644
> if (r < 0) {
> log_error_errno(r,
> "Failed to reset audit login UID. This probably means that your kernel is too\n"
> -@@ -4141,7 +4141,7 @@ static int setup_uid_map(
> +@@ -4143,7 +4143,7 @@ static int setup_uid_map(
> return log_oom();
>
> xsprintf(uid_map, "/proc/" PID_FMT "/uid_map", pid);
> @@ -300,7 +300,7 @@ index 6ab604d3dc..bbec6b686c 100644
> if (r < 0)
> return log_error_errno(r, "Failed to write UID map: %m");
>
> -@@ -4151,7 +4151,7 @@ static int setup_uid_map(
> +@@ -4153,7 +4153,7 @@ static int setup_uid_map(
> return log_oom();
>
> xsprintf(uid_map, "/proc/" PID_FMT "/gid_map", pid);
> @@ -367,10 +367,10 @@ index 805503f366..01a7ccb291 100644
> log_debug_errno(r, "Failed to turn off coredumps, ignoring: %m");
> }
> diff --git a/src/shared/hibernate-util.c b/src/shared/hibernate-util.c
> -index 3eb13d48f6..d09b901be1 100644
> +index c3991cfa4c..7d522d8d1f 100644
> --- a/src/shared/hibernate-util.c
> +++ b/src/shared/hibernate-util.c
> -@@ -481,7 +481,7 @@ int write_resume_config(dev_t devno, uint64_t offset, const char *device) {
> +@@ -501,7 +501,7 @@ int write_resume_config(dev_t devno, uint64_t offset, const char *device) {
>
> /* We write the offset first since it's safer. Note that this file is only available in 4.17+, so
> * fail gracefully if it doesn't exist and we're only overwriting it with 0. */
> @@ -379,7 +379,7 @@ index 3eb13d48f6..d09b901be1 100644
> if (r == -ENOENT) {
> if (offset != 0)
> return log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP),
> -@@ -497,7 +497,7 @@ int write_resume_config(dev_t devno, uint64_t offset, const char *device) {
> +@@ -517,7 +517,7 @@ int write_resume_config(dev_t devno, uint64_t offset, const char *device) {
> log_debug("Wrote resume_offset=%s for device '%s' to /sys/power/resume_offset.",
> offset_str, device);
>
> @@ -402,7 +402,7 @@ index 1f88e724d0..feb18b320a 100644
> return r;
>
> diff --git a/src/shared/watchdog.c b/src/shared/watchdog.c
> -index 4c1a968718..6faf6806a5 100644
> +index 99ccefb227..e4975018ab 100644
> --- a/src/shared/watchdog.c
> +++ b/src/shared/watchdog.c
> @@ -93,7 +93,7 @@ static int set_pretimeout_governor(const char *governor) {
> @@ -412,10 +412,10 @@ index 4c1a968718..6faf6806a5 100644
> - WRITE_STRING_FILE_DISABLE_BUFFER | WRITE_STRING_FILE_VERIFY_ON_FAILURE | WRITE_STRING_FILE_VERIFY_IGNORE_NEWLINE);
> + WRITE_STRING_FILE_VERIFY_ON_FAILURE | WRITE_STRING_FILE_VERIFY_IGNORE_NEWLINE);
> if (r < 0)
> - return log_error_errno(r, "Failed to set pretimeout_governor to '%s': %m", governor);
> + return log_error_errno(r, "Failed to set watchdog pretimeout_governor to '%s': %m", governor);
>
> diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c
> -index 21af3e9e52..6d4b84b5d5 100644
> +index 21062b24e0..262dd71d72 100644
> --- a/src/sleep/sleep.c
> +++ b/src/sleep/sleep.c
> @@ -137,7 +137,7 @@ static int write_state(int fd, char * const *states) {
> @@ -437,7 +437,7 @@ index 21af3e9e52..6d4b84b5d5 100644
> log_debug("Using sleep disk mode '%s'.", *mode);
> return 0;
> diff --git a/src/storagetm/storagetm.c b/src/storagetm/storagetm.c
> -index ae63baaf79..82eeca479a 100644
> +index 16d4fb07d4..aca7506463 100644
> --- a/src/storagetm/storagetm.c
> +++ b/src/storagetm/storagetm.c
> @@ -186,7 +186,7 @@ static int nvme_subsystem_unlink(NvmeSubsystem *s) {
> @@ -533,7 +533,7 @@ index ae63baaf79..82eeca479a 100644
> return log_error_errno(r, "Failed to set IP address on NVME port %" PRIu16 ": %m", portnr);
>
> diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
> -index febe345b4c..a90b610ba1 100644
> +index e5b8df5c2d..63ca15628c 100644
> --- a/src/udev/udev-rules.c
> +++ b/src/udev/udev-rules.c
> @@ -2711,7 +2711,6 @@ static int udev_rule_apply_token_to_event(
> @@ -557,6 +557,3 @@ index 4d82c65f0a..3a3d861b83 100644
> if (r < 0)
> return log_warning_errno(r, "Failed to %s sysfs UTF-8 flag: %m", enable_disable(utf8));
>
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0013-Handle-__cpu_mask-usage.patch b/meta/recipes-core/systemd/systemd/0013-Handle-__cpu_mask-usage.patch
> index 43f75373a6..6d7e002d61 100644
> --- a/meta/recipes-core/systemd/systemd/0013-Handle-__cpu_mask-usage.patch
> +++ b/meta/recipes-core/systemd/systemd/0013-Handle-__cpu_mask-usage.patch
> @@ -1,7 +1,7 @@
> -From 2f90f8463423cfbb7e83fcef42f1071018c3b56e Mon Sep 17 00:00:00 2001
> +From f6b69f28657c09b1181552d85e52ced0e01182e3 Mon Sep 17 00:00:00 2001
> From: Scott Murray <scott.murray@konsulko.com>
> Date: Fri, 13 Sep 2019 19:26:27 -0400
> -Subject: [PATCH 13/22] Handle __cpu_mask usage
> +Subject: [PATCH] Handle __cpu_mask usage
>
> Fixes errors:
>
> @@ -55,6 +55,3 @@ index ea0c58770e..b65c0bd370 100644
>
> /* Print information about various types. Useful when diagnosing
> * gcc diagnostics on an unfamiliar architecture. */
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0014-Handle-missing-gshadow.patch b/meta/recipes-core/systemd/systemd/0014-Handle-missing-gshadow.patch
> index a751e1ba6f..40b60399aa 100644
> --- a/meta/recipes-core/systemd/systemd/0014-Handle-missing-gshadow.patch
> +++ b/meta/recipes-core/systemd/systemd/0014-Handle-missing-gshadow.patch
> @@ -1,7 +1,7 @@
> -From b7c827bb44edbb6251c9fcdb80aa03982c0e7bf3 Mon Sep 17 00:00:00 2001
> +From 5442d8ddb285d33b459aefc76962640afd131280 Mon Sep 17 00:00:00 2001
> From: Alex Kiernan <alex.kiernan@gmail.com>
> Date: Tue, 10 Mar 2020 11:05:20 +0000
> -Subject: [PATCH 14/22] Handle missing gshadow
> +Subject: [PATCH] Handle missing gshadow
>
> gshadow usage is now present in the userdb code. Mask all uses of it to
> allow compilation on musl
> @@ -168,6 +168,3 @@ index f60d48ace4..e878199a28 100644
> if (r < 0)
> return r;
>
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch b/meta/recipes-core/systemd/systemd/0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch
> index e112766a9b..51f0b048fa 100644
> --- a/meta/recipes-core/systemd/systemd/0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch
> +++ b/meta/recipes-core/systemd/systemd/0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch
> @@ -1,7 +1,7 @@
> -From 3dc9d9d410bcce54fddfd94f43f7f77f3aa8e281 Mon Sep 17 00:00:00 2001
> +From 863dd6f502d53a4a2644e031eee2e8dfa3fd05aa Mon Sep 17 00:00:00 2001
> From: Khem Raj <raj.khem@gmail.com>
> Date: Mon, 12 Apr 2021 23:44:53 -0700
> -Subject: [PATCH 15/22] missing_syscall.h: Define MIPS ABI defines for musl
> +Subject: [PATCH] missing_syscall.h: Define MIPS ABI defines for musl
>
> musl does not define _MIPS_SIM_ABI32, _MIPS_SIM_NABI32, _MIPS_SIM_ABI64
> unlike glibc where these are provided by libc headers, therefore define
> @@ -16,7 +16,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
> 2 files changed, 7 insertions(+)
>
> diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h
> -index d795efd8f2..d6729d3c1d 100644
> +index 86280771c4..20d05db506 100644
> --- a/src/basic/missing_syscall.h
> +++ b/src/basic/missing_syscall.h
> @@ -20,6 +20,12 @@
> @@ -33,7 +33,7 @@ index d795efd8f2..d6729d3c1d 100644
> #include "missing_keyctl.h"
> #include "missing_stat.h"
> diff --git a/src/shared/base-filesystem.c b/src/shared/base-filesystem.c
> -index 7ae921a113..0ef9d1fd39 100644
> +index 67aa8ea1f2..8d9824495e 100644
> --- a/src/shared/base-filesystem.c
> +++ b/src/shared/base-filesystem.c
> @@ -20,6 +20,7 @@
> @@ -44,6 +44,3 @@ index 7ae921a113..0ef9d1fd39 100644
>
> typedef struct BaseFilesystem {
> const char *dir; /* directory or symlink to create */
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0016-pass-correct-parameters-to-getdents64.patch b/meta/recipes-core/systemd/systemd/0016-pass-correct-parameters-to-getdents64.patch
> index 0be817e62d..66b8f66806 100644
> --- a/meta/recipes-core/systemd/systemd/0016-pass-correct-parameters-to-getdents64.patch
> +++ b/meta/recipes-core/systemd/systemd/0016-pass-correct-parameters-to-getdents64.patch
> @@ -1,7 +1,7 @@
> -From 0994b59dba9f248ad31cb7087046dc00b72cb4ea Mon Sep 17 00:00:00 2001
> +From 01de9e5a6e4ad2f361d3eb4d9839c7afd91cc677 Mon Sep 17 00:00:00 2001
> From: Khem Raj <raj.khem@gmail.com>
> Date: Fri, 21 Jan 2022 15:15:11 -0800
> -Subject: [PATCH 16/22] pass correct parameters to getdents64
> +Subject: [PATCH] pass correct parameters to getdents64
>
> Fixes
> ../git/src/basic/recurse-dir.c:57:40: error: incompatible pointer types passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'struct dirent *' [-Werror,-Wincompatible-pointer-types]
> @@ -32,6 +32,3 @@ index 5e98b7a5d8..aef065047b 100644
> if (n < 0)
> return -errno;
> if (n == 0)
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0017-Adjust-for-musl-headers.patch b/meta/recipes-core/systemd/systemd/0017-Adjust-for-musl-headers.patch
> index 4176522a1c..f86b8c889c 100644
> --- a/meta/recipes-core/systemd/systemd/0017-Adjust-for-musl-headers.patch
> +++ b/meta/recipes-core/systemd/systemd/0017-Adjust-for-musl-headers.patch
> @@ -1,7 +1,7 @@
> -From 3c094d443ca30f19114392fd8ef274af6eabc12d Mon Sep 17 00:00:00 2001
> +From a45cf93772ac5055665cc55454509747b9c68ad2 Mon Sep 17 00:00:00 2001
> From: Khem Raj <raj.khem@gmail.com>
> Date: Fri, 21 Jan 2022 22:19:37 -0800
> -Subject: [PATCH 17/22] Adjust for musl headers
> +Subject: [PATCH] Adjust for musl headers
>
> Upstream-Status: Inappropriate [musl specific]
>
> @@ -425,7 +425,7 @@ index 607fe0053c..9ce4005874 100644
>
> #include "sd-dhcp-server.h"
> diff --git a/src/network/networkd-dhcp4.c b/src/network/networkd-dhcp4.c
> -index efbae6d868..1ea2151d50 100644
> +index 49c452da7c..98aad1f3cd 100644
> --- a/src/network/networkd-dhcp4.c
> +++ b/src/network/networkd-dhcp4.c
> @@ -3,7 +3,7 @@
> @@ -451,7 +451,7 @@ index 32229a3fc7..662a345d6e 100644
> #include "in-addr-util.h"
> #include "networkd-address.h"
> diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
> -index ee5f0f2c0a..ea5269a2de 100644
> +index 4ef1be4bad..e5aa53604d 100644
> --- a/src/network/networkd-link.c
> +++ b/src/network/networkd-link.c
> @@ -3,7 +3,7 @@
> @@ -464,7 +464,7 @@ index ee5f0f2c0a..ea5269a2de 100644
> #include <linux/netdevice.h>
> #include <sys/socket.h>
> diff --git a/src/network/networkd-ndisc.c b/src/network/networkd-ndisc.c
> -index ab9eeb13a5..dd96fe7483 100644
> +index 840ccb158d..9f2e85e32f 100644
> --- a/src/network/networkd-ndisc.c
> +++ b/src/network/networkd-ndisc.c
> @@ -6,7 +6,7 @@
> @@ -477,7 +477,7 @@ index ab9eeb13a5..dd96fe7483 100644
> #include "sd-ndisc.h"
>
> diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c
> -index 7218d799fc..30d5574eae 100644
> +index eb502ae2cf..5b25ee4523 100644
> --- a/src/network/networkd-route.c
> +++ b/src/network/networkd-route.c
> @@ -1,9 +1,5 @@
> @@ -502,7 +502,7 @@ index 7218d799fc..30d5574eae 100644
> _cleanup_(route_freep) Route *route = NULL;
>
> diff --git a/src/network/networkd-setlink.c b/src/network/networkd-setlink.c
> -index 2298f9ea3a..7d5f87de53 100644
> +index 011ea1fe6e..59dfe733eb 100644
> --- a/src/network/networkd-setlink.c
> +++ b/src/network/networkd-setlink.c
> @@ -2,7 +2,7 @@
> @@ -567,6 +567,3 @@ index f528a46b8e..830318cda5 100644
> #include <linux/netdevice.h>
> #include <linux/pci_regs.h>
>
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0018-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch b/meta/recipes-core/systemd/systemd/0018-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch
> index 75f6b9094a..67388e6807 100644
> --- a/meta/recipes-core/systemd/systemd/0018-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch
> +++ b/meta/recipes-core/systemd/systemd/0018-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch
> @@ -1,8 +1,8 @@
> -From be02bd0876a061728661535a709d313e39fe1ac3 Mon Sep 17 00:00:00 2001
> +From 20dfb0b5e7113c2e7f82c01488b419dffe8714ab Mon Sep 17 00:00:00 2001
> From: Khem Raj <raj.khem@gmail.com>
> Date: Tue, 8 Nov 2022 13:31:34 -0800
> -Subject: [PATCH 18/22] test-bus-error: strerror() is assumed to be GNU
> - specific version mark it so
> +Subject: [PATCH] test-bus-error: strerror() is assumed to be GNU specific
> + version mark it so
>
> Upstream-Status: Inappropriate [Upstream systemd only supports glibc]
>
> @@ -47,6 +47,3 @@ index 376d532281..967cfd4d67 100644
>
> TEST(PROTECT_ERRNO) {
> errno = 12;
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0019-errno-util-Make-STRERROR-portable-for-musl.patch b/meta/recipes-core/systemd/systemd/0019-errno-util-Make-STRERROR-portable-for-musl.patch
> index e038b73678..36d468959a 100644
> --- a/meta/recipes-core/systemd/systemd/0019-errno-util-Make-STRERROR-portable-for-musl.patch
> +++ b/meta/recipes-core/systemd/systemd/0019-errno-util-Make-STRERROR-portable-for-musl.patch
> @@ -1,7 +1,7 @@
> -From 46d80840bfe37e67d4f18c37a77751ea1fe63a07 Mon Sep 17 00:00:00 2001
> +From 32371040c2aa649e23c3b0f2c5ee27995a16526a Mon Sep 17 00:00:00 2001
> From: Khem Raj <raj.khem@gmail.com>
> Date: Mon, 23 Jan 2023 23:39:46 -0800
> -Subject: [PATCH 19/22] errno-util: Make STRERROR portable for musl
> +Subject: [PATCH] errno-util: Make STRERROR portable for musl
>
> Sadly, systemd has decided to use yet another GNU extention in a macro
> lets make this such that we can use XSI compliant strerror_r() for
> @@ -37,6 +37,3 @@ index 27804e6382..274c1c6ef1 100644
> /* A helper to print an error message or message for functions that return 0 on EOF.
> * Note that we can't use ({ … }) to define a temporary variable, so errnum is
> * evaluated twice. */
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0020-sd-event-Make-malloc_trim-conditional-on-glibc.patch b/meta/recipes-core/systemd/systemd/0020-sd-event-Make-malloc_trim-conditional-on-glibc.patch
> index b83fffe793..f860b5f542 100644
> --- a/meta/recipes-core/systemd/systemd/0020-sd-event-Make-malloc_trim-conditional-on-glibc.patch
> +++ b/meta/recipes-core/systemd/systemd/0020-sd-event-Make-malloc_trim-conditional-on-glibc.patch
> @@ -1,7 +1,7 @@
> -From 9eb4867b4e2dbdb2484ae854022aff97e2f0feb3 Mon Sep 17 00:00:00 2001
> +From 751fb8c9a05115f5329cfa25e69afe7657124c20 Mon Sep 17 00:00:00 2001
> From: Khem Raj <raj.khem@gmail.com>
> Date: Wed, 2 Aug 2023 12:06:27 -0700
> -Subject: [PATCH 20/22] sd-event: Make malloc_trim() conditional on glibc
> +Subject: [PATCH] sd-event: Make malloc_trim() conditional on glibc
>
> musl does not have this API
>
> @@ -12,7 +12,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/libsystemd/sd-event/sd-event.c b/src/libsystemd/sd-event/sd-event.c
> -index 288798a0dc..6419a7f216 100644
> +index b6899df192..0c03287004 100644
> --- a/src/libsystemd/sd-event/sd-event.c
> +++ b/src/libsystemd/sd-event/sd-event.c
> @@ -1874,7 +1874,7 @@ _public_ int sd_event_add_exit(
> @@ -34,6 +34,3 @@ index 288798a0dc..6419a7f216 100644
> usec_t after_timestamp = now(CLOCK_MONOTONIC);
>
> if (r > 0)
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0021-shared-Do-not-use-malloc_info-on-musl.patch b/meta/recipes-core/systemd/systemd/0021-shared-Do-not-use-malloc_info-on-musl.patch
> index 7eff069bb7..ece9873bbc 100644
> --- a/meta/recipes-core/systemd/systemd/0021-shared-Do-not-use-malloc_info-on-musl.patch
> +++ b/meta/recipes-core/systemd/systemd/0021-shared-Do-not-use-malloc_info-on-musl.patch
> @@ -1,7 +1,7 @@
> -From 502597b9ddd6b145541b23fadca0b1d3ca9f6367 Mon Sep 17 00:00:00 2001
> +From 4fe2a8b1aab7297beac50f6ce46f3df4169de218 Mon Sep 17 00:00:00 2001
> From: Khem Raj <raj.khem@gmail.com>
> Date: Wed, 2 Aug 2023 12:20:40 -0700
> -Subject: [PATCH 21/22] shared: Do not use malloc_info on musl
> +Subject: [PATCH] shared: Do not use malloc_info on musl
>
> Upstream-Status: Inappropriate [musl-specific]
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> @@ -52,6 +52,3 @@ index 8e70e365dd..9e782caec9 100644
> (void) memstream_dump(LOG_INFO, &m);
> break;
> }
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch b/meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch
> index 24f3bf74a0..f517392e58 100644
> --- a/meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch
> +++ b/meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch
> @@ -1,7 +1,7 @@
> -From fd52f1764647e03a35e8f0ed0ef952049073ccbd Mon Sep 17 00:00:00 2001
> +From 97d3ed7834bd86615ba4acdbef984c677b7e7791 Mon Sep 17 00:00:00 2001
> From: Chen Qi <Qi.Chen@windriver.com>
> Date: Tue, 2 Jan 2024 11:03:27 +0800
> -Subject: [PATCH 22/22] avoid missing LOCK_EX declaration
> +Subject: [PATCH] avoid missing LOCK_EX declaration
>
> This only happens on MUSL. Include sys/file.h to avoid compilation
> error about missing LOCK_EX declaration.
> @@ -15,7 +15,7 @@ Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> 2 files changed, 2 insertions(+)
>
> diff --git a/src/core/exec-invoke.c b/src/core/exec-invoke.c
> -index 70d963e269..7084811439 100644
> +index fe14ceeb31..521e7b87ff 100644
> --- a/src/core/exec-invoke.c
> +++ b/src/core/exec-invoke.c
> @@ -4,6 +4,7 @@
> @@ -38,6 +38,3 @@ index 5339bc4e5e..0697495f23 100644
>
> int lock_dev_console(void);
>
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd_255.4.bb b/meta/recipes-core/systemd/systemd_255.6.bb
> similarity index 100%
> rename from meta/recipes-core/systemd/systemd_255.4.bb
> rename to meta/recipes-core/systemd/systemd_255.6.bb
> --
> 2.34.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#199556): https://lists.openembedded.org/g/openembedded-core/message/199556
> Mute This Topic: https://lists.openembedded.org/mt/106199571/3617179
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: [OE-core][PATCH 1/6] systemd/systemd-boot: upgrade from 255.4 to 255.6
2024-05-21 9:38 ` [OE-core][PATCH 1/6] systemd/systemd-boot: upgrade from 255.4 to 255.6 Alexandre Belloni
@ 2024-05-21 10:22 ` Chen, Qi
2024-05-21 11:21 ` Alexander Kanavin
0 siblings, 1 reply; 14+ messages in thread
From: Chen, Qi @ 2024-05-21 10:22 UTC (permalink / raw)
To: Alexandre Belloni; +Cc: openembedded-core@lists.openembedded.org
I didn't find the 0001-basic-add-PIDFS-magic-31709.patch file in poky.
Is it from some other people's patch? If so, then that patch could be dropped as the error message says 'can be reverse-applied'.
Regards,
Qi
-----Original Message-----
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
Sent: Tuesday, May 21, 2024 5:38 PM
To: Chen, Qi <Qi.Chen@windriver.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core][PATCH 1/6] systemd/systemd-boot: upgrade from 255.4 to 255.6
This also fails on the autobuilders:
ERROR: systemd-1_255.6-r0 do_patch: Applying patch '0001-basic-add-PIDFS-magic-31709.patch' on target directory '/home/pokybuild/yocto-worker/qemux86-alt/build/build/tmp/work/core2-32-poky-linux/systemd/255.6/git'
CmdError('quilt --quiltrc /home/pokybuild/yocto-worker/qemux86-alt/build/build/tmp/work/core2-32-poky-linux/systemd/255.6/recipe-sysroot-native/etc/quiltrc push', 0, 'stdout: Applying patch 0001-basic-add-PIDFS-magic-31709.patch
patching file src/basic/filesystems-gperf.gperf
Hunk #1 FAILED at 91.
1 out of 1 hunk FAILED -- rejects in file src/basic/filesystems-gperf.gperf
patching file src/basic/missing_magic.h
Hunk #1 succeeded at 133 with fuzz 1 (offset 5 lines).
Patch 0001-basic-add-PIDFS-magic-31709.patch can be reverse-applied
stderr: ')
https://autobuilder.yoctoproject.org/typhoon/#/builders/101/builds/7736/steps/13/logs/stdio
On 20/05/2024 16:10:35+0800, Chen Qi via lists.openembedded.org wrote:
> From: Chen Qi <Qi.Chen@windriver.com>
>
> musl patches are refreshed to avoid 'patch-fuzz' error.
>
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
> ..._255.4.bb => systemd-boot-native_255.6.bb} | 0
> ...md-boot_255.4.bb => systemd-boot_255.6.bb} | 0
> meta/recipes-core/systemd/systemd.inc | 2 +-
> ...1-missing_type.h-add-comparison_fn_t.patch | 7 +--
> ...k-parse_printf_format-implementation.patch | 13 ++---
> ...tall-dependency-links-at-install-tim.patch | 9 +--
> ...missing.h-check-for-missing-strndupa.patch | 55 +++++++++----------
> ...OB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch | 14 ++---
> ...005-add-missing-FTW_-macros-for-musl.patch | 7 +--
> ...06-Use-uintmax_t-for-handling-rlim_t.patch | 11 ++--
> ...T_SYMLINK_NOFOLLOW-flag-to-faccessat.patch | 11 ++--
> ...patible-basename-for-non-glibc-syste.patch | 8 +--
> ...implment-systemd-sysv-install-for-OE.patch | 5 +-
> ...uffering-when-writing-to-oom_score_a.patch | 9 +--
> ...compliant-strerror_r-from-GNU-specif.patch | 13 ++---
> ...definition-of-prctl_mm_map-structure.patch | 7 +--
> ...-not-disable-buffer-in-writing-files.patch | 35 ++++++------
> .../0013-Handle-__cpu_mask-usage.patch | 7 +--
> .../systemd/0014-Handle-missing-gshadow.patch | 7 +--
> ...l.h-Define-MIPS-ABI-defines-for-musl.patch | 11 ++--
> ...ass-correct-parameters-to-getdents64.patch | 7 +--
> .../0017-Adjust-for-musl-headers.patch | 17 +++---
> ...trerror-is-assumed-to-be-GNU-specifi.patch | 9 +--
> ...util-Make-STRERROR-portable-for-musl.patch | 7 +--
> ...ake-malloc_trim-conditional-on-glibc.patch | 9 +--
> ...hared-Do-not-use-malloc_info-on-musl.patch | 7 +--
> ...22-avoid-missing-LOCK_EX-declaration.patch | 9 +--
> .../{systemd_255.4.bb => systemd_255.6.bb} | 0
> 28 files changed, 111 insertions(+), 185 deletions(-)
> rename meta/recipes-core/systemd/{systemd-boot-native_255.4.bb => systemd-boot-native_255.6.bb} (100%)
> rename meta/recipes-core/systemd/{systemd-boot_255.4.bb => systemd-boot_255.6.bb} (100%)
> rename meta/recipes-core/systemd/{systemd_255.4.bb => systemd_255.6.bb} (100%)
>
> diff --git a/meta/recipes-core/systemd/systemd-boot-native_255.4.bb b/meta/recipes-core/systemd/systemd-boot-native_255.6.bb
> similarity index 100%
> rename from meta/recipes-core/systemd/systemd-boot-native_255.4.bb
> rename to meta/recipes-core/systemd/systemd-boot-native_255.6.bb
> diff --git a/meta/recipes-core/systemd/systemd-boot_255.4.bb b/meta/recipes-core/systemd/systemd-boot_255.6.bb
> similarity index 100%
> rename from meta/recipes-core/systemd/systemd-boot_255.4.bb
> rename to meta/recipes-core/systemd/systemd-boot_255.6.bb
> diff --git a/meta/recipes-core/systemd/systemd.inc b/meta/recipes-core/systemd/systemd.inc
> index a35db5091e..8bda47dd38 100644
> --- a/meta/recipes-core/systemd/systemd.inc
> +++ b/meta/recipes-core/systemd/systemd.inc
> @@ -15,7 +15,7 @@ LICENSE:libsystemd = "LGPL-2.1-or-later"
> LIC_FILES_CHKSUM = "file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \
> file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c"
>
> -SRCREV = "387a14a7b67b8b76adaed4175e14bb7e39b2f738"
> +SRCREV = "5810c25792d4268282dd3892af1a253b690423c9"
> SRCBRANCH = "v255-stable"
> SRC_URI = "git://github.com/systemd/systemd-stable.git;protocol=https;branch=${SRCBRANCH}"
>
> diff --git a/meta/recipes-core/systemd/systemd/0001-missing_type.h-add-comparison_fn_t.patch b/meta/recipes-core/systemd/systemd/0001-missing_type.h-add-comparison_fn_t.patch
> index 2aa5dee6b5..49871d16a8 100644
> --- a/meta/recipes-core/systemd/systemd/0001-missing_type.h-add-comparison_fn_t.patch
> +++ b/meta/recipes-core/systemd/systemd/0001-missing_type.h-add-comparison_fn_t.patch
> @@ -1,7 +1,7 @@
> -From 01195eb9f7d59139fb45df506ac6b3968c14a57f Mon Sep 17 00:00:00 2001
> +From d4b0bb9c7651017985fdd75469f37c34ce2f2c50 Mon Sep 17 00:00:00 2001
> From: Chen Qi <Qi.Chen@windriver.com>
> Date: Mon, 25 Feb 2019 13:55:12 +0800
> -Subject: [PATCH 01/22] missing_type.h: add comparison_fn_t
> +Subject: [PATCH] missing_type.h: add comparison_fn_t
>
> Make it work with musl where comparison_fn_t and is not provided.
>
> @@ -56,6 +56,3 @@ index ae91534198..7f67eea38b 100644
>
> const char * const catalog_file_dirs[] = {
> "/usr/local/lib/systemd/catalog/",
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0002-add-fallback-parse_printf_format-implementation.patch b/meta/recipes-core/systemd/systemd/0002-add-fallback-parse_printf_format-implementation.patch
> index 900a931632..593d6261e1 100644
> --- a/meta/recipes-core/systemd/systemd/0002-add-fallback-parse_printf_format-implementation.patch
> +++ b/meta/recipes-core/systemd/systemd/0002-add-fallback-parse_printf_format-implementation.patch
> @@ -1,7 +1,7 @@
> -From 872b72739e62123867ce6c4f82aa37de24cc3f75 Mon Sep 17 00:00:00 2001
> +From 776913624aaf696a3b2920b8d7506b3aae042bf1 Mon Sep 17 00:00:00 2001
> From: Alexander Kanavin <alex.kanavin@gmail.com>
> Date: Sat, 22 May 2021 20:26:24 +0200
> -Subject: [PATCH 02/22] add fallback parse_printf_format implementation
> +Subject: [PATCH] add fallback parse_printf_format implementation
>
> Upstream-Status: Inappropriate [musl specific]
>
> @@ -22,10 +22,10 @@ Signed-off-by: Scott Murray <scott.murray@konsulko.com>
> create mode 100644 src/basic/parse-printf-format.h
>
> diff --git a/meson.build b/meson.build
> -index 7419e2b0b0..01fd3ffc19 100644
> +index 187e7b216d..c4694a9ddc 100644
> --- a/meson.build
> +++ b/meson.build
> -@@ -725,6 +725,7 @@ endif
> +@@ -727,6 +727,7 @@ endif
> foreach header : ['crypt.h',
> 'linux/memfd.h',
> 'linux/vm_sockets.h',
> @@ -34,7 +34,7 @@ index 7419e2b0b0..01fd3ffc19 100644
> 'threads.h',
> 'valgrind/memcheck.h',
> diff --git a/src/basic/meson.build b/src/basic/meson.build
> -index d7450d8b44..c3e3daf4bd 100644
> +index 111253e3a5..bdaa2fc5e4 100644
> --- a/src/basic/meson.build
> +++ b/src/basic/meson.build
> @@ -183,6 +183,11 @@ endforeach
> @@ -429,6 +429,3 @@ index be23b2fe75..69a2eb6404 100644
>
> #define SNDBUF_SIZE (8*1024*1024)
>
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch b/meta/recipes-core/systemd/systemd/0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch
> index be231cf6b2..4c73c924ef 100644
> --- a/meta/recipes-core/systemd/systemd/0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch
> +++ b/meta/recipes-core/systemd/systemd/0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch
> @@ -1,8 +1,8 @@
> -From 29a58009a172e369ad7166e16dab2f4945c6b0d2 Mon Sep 17 00:00:00 2001
> +From 661a34c3de30d4ff4a2a62c9a0573c6ce55424e4 Mon Sep 17 00:00:00 2001
> From: Chen Qi <Qi.Chen@windriver.com>
> Date: Thu, 21 Feb 2019 16:23:24 +0800
> -Subject: [PATCH 1/2] binfmt: Don't install dependency links at install time
> - for the binfmt services
> +Subject: [PATCH] binfmt: Don't install dependency links at install time for
> + the binfmt services
>
> use [Install] blocks so that they get created when the service is enabled
> like a traditional service.
> @@ -74,6 +74,3 @@ index 6861c76674..531e9fbd90 100644
> +
> +[Install]
> +WantedBy=sysinit.target
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch b/meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch
> index 5595b5bc23..f09f2114d3 100644
> --- a/meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch
> +++ b/meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch
> @@ -1,7 +1,7 @@
> -From 87f1d38f40c5fe9cadf2b2de442473e4e5605788 Mon Sep 17 00:00:00 2001
> +From 843c6c94bf6a29eaceeefafa420cd86a32e844d2 Mon Sep 17 00:00:00 2001
> From: Chen Qi <Qi.Chen@windriver.com>
> Date: Mon, 25 Feb 2019 14:18:21 +0800
> -Subject: [PATCH 03/22] src/basic/missing.h: check for missing strndupa
> +Subject: [PATCH] src/basic/missing.h: check for missing strndupa
>
> include missing.h for definition of strndupa
>
> @@ -75,10 +75,10 @@ Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> 51 files changed, 62 insertions(+)
>
> diff --git a/meson.build b/meson.build
> -index 01fd3ffc19..61a872b753 100644
> +index c4694a9ddc..d376b76afa 100644
> --- a/meson.build
> +++ b/meson.build
> -@@ -567,6 +567,7 @@ foreach ident : ['secure_getenv', '__secure_getenv']
> +@@ -569,6 +569,7 @@ foreach ident : ['secure_getenv', '__secure_getenv']
> endforeach
>
> foreach ident : [
> @@ -87,7 +87,7 @@ index 01fd3ffc19..61a872b753 100644
> ['gettid', '''#include <sys/types.h>
> #include <unistd.h>'''],
> diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c
> -index 5ac9f904a9..99d5122dd7 100644
> +index b2032adaa5..ee9201826d 100644
> --- a/src/backlight/backlight.c
> +++ b/src/backlight/backlight.c
> @@ -20,6 +20,7 @@
> @@ -111,7 +111,7 @@ index 18b16ecc0e..d2be79622f 100644
> static int cg_enumerate_items(const char *controller, const char *path, FILE **ret, const char *item) {
> _cleanup_free_ char *fs = NULL;
> diff --git a/src/basic/env-util.c b/src/basic/env-util.c
> -index d3bf73385f..16b17358ca 100644
> +index a97651d7af..09fa601250 100644
> --- a/src/basic/env-util.c
> +++ b/src/basic/env-util.c
> @@ -19,6 +19,7 @@
> @@ -123,7 +123,7 @@ index d3bf73385f..16b17358ca 100644
> /* We follow bash for the character set. Different shells have different rules. */
> #define VALID_BASH_ENV_NAME_CHARS \
> diff --git a/src/basic/log.c b/src/basic/log.c
> -index 1470611a75..9924ec2b9a 100644
> +index 7a443005f6..eed69a48ee 100644
> --- a/src/basic/log.c
> +++ b/src/basic/log.c
> @@ -40,6 +40,7 @@
> @@ -251,7 +251,7 @@ index f9014dc560..1d7840a5b5 100644
> static clockid_t map_clock_id(clockid_t c) {
>
> diff --git a/src/boot/bless-boot.c b/src/boot/bless-boot.c
> -index 0c0b4f23c7..68fe5ca509 100644
> +index 12dfdf76fa..e66332519a 100644
> --- a/src/boot/bless-boot.c
> +++ b/src/boot/bless-boot.c
> @@ -22,6 +22,7 @@
> @@ -263,7 +263,7 @@ index 0c0b4f23c7..68fe5ca509 100644
> static char **arg_path = NULL;
>
> diff --git a/src/core/dbus-cgroup.c b/src/core/dbus-cgroup.c
> -index 4237e694c0..05f9d9d9a9 100644
> +index 8a9570fd21..ac4202e5ce 100644
> --- a/src/core/dbus-cgroup.c
> +++ b/src/core/dbus-cgroup.c
> @@ -25,6 +25,7 @@
> @@ -275,7 +275,7 @@ index 4237e694c0..05f9d9d9a9 100644
>
> BUS_DEFINE_PROPERTY_GET(bus_property_get_tasks_max, "t", CGroupTasksMax, cgroup_tasks_max_resolve);
> diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c
> -index 4daa1cefd3..2c77901471 100644
> +index 2d05ba7e1d..61a7de0037 100644
> --- a/src/core/dbus-execute.c
> +++ b/src/core/dbus-execute.c
> @@ -42,6 +42,7 @@
> @@ -287,10 +287,10 @@ index 4daa1cefd3..2c77901471 100644
> BUS_DEFINE_PROPERTY_GET_ENUM(bus_property_get_exec_output, exec_output, ExecOutput);
> static BUS_DEFINE_PROPERTY_GET_ENUM(property_get_exec_input, exec_input, ExecInput);
> diff --git a/src/core/dbus-util.c b/src/core/dbus-util.c
> -index d680a64268..e59f48103e 100644
> +index 7bb026af48..a86128e40c 100644
> --- a/src/core/dbus-util.c
> +++ b/src/core/dbus-util.c
> -@@ -9,6 +9,7 @@
> +@@ -10,6 +10,7 @@
> #include "unit-printf.h"
> #include "user-util.h"
> #include "unit.h"
> @@ -299,7 +299,7 @@ index d680a64268..e59f48103e 100644
> int bus_property_get_triggered_unit(
> sd_bus *bus,
> diff --git a/src/core/execute.c b/src/core/execute.c
> -index ef0bf88687..bd3da0c401 100644
> +index 8dbdfcf369..531bec4c92 100644
> --- a/src/core/execute.c
> +++ b/src/core/execute.c
> @@ -72,6 +72,7 @@
> @@ -323,7 +323,7 @@ index b8e3f7aadd..8ce8ca68d8 100644
> #if HAVE_KMOD
> #include "module-util.h"
> diff --git a/src/core/service.c b/src/core/service.c
> -index b9eb40c555..268fe7573b 100644
> +index 42fffbbd67..80a8d05a19 100644
> --- a/src/core/service.c
> +++ b/src/core/service.c
> @@ -45,6 +45,7 @@
> @@ -359,7 +359,7 @@ index 016f3baa7f..b1def81313 100644
> typedef enum MountPointFlags {
> MOUNT_NOAUTO = 1 << 0,
> diff --git a/src/journal-remote/journal-remote-main.c b/src/journal-remote/journal-remote-main.c
> -index da0f20d3ce..f22ce41908 100644
> +index 2d380bc7a7..d3f5612728 100644
> --- a/src/journal-remote/journal-remote-main.c
> +++ b/src/journal-remote/journal-remote-main.c
> @@ -27,6 +27,7 @@
> @@ -371,7 +371,7 @@ index da0f20d3ce..f22ce41908 100644
> #define PRIV_KEY_FILE CERTIFICATE_ROOT "/private/journal-remote.pem"
> #define CERT_FILE CERTIFICATE_ROOT "/certs/journal-remote.pem"
> diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
> -index 7f3dcd56a4..41b7cbaaf1 100644
> +index 87e2f28841..58275f41f1 100644
> --- a/src/journal/journalctl.c
> +++ b/src/journal/journalctl.c
> @@ -77,6 +77,7 @@
> @@ -383,7 +383,7 @@ index 7f3dcd56a4..41b7cbaaf1 100644
> #define DEFAULT_FSS_INTERVAL_USEC (15*USEC_PER_MINUTE)
> #define PROCESS_INOTIFY_INTERVAL 1024 /* Every 1,024 messages processed */
> diff --git a/src/libsystemd/sd-bus/bus-message.c b/src/libsystemd/sd-bus/bus-message.c
> -index ff0228081f..9066fcb133 100644
> +index ab8b06896d..43f9131205 100644
> --- a/src/libsystemd/sd-bus/bus-message.c
> +++ b/src/libsystemd/sd-bus/bus-message.c
> @@ -19,6 +19,7 @@
> @@ -407,7 +407,7 @@ index c25c40ff37..57a5da704f 100644
> static int node_vtable_get_userdata(
> sd_bus *bus,
> diff --git a/src/libsystemd/sd-bus/bus-socket.c b/src/libsystemd/sd-bus/bus-socket.c
> -index 3c59d0d615..746922d46f 100644
> +index 5ade8e99aa..7553cf319d 100644
> --- a/src/libsystemd/sd-bus/bus-socket.c
> +++ b/src/libsystemd/sd-bus/bus-socket.c
> @@ -29,6 +29,7 @@
> @@ -419,7 +419,7 @@ index 3c59d0d615..746922d46f 100644
> #define SNDBUF_SIZE (8*1024*1024)
>
> diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c
> -index 4a0259f8bb..aaa90d2223 100644
> +index 8befc97460..6ee4d4f595 100644
> --- a/src/libsystemd/sd-bus/sd-bus.c
> +++ b/src/libsystemd/sd-bus/sd-bus.c
> @@ -46,6 +46,7 @@
> @@ -443,7 +443,7 @@ index d988588de0..458df8df9a 100644
> #define MAX_SIZE (2*1024*1024)
>
> diff --git a/src/libsystemd/sd-journal/sd-journal.c b/src/libsystemd/sd-journal/sd-journal.c
> -index 6b9ff0a4ed..4a5027ad0f 100644
> +index 7a1dd2569f..d187baad47 100644
> --- a/src/libsystemd/sd-journal/sd-journal.c
> +++ b/src/libsystemd/sd-journal/sd-journal.c
> @@ -44,6 +44,7 @@
> @@ -455,7 +455,7 @@ index 6b9ff0a4ed..4a5027ad0f 100644
> #define JOURNAL_FILES_RECHECK_USEC (2 * USEC_PER_SEC)
>
> diff --git a/src/login/pam_systemd.c b/src/login/pam_systemd.c
> -index b8da266e27..4bb8dd9496 100644
> +index bf45974ca5..2cb7e930c0 100644
> --- a/src/login/pam_systemd.c
> +++ b/src/login/pam_systemd.c
> @@ -35,6 +35,7 @@
> @@ -503,10 +503,10 @@ index c64e79bdff..eda26b0b9a 100644
> static void setup_logging_once(void) {
> static pthread_once_t once = PTHREAD_ONCE_INIT;
> diff --git a/src/portable/portable.c b/src/portable/portable.c
> -index d4b448a627..bb26623565 100644
> +index 3b2a37912f..835a3fdeaa 100644
> --- a/src/portable/portable.c
> +++ b/src/portable/portable.c
> -@@ -40,6 +40,7 @@
> +@@ -42,6 +42,7 @@
> #include "strv.h"
> #include "tmpfile-util.h"
> #include "user-util.h"
> @@ -551,7 +551,7 @@ index 8b462b5627..183ce1c18e 100644
> struct CGroupInfo {
> char *cgroup_path;
> diff --git a/src/shared/bus-unit-util.c b/src/shared/bus-unit-util.c
> -index 4ee9706847..30c8084847 100644
> +index 50de98941f..d47beccb0b 100644
> --- a/src/shared/bus-unit-util.c
> +++ b/src/shared/bus-unit-util.c
> @@ -50,6 +50,7 @@
> @@ -599,7 +599,7 @@ index 83e9834bbf..74eaae6f5e 100644
> enum {
> IMPORTER_STATE_LINE = 0, /* waiting to read, or reading line */
> diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c
> -index a5d04003bd..10392c132d 100644
> +index 0a31be382f..92d629e7e0 100644
> --- a/src/shared/logs-show.c
> +++ b/src/shared/logs-show.c
> @@ -41,6 +41,7 @@
> @@ -683,7 +683,7 @@ index ed22c8b679..19ebe20237 100644
> UdevEvent *udev_event_new(sd_device *dev, usec_t exec_delay_usec, sd_netlink *rtnl, int log_level) {
> UdevEvent *event;
> diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
> -index 5f12002394..febe345b4c 100644
> +index c242549654..e5b8df5c2d 100644
> --- a/src/udev/udev-rules.c
> +++ b/src/udev/udev-rules.c
> @@ -41,6 +41,7 @@
> @@ -694,6 +694,3 @@ index 5f12002394..febe345b4c 100644
>
> #define RULES_DIRS ((const char* const*) CONF_PATHS_STRV("udev/rules.d"))
>
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0004-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch b/meta/recipes-core/systemd/systemd/0004-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch
> index 15877bea88..15d25e9f19 100644
> --- a/meta/recipes-core/systemd/systemd/0004-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch
> +++ b/meta/recipes-core/systemd/systemd/0004-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch
> @@ -1,8 +1,7 @@
> -From 5325ab5813617f35f03806ec420829dde7104387 Mon Sep 17 00:00:00 2001
> +From 2903e42c7cd727a2374d21b78950308de792ebe8 Mon Sep 17 00:00:00 2001
> From: Chen Qi <Qi.Chen@windriver.com>
> Date: Mon, 25 Feb 2019 14:56:21 +0800
> -Subject: [PATCH 04/22] don't fail if GLOB_BRACE and GLOB_ALTDIRFUNC is not
> - defined
> +Subject: [PATCH] don't fail if GLOB_BRACE and GLOB_ALTDIRFUNC is not defined
>
> If the standard library doesn't provide brace
> expansion users just won't get it.
> @@ -115,7 +114,7 @@ index 9b3e73cce0..3790ba3be5 100644
>
> (void) rm_rf(template, REMOVE_ROOT|REMOVE_PHYSICAL);
> diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
> -index 230ec09b97..2cc5f391d7 100644
> +index 6a1c7725a1..138b3ac561 100644
> --- a/src/tmpfiles/tmpfiles.c
> +++ b/src/tmpfiles/tmpfiles.c
> @@ -73,6 +73,12 @@
> @@ -131,7 +130,7 @@ index 230ec09b97..2cc5f391d7 100644
> /* This reads all files listed in /etc/tmpfiles.d/?*.conf and creates
> * them in the file system. This is intended to be used to create
> * properly owned directories beneath /tmp, /var/tmp, /run, which are
> -@@ -2434,7 +2440,9 @@ finish:
> +@@ -2426,7 +2432,9 @@ finish:
>
> static int glob_item(Context *c, Item *i, action_t action) {
> _cleanup_globfree_ glob_t g = {
> @@ -141,7 +140,7 @@ index 230ec09b97..2cc5f391d7 100644
> };
> int r = 0, k;
>
> -@@ -2461,7 +2469,9 @@ static int glob_item_recursively(
> +@@ -2453,7 +2461,9 @@ static int glob_item_recursively(
> fdaction_t action) {
>
> _cleanup_globfree_ glob_t g = {
> @@ -151,6 +150,3 @@ index 230ec09b97..2cc5f391d7 100644
> };
> int r = 0, k;
>
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0005-add-missing-FTW_-macros-for-musl.patch b/meta/recipes-core/systemd/systemd/0005-add-missing-FTW_-macros-for-musl.patch
> index a1dfca22cd..deb0e83b6d 100644
> --- a/meta/recipes-core/systemd/systemd/0005-add-missing-FTW_-macros-for-musl.patch
> +++ b/meta/recipes-core/systemd/systemd/0005-add-missing-FTW_-macros-for-musl.patch
> @@ -1,7 +1,7 @@
> -From dad7f897c0de654fa5592fda3e90f874639849f9 Mon Sep 17 00:00:00 2001
> +From dcd9639657e4122b7665b01a067219f990ee3ace Mon Sep 17 00:00:00 2001
> From: Chen Qi <Qi.Chen@windriver.com>
> Date: Mon, 25 Feb 2019 15:00:06 +0800
> -Subject: [PATCH 05/22] add missing FTW_ macros for musl
> +Subject: [PATCH] add missing FTW_ macros for musl
>
> This is to avoid build failures like below for musl.
>
> @@ -39,6 +39,3 @@ index 8684d064ec..70fc2b5376 100644
>
> static char **list_nftw = NULL;
>
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0006-Use-uintmax_t-for-handling-rlim_t.patch b/meta/recipes-core/systemd/systemd/0006-Use-uintmax_t-for-handling-rlim_t.patch
> index 4be14b72ec..f02675604d 100644
> --- a/meta/recipes-core/systemd/systemd/0006-Use-uintmax_t-for-handling-rlim_t.patch
> +++ b/meta/recipes-core/systemd/systemd/0006-Use-uintmax_t-for-handling-rlim_t.patch
> @@ -1,7 +1,7 @@
> -From 96e975a2412a20e5f80bd3ab144057d275eb8597 Mon Sep 17 00:00:00 2001
> +From c58933386caa8e45b5e814ec4ff210b18ab401da Mon Sep 17 00:00:00 2001
> From: Chen Qi <Qi.Chen@windriver.com>
> Date: Mon, 25 Feb 2019 15:12:41 +0800
> -Subject: [PATCH 06/22] Use uintmax_t for handling rlim_t
> +Subject: [PATCH] Use uintmax_t for handling rlim_t
>
> PRIu{32,64} is not right format to represent rlim_t type
> therefore use %ju and typecast the rlim_t variables to
> @@ -86,10 +86,10 @@ index c1f0b2b974..61c5412582 100644
> return 1;
> }
> diff --git a/src/core/execute.c b/src/core/execute.c
> -index bd3da0c401..df1870fd2f 100644
> +index 531bec4c92..602a95f674 100644
> --- a/src/core/execute.c
> +++ b/src/core/execute.c
> -@@ -1045,9 +1045,9 @@ void exec_context_dump(const ExecContext *c, FILE* f, const char *prefix) {
> +@@ -1041,9 +1041,9 @@ void exec_context_dump(const ExecContext *c, FILE* f, const char *prefix) {
> for (unsigned i = 0; i < RLIM_NLIMITS; i++)
> if (c->rlimit[i]) {
> fprintf(f, "%sLimit%s: " RLIM_FMT "\n",
> @@ -101,6 +101,3 @@ index bd3da0c401..df1870fd2f 100644
> }
>
> if (c->ioprio_set) {
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0007-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch b/meta/recipes-core/systemd/systemd/0007-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch
> index 8d6084239e..1d4ce33712 100644
> --- a/meta/recipes-core/systemd/systemd/0007-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch
> +++ b/meta/recipes-core/systemd/systemd/0007-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch
> @@ -1,7 +1,7 @@
> -From 4842cff4f1329f0b5034b529d56f8ad1f234ac4c Mon Sep 17 00:00:00 2001
> +From 5bf8235bc5c802908aa5d95740350927d87e953a Mon Sep 17 00:00:00 2001
> From: Andre McCurdy <armccurdy@gmail.com>
> Date: Tue, 10 Oct 2017 14:33:30 -0700
> -Subject: [PATCH 07/22] don't pass AT_SYMLINK_NOFOLLOW flag to faccessat()
> +Subject: [PATCH] don't pass AT_SYMLINK_NOFOLLOW flag to faccessat()
>
> Avoid using AT_SYMLINK_NOFOLLOW flag. It doesn't seem like the right
> thing to do and it's not portable (not supported by musl). See:
> @@ -31,7 +31,7 @@ Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
> 2 files changed, 23 insertions(+), 4 deletions(-)
>
> diff --git a/src/basic/fs-util.h b/src/basic/fs-util.h
> -index 1023ab73ca..c78ff6f27f 100644
> +index 6a1e2e76d1..c3f7235e09 100644
> --- a/src/basic/fs-util.h
> +++ b/src/basic/fs-util.h
> @@ -49,8 +49,27 @@ int futimens_opath(int fd, const struct timespec ts[2]);
> @@ -64,7 +64,7 @@ index 1023ab73ca..c78ff6f27f 100644
> int touch_file(const char *path, bool parents, usec_t stamp, uid_t uid, gid_t gid, mode_t mode);
>
> diff --git a/src/shared/base-filesystem.c b/src/shared/base-filesystem.c
> -index 569ef466c3..7ae921a113 100644
> +index a4e2dae245..67aa8ea1f2 100644
> --- a/src/shared/base-filesystem.c
> +++ b/src/shared/base-filesystem.c
> @@ -145,7 +145,7 @@ int base_filesystem_create_fd(int fd, const char *root, uid_t uid, gid_t gid) {
> @@ -94,6 +94,3 @@ index 569ef466c3..7ae921a113 100644
> continue;
> }
>
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0008-Define-glibc-compatible-basename-for-non-glibc-syste.patch b/meta/recipes-core/systemd/systemd/0008-Define-glibc-compatible-basename-for-non-glibc-syste.patch
> index c1a8bb19fe..1ab23553f9 100644
> --- a/meta/recipes-core/systemd/systemd/0008-Define-glibc-compatible-basename-for-non-glibc-syste.patch
> +++ b/meta/recipes-core/systemd/systemd/0008-Define-glibc-compatible-basename-for-non-glibc-syste.patch
> @@ -1,8 +1,7 @@
> -From bab07e779ff23d5593bb118efaaa31b60a6dce87 Mon Sep 17 00:00:00 2001
> +From d98f6bd4d8acdc4c1a5bff4c699f5004a6ebccce Mon Sep 17 00:00:00 2001
> From: Khem Raj <raj.khem@gmail.com>
> Date: Sun, 27 May 2018 08:36:44 -0700
> -Subject: [PATCH 08/22] Define glibc compatible basename() for non-glibc
> - systems
> +Subject: [PATCH] Define glibc compatible basename() for non-glibc systems
>
> Fixes builds with musl, even though systemd is adamant about
> using non-posix basename implementation, we have a way out
> @@ -29,6 +28,3 @@ index b6d8be3083..0a29036c4c 100644
> static inline char* strstr_ptr(const char *haystack, const char *needle) {
> if (!haystack || !needle)
> return NULL;
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0008-implment-systemd-sysv-install-for-OE.patch b/meta/recipes-core/systemd/systemd/0008-implment-systemd-sysv-install-for-OE.patch
> index acff18dc43..8b833ce073 100644
> --- a/meta/recipes-core/systemd/systemd/0008-implment-systemd-sysv-install-for-OE.patch
> +++ b/meta/recipes-core/systemd/systemd/0008-implment-systemd-sysv-install-for-OE.patch
> @@ -1,4 +1,4 @@
> -From 5712d56f1cd654d2e5d2e9117ff77fe4c299f76b Mon Sep 17 00:00:00 2001
> +From 5f89867f2b15f9bd411564d04e660cdeedd370ca Mon Sep 17 00:00:00 2001
> From: Khem Raj <raj.khem@gmail.com>
> Date: Sat, 5 Sep 2015 06:31:47 +0000
> Subject: [PATCH] implment systemd-sysv-install for OE
> @@ -38,6 +38,3 @@ index cb58d8243b..000bdf6165 100755
> ;;
> *)
> usage ;;
> ---
> -2.39.2
> -
> diff --git a/meta/recipes-core/systemd/systemd/0009-Do-not-disable-buffering-when-writing-to-oom_score_a.patch b/meta/recipes-core/systemd/systemd/0009-Do-not-disable-buffering-when-writing-to-oom_score_a.patch
> index 3ff0177ae3..98ab397eff 100644
> --- a/meta/recipes-core/systemd/systemd/0009-Do-not-disable-buffering-when-writing-to-oom_score_a.patch
> +++ b/meta/recipes-core/systemd/systemd/0009-Do-not-disable-buffering-when-writing-to-oom_score_a.patch
> @@ -1,7 +1,7 @@
> -From 25093c5017725b8577c444dfea0f42ad85b43522 Mon Sep 17 00:00:00 2001
> +From f3943f58f3c8a9d20dcada56eb5ca5f673a49b3d Mon Sep 17 00:00:00 2001
> From: Chen Qi <Qi.Chen@windriver.com>
> Date: Wed, 4 Jul 2018 15:00:44 +0800
> -Subject: [PATCH 09/22] Do not disable buffering when writing to oom_score_adj
> +Subject: [PATCH] Do not disable buffering when writing to oom_score_adj
>
> On musl, disabling buffering when writing to oom_score_adj will
> cause the following error.
> @@ -24,7 +24,7 @@ Signed-off-by: Scott Murray <scott.murray@konsulko.com>
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/basic/process-util.c b/src/basic/process-util.c
> -index 201c5596ae..ea51595b6c 100644
> +index 4492e7ded2..b61a2aba74 100644
> --- a/src/basic/process-util.c
> +++ b/src/basic/process-util.c
> @@ -1716,7 +1716,7 @@ int set_oom_score_adjust(int value) {
> @@ -36,6 +36,3 @@ index 201c5596ae..ea51595b6c 100644
> }
>
> int get_oom_score_adjust(int *ret) {
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0010-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch b/meta/recipes-core/systemd/systemd/0010-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch
> index cf59ac7d06..e1ffe4ddb5 100644
> --- a/meta/recipes-core/systemd/systemd/0010-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch
> +++ b/meta/recipes-core/systemd/systemd/0010-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch
> @@ -1,7 +1,7 @@
> -From 2adbe9773cd65c48eec9df96868d4a738927c8d9 Mon Sep 17 00:00:00 2001
> +From 5305c5f18236a9d7f2e633ea6ad317e09e8f29d5 Mon Sep 17 00:00:00 2001
> From: Chen Qi <Qi.Chen@windriver.com>
> Date: Tue, 10 Jul 2018 15:40:17 +0800
> -Subject: [PATCH 10/22] distinguish XSI-compliant strerror_r from GNU-specifi
> +Subject: [PATCH] distinguish XSI-compliant strerror_r from GNU-specifi
> strerror_r
>
> XSI-compliant strerror_r and GNU-specifi strerror_r are different.
> @@ -24,10 +24,10 @@ Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> 2 files changed, 15 insertions(+), 1 deletion(-)
>
> diff --git a/src/libsystemd/sd-bus/bus-error.c b/src/libsystemd/sd-bus/bus-error.c
> -index 77b2e1a0fd..fdba0e0142 100644
> +index f415797700..a5c6e9a3bd 100644
> --- a/src/libsystemd/sd-bus/bus-error.c
> +++ b/src/libsystemd/sd-bus/bus-error.c
> -@@ -408,7 +408,12 @@ static void bus_error_strerror(sd_bus_error *e, int error) {
> +@@ -410,7 +410,12 @@ static void bus_error_strerror(sd_bus_error *e, int error) {
> return;
>
> errno = 0;
> @@ -40,7 +40,7 @@ index 77b2e1a0fd..fdba0e0142 100644
> if (errno == ERANGE || strlen(x) >= k - 1) {
> free(m);
> k *= 2;
> -@@ -593,8 +598,12 @@ const char* _bus_error_message(const sd_bus_error *e, int error, char buf[static
> +@@ -595,8 +600,12 @@ const char* _bus_error_message(const sd_bus_error *e, int error, char buf[static
>
> if (e && e->message)
> return e->message;
> @@ -71,6 +71,3 @@ index 69a2eb6404..1561859650 100644
> if (errno == 0) {
> char error[STRLEN("ERRNO=") + DECIMAL_STR_MAX(int) + 1];
>
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0011-avoid-redefinition-of-prctl_mm_map-structure.patch b/meta/recipes-core/systemd/systemd/0011-avoid-redefinition-of-prctl_mm_map-structure.patch
> index e481b2e2e4..3075f9d003 100644
> --- a/meta/recipes-core/systemd/systemd/0011-avoid-redefinition-of-prctl_mm_map-structure.patch
> +++ b/meta/recipes-core/systemd/systemd/0011-avoid-redefinition-of-prctl_mm_map-structure.patch
> @@ -1,7 +1,7 @@
> -From 49c446cfb78cf74a909bed8c3798b77a5469866a Mon Sep 17 00:00:00 2001
> +From c866c8652f06af4cd0b9bd7eedc606449f432b95 Mon Sep 17 00:00:00 2001
> From: Chen Qi <Qi.Chen@windriver.com>
> Date: Mon, 25 Feb 2019 15:44:54 +0800
> -Subject: [PATCH 11/22] avoid redefinition of prctl_mm_map structure
> +Subject: [PATCH] avoid redefinition of prctl_mm_map structure
>
> Fix the following compile failure:
> error: redefinition of 'struct prctl_mm_map'
> @@ -27,6 +27,3 @@ index 7d9e395c92..88c2d7dfac 100644
>
> /* 58319057b7847667f0c9585b9de0e8932b0fdb08 (4.3) */
> #ifndef PR_CAP_AMBIENT
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0012-do-not-disable-buffer-in-writing-files.patch b/meta/recipes-core/systemd/systemd/0012-do-not-disable-buffer-in-writing-files.patch
> index 66be79077e..0fec84724d 100644
> --- a/meta/recipes-core/systemd/systemd/0012-do-not-disable-buffer-in-writing-files.patch
> +++ b/meta/recipes-core/systemd/systemd/0012-do-not-disable-buffer-in-writing-files.patch
> @@ -1,7 +1,7 @@
> -From e4885a8e60f883d9217e26e1db3754c2906aca31 Mon Sep 17 00:00:00 2001
> +From 8464b845e6df1be303e09274c13e653072701671 Mon Sep 17 00:00:00 2001
> From: Chen Qi <Qi.Chen@windriver.com>
> Date: Fri, 1 Mar 2019 15:22:15 +0800
> -Subject: [PATCH 12/22] do not disable buffer in writing files
> +Subject: [PATCH] do not disable buffer in writing files
>
> Do not disable buffer in writing files, otherwise we get
> failure at boot for musl like below.
> @@ -201,7 +201,7 @@ index 61ac4df1a6..ea18970196 100644
> return r;
>
> diff --git a/src/core/main.c b/src/core/main.c
> -index 3f71cc0947..0e5aec3e9e 100644
> +index 1c0030a75f..7108a87d46 100644
> --- a/src/core/main.c
> +++ b/src/core/main.c
> @@ -1678,7 +1678,7 @@ static void initialize_core_pattern(bool skip_setup) {
> @@ -253,7 +253,7 @@ index 066483e342..5f92dd7064 100644
> log_warning_errno(r, "Failed to drop caches, ignoring: %m");
> else
> diff --git a/src/libsystemd/sd-device/sd-device.c b/src/libsystemd/sd-device/sd-device.c
> -index 2fbc619a34..09d9591e37 100644
> +index 01e66b4658..f3ea82ca1b 100644
> --- a/src/libsystemd/sd-device/sd-device.c
> +++ b/src/libsystemd/sd-device/sd-device.c
> @@ -2516,7 +2516,7 @@ _public_ int sd_device_set_sysattr_value(sd_device *device, const char *sysattr,
> @@ -279,10 +279,10 @@ index a5002437c6..b12e6cd9c9 100644
> log_error_errno(r, "Failed to move process: %m");
> goto finish;
> diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
> -index 6ab604d3dc..bbec6b686c 100644
> +index 0600f3e014..ea369c32b2 100644
> --- a/src/nspawn/nspawn.c
> +++ b/src/nspawn/nspawn.c
> -@@ -2688,7 +2688,7 @@ static int reset_audit_loginuid(void) {
> +@@ -2690,7 +2690,7 @@ static int reset_audit_loginuid(void) {
> if (streq(p, "4294967295"))
> return 0;
>
> @@ -291,7 +291,7 @@ index 6ab604d3dc..bbec6b686c 100644
> if (r < 0) {
> log_error_errno(r,
> "Failed to reset audit login UID. This probably means that your kernel is too\n"
> -@@ -4141,7 +4141,7 @@ static int setup_uid_map(
> +@@ -4143,7 +4143,7 @@ static int setup_uid_map(
> return log_oom();
>
> xsprintf(uid_map, "/proc/" PID_FMT "/uid_map", pid);
> @@ -300,7 +300,7 @@ index 6ab604d3dc..bbec6b686c 100644
> if (r < 0)
> return log_error_errno(r, "Failed to write UID map: %m");
>
> -@@ -4151,7 +4151,7 @@ static int setup_uid_map(
> +@@ -4153,7 +4153,7 @@ static int setup_uid_map(
> return log_oom();
>
> xsprintf(uid_map, "/proc/" PID_FMT "/gid_map", pid);
> @@ -367,10 +367,10 @@ index 805503f366..01a7ccb291 100644
> log_debug_errno(r, "Failed to turn off coredumps, ignoring: %m");
> }
> diff --git a/src/shared/hibernate-util.c b/src/shared/hibernate-util.c
> -index 3eb13d48f6..d09b901be1 100644
> +index c3991cfa4c..7d522d8d1f 100644
> --- a/src/shared/hibernate-util.c
> +++ b/src/shared/hibernate-util.c
> -@@ -481,7 +481,7 @@ int write_resume_config(dev_t devno, uint64_t offset, const char *device) {
> +@@ -501,7 +501,7 @@ int write_resume_config(dev_t devno, uint64_t offset, const char *device) {
>
> /* We write the offset first since it's safer. Note that this file is only available in 4.17+, so
> * fail gracefully if it doesn't exist and we're only overwriting it with 0. */
> @@ -379,7 +379,7 @@ index 3eb13d48f6..d09b901be1 100644
> if (r == -ENOENT) {
> if (offset != 0)
> return log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP),
> -@@ -497,7 +497,7 @@ int write_resume_config(dev_t devno, uint64_t offset, const char *device) {
> +@@ -517,7 +517,7 @@ int write_resume_config(dev_t devno, uint64_t offset, const char *device) {
> log_debug("Wrote resume_offset=%s for device '%s' to /sys/power/resume_offset.",
> offset_str, device);
>
> @@ -402,7 +402,7 @@ index 1f88e724d0..feb18b320a 100644
> return r;
>
> diff --git a/src/shared/watchdog.c b/src/shared/watchdog.c
> -index 4c1a968718..6faf6806a5 100644
> +index 99ccefb227..e4975018ab 100644
> --- a/src/shared/watchdog.c
> +++ b/src/shared/watchdog.c
> @@ -93,7 +93,7 @@ static int set_pretimeout_governor(const char *governor) {
> @@ -412,10 +412,10 @@ index 4c1a968718..6faf6806a5 100644
> - WRITE_STRING_FILE_DISABLE_BUFFER | WRITE_STRING_FILE_VERIFY_ON_FAILURE | WRITE_STRING_FILE_VERIFY_IGNORE_NEWLINE);
> + WRITE_STRING_FILE_VERIFY_ON_FAILURE | WRITE_STRING_FILE_VERIFY_IGNORE_NEWLINE);
> if (r < 0)
> - return log_error_errno(r, "Failed to set pretimeout_governor to '%s': %m", governor);
> + return log_error_errno(r, "Failed to set watchdog pretimeout_governor to '%s': %m", governor);
>
> diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c
> -index 21af3e9e52..6d4b84b5d5 100644
> +index 21062b24e0..262dd71d72 100644
> --- a/src/sleep/sleep.c
> +++ b/src/sleep/sleep.c
> @@ -137,7 +137,7 @@ static int write_state(int fd, char * const *states) {
> @@ -437,7 +437,7 @@ index 21af3e9e52..6d4b84b5d5 100644
> log_debug("Using sleep disk mode '%s'.", *mode);
> return 0;
> diff --git a/src/storagetm/storagetm.c b/src/storagetm/storagetm.c
> -index ae63baaf79..82eeca479a 100644
> +index 16d4fb07d4..aca7506463 100644
> --- a/src/storagetm/storagetm.c
> +++ b/src/storagetm/storagetm.c
> @@ -186,7 +186,7 @@ static int nvme_subsystem_unlink(NvmeSubsystem *s) {
> @@ -533,7 +533,7 @@ index ae63baaf79..82eeca479a 100644
> return log_error_errno(r, "Failed to set IP address on NVME port %" PRIu16 ": %m", portnr);
>
> diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
> -index febe345b4c..a90b610ba1 100644
> +index e5b8df5c2d..63ca15628c 100644
> --- a/src/udev/udev-rules.c
> +++ b/src/udev/udev-rules.c
> @@ -2711,7 +2711,6 @@ static int udev_rule_apply_token_to_event(
> @@ -557,6 +557,3 @@ index 4d82c65f0a..3a3d861b83 100644
> if (r < 0)
> return log_warning_errno(r, "Failed to %s sysfs UTF-8 flag: %m", enable_disable(utf8));
>
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0013-Handle-__cpu_mask-usage.patch b/meta/recipes-core/systemd/systemd/0013-Handle-__cpu_mask-usage.patch
> index 43f75373a6..6d7e002d61 100644
> --- a/meta/recipes-core/systemd/systemd/0013-Handle-__cpu_mask-usage.patch
> +++ b/meta/recipes-core/systemd/systemd/0013-Handle-__cpu_mask-usage.patch
> @@ -1,7 +1,7 @@
> -From 2f90f8463423cfbb7e83fcef42f1071018c3b56e Mon Sep 17 00:00:00 2001
> +From f6b69f28657c09b1181552d85e52ced0e01182e3 Mon Sep 17 00:00:00 2001
> From: Scott Murray <scott.murray@konsulko.com>
> Date: Fri, 13 Sep 2019 19:26:27 -0400
> -Subject: [PATCH 13/22] Handle __cpu_mask usage
> +Subject: [PATCH] Handle __cpu_mask usage
>
> Fixes errors:
>
> @@ -55,6 +55,3 @@ index ea0c58770e..b65c0bd370 100644
>
> /* Print information about various types. Useful when diagnosing
> * gcc diagnostics on an unfamiliar architecture. */
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0014-Handle-missing-gshadow.patch b/meta/recipes-core/systemd/systemd/0014-Handle-missing-gshadow.patch
> index a751e1ba6f..40b60399aa 100644
> --- a/meta/recipes-core/systemd/systemd/0014-Handle-missing-gshadow.patch
> +++ b/meta/recipes-core/systemd/systemd/0014-Handle-missing-gshadow.patch
> @@ -1,7 +1,7 @@
> -From b7c827bb44edbb6251c9fcdb80aa03982c0e7bf3 Mon Sep 17 00:00:00 2001
> +From 5442d8ddb285d33b459aefc76962640afd131280 Mon Sep 17 00:00:00 2001
> From: Alex Kiernan <alex.kiernan@gmail.com>
> Date: Tue, 10 Mar 2020 11:05:20 +0000
> -Subject: [PATCH 14/22] Handle missing gshadow
> +Subject: [PATCH] Handle missing gshadow
>
> gshadow usage is now present in the userdb code. Mask all uses of it to
> allow compilation on musl
> @@ -168,6 +168,3 @@ index f60d48ace4..e878199a28 100644
> if (r < 0)
> return r;
>
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch b/meta/recipes-core/systemd/systemd/0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch
> index e112766a9b..51f0b048fa 100644
> --- a/meta/recipes-core/systemd/systemd/0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch
> +++ b/meta/recipes-core/systemd/systemd/0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch
> @@ -1,7 +1,7 @@
> -From 3dc9d9d410bcce54fddfd94f43f7f77f3aa8e281 Mon Sep 17 00:00:00 2001
> +From 863dd6f502d53a4a2644e031eee2e8dfa3fd05aa Mon Sep 17 00:00:00 2001
> From: Khem Raj <raj.khem@gmail.com>
> Date: Mon, 12 Apr 2021 23:44:53 -0700
> -Subject: [PATCH 15/22] missing_syscall.h: Define MIPS ABI defines for musl
> +Subject: [PATCH] missing_syscall.h: Define MIPS ABI defines for musl
>
> musl does not define _MIPS_SIM_ABI32, _MIPS_SIM_NABI32, _MIPS_SIM_ABI64
> unlike glibc where these are provided by libc headers, therefore define
> @@ -16,7 +16,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
> 2 files changed, 7 insertions(+)
>
> diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h
> -index d795efd8f2..d6729d3c1d 100644
> +index 86280771c4..20d05db506 100644
> --- a/src/basic/missing_syscall.h
> +++ b/src/basic/missing_syscall.h
> @@ -20,6 +20,12 @@
> @@ -33,7 +33,7 @@ index d795efd8f2..d6729d3c1d 100644
> #include "missing_keyctl.h"
> #include "missing_stat.h"
> diff --git a/src/shared/base-filesystem.c b/src/shared/base-filesystem.c
> -index 7ae921a113..0ef9d1fd39 100644
> +index 67aa8ea1f2..8d9824495e 100644
> --- a/src/shared/base-filesystem.c
> +++ b/src/shared/base-filesystem.c
> @@ -20,6 +20,7 @@
> @@ -44,6 +44,3 @@ index 7ae921a113..0ef9d1fd39 100644
>
> typedef struct BaseFilesystem {
> const char *dir; /* directory or symlink to create */
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0016-pass-correct-parameters-to-getdents64.patch b/meta/recipes-core/systemd/systemd/0016-pass-correct-parameters-to-getdents64.patch
> index 0be817e62d..66b8f66806 100644
> --- a/meta/recipes-core/systemd/systemd/0016-pass-correct-parameters-to-getdents64.patch
> +++ b/meta/recipes-core/systemd/systemd/0016-pass-correct-parameters-to-getdents64.patch
> @@ -1,7 +1,7 @@
> -From 0994b59dba9f248ad31cb7087046dc00b72cb4ea Mon Sep 17 00:00:00 2001
> +From 01de9e5a6e4ad2f361d3eb4d9839c7afd91cc677 Mon Sep 17 00:00:00 2001
> From: Khem Raj <raj.khem@gmail.com>
> Date: Fri, 21 Jan 2022 15:15:11 -0800
> -Subject: [PATCH 16/22] pass correct parameters to getdents64
> +Subject: [PATCH] pass correct parameters to getdents64
>
> Fixes
> ../git/src/basic/recurse-dir.c:57:40: error: incompatible pointer types passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'struct dirent *' [-Werror,-Wincompatible-pointer-types]
> @@ -32,6 +32,3 @@ index 5e98b7a5d8..aef065047b 100644
> if (n < 0)
> return -errno;
> if (n == 0)
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0017-Adjust-for-musl-headers.patch b/meta/recipes-core/systemd/systemd/0017-Adjust-for-musl-headers.patch
> index 4176522a1c..f86b8c889c 100644
> --- a/meta/recipes-core/systemd/systemd/0017-Adjust-for-musl-headers.patch
> +++ b/meta/recipes-core/systemd/systemd/0017-Adjust-for-musl-headers.patch
> @@ -1,7 +1,7 @@
> -From 3c094d443ca30f19114392fd8ef274af6eabc12d Mon Sep 17 00:00:00 2001
> +From a45cf93772ac5055665cc55454509747b9c68ad2 Mon Sep 17 00:00:00 2001
> From: Khem Raj <raj.khem@gmail.com>
> Date: Fri, 21 Jan 2022 22:19:37 -0800
> -Subject: [PATCH 17/22] Adjust for musl headers
> +Subject: [PATCH] Adjust for musl headers
>
> Upstream-Status: Inappropriate [musl specific]
>
> @@ -425,7 +425,7 @@ index 607fe0053c..9ce4005874 100644
>
> #include "sd-dhcp-server.h"
> diff --git a/src/network/networkd-dhcp4.c b/src/network/networkd-dhcp4.c
> -index efbae6d868..1ea2151d50 100644
> +index 49c452da7c..98aad1f3cd 100644
> --- a/src/network/networkd-dhcp4.c
> +++ b/src/network/networkd-dhcp4.c
> @@ -3,7 +3,7 @@
> @@ -451,7 +451,7 @@ index 32229a3fc7..662a345d6e 100644
> #include "in-addr-util.h"
> #include "networkd-address.h"
> diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
> -index ee5f0f2c0a..ea5269a2de 100644
> +index 4ef1be4bad..e5aa53604d 100644
> --- a/src/network/networkd-link.c
> +++ b/src/network/networkd-link.c
> @@ -3,7 +3,7 @@
> @@ -464,7 +464,7 @@ index ee5f0f2c0a..ea5269a2de 100644
> #include <linux/netdevice.h>
> #include <sys/socket.h>
> diff --git a/src/network/networkd-ndisc.c b/src/network/networkd-ndisc.c
> -index ab9eeb13a5..dd96fe7483 100644
> +index 840ccb158d..9f2e85e32f 100644
> --- a/src/network/networkd-ndisc.c
> +++ b/src/network/networkd-ndisc.c
> @@ -6,7 +6,7 @@
> @@ -477,7 +477,7 @@ index ab9eeb13a5..dd96fe7483 100644
> #include "sd-ndisc.h"
>
> diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c
> -index 7218d799fc..30d5574eae 100644
> +index eb502ae2cf..5b25ee4523 100644
> --- a/src/network/networkd-route.c
> +++ b/src/network/networkd-route.c
> @@ -1,9 +1,5 @@
> @@ -502,7 +502,7 @@ index 7218d799fc..30d5574eae 100644
> _cleanup_(route_freep) Route *route = NULL;
>
> diff --git a/src/network/networkd-setlink.c b/src/network/networkd-setlink.c
> -index 2298f9ea3a..7d5f87de53 100644
> +index 011ea1fe6e..59dfe733eb 100644
> --- a/src/network/networkd-setlink.c
> +++ b/src/network/networkd-setlink.c
> @@ -2,7 +2,7 @@
> @@ -567,6 +567,3 @@ index f528a46b8e..830318cda5 100644
> #include <linux/netdevice.h>
> #include <linux/pci_regs.h>
>
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0018-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch b/meta/recipes-core/systemd/systemd/0018-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch
> index 75f6b9094a..67388e6807 100644
> --- a/meta/recipes-core/systemd/systemd/0018-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch
> +++ b/meta/recipes-core/systemd/systemd/0018-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch
> @@ -1,8 +1,8 @@
> -From be02bd0876a061728661535a709d313e39fe1ac3 Mon Sep 17 00:00:00 2001
> +From 20dfb0b5e7113c2e7f82c01488b419dffe8714ab Mon Sep 17 00:00:00 2001
> From: Khem Raj <raj.khem@gmail.com>
> Date: Tue, 8 Nov 2022 13:31:34 -0800
> -Subject: [PATCH 18/22] test-bus-error: strerror() is assumed to be GNU
> - specific version mark it so
> +Subject: [PATCH] test-bus-error: strerror() is assumed to be GNU specific
> + version mark it so
>
> Upstream-Status: Inappropriate [Upstream systemd only supports glibc]
>
> @@ -47,6 +47,3 @@ index 376d532281..967cfd4d67 100644
>
> TEST(PROTECT_ERRNO) {
> errno = 12;
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0019-errno-util-Make-STRERROR-portable-for-musl.patch b/meta/recipes-core/systemd/systemd/0019-errno-util-Make-STRERROR-portable-for-musl.patch
> index e038b73678..36d468959a 100644
> --- a/meta/recipes-core/systemd/systemd/0019-errno-util-Make-STRERROR-portable-for-musl.patch
> +++ b/meta/recipes-core/systemd/systemd/0019-errno-util-Make-STRERROR-portable-for-musl.patch
> @@ -1,7 +1,7 @@
> -From 46d80840bfe37e67d4f18c37a77751ea1fe63a07 Mon Sep 17 00:00:00 2001
> +From 32371040c2aa649e23c3b0f2c5ee27995a16526a Mon Sep 17 00:00:00 2001
> From: Khem Raj <raj.khem@gmail.com>
> Date: Mon, 23 Jan 2023 23:39:46 -0800
> -Subject: [PATCH 19/22] errno-util: Make STRERROR portable for musl
> +Subject: [PATCH] errno-util: Make STRERROR portable for musl
>
> Sadly, systemd has decided to use yet another GNU extention in a macro
> lets make this such that we can use XSI compliant strerror_r() for
> @@ -37,6 +37,3 @@ index 27804e6382..274c1c6ef1 100644
> /* A helper to print an error message or message for functions that return 0 on EOF.
> * Note that we can't use ({ … }) to define a temporary variable, so errnum is
> * evaluated twice. */
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0020-sd-event-Make-malloc_trim-conditional-on-glibc.patch b/meta/recipes-core/systemd/systemd/0020-sd-event-Make-malloc_trim-conditional-on-glibc.patch
> index b83fffe793..f860b5f542 100644
> --- a/meta/recipes-core/systemd/systemd/0020-sd-event-Make-malloc_trim-conditional-on-glibc.patch
> +++ b/meta/recipes-core/systemd/systemd/0020-sd-event-Make-malloc_trim-conditional-on-glibc.patch
> @@ -1,7 +1,7 @@
> -From 9eb4867b4e2dbdb2484ae854022aff97e2f0feb3 Mon Sep 17 00:00:00 2001
> +From 751fb8c9a05115f5329cfa25e69afe7657124c20 Mon Sep 17 00:00:00 2001
> From: Khem Raj <raj.khem@gmail.com>
> Date: Wed, 2 Aug 2023 12:06:27 -0700
> -Subject: [PATCH 20/22] sd-event: Make malloc_trim() conditional on glibc
> +Subject: [PATCH] sd-event: Make malloc_trim() conditional on glibc
>
> musl does not have this API
>
> @@ -12,7 +12,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/libsystemd/sd-event/sd-event.c b/src/libsystemd/sd-event/sd-event.c
> -index 288798a0dc..6419a7f216 100644
> +index b6899df192..0c03287004 100644
> --- a/src/libsystemd/sd-event/sd-event.c
> +++ b/src/libsystemd/sd-event/sd-event.c
> @@ -1874,7 +1874,7 @@ _public_ int sd_event_add_exit(
> @@ -34,6 +34,3 @@ index 288798a0dc..6419a7f216 100644
> usec_t after_timestamp = now(CLOCK_MONOTONIC);
>
> if (r > 0)
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0021-shared-Do-not-use-malloc_info-on-musl.patch b/meta/recipes-core/systemd/systemd/0021-shared-Do-not-use-malloc_info-on-musl.patch
> index 7eff069bb7..ece9873bbc 100644
> --- a/meta/recipes-core/systemd/systemd/0021-shared-Do-not-use-malloc_info-on-musl.patch
> +++ b/meta/recipes-core/systemd/systemd/0021-shared-Do-not-use-malloc_info-on-musl.patch
> @@ -1,7 +1,7 @@
> -From 502597b9ddd6b145541b23fadca0b1d3ca9f6367 Mon Sep 17 00:00:00 2001
> +From 4fe2a8b1aab7297beac50f6ce46f3df4169de218 Mon Sep 17 00:00:00 2001
> From: Khem Raj <raj.khem@gmail.com>
> Date: Wed, 2 Aug 2023 12:20:40 -0700
> -Subject: [PATCH 21/22] shared: Do not use malloc_info on musl
> +Subject: [PATCH] shared: Do not use malloc_info on musl
>
> Upstream-Status: Inappropriate [musl-specific]
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> @@ -52,6 +52,3 @@ index 8e70e365dd..9e782caec9 100644
> (void) memstream_dump(LOG_INFO, &m);
> break;
> }
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch b/meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch
> index 24f3bf74a0..f517392e58 100644
> --- a/meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch
> +++ b/meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch
> @@ -1,7 +1,7 @@
> -From fd52f1764647e03a35e8f0ed0ef952049073ccbd Mon Sep 17 00:00:00 2001
> +From 97d3ed7834bd86615ba4acdbef984c677b7e7791 Mon Sep 17 00:00:00 2001
> From: Chen Qi <Qi.Chen@windriver.com>
> Date: Tue, 2 Jan 2024 11:03:27 +0800
> -Subject: [PATCH 22/22] avoid missing LOCK_EX declaration
> +Subject: [PATCH] avoid missing LOCK_EX declaration
>
> This only happens on MUSL. Include sys/file.h to avoid compilation
> error about missing LOCK_EX declaration.
> @@ -15,7 +15,7 @@ Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> 2 files changed, 2 insertions(+)
>
> diff --git a/src/core/exec-invoke.c b/src/core/exec-invoke.c
> -index 70d963e269..7084811439 100644
> +index fe14ceeb31..521e7b87ff 100644
> --- a/src/core/exec-invoke.c
> +++ b/src/core/exec-invoke.c
> @@ -4,6 +4,7 @@
> @@ -38,6 +38,3 @@ index 5339bc4e5e..0697495f23 100644
>
> int lock_dev_console(void);
>
> ---
> -2.34.1
> -
> diff --git a/meta/recipes-core/systemd/systemd_255.4.bb b/meta/recipes-core/systemd/systemd_255.6.bb
> similarity index 100%
> rename from meta/recipes-core/systemd/systemd_255.4.bb
> rename to meta/recipes-core/systemd/systemd_255.6.bb
> --
> 2.34.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#199556): https://lists.openembedded.org/g/openembedded-core/message/199556
> Mute This Topic: https://lists.openembedded.org/mt/106199571/3617179
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: [OE-core][PATCH 2/6] util-linux/util-linux-libuuid: upgrade from 2.39.3 to 2.40.1
2024-05-21 9:32 ` Alexandre Belloni
2024-05-21 9:33 ` Alexandre Belloni
@ 2024-05-21 10:23 ` Chen, Qi
1 sibling, 0 replies; 14+ messages in thread
From: Chen, Qi @ 2024-05-21 10:23 UTC (permalink / raw)
To: Alexandre Belloni; +Cc: openembedded-core@lists.openembedded.org
Got it. I'll look into this error, and also the other one you pointed out in another email.
Regards,
Qi
-----Original Message-----
From: Alexandre Belloni <alexandre.belloni@bootlin.com>
Sent: Tuesday, May 21, 2024 5:32 PM
To: Chen, Qi <Qi.Chen@windriver.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core][PATCH 2/6] util-linux/util-linux-libuuid: upgrade from 2.39.3 to 2.40.1
This fails on the autobuilders:
ERROR: util-linux-2.40.1-r0 do_package: QA Issue: util-linux: Files/directories were installed but not shipped in any package:
/lib/security/pam_lastlog2.so
https://autobuilder.yoctoproject.org/typhoon/#/builders/72/builds/9011/steps/15/logs/stdio
On 20/05/2024 16:10:36+0800, Chen Qi via lists.openembedded.org wrote:
> From: Chen Qi <Qi.Chen@windriver.com>
>
> License-Update:
> ===============
> GPL-2.0 is changed to GPL-2.0-only in README.licensing.
>
> The following two patches are removed as they've been there in new release:
>
> 0001-login-utils-include-libgen.h-for-basename-API.patch
> mit-license.patch
>
> Other existing patches are refreshed to avoid patch-fuzz error.
>
> A new PACKAGECONFIG, lastlog2, is added, which serves as a switch to
> build Y2038 safe lastlog pam module. This is a new functionality added in 2.40.
>
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
> ...2.39.3.bb => util-linux-libuuid_2.40.1.bb} | 0
> meta/recipes-core/util-linux/util-linux.inc | 8 +--
> ...ls-include-libgen.h-for-basename-API.patch | 60 -------------------
> .../util-linux/avoid_parallel_tests.patch | 5 +-
> .../util-linux/configure-sbindir.patch | 7 +--
> .../display_testname_for_subtest.patch | 7 +--
> .../util-linux/util-linux/mit-license.patch | 45 --------------
> .../util-linux/util-linux/ptest.patch | 11 ++--
> ...l-linux_2.39.3.bb => util-linux_2.40.1.bb} | 3 +-
> 9 files changed, 18 insertions(+), 128 deletions(-) rename
> meta/recipes-core/util-linux/{util-linux-libuuid_2.39.3.bb =>
> util-linux-libuuid_2.40.1.bb} (100%) delete mode 100644
> meta/recipes-core/util-linux/util-linux/0001-login-utils-include-libge
> n.h-for-basename-API.patch delete mode 100644
> meta/recipes-core/util-linux/util-linux/mit-license.patch
> rename meta/recipes-core/util-linux/{util-linux_2.39.3.bb =>
> util-linux_2.40.1.bb} (99%)
>
> diff --git a/meta/recipes-core/util-linux/util-linux-libuuid_2.39.3.bb
> b/meta/recipes-core/util-linux/util-linux-libuuid_2.40.1.bb
> similarity index 100%
> rename from meta/recipes-core/util-linux/util-linux-libuuid_2.39.3.bb
> rename to meta/recipes-core/util-linux/util-linux-libuuid_2.40.1.bb
> diff --git a/meta/recipes-core/util-linux/util-linux.inc
> b/meta/recipes-core/util-linux/util-linux.inc
> index d506783f9a..0f5f838e84 100644
> --- a/meta/recipes-core/util-linux/util-linux.inc
> +++ b/meta/recipes-core/util-linux/util-linux.inc
> @@ -6,7 +6,7 @@ disk partitioning, kernel message management,
> filesystem creation, and system lo
>
> SECTION = "base"
>
> -LICENSE = "GPL-1.0-or-later & GPL-2.0-or-later & LGPL-2.1-or-later & BSD-2-Clause & BSD-3-Clause & BSD-4-Clause & MIT"
> +LICENSE = "GPL-1.0-or-later & GPL-2.0-only & GPL-2.0-or-later & LGPL-2.1-or-later & BSD-2-Clause & BSD-3-Clause & BSD-4-Clause & MIT"
> LICENSE:${PN}-fcntl-lock = "MIT"
> LICENSE:${PN}-fdisk = "GPL-1.0-or-later"
> LICENSE:${PN}-libblkid = "LGPL-2.1-or-later"
> @@ -14,7 +14,7 @@ LICENSE:${PN}-libfdisk = "LGPL-2.1-or-later"
> LICENSE:${PN}-libmount = "LGPL-2.1-or-later"
> LICENSE:${PN}-libsmartcols = "LGPL-2.1-or-later"
>
> -LIC_FILES_CHKSUM =
> "file://README.licensing;md5=cc80239f106687ab39ef0271ff5cf4ba \
> +LIC_FILES_CHKSUM =
> +"file://README.licensing;md5=ddd58b6c94da86ff4f03e91208eb9cfc \
> file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
> file://Documentation/licenses/COPYING.GPL-2.0-or-later;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
>
> file://Documentation/licenses/COPYING.LGPL-2.1-or-later;md5=4fbd65380c
> dd255951079008b364516c \ @@ -30,7 +30,6 @@ LIC_FILES_CHKSUM =
> "file://README.licensing;md5=cc80239f106687ab39ef0271ff5cf4ba
> FILESEXTRAPATHS:prepend := "${THISDIR}/util-linux:"
> MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:2])}"
> SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-linux-${PV}.tar.xz \
> - file://mit-license.patch \
> file://configure-sbindir.patch \
> file://runuser.pamd \
> file://runuser-l.pamd \
> @@ -38,8 +37,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-lin
> file://run-ptest \
> file://display_testname_for_subtest.patch \
> file://avoid_parallel_tests.patch \
> - file://0001-login-utils-include-libgen.h-for-basename-API.patch \
> file://fcntl-lock.c \
> "
>
> -SRC_URI[sha256sum] = "7b6605e48d1a49f43cc4b4cfc59f313d0dd5402fa40b96810bd572e167dfed0f"
> +SRC_URI[sha256sum] = "59e676aa53ccb44b6c39f0ffe01a8fa274891c91bef1474752fad92461def24f"
> diff --git
> a/meta/recipes-core/util-linux/util-linux/0001-login-utils-include-lib
> gen.h-for-basename-API.patch
> b/meta/recipes-core/util-linux/util-linux/0001-login-utils-include-lib
> gen.h-for-basename-API.patch
> deleted file mode 100644
> index 6258710e1e..0000000000
> ---
> a/meta/recipes-core/util-linux/util-linux/0001-login-utils-include-lib
> gen.h-for-basename-API.patch
> +++ /dev/null
> @@ -1,60 +0,0 @@
> -From d44e3ad1f6f8b5c1b3098bb7d537943a4c21d22f Mon Sep 17 00:00:00
> 2001
> -From: Khem Raj <raj.khem@gmail.com>
> -Date: Sun, 3 Dec 2023 19:59:46 -0800
> -Subject: [PATCH] login-utils: include libgen.h for basename API
> -
> -musl has removed the non-prototype declaration of basename from
> string.h [1] which now results in build errors with clang-17+ compiler
> -
> -include libgen.h for using the posix declaration of the funciton.
> -
> -Fixes
> -
> -../util-linux-2.39.2/login-utils/su-common.c:847:20: error: call to undeclared function 'basename'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
> - 847 | shell_basename = basename(shell);
> - | ^
> -
> -[1]
> https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487b
> b64470881e86a92e7
> -
> -Upstream-Status: Submitted
> [https://github.com/util-linux/util-linux/pull/2615]
> -Signed-off-by: Khem Raj <raj.khem@gmail.com>
> -
> ----
> - login-utils/su-common.c | 10 +++++++---
> - 1 file changed, 7 insertions(+), 3 deletions(-)
> -
> -diff --git a/login-utils/su-common.c b/login-utils/su-common.c -index
> b674920..3297c78 100644
> ---- a/login-utils/su-common.c
> -+++ b/login-utils/su-common.c
> -@@ -26,6 +26,7 @@
> - #include <sys/types.h>
> - #include <pwd.h>
> - #include <grp.h>
> -+#include <libgen.h>
> - #include <security/pam_appl.h>
> - #ifdef HAVE_SECURITY_PAM_MISC_H
> - # include <security/pam_misc.h>
> -@@ -840,17 +841,20 @@ static void run_shell(
> - su->simulate_login ? " login" : "",
> - su->fast_startup ? " fast-start" : ""));
> -
> -+ char* tmp = xstrdup(shell);
> - if (su->simulate_login) {
> - char *arg0;
> - char *shell_basename;
> -
> -- shell_basename = basename(shell);
> -+ shell_basename = basename(tmp);
> - arg0 = xmalloc(strlen(shell_basename) + 2);
> - arg0[0] = '-';
> - strcpy(arg0 + 1, shell_basename);
> - args[0] = arg0;
> -- } else
> -- args[0] = basename(shell);
> -+ } else {
> -+ args[0] = basename(tmp);
> -+ }
> -+ free(tmp);
> -
> - if (su->fast_startup)
> - args[argno++] = "-f";
> diff --git
> a/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch
> b/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch
> index 85ad7a5575..8ea00dbb95 100644
> ---
> a/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.patch
> +++ b/meta/recipes-core/util-linux/util-linux/avoid_parallel_tests.pat
> +++ ch
> @@ -1,4 +1,4 @@
> -From 0b05e4695a0616badef71dfa459a00ef6ff1b521 Mon Sep 17 00:00:00
> 2001
> +From da58b4150f6932de36c962ea657713bcf4ea44be Mon Sep 17 00:00:00
> +2001
> From: Tudor Florea <tudor.florea@enea.com>
> Date: Mon, 14 Jun 2021 14:00:31 +0200
> Subject: [PATCH] util-linux: Add ptest @@ -9,13 +9,12 @@ Revert
> run.sh script accordingly to serialize running tests
>
> Signed-off-by: Tudor Florea <tudor.florea@enea.com>
> Upstream-Status: Inappropriate
> -
> ---
> configure.ac | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/configure.ac b/configure.ac -index 890212f..870e817
> 100644
> +index 651ef2b..2a8012e 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -11,7 +11,7 @@ AC_CONFIG_MACRO_DIR([m4]) diff --git
> a/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch
> b/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch
> index 75adeca188..74abdc2038 100644
> --- a/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch
> +++ b/meta/recipes-core/util-linux/util-linux/configure-sbindir.patch
> @@ -1,4 +1,4 @@
> -From c79222a9a5e3425c55e150edc0b7ac59c573aa2f Mon Sep 17 00:00:00
> 2001
> +From 0387d71516c978899cfd556ca512f530a212b4a9 Mon Sep 17 00:00:00
> +2001
> From: Phil Blundell <pb@pbcl.net>
> Date: Mon, 24 Sep 2012 07:24:51 +0100
> Subject: [PATCH] util-linux: Ensure that ${sbindir} is respected @@
> -9,16 +9,15 @@ fix the test, the [ ] syntax was getting eaten by
> autoconf
> Signed-off-by: Phil Blundell <pb@pbcl.net>
> Signed-off-by: Saul Wold <sgw@linux.intel.com
> Upstream-Status: Inappropriate [configuration]
> -
> ---
> configure.ac | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/configure.ac b/configure.ac -index 36c24b4..890212f
> 100644
> +index 23594ff..651ef2b 100644
> --- a/configure.ac
> +++ b/configure.ac
> -@@ -102,7 +102,10 @@ AC_SUBST([runstatedir])
> +@@ -110,7 +110,10 @@ AC_SUBST([runstatedir])
> usrbin_execdir='${exec_prefix}/bin'
> AC_SUBST([usrbin_execdir])
>
> diff --git
> a/meta/recipes-core/util-linux/util-linux/display_testname_for_subtest
> .patch
> b/meta/recipes-core/util-linux/util-linux/display_testname_for_subtest
> .patch
> index 815ae9c915..871b0b2d30 100644
> ---
> a/meta/recipes-core/util-linux/util-linux/display_testname_for_subtest
> .patch
> +++ b/meta/recipes-core/util-linux/util-linux/display_testname_for_sub
> +++ test.patch
> @@ -1,20 +1,19 @@
> -From fc5de1de898fd1a372a2fd2fa493dc57323a029d Mon Sep 17 00:00:00
> 2001
> +From 45450d0339cd7ee27f53c0f2fac1cc74ed9bbfb8 Mon Sep 17 00:00:00
> +2001
> From: Tudor Florea <tudor.florea@enea.com>
> Date: Thu, 3 Dec 2015 04:08:00 +0100
> Subject: [PATCH] Display testname for subtest
>
> Signed-off-by: Tudor Florea <tudor.florea@enea.com>
> Upstream-Status: Pending
> -
> ---
> tests/functions.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/functions.sh b/tests/functions.sh -index
> 5a562a3..098145e 100644
> +index 5fe5ba0..a6c703e 100644
> --- a/tests/functions.sh
> +++ b/tests/functions.sh
> -@@ -437,7 +437,7 @@ function ts_init_subtest {
> +@@ -450,7 +450,7 @@ function ts_init_subtest {
>
> if [ "$TS_PARSABLE" != "yes" ]; then
> [ $TS_NSUBTESTS -eq 1 ] && echo
> diff --git a/meta/recipes-core/util-linux/util-linux/mit-license.patch
> b/meta/recipes-core/util-linux/util-linux/mit-license.patch
> deleted file mode 100644
> index afbec98f18..0000000000
> --- a/meta/recipes-core/util-linux/util-linux/mit-license.patch
> +++ /dev/null
> @@ -1,45 +0,0 @@
> -From 5b8fab1584017d9d9be008c23b90128bba41a7b5 Mon Sep 17 00:00:00
> 2001
> -From: Richard Purdie <richard.purdie@linuxfoundation.org>
> -Date: Thu, 28 Mar 2024 12:16:57 +0000
> -Subject: [PATCH] README.licensing/flock: Add MIT license mention
> -
> -Looking at the license text, flock.c is under the MIT license (see
> -https://spdx.org/licenses/MIT).
> -
> -Add an SPDX license identifier header and add to the list of licenses
> the -source so everything is correctly listed/identified.
> -
> -Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> -
> -Upstream-Status: Submitted
> [https://github.com/util-linux/util-linux/pull/2870]
> -
> ----
> - README.licensing | 2 ++
> - sys-utils/flock.c | 4 +++-
> - 2 files changed, 5 insertions(+), 1 deletion(-)
> -
> -diff --git a/README.licensing b/README.licensing -index
> 4454f8392a..535ad34813 100644
> ---- a/README.licensing
> -+++ b/README.licensing
> -@@ -12,6 +12,8 @@ There is code under:
> -
> - * LGPL-2.1-or-later - GNU Lesser General Public License 2.1 or any later version
> -
> -+ * MIT - MIT License
> -+
> - * BSD-2-Clause - Simplified BSD License
> -
> - * BSD-3-Clause - BSD 3-Clause "New" or "Revised" License
> -diff --git a/sys-utils/flock.c b/sys-utils/flock.c -index
> fed29d7270..7d878ff810 100644
> ---- a/sys-utils/flock.c
> -+++ b/sys-utils/flock.c
> -@@ -1,4 +1,6 @@
> --/* Copyright 2003-2005 H. Peter Anvin - All Rights Reserved
> -+/* SPDX-License-Identifier: MIT
> -+ *
> -+ * Copyright 2003-2005 H. Peter Anvin - All Rights Reserved
> - *
> - * Permission is hereby granted, free of charge, to any person
> - * obtaining a copy of this software and associated documentation
> diff --git a/meta/recipes-core/util-linux/util-linux/ptest.patch
> b/meta/recipes-core/util-linux/util-linux/ptest.patch
> index 6221de7182..7345926b88 100644
> --- a/meta/recipes-core/util-linux/util-linux/ptest.patch
> +++ b/meta/recipes-core/util-linux/util-linux/ptest.patch
> @@ -1,24 +1,23 @@
> -From d0a69ce80c579cbb7627a2f20e8b92e006a8d8ad Mon Sep 17 00:00:00
> 2001
> +From f9be73c3e2b0a4f0923950dcb058be85d3ee8ed7 Mon Sep 17 00:00:00
> +2001
> From: Tudor Florea <tudor.florea@enea.com>
> Date: Thu, 3 Dec 2015 04:08:00 +0100
> Subject: [PATCH] Define TESTS variable
>
> Signed-off-by: Tudor Florea <tudor.florea@enea.com>
> Upstream-Status: Pending
> -
> ---
> Makefile.am | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Makefile.am b/Makefile.am -index effbb02..7d2bd1e 100644
> +index 50ab8d0..7e2340d 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> -@@ -57,6 +57,7 @@ systemdsystemunit_DATA =
> +@@ -64,6 +64,7 @@ tmpfiles_DATA =
> dist_bashcompletion_DATA =
> check_PROGRAMS =
> dist_check_SCRIPTS =
> +TESTS = $(check_PROGRAMS)
>
> - PATHFILES =
> - ADOCFILES_COMMON =
> + BUILT_SOURCES =
> +
> diff --git a/meta/recipes-core/util-linux/util-linux_2.39.3.bb
> b/meta/recipes-core/util-linux/util-linux_2.40.1.bb
> similarity index 99%
> rename from meta/recipes-core/util-linux/util-linux_2.39.3.bb
> rename to meta/recipes-core/util-linux/util-linux_2.40.1.bb
> index 2cd7750afc..eceb0495a7 100644
> --- a/meta/recipes-core/util-linux/util-linux_2.39.3.bb
> +++ b/meta/recipes-core/util-linux/util-linux_2.40.1.bb
> @@ -90,7 +90,7 @@ EXTRA_OECONF:append = " --disable-hwclock-gplv3"
> # build host versions during development # PACKAGECONFIG ?= "pcre2"
> -PACKAGECONFIG:class-target ?= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'chfn-chsh pam', '', d)}"
> +PACKAGECONFIG:class-target ?= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'chfn-chsh pam lastlog2', '', d)}"
> # inherit manpages requires this to be present, however util-linux
> does not have # configuration options, and installs manpages always
> PACKAGECONFIG[manpages] = ""
> @@ -106,6 +106,7 @@ PACKAGECONFIG[pcre2] = ",,libpcre2"
> PACKAGECONFIG[cryptsetup] = "--with-cryptsetup,--without-cryptsetup,cryptsetup"
> PACKAGECONFIG[chfn-chsh] = "--enable-chfn-chsh,--disable-chfn-chsh,"
> PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
> +PACKAGECONFIG[lastlog2] = "--enable-liblastlog2,--disable-liblastlog2,sqlite3"
>
> EXTRA_OEMAKE = "ARCH=${TARGET_ARCH} CPU= CPUOPT= 'OPT=${CFLAGS}'"
>
> --
> 2.34.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#199557): https://lists.openembedded.org/g/openembedded-core/message/199557
> Mute This Topic: https://lists.openembedded.org/mt/106199572/3617179
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [OE-core][PATCH 1/6] systemd/systemd-boot: upgrade from 255.4 to 255.6
2024-05-21 10:22 ` Chen, Qi
@ 2024-05-21 11:21 ` Alexander Kanavin
0 siblings, 0 replies; 14+ messages in thread
From: Alexander Kanavin @ 2024-05-21 11:21 UTC (permalink / raw)
To: Qi.Chen; +Cc: Alexandre Belloni, openembedded-core@lists.openembedded.org
This patch was sent by Bruce in '[OE-core] [PATCH] systemd: fix build
against 6.9 libc-headers'.
Alex
On Tue, 21 May 2024 at 12:22, Chen Qi via lists.openembedded.org
<Qi.Chen=windriver.com@lists.openembedded.org> wrote:
>
> I didn't find the 0001-basic-add-PIDFS-magic-31709.patch file in poky.
> Is it from some other people's patch? If so, then that patch could be dropped as the error message says 'can be reverse-applied'.
>
> Regards,
> Qi
>
> -----Original Message-----
> From: Alexandre Belloni <alexandre.belloni@bootlin.com>
> Sent: Tuesday, May 21, 2024 5:38 PM
> To: Chen, Qi <Qi.Chen@windriver.com>
> Cc: openembedded-core@lists.openembedded.org
> Subject: Re: [OE-core][PATCH 1/6] systemd/systemd-boot: upgrade from 255.4 to 255.6
>
> This also fails on the autobuilders:
>
> ERROR: systemd-1_255.6-r0 do_patch: Applying patch '0001-basic-add-PIDFS-magic-31709.patch' on target directory '/home/pokybuild/yocto-worker/qemux86-alt/build/build/tmp/work/core2-32-poky-linux/systemd/255.6/git'
> CmdError('quilt --quiltrc /home/pokybuild/yocto-worker/qemux86-alt/build/build/tmp/work/core2-32-poky-linux/systemd/255.6/recipe-sysroot-native/etc/quiltrc push', 0, 'stdout: Applying patch 0001-basic-add-PIDFS-magic-31709.patch
> patching file src/basic/filesystems-gperf.gperf
> Hunk #1 FAILED at 91.
> 1 out of 1 hunk FAILED -- rejects in file src/basic/filesystems-gperf.gperf
> patching file src/basic/missing_magic.h
> Hunk #1 succeeded at 133 with fuzz 1 (offset 5 lines).
> Patch 0001-basic-add-PIDFS-magic-31709.patch can be reverse-applied
> stderr: ')
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/101/builds/7736/steps/13/logs/stdio
>
> On 20/05/2024 16:10:35+0800, Chen Qi via lists.openembedded.org wrote:
> > From: Chen Qi <Qi.Chen@windriver.com>
> >
> > musl patches are refreshed to avoid 'patch-fuzz' error.
> >
> > Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> > ---
> > ..._255.4.bb => systemd-boot-native_255.6.bb} | 0
> > ...md-boot_255.4.bb => systemd-boot_255.6.bb} | 0
> > meta/recipes-core/systemd/systemd.inc | 2 +-
> > ...1-missing_type.h-add-comparison_fn_t.patch | 7 +--
> > ...k-parse_printf_format-implementation.patch | 13 ++---
> > ...tall-dependency-links-at-install-tim.patch | 9 +--
> > ...missing.h-check-for-missing-strndupa.patch | 55 +++++++++----------
> > ...OB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch | 14 ++---
> > ...005-add-missing-FTW_-macros-for-musl.patch | 7 +--
> > ...06-Use-uintmax_t-for-handling-rlim_t.patch | 11 ++--
> > ...T_SYMLINK_NOFOLLOW-flag-to-faccessat.patch | 11 ++--
> > ...patible-basename-for-non-glibc-syste.patch | 8 +--
> > ...implment-systemd-sysv-install-for-OE.patch | 5 +-
> > ...uffering-when-writing-to-oom_score_a.patch | 9 +--
> > ...compliant-strerror_r-from-GNU-specif.patch | 13 ++---
> > ...definition-of-prctl_mm_map-structure.patch | 7 +--
> > ...-not-disable-buffer-in-writing-files.patch | 35 ++++++------
> > .../0013-Handle-__cpu_mask-usage.patch | 7 +--
> > .../systemd/0014-Handle-missing-gshadow.patch | 7 +--
> > ...l.h-Define-MIPS-ABI-defines-for-musl.patch | 11 ++--
> > ...ass-correct-parameters-to-getdents64.patch | 7 +--
> > .../0017-Adjust-for-musl-headers.patch | 17 +++---
> > ...trerror-is-assumed-to-be-GNU-specifi.patch | 9 +--
> > ...util-Make-STRERROR-portable-for-musl.patch | 7 +--
> > ...ake-malloc_trim-conditional-on-glibc.patch | 9 +--
> > ...hared-Do-not-use-malloc_info-on-musl.patch | 7 +--
> > ...22-avoid-missing-LOCK_EX-declaration.patch | 9 +--
> > .../{systemd_255.4.bb => systemd_255.6.bb} | 0
> > 28 files changed, 111 insertions(+), 185 deletions(-)
> > rename meta/recipes-core/systemd/{systemd-boot-native_255.4.bb => systemd-boot-native_255.6.bb} (100%)
> > rename meta/recipes-core/systemd/{systemd-boot_255.4.bb => systemd-boot_255.6.bb} (100%)
> > rename meta/recipes-core/systemd/{systemd_255.4.bb => systemd_255.6.bb} (100%)
> >
> > diff --git a/meta/recipes-core/systemd/systemd-boot-native_255.4.bb b/meta/recipes-core/systemd/systemd-boot-native_255.6.bb
> > similarity index 100%
> > rename from meta/recipes-core/systemd/systemd-boot-native_255.4.bb
> > rename to meta/recipes-core/systemd/systemd-boot-native_255.6.bb
> > diff --git a/meta/recipes-core/systemd/systemd-boot_255.4.bb b/meta/recipes-core/systemd/systemd-boot_255.6.bb
> > similarity index 100%
> > rename from meta/recipes-core/systemd/systemd-boot_255.4.bb
> > rename to meta/recipes-core/systemd/systemd-boot_255.6.bb
> > diff --git a/meta/recipes-core/systemd/systemd.inc b/meta/recipes-core/systemd/systemd.inc
> > index a35db5091e..8bda47dd38 100644
> > --- a/meta/recipes-core/systemd/systemd.inc
> > +++ b/meta/recipes-core/systemd/systemd.inc
> > @@ -15,7 +15,7 @@ LICENSE:libsystemd = "LGPL-2.1-or-later"
> > LIC_FILES_CHKSUM = "file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \
> > file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c"
> >
> > -SRCREV = "387a14a7b67b8b76adaed4175e14bb7e39b2f738"
> > +SRCREV = "5810c25792d4268282dd3892af1a253b690423c9"
> > SRCBRANCH = "v255-stable"
> > SRC_URI = "git://github.com/systemd/systemd-stable.git;protocol=https;branch=${SRCBRANCH}"
> >
> > diff --git a/meta/recipes-core/systemd/systemd/0001-missing_type.h-add-comparison_fn_t.patch b/meta/recipes-core/systemd/systemd/0001-missing_type.h-add-comparison_fn_t.patch
> > index 2aa5dee6b5..49871d16a8 100644
> > --- a/meta/recipes-core/systemd/systemd/0001-missing_type.h-add-comparison_fn_t.patch
> > +++ b/meta/recipes-core/systemd/systemd/0001-missing_type.h-add-comparison_fn_t.patch
> > @@ -1,7 +1,7 @@
> > -From 01195eb9f7d59139fb45df506ac6b3968c14a57f Mon Sep 17 00:00:00 2001
> > +From d4b0bb9c7651017985fdd75469f37c34ce2f2c50 Mon Sep 17 00:00:00 2001
> > From: Chen Qi <Qi.Chen@windriver.com>
> > Date: Mon, 25 Feb 2019 13:55:12 +0800
> > -Subject: [PATCH 01/22] missing_type.h: add comparison_fn_t
> > +Subject: [PATCH] missing_type.h: add comparison_fn_t
> >
> > Make it work with musl where comparison_fn_t and is not provided.
> >
> > @@ -56,6 +56,3 @@ index ae91534198..7f67eea38b 100644
> >
> > const char * const catalog_file_dirs[] = {
> > "/usr/local/lib/systemd/catalog/",
> > ---
> > -2.34.1
> > -
> > diff --git a/meta/recipes-core/systemd/systemd/0002-add-fallback-parse_printf_format-implementation.patch b/meta/recipes-core/systemd/systemd/0002-add-fallback-parse_printf_format-implementation.patch
> > index 900a931632..593d6261e1 100644
> > --- a/meta/recipes-core/systemd/systemd/0002-add-fallback-parse_printf_format-implementation.patch
> > +++ b/meta/recipes-core/systemd/systemd/0002-add-fallback-parse_printf_format-implementation.patch
> > @@ -1,7 +1,7 @@
> > -From 872b72739e62123867ce6c4f82aa37de24cc3f75 Mon Sep 17 00:00:00 2001
> > +From 776913624aaf696a3b2920b8d7506b3aae042bf1 Mon Sep 17 00:00:00 2001
> > From: Alexander Kanavin <alex.kanavin@gmail.com>
> > Date: Sat, 22 May 2021 20:26:24 +0200
> > -Subject: [PATCH 02/22] add fallback parse_printf_format implementation
> > +Subject: [PATCH] add fallback parse_printf_format implementation
> >
> > Upstream-Status: Inappropriate [musl specific]
> >
> > @@ -22,10 +22,10 @@ Signed-off-by: Scott Murray <scott.murray@konsulko.com>
> > create mode 100644 src/basic/parse-printf-format.h
> >
> > diff --git a/meson.build b/meson.build
> > -index 7419e2b0b0..01fd3ffc19 100644
> > +index 187e7b216d..c4694a9ddc 100644
> > --- a/meson.build
> > +++ b/meson.build
> > -@@ -725,6 +725,7 @@ endif
> > +@@ -727,6 +727,7 @@ endif
> > foreach header : ['crypt.h',
> > 'linux/memfd.h',
> > 'linux/vm_sockets.h',
> > @@ -34,7 +34,7 @@ index 7419e2b0b0..01fd3ffc19 100644
> > 'threads.h',
> > 'valgrind/memcheck.h',
> > diff --git a/src/basic/meson.build b/src/basic/meson.build
> > -index d7450d8b44..c3e3daf4bd 100644
> > +index 111253e3a5..bdaa2fc5e4 100644
> > --- a/src/basic/meson.build
> > +++ b/src/basic/meson.build
> > @@ -183,6 +183,11 @@ endforeach
> > @@ -429,6 +429,3 @@ index be23b2fe75..69a2eb6404 100644
> >
> > #define SNDBUF_SIZE (8*1024*1024)
> >
> > ---
> > -2.34.1
> > -
> > diff --git a/meta/recipes-core/systemd/systemd/0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch b/meta/recipes-core/systemd/systemd/0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch
> > index be231cf6b2..4c73c924ef 100644
> > --- a/meta/recipes-core/systemd/systemd/0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch
> > +++ b/meta/recipes-core/systemd/systemd/0002-binfmt-Don-t-install-dependency-links-at-install-tim.patch
> > @@ -1,8 +1,8 @@
> > -From 29a58009a172e369ad7166e16dab2f4945c6b0d2 Mon Sep 17 00:00:00 2001
> > +From 661a34c3de30d4ff4a2a62c9a0573c6ce55424e4 Mon Sep 17 00:00:00 2001
> > From: Chen Qi <Qi.Chen@windriver.com>
> > Date: Thu, 21 Feb 2019 16:23:24 +0800
> > -Subject: [PATCH 1/2] binfmt: Don't install dependency links at install time
> > - for the binfmt services
> > +Subject: [PATCH] binfmt: Don't install dependency links at install time for
> > + the binfmt services
> >
> > use [Install] blocks so that they get created when the service is enabled
> > like a traditional service.
> > @@ -74,6 +74,3 @@ index 6861c76674..531e9fbd90 100644
> > +
> > +[Install]
> > +WantedBy=sysinit.target
> > ---
> > -2.34.1
> > -
> > diff --git a/meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch b/meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch
> > index 5595b5bc23..f09f2114d3 100644
> > --- a/meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch
> > +++ b/meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch
> > @@ -1,7 +1,7 @@
> > -From 87f1d38f40c5fe9cadf2b2de442473e4e5605788 Mon Sep 17 00:00:00 2001
> > +From 843c6c94bf6a29eaceeefafa420cd86a32e844d2 Mon Sep 17 00:00:00 2001
> > From: Chen Qi <Qi.Chen@windriver.com>
> > Date: Mon, 25 Feb 2019 14:18:21 +0800
> > -Subject: [PATCH 03/22] src/basic/missing.h: check for missing strndupa
> > +Subject: [PATCH] src/basic/missing.h: check for missing strndupa
> >
> > include missing.h for definition of strndupa
> >
> > @@ -75,10 +75,10 @@ Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> > 51 files changed, 62 insertions(+)
> >
> > diff --git a/meson.build b/meson.build
> > -index 01fd3ffc19..61a872b753 100644
> > +index c4694a9ddc..d376b76afa 100644
> > --- a/meson.build
> > +++ b/meson.build
> > -@@ -567,6 +567,7 @@ foreach ident : ['secure_getenv', '__secure_getenv']
> > +@@ -569,6 +569,7 @@ foreach ident : ['secure_getenv', '__secure_getenv']
> > endforeach
> >
> > foreach ident : [
> > @@ -87,7 +87,7 @@ index 01fd3ffc19..61a872b753 100644
> > ['gettid', '''#include <sys/types.h>
> > #include <unistd.h>'''],
> > diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c
> > -index 5ac9f904a9..99d5122dd7 100644
> > +index b2032adaa5..ee9201826d 100644
> > --- a/src/backlight/backlight.c
> > +++ b/src/backlight/backlight.c
> > @@ -20,6 +20,7 @@
> > @@ -111,7 +111,7 @@ index 18b16ecc0e..d2be79622f 100644
> > static int cg_enumerate_items(const char *controller, const char *path, FILE **ret, const char *item) {
> > _cleanup_free_ char *fs = NULL;
> > diff --git a/src/basic/env-util.c b/src/basic/env-util.c
> > -index d3bf73385f..16b17358ca 100644
> > +index a97651d7af..09fa601250 100644
> > --- a/src/basic/env-util.c
> > +++ b/src/basic/env-util.c
> > @@ -19,6 +19,7 @@
> > @@ -123,7 +123,7 @@ index d3bf73385f..16b17358ca 100644
> > /* We follow bash for the character set. Different shells have different rules. */
> > #define VALID_BASH_ENV_NAME_CHARS \
> > diff --git a/src/basic/log.c b/src/basic/log.c
> > -index 1470611a75..9924ec2b9a 100644
> > +index 7a443005f6..eed69a48ee 100644
> > --- a/src/basic/log.c
> > +++ b/src/basic/log.c
> > @@ -40,6 +40,7 @@
> > @@ -251,7 +251,7 @@ index f9014dc560..1d7840a5b5 100644
> > static clockid_t map_clock_id(clockid_t c) {
> >
> > diff --git a/src/boot/bless-boot.c b/src/boot/bless-boot.c
> > -index 0c0b4f23c7..68fe5ca509 100644
> > +index 12dfdf76fa..e66332519a 100644
> > --- a/src/boot/bless-boot.c
> > +++ b/src/boot/bless-boot.c
> > @@ -22,6 +22,7 @@
> > @@ -263,7 +263,7 @@ index 0c0b4f23c7..68fe5ca509 100644
> > static char **arg_path = NULL;
> >
> > diff --git a/src/core/dbus-cgroup.c b/src/core/dbus-cgroup.c
> > -index 4237e694c0..05f9d9d9a9 100644
> > +index 8a9570fd21..ac4202e5ce 100644
> > --- a/src/core/dbus-cgroup.c
> > +++ b/src/core/dbus-cgroup.c
> > @@ -25,6 +25,7 @@
> > @@ -275,7 +275,7 @@ index 4237e694c0..05f9d9d9a9 100644
> >
> > BUS_DEFINE_PROPERTY_GET(bus_property_get_tasks_max, "t", CGroupTasksMax, cgroup_tasks_max_resolve);
> > diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c
> > -index 4daa1cefd3..2c77901471 100644
> > +index 2d05ba7e1d..61a7de0037 100644
> > --- a/src/core/dbus-execute.c
> > +++ b/src/core/dbus-execute.c
> > @@ -42,6 +42,7 @@
> > @@ -287,10 +287,10 @@ index 4daa1cefd3..2c77901471 100644
> > BUS_DEFINE_PROPERTY_GET_ENUM(bus_property_get_exec_output, exec_output, ExecOutput);
> > static BUS_DEFINE_PROPERTY_GET_ENUM(property_get_exec_input, exec_input, ExecInput);
> > diff --git a/src/core/dbus-util.c b/src/core/dbus-util.c
> > -index d680a64268..e59f48103e 100644
> > +index 7bb026af48..a86128e40c 100644
> > --- a/src/core/dbus-util.c
> > +++ b/src/core/dbus-util.c
> > -@@ -9,6 +9,7 @@
> > +@@ -10,6 +10,7 @@
> > #include "unit-printf.h"
> > #include "user-util.h"
> > #include "unit.h"
> > @@ -299,7 +299,7 @@ index d680a64268..e59f48103e 100644
> > int bus_property_get_triggered_unit(
> > sd_bus *bus,
> > diff --git a/src/core/execute.c b/src/core/execute.c
> > -index ef0bf88687..bd3da0c401 100644
> > +index 8dbdfcf369..531bec4c92 100644
> > --- a/src/core/execute.c
> > +++ b/src/core/execute.c
> > @@ -72,6 +72,7 @@
> > @@ -323,7 +323,7 @@ index b8e3f7aadd..8ce8ca68d8 100644
> > #if HAVE_KMOD
> > #include "module-util.h"
> > diff --git a/src/core/service.c b/src/core/service.c
> > -index b9eb40c555..268fe7573b 100644
> > +index 42fffbbd67..80a8d05a19 100644
> > --- a/src/core/service.c
> > +++ b/src/core/service.c
> > @@ -45,6 +45,7 @@
> > @@ -359,7 +359,7 @@ index 016f3baa7f..b1def81313 100644
> > typedef enum MountPointFlags {
> > MOUNT_NOAUTO = 1 << 0,
> > diff --git a/src/journal-remote/journal-remote-main.c b/src/journal-remote/journal-remote-main.c
> > -index da0f20d3ce..f22ce41908 100644
> > +index 2d380bc7a7..d3f5612728 100644
> > --- a/src/journal-remote/journal-remote-main.c
> > +++ b/src/journal-remote/journal-remote-main.c
> > @@ -27,6 +27,7 @@
> > @@ -371,7 +371,7 @@ index da0f20d3ce..f22ce41908 100644
> > #define PRIV_KEY_FILE CERTIFICATE_ROOT "/private/journal-remote.pem"
> > #define CERT_FILE CERTIFICATE_ROOT "/certs/journal-remote.pem"
> > diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
> > -index 7f3dcd56a4..41b7cbaaf1 100644
> > +index 87e2f28841..58275f41f1 100644
> > --- a/src/journal/journalctl.c
> > +++ b/src/journal/journalctl.c
> > @@ -77,6 +77,7 @@
> > @@ -383,7 +383,7 @@ index 7f3dcd56a4..41b7cbaaf1 100644
> > #define DEFAULT_FSS_INTERVAL_USEC (15*USEC_PER_MINUTE)
> > #define PROCESS_INOTIFY_INTERVAL 1024 /* Every 1,024 messages processed */
> > diff --git a/src/libsystemd/sd-bus/bus-message.c b/src/libsystemd/sd-bus/bus-message.c
> > -index ff0228081f..9066fcb133 100644
> > +index ab8b06896d..43f9131205 100644
> > --- a/src/libsystemd/sd-bus/bus-message.c
> > +++ b/src/libsystemd/sd-bus/bus-message.c
> > @@ -19,6 +19,7 @@
> > @@ -407,7 +407,7 @@ index c25c40ff37..57a5da704f 100644
> > static int node_vtable_get_userdata(
> > sd_bus *bus,
> > diff --git a/src/libsystemd/sd-bus/bus-socket.c b/src/libsystemd/sd-bus/bus-socket.c
> > -index 3c59d0d615..746922d46f 100644
> > +index 5ade8e99aa..7553cf319d 100644
> > --- a/src/libsystemd/sd-bus/bus-socket.c
> > +++ b/src/libsystemd/sd-bus/bus-socket.c
> > @@ -29,6 +29,7 @@
> > @@ -419,7 +419,7 @@ index 3c59d0d615..746922d46f 100644
> > #define SNDBUF_SIZE (8*1024*1024)
> >
> > diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c
> > -index 4a0259f8bb..aaa90d2223 100644
> > +index 8befc97460..6ee4d4f595 100644
> > --- a/src/libsystemd/sd-bus/sd-bus.c
> > +++ b/src/libsystemd/sd-bus/sd-bus.c
> > @@ -46,6 +46,7 @@
> > @@ -443,7 +443,7 @@ index d988588de0..458df8df9a 100644
> > #define MAX_SIZE (2*1024*1024)
> >
> > diff --git a/src/libsystemd/sd-journal/sd-journal.c b/src/libsystemd/sd-journal/sd-journal.c
> > -index 6b9ff0a4ed..4a5027ad0f 100644
> > +index 7a1dd2569f..d187baad47 100644
> > --- a/src/libsystemd/sd-journal/sd-journal.c
> > +++ b/src/libsystemd/sd-journal/sd-journal.c
> > @@ -44,6 +44,7 @@
> > @@ -455,7 +455,7 @@ index 6b9ff0a4ed..4a5027ad0f 100644
> > #define JOURNAL_FILES_RECHECK_USEC (2 * USEC_PER_SEC)
> >
> > diff --git a/src/login/pam_systemd.c b/src/login/pam_systemd.c
> > -index b8da266e27..4bb8dd9496 100644
> > +index bf45974ca5..2cb7e930c0 100644
> > --- a/src/login/pam_systemd.c
> > +++ b/src/login/pam_systemd.c
> > @@ -35,6 +35,7 @@
> > @@ -503,10 +503,10 @@ index c64e79bdff..eda26b0b9a 100644
> > static void setup_logging_once(void) {
> > static pthread_once_t once = PTHREAD_ONCE_INIT;
> > diff --git a/src/portable/portable.c b/src/portable/portable.c
> > -index d4b448a627..bb26623565 100644
> > +index 3b2a37912f..835a3fdeaa 100644
> > --- a/src/portable/portable.c
> > +++ b/src/portable/portable.c
> > -@@ -40,6 +40,7 @@
> > +@@ -42,6 +42,7 @@
> > #include "strv.h"
> > #include "tmpfile-util.h"
> > #include "user-util.h"
> > @@ -551,7 +551,7 @@ index 8b462b5627..183ce1c18e 100644
> > struct CGroupInfo {
> > char *cgroup_path;
> > diff --git a/src/shared/bus-unit-util.c b/src/shared/bus-unit-util.c
> > -index 4ee9706847..30c8084847 100644
> > +index 50de98941f..d47beccb0b 100644
> > --- a/src/shared/bus-unit-util.c
> > +++ b/src/shared/bus-unit-util.c
> > @@ -50,6 +50,7 @@
> > @@ -599,7 +599,7 @@ index 83e9834bbf..74eaae6f5e 100644
> > enum {
> > IMPORTER_STATE_LINE = 0, /* waiting to read, or reading line */
> > diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c
> > -index a5d04003bd..10392c132d 100644
> > +index 0a31be382f..92d629e7e0 100644
> > --- a/src/shared/logs-show.c
> > +++ b/src/shared/logs-show.c
> > @@ -41,6 +41,7 @@
> > @@ -683,7 +683,7 @@ index ed22c8b679..19ebe20237 100644
> > UdevEvent *udev_event_new(sd_device *dev, usec_t exec_delay_usec, sd_netlink *rtnl, int log_level) {
> > UdevEvent *event;
> > diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
> > -index 5f12002394..febe345b4c 100644
> > +index c242549654..e5b8df5c2d 100644
> > --- a/src/udev/udev-rules.c
> > +++ b/src/udev/udev-rules.c
> > @@ -41,6 +41,7 @@
> > @@ -694,6 +694,3 @@ index 5f12002394..febe345b4c 100644
> >
> > #define RULES_DIRS ((const char* const*) CONF_PATHS_STRV("udev/rules.d"))
> >
> > ---
> > -2.34.1
> > -
> > diff --git a/meta/recipes-core/systemd/systemd/0004-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch b/meta/recipes-core/systemd/systemd/0004-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch
> > index 15877bea88..15d25e9f19 100644
> > --- a/meta/recipes-core/systemd/systemd/0004-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch
> > +++ b/meta/recipes-core/systemd/systemd/0004-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch
> > @@ -1,8 +1,7 @@
> > -From 5325ab5813617f35f03806ec420829dde7104387 Mon Sep 17 00:00:00 2001
> > +From 2903e42c7cd727a2374d21b78950308de792ebe8 Mon Sep 17 00:00:00 2001
> > From: Chen Qi <Qi.Chen@windriver.com>
> > Date: Mon, 25 Feb 2019 14:56:21 +0800
> > -Subject: [PATCH 04/22] don't fail if GLOB_BRACE and GLOB_ALTDIRFUNC is not
> > - defined
> > +Subject: [PATCH] don't fail if GLOB_BRACE and GLOB_ALTDIRFUNC is not defined
> >
> > If the standard library doesn't provide brace
> > expansion users just won't get it.
> > @@ -115,7 +114,7 @@ index 9b3e73cce0..3790ba3be5 100644
> >
> > (void) rm_rf(template, REMOVE_ROOT|REMOVE_PHYSICAL);
> > diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
> > -index 230ec09b97..2cc5f391d7 100644
> > +index 6a1c7725a1..138b3ac561 100644
> > --- a/src/tmpfiles/tmpfiles.c
> > +++ b/src/tmpfiles/tmpfiles.c
> > @@ -73,6 +73,12 @@
> > @@ -131,7 +130,7 @@ index 230ec09b97..2cc5f391d7 100644
> > /* This reads all files listed in /etc/tmpfiles.d/?*.conf and creates
> > * them in the file system. This is intended to be used to create
> > * properly owned directories beneath /tmp, /var/tmp, /run, which are
> > -@@ -2434,7 +2440,9 @@ finish:
> > +@@ -2426,7 +2432,9 @@ finish:
> >
> > static int glob_item(Context *c, Item *i, action_t action) {
> > _cleanup_globfree_ glob_t g = {
> > @@ -141,7 +140,7 @@ index 230ec09b97..2cc5f391d7 100644
> > };
> > int r = 0, k;
> >
> > -@@ -2461,7 +2469,9 @@ static int glob_item_recursively(
> > +@@ -2453,7 +2461,9 @@ static int glob_item_recursively(
> > fdaction_t action) {
> >
> > _cleanup_globfree_ glob_t g = {
> > @@ -151,6 +150,3 @@ index 230ec09b97..2cc5f391d7 100644
> > };
> > int r = 0, k;
> >
> > ---
> > -2.34.1
> > -
> > diff --git a/meta/recipes-core/systemd/systemd/0005-add-missing-FTW_-macros-for-musl.patch b/meta/recipes-core/systemd/systemd/0005-add-missing-FTW_-macros-for-musl.patch
> > index a1dfca22cd..deb0e83b6d 100644
> > --- a/meta/recipes-core/systemd/systemd/0005-add-missing-FTW_-macros-for-musl.patch
> > +++ b/meta/recipes-core/systemd/systemd/0005-add-missing-FTW_-macros-for-musl.patch
> > @@ -1,7 +1,7 @@
> > -From dad7f897c0de654fa5592fda3e90f874639849f9 Mon Sep 17 00:00:00 2001
> > +From dcd9639657e4122b7665b01a067219f990ee3ace Mon Sep 17 00:00:00 2001
> > From: Chen Qi <Qi.Chen@windriver.com>
> > Date: Mon, 25 Feb 2019 15:00:06 +0800
> > -Subject: [PATCH 05/22] add missing FTW_ macros for musl
> > +Subject: [PATCH] add missing FTW_ macros for musl
> >
> > This is to avoid build failures like below for musl.
> >
> > @@ -39,6 +39,3 @@ index 8684d064ec..70fc2b5376 100644
> >
> > static char **list_nftw = NULL;
> >
> > ---
> > -2.34.1
> > -
> > diff --git a/meta/recipes-core/systemd/systemd/0006-Use-uintmax_t-for-handling-rlim_t.patch b/meta/recipes-core/systemd/systemd/0006-Use-uintmax_t-for-handling-rlim_t.patch
> > index 4be14b72ec..f02675604d 100644
> > --- a/meta/recipes-core/systemd/systemd/0006-Use-uintmax_t-for-handling-rlim_t.patch
> > +++ b/meta/recipes-core/systemd/systemd/0006-Use-uintmax_t-for-handling-rlim_t.patch
> > @@ -1,7 +1,7 @@
> > -From 96e975a2412a20e5f80bd3ab144057d275eb8597 Mon Sep 17 00:00:00 2001
> > +From c58933386caa8e45b5e814ec4ff210b18ab401da Mon Sep 17 00:00:00 2001
> > From: Chen Qi <Qi.Chen@windriver.com>
> > Date: Mon, 25 Feb 2019 15:12:41 +0800
> > -Subject: [PATCH 06/22] Use uintmax_t for handling rlim_t
> > +Subject: [PATCH] Use uintmax_t for handling rlim_t
> >
> > PRIu{32,64} is not right format to represent rlim_t type
> > therefore use %ju and typecast the rlim_t variables to
> > @@ -86,10 +86,10 @@ index c1f0b2b974..61c5412582 100644
> > return 1;
> > }
> > diff --git a/src/core/execute.c b/src/core/execute.c
> > -index bd3da0c401..df1870fd2f 100644
> > +index 531bec4c92..602a95f674 100644
> > --- a/src/core/execute.c
> > +++ b/src/core/execute.c
> > -@@ -1045,9 +1045,9 @@ void exec_context_dump(const ExecContext *c, FILE* f, const char *prefix) {
> > +@@ -1041,9 +1041,9 @@ void exec_context_dump(const ExecContext *c, FILE* f, const char *prefix) {
> > for (unsigned i = 0; i < RLIM_NLIMITS; i++)
> > if (c->rlimit[i]) {
> > fprintf(f, "%sLimit%s: " RLIM_FMT "\n",
> > @@ -101,6 +101,3 @@ index bd3da0c401..df1870fd2f 100644
> > }
> >
> > if (c->ioprio_set) {
> > ---
> > -2.34.1
> > -
> > diff --git a/meta/recipes-core/systemd/systemd/0007-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch b/meta/recipes-core/systemd/systemd/0007-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch
> > index 8d6084239e..1d4ce33712 100644
> > --- a/meta/recipes-core/systemd/systemd/0007-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch
> > +++ b/meta/recipes-core/systemd/systemd/0007-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch
> > @@ -1,7 +1,7 @@
> > -From 4842cff4f1329f0b5034b529d56f8ad1f234ac4c Mon Sep 17 00:00:00 2001
> > +From 5bf8235bc5c802908aa5d95740350927d87e953a Mon Sep 17 00:00:00 2001
> > From: Andre McCurdy <armccurdy@gmail.com>
> > Date: Tue, 10 Oct 2017 14:33:30 -0700
> > -Subject: [PATCH 07/22] don't pass AT_SYMLINK_NOFOLLOW flag to faccessat()
> > +Subject: [PATCH] don't pass AT_SYMLINK_NOFOLLOW flag to faccessat()
> >
> > Avoid using AT_SYMLINK_NOFOLLOW flag. It doesn't seem like the right
> > thing to do and it's not portable (not supported by musl). See:
> > @@ -31,7 +31,7 @@ Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
> > 2 files changed, 23 insertions(+), 4 deletions(-)
> >
> > diff --git a/src/basic/fs-util.h b/src/basic/fs-util.h
> > -index 1023ab73ca..c78ff6f27f 100644
> > +index 6a1e2e76d1..c3f7235e09 100644
> > --- a/src/basic/fs-util.h
> > +++ b/src/basic/fs-util.h
> > @@ -49,8 +49,27 @@ int futimens_opath(int fd, const struct timespec ts[2]);
> > @@ -64,7 +64,7 @@ index 1023ab73ca..c78ff6f27f 100644
> > int touch_file(const char *path, bool parents, usec_t stamp, uid_t uid, gid_t gid, mode_t mode);
> >
> > diff --git a/src/shared/base-filesystem.c b/src/shared/base-filesystem.c
> > -index 569ef466c3..7ae921a113 100644
> > +index a4e2dae245..67aa8ea1f2 100644
> > --- a/src/shared/base-filesystem.c
> > +++ b/src/shared/base-filesystem.c
> > @@ -145,7 +145,7 @@ int base_filesystem_create_fd(int fd, const char *root, uid_t uid, gid_t gid) {
> > @@ -94,6 +94,3 @@ index 569ef466c3..7ae921a113 100644
> > continue;
> > }
> >
> > ---
> > -2.34.1
> > -
> > diff --git a/meta/recipes-core/systemd/systemd/0008-Define-glibc-compatible-basename-for-non-glibc-syste.patch b/meta/recipes-core/systemd/systemd/0008-Define-glibc-compatible-basename-for-non-glibc-syste.patch
> > index c1a8bb19fe..1ab23553f9 100644
> > --- a/meta/recipes-core/systemd/systemd/0008-Define-glibc-compatible-basename-for-non-glibc-syste.patch
> > +++ b/meta/recipes-core/systemd/systemd/0008-Define-glibc-compatible-basename-for-non-glibc-syste.patch
> > @@ -1,8 +1,7 @@
> > -From bab07e779ff23d5593bb118efaaa31b60a6dce87 Mon Sep 17 00:00:00 2001
> > +From d98f6bd4d8acdc4c1a5bff4c699f5004a6ebccce Mon Sep 17 00:00:00 2001
> > From: Khem Raj <raj.khem@gmail.com>
> > Date: Sun, 27 May 2018 08:36:44 -0700
> > -Subject: [PATCH 08/22] Define glibc compatible basename() for non-glibc
> > - systems
> > +Subject: [PATCH] Define glibc compatible basename() for non-glibc systems
> >
> > Fixes builds with musl, even though systemd is adamant about
> > using non-posix basename implementation, we have a way out
> > @@ -29,6 +28,3 @@ index b6d8be3083..0a29036c4c 100644
> > static inline char* strstr_ptr(const char *haystack, const char *needle) {
> > if (!haystack || !needle)
> > return NULL;
> > ---
> > -2.34.1
> > -
> > diff --git a/meta/recipes-core/systemd/systemd/0008-implment-systemd-sysv-install-for-OE.patch b/meta/recipes-core/systemd/systemd/0008-implment-systemd-sysv-install-for-OE.patch
> > index acff18dc43..8b833ce073 100644
> > --- a/meta/recipes-core/systemd/systemd/0008-implment-systemd-sysv-install-for-OE.patch
> > +++ b/meta/recipes-core/systemd/systemd/0008-implment-systemd-sysv-install-for-OE.patch
> > @@ -1,4 +1,4 @@
> > -From 5712d56f1cd654d2e5d2e9117ff77fe4c299f76b Mon Sep 17 00:00:00 2001
> > +From 5f89867f2b15f9bd411564d04e660cdeedd370ca Mon Sep 17 00:00:00 2001
> > From: Khem Raj <raj.khem@gmail.com>
> > Date: Sat, 5 Sep 2015 06:31:47 +0000
> > Subject: [PATCH] implment systemd-sysv-install for OE
> > @@ -38,6 +38,3 @@ index cb58d8243b..000bdf6165 100755
> > ;;
> > *)
> > usage ;;
> > ---
> > -2.39.2
> > -
> > diff --git a/meta/recipes-core/systemd/systemd/0009-Do-not-disable-buffering-when-writing-to-oom_score_a.patch b/meta/recipes-core/systemd/systemd/0009-Do-not-disable-buffering-when-writing-to-oom_score_a.patch
> > index 3ff0177ae3..98ab397eff 100644
> > --- a/meta/recipes-core/systemd/systemd/0009-Do-not-disable-buffering-when-writing-to-oom_score_a.patch
> > +++ b/meta/recipes-core/systemd/systemd/0009-Do-not-disable-buffering-when-writing-to-oom_score_a.patch
> > @@ -1,7 +1,7 @@
> > -From 25093c5017725b8577c444dfea0f42ad85b43522 Mon Sep 17 00:00:00 2001
> > +From f3943f58f3c8a9d20dcada56eb5ca5f673a49b3d Mon Sep 17 00:00:00 2001
> > From: Chen Qi <Qi.Chen@windriver.com>
> > Date: Wed, 4 Jul 2018 15:00:44 +0800
> > -Subject: [PATCH 09/22] Do not disable buffering when writing to oom_score_adj
> > +Subject: [PATCH] Do not disable buffering when writing to oom_score_adj
> >
> > On musl, disabling buffering when writing to oom_score_adj will
> > cause the following error.
> > @@ -24,7 +24,7 @@ Signed-off-by: Scott Murray <scott.murray@konsulko.com>
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/src/basic/process-util.c b/src/basic/process-util.c
> > -index 201c5596ae..ea51595b6c 100644
> > +index 4492e7ded2..b61a2aba74 100644
> > --- a/src/basic/process-util.c
> > +++ b/src/basic/process-util.c
> > @@ -1716,7 +1716,7 @@ int set_oom_score_adjust(int value) {
> > @@ -36,6 +36,3 @@ index 201c5596ae..ea51595b6c 100644
> > }
> >
> > int get_oom_score_adjust(int *ret) {
> > ---
> > -2.34.1
> > -
> > diff --git a/meta/recipes-core/systemd/systemd/0010-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch b/meta/recipes-core/systemd/systemd/0010-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch
> > index cf59ac7d06..e1ffe4ddb5 100644
> > --- a/meta/recipes-core/systemd/systemd/0010-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch
> > +++ b/meta/recipes-core/systemd/systemd/0010-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch
> > @@ -1,7 +1,7 @@
> > -From 2adbe9773cd65c48eec9df96868d4a738927c8d9 Mon Sep 17 00:00:00 2001
> > +From 5305c5f18236a9d7f2e633ea6ad317e09e8f29d5 Mon Sep 17 00:00:00 2001
> > From: Chen Qi <Qi.Chen@windriver.com>
> > Date: Tue, 10 Jul 2018 15:40:17 +0800
> > -Subject: [PATCH 10/22] distinguish XSI-compliant strerror_r from GNU-specifi
> > +Subject: [PATCH] distinguish XSI-compliant strerror_r from GNU-specifi
> > strerror_r
> >
> > XSI-compliant strerror_r and GNU-specifi strerror_r are different.
> > @@ -24,10 +24,10 @@ Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> > 2 files changed, 15 insertions(+), 1 deletion(-)
> >
> > diff --git a/src/libsystemd/sd-bus/bus-error.c b/src/libsystemd/sd-bus/bus-error.c
> > -index 77b2e1a0fd..fdba0e0142 100644
> > +index f415797700..a5c6e9a3bd 100644
> > --- a/src/libsystemd/sd-bus/bus-error.c
> > +++ b/src/libsystemd/sd-bus/bus-error.c
> > -@@ -408,7 +408,12 @@ static void bus_error_strerror(sd_bus_error *e, int error) {
> > +@@ -410,7 +410,12 @@ static void bus_error_strerror(sd_bus_error *e, int error) {
> > return;
> >
> > errno = 0;
> > @@ -40,7 +40,7 @@ index 77b2e1a0fd..fdba0e0142 100644
> > if (errno == ERANGE || strlen(x) >= k - 1) {
> > free(m);
> > k *= 2;
> > -@@ -593,8 +598,12 @@ const char* _bus_error_message(const sd_bus_error *e, int error, char buf[static
> > +@@ -595,8 +600,12 @@ const char* _bus_error_message(const sd_bus_error *e, int error, char buf[static
> >
> > if (e && e->message)
> > return e->message;
> > @@ -71,6 +71,3 @@ index 69a2eb6404..1561859650 100644
> > if (errno == 0) {
> > char error[STRLEN("ERRNO=") + DECIMAL_STR_MAX(int) + 1];
> >
> > ---
> > -2.34.1
> > -
> > diff --git a/meta/recipes-core/systemd/systemd/0011-avoid-redefinition-of-prctl_mm_map-structure.patch b/meta/recipes-core/systemd/systemd/0011-avoid-redefinition-of-prctl_mm_map-structure.patch
> > index e481b2e2e4..3075f9d003 100644
> > --- a/meta/recipes-core/systemd/systemd/0011-avoid-redefinition-of-prctl_mm_map-structure.patch
> > +++ b/meta/recipes-core/systemd/systemd/0011-avoid-redefinition-of-prctl_mm_map-structure.patch
> > @@ -1,7 +1,7 @@
> > -From 49c446cfb78cf74a909bed8c3798b77a5469866a Mon Sep 17 00:00:00 2001
> > +From c866c8652f06af4cd0b9bd7eedc606449f432b95 Mon Sep 17 00:00:00 2001
> > From: Chen Qi <Qi.Chen@windriver.com>
> > Date: Mon, 25 Feb 2019 15:44:54 +0800
> > -Subject: [PATCH 11/22] avoid redefinition of prctl_mm_map structure
> > +Subject: [PATCH] avoid redefinition of prctl_mm_map structure
> >
> > Fix the following compile failure:
> > error: redefinition of 'struct prctl_mm_map'
> > @@ -27,6 +27,3 @@ index 7d9e395c92..88c2d7dfac 100644
> >
> > /* 58319057b7847667f0c9585b9de0e8932b0fdb08 (4.3) */
> > #ifndef PR_CAP_AMBIENT
> > ---
> > -2.34.1
> > -
> > diff --git a/meta/recipes-core/systemd/systemd/0012-do-not-disable-buffer-in-writing-files.patch b/meta/recipes-core/systemd/systemd/0012-do-not-disable-buffer-in-writing-files.patch
> > index 66be79077e..0fec84724d 100644
> > --- a/meta/recipes-core/systemd/systemd/0012-do-not-disable-buffer-in-writing-files.patch
> > +++ b/meta/recipes-core/systemd/systemd/0012-do-not-disable-buffer-in-writing-files.patch
> > @@ -1,7 +1,7 @@
> > -From e4885a8e60f883d9217e26e1db3754c2906aca31 Mon Sep 17 00:00:00 2001
> > +From 8464b845e6df1be303e09274c13e653072701671 Mon Sep 17 00:00:00 2001
> > From: Chen Qi <Qi.Chen@windriver.com>
> > Date: Fri, 1 Mar 2019 15:22:15 +0800
> > -Subject: [PATCH 12/22] do not disable buffer in writing files
> > +Subject: [PATCH] do not disable buffer in writing files
> >
> > Do not disable buffer in writing files, otherwise we get
> > failure at boot for musl like below.
> > @@ -201,7 +201,7 @@ index 61ac4df1a6..ea18970196 100644
> > return r;
> >
> > diff --git a/src/core/main.c b/src/core/main.c
> > -index 3f71cc0947..0e5aec3e9e 100644
> > +index 1c0030a75f..7108a87d46 100644
> > --- a/src/core/main.c
> > +++ b/src/core/main.c
> > @@ -1678,7 +1678,7 @@ static void initialize_core_pattern(bool skip_setup) {
> > @@ -253,7 +253,7 @@ index 066483e342..5f92dd7064 100644
> > log_warning_errno(r, "Failed to drop caches, ignoring: %m");
> > else
> > diff --git a/src/libsystemd/sd-device/sd-device.c b/src/libsystemd/sd-device/sd-device.c
> > -index 2fbc619a34..09d9591e37 100644
> > +index 01e66b4658..f3ea82ca1b 100644
> > --- a/src/libsystemd/sd-device/sd-device.c
> > +++ b/src/libsystemd/sd-device/sd-device.c
> > @@ -2516,7 +2516,7 @@ _public_ int sd_device_set_sysattr_value(sd_device *device, const char *sysattr,
> > @@ -279,10 +279,10 @@ index a5002437c6..b12e6cd9c9 100644
> > log_error_errno(r, "Failed to move process: %m");
> > goto finish;
> > diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
> > -index 6ab604d3dc..bbec6b686c 100644
> > +index 0600f3e014..ea369c32b2 100644
> > --- a/src/nspawn/nspawn.c
> > +++ b/src/nspawn/nspawn.c
> > -@@ -2688,7 +2688,7 @@ static int reset_audit_loginuid(void) {
> > +@@ -2690,7 +2690,7 @@ static int reset_audit_loginuid(void) {
> > if (streq(p, "4294967295"))
> > return 0;
> >
> > @@ -291,7 +291,7 @@ index 6ab604d3dc..bbec6b686c 100644
> > if (r < 0) {
> > log_error_errno(r,
> > "Failed to reset audit login UID. This probably means that your kernel is too\n"
> > -@@ -4141,7 +4141,7 @@ static int setup_uid_map(
> > +@@ -4143,7 +4143,7 @@ static int setup_uid_map(
> > return log_oom();
> >
> > xsprintf(uid_map, "/proc/" PID_FMT "/uid_map", pid);
> > @@ -300,7 +300,7 @@ index 6ab604d3dc..bbec6b686c 100644
> > if (r < 0)
> > return log_error_errno(r, "Failed to write UID map: %m");
> >
> > -@@ -4151,7 +4151,7 @@ static int setup_uid_map(
> > +@@ -4153,7 +4153,7 @@ static int setup_uid_map(
> > return log_oom();
> >
> > xsprintf(uid_map, "/proc/" PID_FMT "/gid_map", pid);
> > @@ -367,10 +367,10 @@ index 805503f366..01a7ccb291 100644
> > log_debug_errno(r, "Failed to turn off coredumps, ignoring: %m");
> > }
> > diff --git a/src/shared/hibernate-util.c b/src/shared/hibernate-util.c
> > -index 3eb13d48f6..d09b901be1 100644
> > +index c3991cfa4c..7d522d8d1f 100644
> > --- a/src/shared/hibernate-util.c
> > +++ b/src/shared/hibernate-util.c
> > -@@ -481,7 +481,7 @@ int write_resume_config(dev_t devno, uint64_t offset, const char *device) {
> > +@@ -501,7 +501,7 @@ int write_resume_config(dev_t devno, uint64_t offset, const char *device) {
> >
> > /* We write the offset first since it's safer. Note that this file is only available in 4.17+, so
> > * fail gracefully if it doesn't exist and we're only overwriting it with 0. */
> > @@ -379,7 +379,7 @@ index 3eb13d48f6..d09b901be1 100644
> > if (r == -ENOENT) {
> > if (offset != 0)
> > return log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP),
> > -@@ -497,7 +497,7 @@ int write_resume_config(dev_t devno, uint64_t offset, const char *device) {
> > +@@ -517,7 +517,7 @@ int write_resume_config(dev_t devno, uint64_t offset, const char *device) {
> > log_debug("Wrote resume_offset=%s for device '%s' to /sys/power/resume_offset.",
> > offset_str, device);
> >
> > @@ -402,7 +402,7 @@ index 1f88e724d0..feb18b320a 100644
> > return r;
> >
> > diff --git a/src/shared/watchdog.c b/src/shared/watchdog.c
> > -index 4c1a968718..6faf6806a5 100644
> > +index 99ccefb227..e4975018ab 100644
> > --- a/src/shared/watchdog.c
> > +++ b/src/shared/watchdog.c
> > @@ -93,7 +93,7 @@ static int set_pretimeout_governor(const char *governor) {
> > @@ -412,10 +412,10 @@ index 4c1a968718..6faf6806a5 100644
> > - WRITE_STRING_FILE_DISABLE_BUFFER | WRITE_STRING_FILE_VERIFY_ON_FAILURE | WRITE_STRING_FILE_VERIFY_IGNORE_NEWLINE);
> > + WRITE_STRING_FILE_VERIFY_ON_FAILURE | WRITE_STRING_FILE_VERIFY_IGNORE_NEWLINE);
> > if (r < 0)
> > - return log_error_errno(r, "Failed to set pretimeout_governor to '%s': %m", governor);
> > + return log_error_errno(r, "Failed to set watchdog pretimeout_governor to '%s': %m", governor);
> >
> > diff --git a/src/sleep/sleep.c b/src/sleep/sleep.c
> > -index 21af3e9e52..6d4b84b5d5 100644
> > +index 21062b24e0..262dd71d72 100644
> > --- a/src/sleep/sleep.c
> > +++ b/src/sleep/sleep.c
> > @@ -137,7 +137,7 @@ static int write_state(int fd, char * const *states) {
> > @@ -437,7 +437,7 @@ index 21af3e9e52..6d4b84b5d5 100644
> > log_debug("Using sleep disk mode '%s'.", *mode);
> > return 0;
> > diff --git a/src/storagetm/storagetm.c b/src/storagetm/storagetm.c
> > -index ae63baaf79..82eeca479a 100644
> > +index 16d4fb07d4..aca7506463 100644
> > --- a/src/storagetm/storagetm.c
> > +++ b/src/storagetm/storagetm.c
> > @@ -186,7 +186,7 @@ static int nvme_subsystem_unlink(NvmeSubsystem *s) {
> > @@ -533,7 +533,7 @@ index ae63baaf79..82eeca479a 100644
> > return log_error_errno(r, "Failed to set IP address on NVME port %" PRIu16 ": %m", portnr);
> >
> > diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
> > -index febe345b4c..a90b610ba1 100644
> > +index e5b8df5c2d..63ca15628c 100644
> > --- a/src/udev/udev-rules.c
> > +++ b/src/udev/udev-rules.c
> > @@ -2711,7 +2711,6 @@ static int udev_rule_apply_token_to_event(
> > @@ -557,6 +557,3 @@ index 4d82c65f0a..3a3d861b83 100644
> > if (r < 0)
> > return log_warning_errno(r, "Failed to %s sysfs UTF-8 flag: %m", enable_disable(utf8));
> >
> > ---
> > -2.34.1
> > -
> > diff --git a/meta/recipes-core/systemd/systemd/0013-Handle-__cpu_mask-usage.patch b/meta/recipes-core/systemd/systemd/0013-Handle-__cpu_mask-usage.patch
> > index 43f75373a6..6d7e002d61 100644
> > --- a/meta/recipes-core/systemd/systemd/0013-Handle-__cpu_mask-usage.patch
> > +++ b/meta/recipes-core/systemd/systemd/0013-Handle-__cpu_mask-usage.patch
> > @@ -1,7 +1,7 @@
> > -From 2f90f8463423cfbb7e83fcef42f1071018c3b56e Mon Sep 17 00:00:00 2001
> > +From f6b69f28657c09b1181552d85e52ced0e01182e3 Mon Sep 17 00:00:00 2001
> > From: Scott Murray <scott.murray@konsulko.com>
> > Date: Fri, 13 Sep 2019 19:26:27 -0400
> > -Subject: [PATCH 13/22] Handle __cpu_mask usage
> > +Subject: [PATCH] Handle __cpu_mask usage
> >
> > Fixes errors:
> >
> > @@ -55,6 +55,3 @@ index ea0c58770e..b65c0bd370 100644
> >
> > /* Print information about various types. Useful when diagnosing
> > * gcc diagnostics on an unfamiliar architecture. */
> > ---
> > -2.34.1
> > -
> > diff --git a/meta/recipes-core/systemd/systemd/0014-Handle-missing-gshadow.patch b/meta/recipes-core/systemd/systemd/0014-Handle-missing-gshadow.patch
> > index a751e1ba6f..40b60399aa 100644
> > --- a/meta/recipes-core/systemd/systemd/0014-Handle-missing-gshadow.patch
> > +++ b/meta/recipes-core/systemd/systemd/0014-Handle-missing-gshadow.patch
> > @@ -1,7 +1,7 @@
> > -From b7c827bb44edbb6251c9fcdb80aa03982c0e7bf3 Mon Sep 17 00:00:00 2001
> > +From 5442d8ddb285d33b459aefc76962640afd131280 Mon Sep 17 00:00:00 2001
> > From: Alex Kiernan <alex.kiernan@gmail.com>
> > Date: Tue, 10 Mar 2020 11:05:20 +0000
> > -Subject: [PATCH 14/22] Handle missing gshadow
> > +Subject: [PATCH] Handle missing gshadow
> >
> > gshadow usage is now present in the userdb code. Mask all uses of it to
> > allow compilation on musl
> > @@ -168,6 +168,3 @@ index f60d48ace4..e878199a28 100644
> > if (r < 0)
> > return r;
> >
> > ---
> > -2.34.1
> > -
> > diff --git a/meta/recipes-core/systemd/systemd/0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch b/meta/recipes-core/systemd/systemd/0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch
> > index e112766a9b..51f0b048fa 100644
> > --- a/meta/recipes-core/systemd/systemd/0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch
> > +++ b/meta/recipes-core/systemd/systemd/0015-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch
> > @@ -1,7 +1,7 @@
> > -From 3dc9d9d410bcce54fddfd94f43f7f77f3aa8e281 Mon Sep 17 00:00:00 2001
> > +From 863dd6f502d53a4a2644e031eee2e8dfa3fd05aa Mon Sep 17 00:00:00 2001
> > From: Khem Raj <raj.khem@gmail.com>
> > Date: Mon, 12 Apr 2021 23:44:53 -0700
> > -Subject: [PATCH 15/22] missing_syscall.h: Define MIPS ABI defines for musl
> > +Subject: [PATCH] missing_syscall.h: Define MIPS ABI defines for musl
> >
> > musl does not define _MIPS_SIM_ABI32, _MIPS_SIM_NABI32, _MIPS_SIM_ABI64
> > unlike glibc where these are provided by libc headers, therefore define
> > @@ -16,7 +16,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
> > 2 files changed, 7 insertions(+)
> >
> > diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h
> > -index d795efd8f2..d6729d3c1d 100644
> > +index 86280771c4..20d05db506 100644
> > --- a/src/basic/missing_syscall.h
> > +++ b/src/basic/missing_syscall.h
> > @@ -20,6 +20,12 @@
> > @@ -33,7 +33,7 @@ index d795efd8f2..d6729d3c1d 100644
> > #include "missing_keyctl.h"
> > #include "missing_stat.h"
> > diff --git a/src/shared/base-filesystem.c b/src/shared/base-filesystem.c
> > -index 7ae921a113..0ef9d1fd39 100644
> > +index 67aa8ea1f2..8d9824495e 100644
> > --- a/src/shared/base-filesystem.c
> > +++ b/src/shared/base-filesystem.c
> > @@ -20,6 +20,7 @@
> > @@ -44,6 +44,3 @@ index 7ae921a113..0ef9d1fd39 100644
> >
> > typedef struct BaseFilesystem {
> > const char *dir; /* directory or symlink to create */
> > ---
> > -2.34.1
> > -
> > diff --git a/meta/recipes-core/systemd/systemd/0016-pass-correct-parameters-to-getdents64.patch b/meta/recipes-core/systemd/systemd/0016-pass-correct-parameters-to-getdents64.patch
> > index 0be817e62d..66b8f66806 100644
> > --- a/meta/recipes-core/systemd/systemd/0016-pass-correct-parameters-to-getdents64.patch
> > +++ b/meta/recipes-core/systemd/systemd/0016-pass-correct-parameters-to-getdents64.patch
> > @@ -1,7 +1,7 @@
> > -From 0994b59dba9f248ad31cb7087046dc00b72cb4ea Mon Sep 17 00:00:00 2001
> > +From 01de9e5a6e4ad2f361d3eb4d9839c7afd91cc677 Mon Sep 17 00:00:00 2001
> > From: Khem Raj <raj.khem@gmail.com>
> > Date: Fri, 21 Jan 2022 15:15:11 -0800
> > -Subject: [PATCH 16/22] pass correct parameters to getdents64
> > +Subject: [PATCH] pass correct parameters to getdents64
> >
> > Fixes
> > ../git/src/basic/recurse-dir.c:57:40: error: incompatible pointer types passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'struct dirent *' [-Werror,-Wincompatible-pointer-types]
> > @@ -32,6 +32,3 @@ index 5e98b7a5d8..aef065047b 100644
> > if (n < 0)
> > return -errno;
> > if (n == 0)
> > ---
> > -2.34.1
> > -
> > diff --git a/meta/recipes-core/systemd/systemd/0017-Adjust-for-musl-headers.patch b/meta/recipes-core/systemd/systemd/0017-Adjust-for-musl-headers.patch
> > index 4176522a1c..f86b8c889c 100644
> > --- a/meta/recipes-core/systemd/systemd/0017-Adjust-for-musl-headers.patch
> > +++ b/meta/recipes-core/systemd/systemd/0017-Adjust-for-musl-headers.patch
> > @@ -1,7 +1,7 @@
> > -From 3c094d443ca30f19114392fd8ef274af6eabc12d Mon Sep 17 00:00:00 2001
> > +From a45cf93772ac5055665cc55454509747b9c68ad2 Mon Sep 17 00:00:00 2001
> > From: Khem Raj <raj.khem@gmail.com>
> > Date: Fri, 21 Jan 2022 22:19:37 -0800
> > -Subject: [PATCH 17/22] Adjust for musl headers
> > +Subject: [PATCH] Adjust for musl headers
> >
> > Upstream-Status: Inappropriate [musl specific]
> >
> > @@ -425,7 +425,7 @@ index 607fe0053c..9ce4005874 100644
> >
> > #include "sd-dhcp-server.h"
> > diff --git a/src/network/networkd-dhcp4.c b/src/network/networkd-dhcp4.c
> > -index efbae6d868..1ea2151d50 100644
> > +index 49c452da7c..98aad1f3cd 100644
> > --- a/src/network/networkd-dhcp4.c
> > +++ b/src/network/networkd-dhcp4.c
> > @@ -3,7 +3,7 @@
> > @@ -451,7 +451,7 @@ index 32229a3fc7..662a345d6e 100644
> > #include "in-addr-util.h"
> > #include "networkd-address.h"
> > diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
> > -index ee5f0f2c0a..ea5269a2de 100644
> > +index 4ef1be4bad..e5aa53604d 100644
> > --- a/src/network/networkd-link.c
> > +++ b/src/network/networkd-link.c
> > @@ -3,7 +3,7 @@
> > @@ -464,7 +464,7 @@ index ee5f0f2c0a..ea5269a2de 100644
> > #include <linux/netdevice.h>
> > #include <sys/socket.h>
> > diff --git a/src/network/networkd-ndisc.c b/src/network/networkd-ndisc.c
> > -index ab9eeb13a5..dd96fe7483 100644
> > +index 840ccb158d..9f2e85e32f 100644
> > --- a/src/network/networkd-ndisc.c
> > +++ b/src/network/networkd-ndisc.c
> > @@ -6,7 +6,7 @@
> > @@ -477,7 +477,7 @@ index ab9eeb13a5..dd96fe7483 100644
> > #include "sd-ndisc.h"
> >
> > diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c
> > -index 7218d799fc..30d5574eae 100644
> > +index eb502ae2cf..5b25ee4523 100644
> > --- a/src/network/networkd-route.c
> > +++ b/src/network/networkd-route.c
> > @@ -1,9 +1,5 @@
> > @@ -502,7 +502,7 @@ index 7218d799fc..30d5574eae 100644
> > _cleanup_(route_freep) Route *route = NULL;
> >
> > diff --git a/src/network/networkd-setlink.c b/src/network/networkd-setlink.c
> > -index 2298f9ea3a..7d5f87de53 100644
> > +index 011ea1fe6e..59dfe733eb 100644
> > --- a/src/network/networkd-setlink.c
> > +++ b/src/network/networkd-setlink.c
> > @@ -2,7 +2,7 @@
> > @@ -567,6 +567,3 @@ index f528a46b8e..830318cda5 100644
> > #include <linux/netdevice.h>
> > #include <linux/pci_regs.h>
> >
> > ---
> > -2.34.1
> > -
> > diff --git a/meta/recipes-core/systemd/systemd/0018-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch b/meta/recipes-core/systemd/systemd/0018-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch
> > index 75f6b9094a..67388e6807 100644
> > --- a/meta/recipes-core/systemd/systemd/0018-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch
> > +++ b/meta/recipes-core/systemd/systemd/0018-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch
> > @@ -1,8 +1,8 @@
> > -From be02bd0876a061728661535a709d313e39fe1ac3 Mon Sep 17 00:00:00 2001
> > +From 20dfb0b5e7113c2e7f82c01488b419dffe8714ab Mon Sep 17 00:00:00 2001
> > From: Khem Raj <raj.khem@gmail.com>
> > Date: Tue, 8 Nov 2022 13:31:34 -0800
> > -Subject: [PATCH 18/22] test-bus-error: strerror() is assumed to be GNU
> > - specific version mark it so
> > +Subject: [PATCH] test-bus-error: strerror() is assumed to be GNU specific
> > + version mark it so
> >
> > Upstream-Status: Inappropriate [Upstream systemd only supports glibc]
> >
> > @@ -47,6 +47,3 @@ index 376d532281..967cfd4d67 100644
> >
> > TEST(PROTECT_ERRNO) {
> > errno = 12;
> > ---
> > -2.34.1
> > -
> > diff --git a/meta/recipes-core/systemd/systemd/0019-errno-util-Make-STRERROR-portable-for-musl.patch b/meta/recipes-core/systemd/systemd/0019-errno-util-Make-STRERROR-portable-for-musl.patch
> > index e038b73678..36d468959a 100644
> > --- a/meta/recipes-core/systemd/systemd/0019-errno-util-Make-STRERROR-portable-for-musl.patch
> > +++ b/meta/recipes-core/systemd/systemd/0019-errno-util-Make-STRERROR-portable-for-musl.patch
> > @@ -1,7 +1,7 @@
> > -From 46d80840bfe37e67d4f18c37a77751ea1fe63a07 Mon Sep 17 00:00:00 2001
> > +From 32371040c2aa649e23c3b0f2c5ee27995a16526a Mon Sep 17 00:00:00 2001
> > From: Khem Raj <raj.khem@gmail.com>
> > Date: Mon, 23 Jan 2023 23:39:46 -0800
> > -Subject: [PATCH 19/22] errno-util: Make STRERROR portable for musl
> > +Subject: [PATCH] errno-util: Make STRERROR portable for musl
> >
> > Sadly, systemd has decided to use yet another GNU extention in a macro
> > lets make this such that we can use XSI compliant strerror_r() for
> > @@ -37,6 +37,3 @@ index 27804e6382..274c1c6ef1 100644
> > /* A helper to print an error message or message for functions that return 0 on EOF.
> > * Note that we can't use ({ … }) to define a temporary variable, so errnum is
> > * evaluated twice. */
> > ---
> > -2.34.1
> > -
> > diff --git a/meta/recipes-core/systemd/systemd/0020-sd-event-Make-malloc_trim-conditional-on-glibc.patch b/meta/recipes-core/systemd/systemd/0020-sd-event-Make-malloc_trim-conditional-on-glibc.patch
> > index b83fffe793..f860b5f542 100644
> > --- a/meta/recipes-core/systemd/systemd/0020-sd-event-Make-malloc_trim-conditional-on-glibc.patch
> > +++ b/meta/recipes-core/systemd/systemd/0020-sd-event-Make-malloc_trim-conditional-on-glibc.patch
> > @@ -1,7 +1,7 @@
> > -From 9eb4867b4e2dbdb2484ae854022aff97e2f0feb3 Mon Sep 17 00:00:00 2001
> > +From 751fb8c9a05115f5329cfa25e69afe7657124c20 Mon Sep 17 00:00:00 2001
> > From: Khem Raj <raj.khem@gmail.com>
> > Date: Wed, 2 Aug 2023 12:06:27 -0700
> > -Subject: [PATCH 20/22] sd-event: Make malloc_trim() conditional on glibc
> > +Subject: [PATCH] sd-event: Make malloc_trim() conditional on glibc
> >
> > musl does not have this API
> >
> > @@ -12,7 +12,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
> > 1 file changed, 3 insertions(+), 1 deletion(-)
> >
> > diff --git a/src/libsystemd/sd-event/sd-event.c b/src/libsystemd/sd-event/sd-event.c
> > -index 288798a0dc..6419a7f216 100644
> > +index b6899df192..0c03287004 100644
> > --- a/src/libsystemd/sd-event/sd-event.c
> > +++ b/src/libsystemd/sd-event/sd-event.c
> > @@ -1874,7 +1874,7 @@ _public_ int sd_event_add_exit(
> > @@ -34,6 +34,3 @@ index 288798a0dc..6419a7f216 100644
> > usec_t after_timestamp = now(CLOCK_MONOTONIC);
> >
> > if (r > 0)
> > ---
> > -2.34.1
> > -
> > diff --git a/meta/recipes-core/systemd/systemd/0021-shared-Do-not-use-malloc_info-on-musl.patch b/meta/recipes-core/systemd/systemd/0021-shared-Do-not-use-malloc_info-on-musl.patch
> > index 7eff069bb7..ece9873bbc 100644
> > --- a/meta/recipes-core/systemd/systemd/0021-shared-Do-not-use-malloc_info-on-musl.patch
> > +++ b/meta/recipes-core/systemd/systemd/0021-shared-Do-not-use-malloc_info-on-musl.patch
> > @@ -1,7 +1,7 @@
> > -From 502597b9ddd6b145541b23fadca0b1d3ca9f6367 Mon Sep 17 00:00:00 2001
> > +From 4fe2a8b1aab7297beac50f6ce46f3df4169de218 Mon Sep 17 00:00:00 2001
> > From: Khem Raj <raj.khem@gmail.com>
> > Date: Wed, 2 Aug 2023 12:20:40 -0700
> > -Subject: [PATCH 21/22] shared: Do not use malloc_info on musl
> > +Subject: [PATCH] shared: Do not use malloc_info on musl
> >
> > Upstream-Status: Inappropriate [musl-specific]
> > Signed-off-by: Khem Raj <raj.khem@gmail.com>
> > @@ -52,6 +52,3 @@ index 8e70e365dd..9e782caec9 100644
> > (void) memstream_dump(LOG_INFO, &m);
> > break;
> > }
> > ---
> > -2.34.1
> > -
> > diff --git a/meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch b/meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch
> > index 24f3bf74a0..f517392e58 100644
> > --- a/meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch
> > +++ b/meta/recipes-core/systemd/systemd/0022-avoid-missing-LOCK_EX-declaration.patch
> > @@ -1,7 +1,7 @@
> > -From fd52f1764647e03a35e8f0ed0ef952049073ccbd Mon Sep 17 00:00:00 2001
> > +From 97d3ed7834bd86615ba4acdbef984c677b7e7791 Mon Sep 17 00:00:00 2001
> > From: Chen Qi <Qi.Chen@windriver.com>
> > Date: Tue, 2 Jan 2024 11:03:27 +0800
> > -Subject: [PATCH 22/22] avoid missing LOCK_EX declaration
> > +Subject: [PATCH] avoid missing LOCK_EX declaration
> >
> > This only happens on MUSL. Include sys/file.h to avoid compilation
> > error about missing LOCK_EX declaration.
> > @@ -15,7 +15,7 @@ Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> > 2 files changed, 2 insertions(+)
> >
> > diff --git a/src/core/exec-invoke.c b/src/core/exec-invoke.c
> > -index 70d963e269..7084811439 100644
> > +index fe14ceeb31..521e7b87ff 100644
> > --- a/src/core/exec-invoke.c
> > +++ b/src/core/exec-invoke.c
> > @@ -4,6 +4,7 @@
> > @@ -38,6 +38,3 @@ index 5339bc4e5e..0697495f23 100644
> >
> > int lock_dev_console(void);
> >
> > ---
> > -2.34.1
> > -
> > diff --git a/meta/recipes-core/systemd/systemd_255.4.bb b/meta/recipes-core/systemd/systemd_255.6.bb
> > similarity index 100%
> > rename from meta/recipes-core/systemd/systemd_255.4.bb
> > rename to meta/recipes-core/systemd/systemd_255.6.bb
> > --
> > 2.34.1
> >
>
> >
> >
> >
>
>
> --
> Alexandre Belloni, co-owner and COO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#199610): https://lists.openembedded.org/g/openembedded-core/message/199610
> Mute This Topic: https://lists.openembedded.org/mt/106199571/1686489
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [OE-core][PATCH 6/6] kmod: upgrade from 31 to 32
2024-05-20 8:10 ` [OE-core][PATCH 6/6] kmod: upgrade from 31 to 32 Qi.Chen
@ 2024-05-21 22:26 ` Richard Purdie
2024-05-22 2:25 ` ChenQi
0 siblings, 1 reply; 14+ messages in thread
From: Richard Purdie @ 2024-05-21 22:26 UTC (permalink / raw)
To: Qi.Chen, openembedded-core; +Cc: Alexandre Belloni
On Mon, 2024-05-20 at 16:10 +0800, Chen Qi via lists.openembedded.org wrote:
> From: Chen Qi <Qi.Chen@windriver.com>
>
> kmod now installs symlinks in 'make install'.
> https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/commit/?
> id=e98cef6f3f8cd6f8bfb26d147b2c209297453cca
>
> With this change, we no longer need to deal with the symlinks in
> do_install. Besides, as upstream chooses 'bin' instead of 'sbin'
> to hold the tools, we'd better sync with it. That's the reason for
> the sbindir -> bindir changes.
>
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
> .../kmod/{kmod_31.bb => kmod_32.bb} | 24 +++++++------------
> 1 file changed, 8 insertions(+), 16 deletions(-)
> rename meta/recipes-kernel/kmod/{kmod_31.bb => kmod_32.bb} (78%)
I think this is causing libnl ptest failures:
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/6437/steps/12/logs/stdio
https://autobuilder.yocto.io/pub/non-release/20240521-26/testresults/qemuarm64-ptest/libnl.log
Cheers,
Richard
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [OE-core][PATCH 6/6] kmod: upgrade from 31 to 32
2024-05-21 22:26 ` Richard Purdie
@ 2024-05-22 2:25 ` ChenQi
0 siblings, 0 replies; 14+ messages in thread
From: ChenQi @ 2024-05-22 2:25 UTC (permalink / raw)
To: Richard Purdie, openembedded-core; +Cc: Alexandre Belloni
Thanks. I'll fix it and send out V2.
Regards,
Qi
On 5/22/24 06:26, Richard Purdie wrote:
> On Mon, 2024-05-20 at 16:10 +0800, Chen Qi via lists.openembedded.org wrote:
>> From: Chen Qi <Qi.Chen@windriver.com>
>>
>> kmod now installs symlinks in 'make install'.
>> https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/commit/?
>> id=e98cef6f3f8cd6f8bfb26d147b2c209297453cca
>>
>> With this change, we no longer need to deal with the symlinks in
>> do_install. Besides, as upstream chooses 'bin' instead of 'sbin'
>> to hold the tools, we'd better sync with it. That's the reason for
>> the sbindir -> bindir changes.
>>
>> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
>> ---
>> .../kmod/{kmod_31.bb => kmod_32.bb} | 24 +++++++------------
>> 1 file changed, 8 insertions(+), 16 deletions(-)
>> rename meta/recipes-kernel/kmod/{kmod_31.bb => kmod_32.bb} (78%)
> I think this is causing libnl ptest failures:
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/6437/steps/12/logs/stdio
>
> https://autobuilder.yocto.io/pub/non-release/20240521-26/testresults/qemuarm64-ptest/libnl.log
>
>
> Cheers,
>
> Richard
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2024-05-22 2:25 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-20 8:10 [OE-core][PATCH 1/6] systemd/systemd-boot: upgrade from 255.4 to 255.6 Qi.Chen
2024-05-20 8:10 ` [OE-core][PATCH 2/6] util-linux/util-linux-libuuid: upgrade from 2.39.3 to 2.40.1 Qi.Chen
2024-05-21 9:32 ` Alexandre Belloni
2024-05-21 9:33 ` Alexandre Belloni
2024-05-21 10:23 ` Chen, Qi
2024-05-20 8:10 ` [OE-core][PATCH 3/6] pciutils: upgrade from 3.11.1 to 3.12.0 Qi.Chen
2024-05-20 8:10 ` [OE-core][PATCH 4/6] shadow: upgrade from 4.15.0 to 4.15.1 Qi.Chen
2024-05-20 8:10 ` [OE-core][PATCH 5/6] cups: upgrade from 2.4.7 to 2.4.8 Qi.Chen
2024-05-20 8:10 ` [OE-core][PATCH 6/6] kmod: upgrade from 31 to 32 Qi.Chen
2024-05-21 22:26 ` Richard Purdie
2024-05-22 2:25 ` ChenQi
2024-05-21 9:38 ` [OE-core][PATCH 1/6] systemd/systemd-boot: upgrade from 255.4 to 255.6 Alexandre Belloni
2024-05-21 10:22 ` Chen, Qi
2024-05-21 11:21 ` Alexander Kanavin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox