diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-08-15 20:35:51 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-17 19:57:32 +0100 |
| commit | 96e409c10f4a44433f2bbe55f9fb6981ea413a5e (patch) | |
| tree | 2cce59e67f7c1fb6c3432d267e5256aaf15ceaf4 /meta/recipes-core | |
| parent | 999b85baca119516e4fdb5a943aa4af198c01e86 (diff) | |
| download | poky-96e409c10f4a44433f2bbe55f9fb6981ea413a5e.tar.gz | |
systemd: Upgrade to 251.4 and fix build with binutils 2.39
The mount.h conflict patch is now upstream so drop it.
Additionally this version fixes build with binutils-2.39 [1]
[1] https://github.com/systemd/systemd-stable/commit/8a6f966be404897b5333c218701965ac3b5a0806
(From OE-Core rev: d43ec090ceb2bf0016a065103a4c34d0c43cb906)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
| -rw-r--r-- | meta/recipes-core/systemd/systemd-boot_251.4.bb (renamed from meta/recipes-core/systemd/systemd-boot_251.3.bb) | 0 | ||||
| -rw-r--r-- | meta/recipes-core/systemd/systemd.inc | 2 | ||||
| -rw-r--r-- | meta/recipes-core/systemd/systemd/0001-glibc-Remove-include-linux-fs.h-to-resolve-fsconfig_.patch | 97 | ||||
| -rw-r--r-- | meta/recipes-core/systemd/systemd_251.4.bb (renamed from meta/recipes-core/systemd/systemd_251.3.bb) | 1 |
4 files changed, 1 insertions, 99 deletions
diff --git a/meta/recipes-core/systemd/systemd-boot_251.3.bb b/meta/recipes-core/systemd/systemd-boot_251.4.bb index b67706b731..b67706b731 100644 --- a/meta/recipes-core/systemd/systemd-boot_251.3.bb +++ b/meta/recipes-core/systemd/systemd-boot_251.4.bb | |||
diff --git a/meta/recipes-core/systemd/systemd.inc b/meta/recipes-core/systemd/systemd.inc index 03f1559f02..71eb93f23a 100644 --- a/meta/recipes-core/systemd/systemd.inc +++ b/meta/recipes-core/systemd/systemd.inc | |||
| @@ -14,7 +14,7 @@ LICENSE = "GPL-2.0-only & LGPL-2.1-only" | |||
| 14 | LIC_FILES_CHKSUM = "file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \ | 14 | LIC_FILES_CHKSUM = "file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \ |
| 15 | file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c" | 15 | file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c" |
| 16 | 16 | ||
| 17 | SRCREV = "516108f273888df3dcfa4f42b140252a285a2288" | 17 | SRCREV = "2a674b4b66af1a050a0362b646d2fca90c90112e" |
| 18 | SRCBRANCH = "v251-stable" | 18 | SRCBRANCH = "v251-stable" |
| 19 | SRC_URI = "git://github.com/systemd/systemd-stable.git;protocol=https;branch=${SRCBRANCH} \ | 19 | SRC_URI = "git://github.com/systemd/systemd-stable.git;protocol=https;branch=${SRCBRANCH} \ |
| 20 | " | 20 | " |
diff --git a/meta/recipes-core/systemd/systemd/0001-glibc-Remove-include-linux-fs.h-to-resolve-fsconfig_.patch b/meta/recipes-core/systemd/systemd/0001-glibc-Remove-include-linux-fs.h-to-resolve-fsconfig_.patch deleted file mode 100644 index 6222dfe60d..0000000000 --- a/meta/recipes-core/systemd/systemd/0001-glibc-Remove-include-linux-fs.h-to-resolve-fsconfig_.patch +++ /dev/null | |||
| @@ -1,97 +0,0 @@ | |||
| 1 | From b0933e76c6f0594c10cf8a9a70b34e15b68066d1 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Rudi Heitbaum <rudi@heitbaum.com> | ||
| 3 | Date: Sat, 23 Jul 2022 10:38:49 +0000 | ||
| 4 | Subject: [PATCH] glibc: Remove #include <linux/fs.h> to resolve fsconfig_command/mount_attr conflict with glibc 2.36 | ||
| 5 | |||
| 6 | Upstream-Status: Backport [https://github.com/systemd/systemd/pull/23992/commits/21c03ad5e9d8d0350e30dae92a5e15da318a1539] | ||
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 8 | --- | ||
| 9 | meson.build | 13 ++++++++++++- | ||
| 10 | src/basic/fd-util.c | 2 ++ | ||
| 11 | src/core/namespace.c | 2 ++ | ||
| 12 | src/shared/mount-util.c | 2 ++ | ||
| 13 | 4 files changed, 18 insertions(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/meson.build b/meson.build | ||
| 16 | index 9c170acc0a..a2e4d5054e 100644 | ||
| 17 | --- a/meson.build | ||
| 18 | +++ b/meson.build | ||
| 19 | @@ -481,7 +481,6 @@ decl_headers = ''' | ||
| 20 | #include <uchar.h> | ||
| 21 | #include <sys/mount.h> | ||
| 22 | #include <sys/stat.h> | ||
| 23 | -#include <linux/fs.h> | ||
| 24 | ''' | ||
| 25 | |||
| 26 | foreach decl : ['char16_t', | ||
| 27 | @@ -493,6 +492,17 @@ foreach decl : ['char16_t', | ||
| 28 | # We get -1 if the size cannot be determined | ||
| 29 | have = cc.sizeof(decl, prefix : decl_headers, args : '-D_GNU_SOURCE') > 0 | ||
| 30 | |||
| 31 | + if decl == 'struct mount_attr' | ||
| 32 | + if have | ||
| 33 | + want_linux_fs_h = false | ||
| 34 | + else | ||
| 35 | + have = cc.sizeof(decl, | ||
| 36 | + prefix : decl_headers + '#include <linux/fs.h>', | ||
| 37 | + args : '-D_GNU_SOURCE') > 0 | ||
| 38 | + want_linux_fs_h = have | ||
| 39 | + endif | ||
| 40 | + endif | ||
| 41 | + | ||
| 42 | if decl == 'struct statx' | ||
| 43 | if have | ||
| 44 | want_linux_stat_h = false | ||
| 45 | @@ -508,6 +518,7 @@ foreach decl : ['char16_t', | ||
| 46 | endforeach | ||
| 47 | |||
| 48 | conf.set10('WANT_LINUX_STAT_H', want_linux_stat_h) | ||
| 49 | +conf.set10('WANT_LINUX_FS_H', want_linux_fs_h) | ||
| 50 | |||
| 51 | foreach ident : ['secure_getenv', '__secure_getenv'] | ||
| 52 | conf.set10('HAVE_' + ident.to_upper(), cc.has_function(ident)) | ||
| 53 | diff --git a/src/basic/fd-util.c b/src/basic/fd-util.c | ||
| 54 | index 6c1de92a26..00591d6c2d 100644 | ||
| 55 | --- a/src/basic/fd-util.c | ||
| 56 | +++ b/src/basic/fd-util.c | ||
| 57 | @@ -3,7 +3,9 @@ | ||
| 58 | #include <errno.h> | ||
| 59 | #include <fcntl.h> | ||
| 60 | #include <linux/btrfs.h> | ||
| 61 | +#if WANT_LINUX_FS_H | ||
| 62 | #include <linux/fs.h> | ||
| 63 | +#endif | ||
| 64 | #include <linux/magic.h> | ||
| 65 | #include <sys/ioctl.h> | ||
| 66 | #include <sys/resource.h> | ||
| 67 | diff --git a/src/core/namespace.c b/src/core/namespace.c | ||
| 68 | index 3256871803..2eafe43290 100644 | ||
| 69 | --- a/src/core/namespace.c | ||
| 70 | +++ b/src/core/namespace.c | ||
| 71 | @@ -7,7 +7,9 @@ | ||
| 72 | #include <sys/file.h> | ||
| 73 | #include <sys/mount.h> | ||
| 74 | #include <unistd.h> | ||
| 75 | +#if WANT_LINUX_FS_H | ||
| 76 | #include <linux/fs.h> | ||
| 77 | +#endif | ||
| 78 | |||
| 79 | #include "alloc-util.h" | ||
| 80 | #include "base-filesystem.h" | ||
| 81 | diff --git a/src/shared/mount-util.c b/src/shared/mount-util.c | ||
| 82 | index e76e4a0b38..0c8dec7688 100644 | ||
| 83 | --- a/src/shared/mount-util.c | ||
| 84 | +++ b/src/shared/mount-util.c | ||
| 85 | @@ -7,7 +7,9 @@ | ||
| 86 | #include <sys/statvfs.h> | ||
| 87 | #include <unistd.h> | ||
| 88 | #include <linux/loop.h> | ||
| 89 | +#if WANT_LINUX_FS_H | ||
| 90 | #include <linux/fs.h> | ||
| 91 | +#endif | ||
| 92 | |||
| 93 | #include "alloc-util.h" | ||
| 94 | #include "chase-symlinks.h" | ||
| 95 | -- | ||
| 96 | 2.25.1 | ||
| 97 | |||
diff --git a/meta/recipes-core/systemd/systemd_251.3.bb b/meta/recipes-core/systemd/systemd_251.4.bb index 72b9155f2e..8497e24af9 100644 --- a/meta/recipes-core/systemd/systemd_251.3.bb +++ b/meta/recipes-core/systemd/systemd_251.4.bb | |||
| @@ -25,7 +25,6 @@ SRC_URI += " \ | |||
| 25 | file://0001-binfmt-Don-t-install-dependency-links-at-install-tim.patch \ | 25 | file://0001-binfmt-Don-t-install-dependency-links-at-install-tim.patch \ |
| 26 | file://0003-implment-systemd-sysv-install-for-OE.patch \ | 26 | file://0003-implment-systemd-sysv-install-for-OE.patch \ |
| 27 | file://0001-Move-sysusers.d-sysctl.d-binfmt.d-modules-load.d-to-.patch \ | 27 | file://0001-Move-sysusers.d-sysctl.d-binfmt.d-modules-load.d-to-.patch \ |
| 28 | file://0001-glibc-Remove-include-linux-fs.h-to-resolve-fsconfig_.patch \ | ||
| 29 | " | 28 | " |
| 30 | 29 | ||
| 31 | # patches needed by musl | 30 | # patches needed by musl |
