summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-07-23 00:45:02 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-24 16:33:47 +0100
commita4c3deba6edc827291383b887b05cf68626470c2 (patch)
tree9a70f3f948d8fe2aaa9f996599b5d6bb3b48feaf /meta
parentbe7193e5ffe0428005188514774f41146eb5bef8 (diff)
downloadpoky-a4c3deba6edc827291383b887b05cf68626470c2.tar.gz
systemd: update 248.3 -> 249.1
jinja is now required: https://github.com/systemd/systemd/commit/e0698c66f4569c91e3fdd54ca77449698ae38704 Drop 0001-test-seccomp-Check-for-__NR_ppoll-before-use.patch as it is a backport. (From OE-Core rev: 323ec445dfe22860cd450c303db5ed8fcb4e791c) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/systemd/systemd-boot_249.1.bb (renamed from meta/recipes-core/systemd/systemd-boot_248.3.bb)2
-rw-r--r--meta/recipes-core/systemd/systemd.inc4
-rw-r--r--meta/recipes-core/systemd/systemd/0001-binfmt-Don-t-install-dependency-links-at-install-tim.patch38
-rw-r--r--meta/recipes-core/systemd/systemd/0001-test-seccomp-Check-for-__NR_ppoll-before-use.patch39
-rw-r--r--meta/recipes-core/systemd/systemd_249.1.bb (renamed from meta/recipes-core/systemd/systemd_248.3.bb)7
5 files changed, 25 insertions, 65 deletions
diff --git a/meta/recipes-core/systemd/systemd-boot_248.3.bb b/meta/recipes-core/systemd/systemd-boot_249.1.bb
index 249e620f4e..2c0bec4eda 100644
--- a/meta/recipes-core/systemd/systemd-boot_248.3.bb
+++ b/meta/recipes-core/systemd/systemd-boot_249.1.bb
@@ -3,7 +3,7 @@ FILESEXTRAPATHS =. "${FILE_DIRNAME}/systemd:"
3 3
4require conf/image-uefi.conf 4require conf/image-uefi.conf
5 5
6DEPENDS = "intltool-native libcap util-linux gnu-efi gperf-native" 6DEPENDS = "intltool-native libcap util-linux gnu-efi gperf-native python3-jinja2-native"
7 7
8inherit meson pkgconfig gettext 8inherit meson pkgconfig gettext
9inherit deploy 9inherit deploy
diff --git a/meta/recipes-core/systemd/systemd.inc b/meta/recipes-core/systemd/systemd.inc
index 0524a25008..0e92a72bb7 100644
--- a/meta/recipes-core/systemd/systemd.inc
+++ b/meta/recipes-core/systemd/systemd.inc
@@ -14,8 +14,8 @@ LICENSE = "GPLv2 & LGPLv2.1"
14LIC_FILES_CHKSUM = "file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \ 14LIC_FILES_CHKSUM = "file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \
15 file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c" 15 file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c"
16 16
17SRCREV = "37c4cfde0ce613f0f00544d3f4e2e72bf93d9c76" 17SRCREV = "764b74113e36ac5219a4b82a05f311b5a92136ce"
18SRCBRANCH = "v248-stable" 18SRCBRANCH = "v249-stable"
19SRC_URI = "git://github.com/systemd/systemd-stable.git;protocol=git;branch=${SRCBRANCH} \ 19SRC_URI = "git://github.com/systemd/systemd-stable.git;protocol=git;branch=${SRCBRANCH} \
20" 20"
21 21
diff --git a/meta/recipes-core/systemd/systemd/0001-binfmt-Don-t-install-dependency-links-at-install-tim.patch b/meta/recipes-core/systemd/systemd/0001-binfmt-Don-t-install-dependency-links-at-install-tim.patch
index 8dd22eeb7b..d3af734e06 100644
--- a/meta/recipes-core/systemd/systemd/0001-binfmt-Don-t-install-dependency-links-at-install-tim.patch
+++ b/meta/recipes-core/systemd/systemd/0001-binfmt-Don-t-install-dependency-links-at-install-tim.patch
@@ -1,4 +1,4 @@
1From 564830719be2017c4953589d50f21a9e856a4ecc Mon Sep 17 00:00:00 2001 1From 08cd165f5db0e68a499b80c4b1744a4206948259 Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com> 2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Thu, 21 Feb 2019 16:23:24 +0800 3Date: Thu, 21 Feb 2019 16:23:24 +0800
4Subject: [PATCH] binfmt: Don't install dependency links at install time for 4Subject: [PATCH] binfmt: Don't install dependency links at install time for
@@ -25,11 +25,11 @@ Signed-off-by: Scott Murray <scott.murray@konsulko.com>
25 units/systemd-binfmt.service.in | 4 ++++ 25 units/systemd-binfmt.service.in | 4 ++++
26 3 files changed, 9 insertions(+), 4 deletions(-) 26 3 files changed, 9 insertions(+), 4 deletions(-)
27 27
28Index: systemd-stable/units/meson.build 28diff --git a/units/meson.build b/units/meson.build
29=================================================================== 29index 17e9ead9c1..e5502be620 100644
30--- systemd-stable.orig/units/meson.build 30--- a/units/meson.build
31+++ systemd-stable/units/meson.build 31+++ b/units/meson.build
32@@ -55,8 +55,7 @@ units = [ 32@@ -59,8 +59,7 @@ units = [
33 ['poweroff.target', '', 33 ['poweroff.target', '',
34 (with_runlevels ? 'runlevel0.target' : '')], 34 (with_runlevels ? 'runlevel0.target' : '')],
35 ['printer.target', ''], 35 ['printer.target', ''],
@@ -39,9 +39,9 @@ Index: systemd-stable/units/meson.build
39 ['proc-sys-fs-binfmt_misc.mount', 'ENABLE_BINFMT'], 39 ['proc-sys-fs-binfmt_misc.mount', 'ENABLE_BINFMT'],
40 ['reboot.target', '', 40 ['reboot.target', '',
41 'ctrl-alt-del.target' + (with_runlevels ? ' runlevel6.target' : '')], 41 'ctrl-alt-del.target' + (with_runlevels ? ' runlevel6.target' : '')],
42@@ -166,8 +165,7 @@ in_units = [ 42@@ -178,8 +177,7 @@ in_units = [
43 ['rc-local.service', 'HAVE_SYSV_COMPAT'],
44 ['rescue.service', ''], 43 ['rescue.service', ''],
44 ['serial-getty@.service', ''],
45 ['systemd-backlight@.service', 'ENABLE_BACKLIGHT'], 45 ['systemd-backlight@.service', 'ENABLE_BACKLIGHT'],
46- ['systemd-binfmt.service', 'ENABLE_BINFMT', 46- ['systemd-binfmt.service', 'ENABLE_BINFMT',
47- 'sysinit.target.wants/'], 47- 'sysinit.target.wants/'],
@@ -49,21 +49,21 @@ Index: systemd-stable/units/meson.build
49 ['systemd-bless-boot.service', 'ENABLE_EFI HAVE_BLKID'], 49 ['systemd-bless-boot.service', 'ENABLE_EFI HAVE_BLKID'],
50 ['systemd-boot-check-no-failures.service', ''], 50 ['systemd-boot-check-no-failures.service', ''],
51 ['systemd-coredump@.service', 'ENABLE_COREDUMP'], 51 ['systemd-coredump@.service', 'ENABLE_COREDUMP'],
52Index: systemd-stable/units/proc-sys-fs-binfmt_misc.automount 52diff --git a/units/proc-sys-fs-binfmt_misc.automount b/units/proc-sys-fs-binfmt_misc.automount
53=================================================================== 53index 172c8757ab..f65d8930c6 100644
54--- systemd-stable.orig/units/proc-sys-fs-binfmt_misc.automount 54--- a/units/proc-sys-fs-binfmt_misc.automount
55+++ systemd-stable/units/proc-sys-fs-binfmt_misc.automount 55+++ b/units/proc-sys-fs-binfmt_misc.automount
56@@ -18,3 +18,6 @@ ConditionPathIsReadWrite=/proc/sys/ 56@@ -19,3 +19,6 @@ ConditionPathIsReadWrite=/proc/sys/
57 57
58 [Automount] 58 [Automount]
59 Where=/proc/sys/fs/binfmt_misc 59 Where=/proc/sys/fs/binfmt_misc
60+ 60+
61+[Install] 61+[Install]
62+WantedBy=sysinit.target 62+WantedBy=sysinit.target
63Index: systemd-stable/units/systemd-binfmt.service.in 63diff --git a/units/systemd-binfmt.service.in b/units/systemd-binfmt.service.in
64=================================================================== 64index fdafce7ff7..4efc05e495 100644
65--- systemd-stable.orig/units/systemd-binfmt.service.in 65--- a/units/systemd-binfmt.service.in
66+++ systemd-stable/units/systemd-binfmt.service.in 66+++ b/units/systemd-binfmt.service.in
67@@ -14,6 +14,7 @@ Documentation=https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.htm 67@@ -14,6 +14,7 @@ Documentation=https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.htm
68 Documentation=https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems 68 Documentation=https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
69 DefaultDependencies=no 69 DefaultDependencies=no
@@ -73,8 +73,8 @@ Index: systemd-stable/units/systemd-binfmt.service.in
73 After=proc-sys-fs-binfmt_misc.mount 73 After=proc-sys-fs-binfmt_misc.mount
74 Before=sysinit.target shutdown.target 74 Before=sysinit.target shutdown.target
75@@ -30,3 +31,6 @@ RemainAfterExit=yes 75@@ -30,3 +31,6 @@ RemainAfterExit=yes
76 ExecStart=@rootlibexecdir@/systemd-binfmt 76 ExecStart={{ROOTLIBEXECDIR}}/systemd-binfmt
77 ExecStop=@rootlibexecdir@/systemd-binfmt --unregister 77 ExecStop={{ROOTLIBEXECDIR}}/systemd-binfmt --unregister
78 TimeoutSec=90s 78 TimeoutSec=90s
79+ 79+
80+[Install] 80+[Install]
diff --git a/meta/recipes-core/systemd/systemd/0001-test-seccomp-Check-for-__NR_ppoll-before-use.patch b/meta/recipes-core/systemd/systemd/0001-test-seccomp-Check-for-__NR_ppoll-before-use.patch
deleted file mode 100644
index 0ba5fa2547..0000000000
--- a/meta/recipes-core/systemd/systemd/0001-test-seccomp-Check-for-__NR_ppoll-before-use.patch
+++ /dev/null
@@ -1,39 +0,0 @@
1From 027ac2ad0695bb506460f9dd7e57149b71055887 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 8 Jun 2021 23:21:01 -0700
4Subject: [PATCH] test-seccomp: Check for __NR_ppoll before use
5
6some newer architectures like riscv32 do not have __NR_ppoll from get go
7
8Upstream-Status: Submitted [https://github.com/systemd/systemd/pull/19858]
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 src/test/test-seccomp.c | 5 +++--
12 1 file changed, 3 insertions(+), 2 deletions(-)
13
14diff --git a/src/test/test-seccomp.c b/src/test/test-seccomp.c
15index b1f917eb54..daac0fcea8 100644
16--- a/src/test/test-seccomp.c
17+++ b/src/test/test-seccomp.c
18@@ -832,7 +832,7 @@ static void test_load_syscall_filter_set_raw(void) {
19 assert_se(s = hashmap_new(NULL));
20 #if defined __NR_poll && __NR_poll >= 0
21 assert_se(hashmap_put(s, UINT32_TO_PTR(__NR_poll + 1), INT_TO_PTR(-1)) >= 0);
22-#else
23+#elif defined __NR_ppoll
24 assert_se(hashmap_put(s, UINT32_TO_PTR(__NR_ppoll + 1), INT_TO_PTR(-1)) >= 0);
25 #endif
26
27@@ -849,7 +849,8 @@ static void test_load_syscall_filter_set_raw(void) {
28 assert_se(s = hashmap_new(NULL));
29 #if defined __NR_poll && __NR_poll >= 0
30 assert_se(hashmap_put(s, UINT32_TO_PTR(__NR_poll + 1), INT_TO_PTR(EILSEQ)) >= 0);
31-#else
32+#elif defined __NR_ppoll
33+ assert_se(hashmap_put(s, UINT32_TO_PTR(__NR_ppoll + 1), INT_TO_PTR(-1)) >= 0);
34 assert_se(hashmap_put(s, UINT32_TO_PTR(__NR_ppoll + 1), INT_TO_PTR(EILSEQ)) >= 0);
35 #endif
36
37--
382.32.0
39
diff --git a/meta/recipes-core/systemd/systemd_248.3.bb b/meta/recipes-core/systemd/systemd_249.1.bb
index f5022a99c2..9bfb12249c 100644
--- a/meta/recipes-core/systemd/systemd_248.3.bb
+++ b/meta/recipes-core/systemd/systemd_249.1.bb
@@ -4,7 +4,7 @@ PROVIDES = "udev"
4 4
5PE = "1" 5PE = "1"
6 6
7DEPENDS = "intltool-native gperf-native libcap util-linux" 7DEPENDS = "intltool-native gperf-native libcap util-linux python3-jinja2-native"
8 8
9SECTION = "base/shell" 9SECTION = "base/shell"
10 10
@@ -14,8 +14,7 @@ inherit useradd pkgconfig meson perlnative update-rc.d update-alternatives qemu
14# that we don't build both udev and systemd in world builds. 14# that we don't build both udev and systemd in world builds.
15REQUIRED_DISTRO_FEATURES = "systemd" 15REQUIRED_DISTRO_FEATURES = "systemd"
16 16
17SRC_URI += " \ 17SRC_URI += "file://touchscreen.rules \
18 file://touchscreen.rules \
19 file://00-create-volatile.conf \ 18 file://00-create-volatile.conf \
20 ${@bb.utils.contains('PACKAGECONFIG', 'polkit_hostnamed_fallback', 'file://org.freedesktop.hostname1_no_polkit.conf', '', d)} \ 19 ${@bb.utils.contains('PACKAGECONFIG', 'polkit_hostnamed_fallback', 'file://org.freedesktop.hostname1_no_polkit.conf', '', d)} \
21 ${@bb.utils.contains('PACKAGECONFIG', 'polkit_hostnamed_fallback', 'file://00-hostnamed-network-user.conf', '', d)} \ 20 ${@bb.utils.contains('PACKAGECONFIG', 'polkit_hostnamed_fallback', 'file://00-hostnamed-network-user.conf', '', d)} \
@@ -26,7 +25,6 @@ SRC_URI += " \
26 file://0003-implment-systemd-sysv-install-for-OE.patch \ 25 file://0003-implment-systemd-sysv-install-for-OE.patch \
27 file://0001-systemd.pc.in-use-ROOTPREFIX-without-suffixed-slash.patch \ 26 file://0001-systemd.pc.in-use-ROOTPREFIX-without-suffixed-slash.patch \
28 file://0001-test-parse-argument-Include-signal.h.patch \ 27 file://0001-test-parse-argument-Include-signal.h.patch \
29 file://0001-test-seccomp-Check-for-__NR_ppoll-before-use.patch \
30 " 28 "
31 29
32# patches needed by musl 30# patches needed by musl
@@ -687,6 +685,7 @@ FILES_udev += "${base_sbindir}/udevd \
687 ${rootlibexecdir}/udev/rules.d/78-sound-card.rules \ 685 ${rootlibexecdir}/udev/rules.d/78-sound-card.rules \
688 ${rootlibexecdir}/udev/rules.d/80-drivers.rules \ 686 ${rootlibexecdir}/udev/rules.d/80-drivers.rules \
689 ${rootlibexecdir}/udev/rules.d/80-net-setup-link.rules \ 687 ${rootlibexecdir}/udev/rules.d/80-net-setup-link.rules \
688 ${rootlibexecdir}/udev/rules.d/81-net-dhcp.rules \
690 ${rootlibexecdir}/udev/rules.d/90-vconsole.rules \ 689 ${rootlibexecdir}/udev/rules.d/90-vconsole.rules \
691 ${rootlibexecdir}/udev/rules.d/README \ 690 ${rootlibexecdir}/udev/rules.d/README \
692 ${sysconfdir}/udev \ 691 ${sysconfdir}/udev \