diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-06-06 14:01:12 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-07 21:21:54 +0100 |
| commit | 53042d6e2f4b2e44356f7f943938530879526513 (patch) | |
| tree | f31b1469b68be49cd0c50c5bc2a15df0acab2c98 | |
| parent | 19814ed0ad71b60d34396802aca955448ed6661f (diff) | |
| download | poky-53042d6e2f4b2e44356f7f943938530879526513.tar.gz | |
systemd: update 250.5 -> 251.2
(From OE-Core rev: 9403233b2f9e58dd8a416342a37024dc08164317)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-core/systemd/systemd-boot_251.2.bb (renamed from meta/recipes-core/systemd/systemd-boot_250.5.bb) | 0 | ||||
| -rw-r--r-- | meta/recipes-core/systemd/systemd.inc | 8 | ||||
| -rw-r--r-- | meta/recipes-core/systemd/systemd/0001-resolve-Use-sockaddr-pointer-type-for-bind.patch | 46 | ||||
| -rw-r--r-- | meta/recipes-core/systemd/systemd/38c87ca2ab96d085158485ecfc46c7cb6af0f166.patch | 41 | ||||
| -rw-r--r-- | meta/recipes-core/systemd/systemd_251.2.bb (renamed from meta/recipes-core/systemd/systemd_250.5.bb) | 1 |
5 files changed, 46 insertions, 50 deletions
diff --git a/meta/recipes-core/systemd/systemd-boot_250.5.bb b/meta/recipes-core/systemd/systemd-boot_251.2.bb index b67706b731..b67706b731 100644 --- a/meta/recipes-core/systemd/systemd-boot_250.5.bb +++ b/meta/recipes-core/systemd/systemd-boot_251.2.bb | |||
diff --git a/meta/recipes-core/systemd/systemd.inc b/meta/recipes-core/systemd/systemd.inc index 309105290f..b8dbe2263a 100644 --- a/meta/recipes-core/systemd/systemd.inc +++ b/meta/recipes-core/systemd/systemd.inc | |||
| @@ -14,8 +14,10 @@ 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 = "4a31fa2fb040005b73253da75cf84949b8485175" | 17 | SRCREV = "253052686cbd840ac69030d31c4b186af23aba4c" |
| 18 | SRCBRANCH = "v250-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 | file://38c87ca2ab96d085158485ecfc46c7cb6af0f166.patch \ | ||
| 21 | " | ||
| 20 | 22 | ||
| 21 | S = "${WORKDIR}/git" | 23 | S = "${WORKDIR}/git" |
diff --git a/meta/recipes-core/systemd/systemd/0001-resolve-Use-sockaddr-pointer-type-for-bind.patch b/meta/recipes-core/systemd/systemd/0001-resolve-Use-sockaddr-pointer-type-for-bind.patch deleted file mode 100644 index 8567283537..0000000000 --- a/meta/recipes-core/systemd/systemd/0001-resolve-Use-sockaddr-pointer-type-for-bind.patch +++ /dev/null | |||
| @@ -1,46 +0,0 @@ | |||
| 1 | From ad1428f29196bcc88ae382ee67ff705928e2be24 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Thu, 5 May 2022 20:25:37 -0700 | ||
| 4 | Subject: [PATCH] resolve: Use sockaddr pointer type for bind() | ||
| 5 | |||
| 6 | bind() expects sockaddr* but SERVER_ADDRESS is sockaddr_in type struct | ||
| 7 | |||
| 8 | Fixes errors with clang e.g. | ||
| 9 | |||
| 10 | ../git/src/resolve/test-resolved-stream.c:112:32: error: incompatible pointer types passing 'struct sockaddr_in *' to parameter of type 'const struct sockaddr *' [-Werror,-Wincompatible-pointer-types] | ||
| 11 | assert_se(bind(bindfd, &SERVER_ADDRESS, sizeof(SERVER_ADDRESS)) >= 0); | ||
| 12 | ^~~~~~~~~~~~~~~ | ||
| 13 | ../git/src/resolve/test-resolved-stream.c:251:39: error: incompatible pointer types passing 'struct sockaddr_in *' to parameter of type 'const struct sockaddr *' [-Werror,-Wincompatible-pointer-types] | ||
| 14 | r = connect(clientfd, &SERVER_ADDRESS, sizeof(SERVER_ADDRESS)); | ||
| 15 | |||
| 16 | Upstream-Status: Submitted [https://github.com/systemd/systemd/pull/23281] | ||
| 17 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 18 | --- | ||
| 19 | src/resolve/test-resolved-stream.c | 4 ++-- | ||
| 20 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 21 | |||
| 22 | diff --git a/src/resolve/test-resolved-stream.c b/src/resolve/test-resolved-stream.c | ||
| 23 | index f12c729e50..504b532002 100644 | ||
| 24 | --- a/src/resolve/test-resolved-stream.c | ||
| 25 | +++ b/src/resolve/test-resolved-stream.c | ||
| 26 | @@ -109,7 +109,7 @@ static void *tcp_dns_server(void *p) { | ||
| 27 | |||
| 28 | assert_se((bindfd = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0)) >= 0); | ||
| 29 | assert_se(setsockopt(bindfd, SOL_SOCKET, SO_REUSEADDR, &(int){1}, sizeof(int)) >= 0); | ||
| 30 | - assert_se(bind(bindfd, &SERVER_ADDRESS, sizeof(SERVER_ADDRESS)) >= 0); | ||
| 31 | + assert_se(bind(bindfd, (struct sockaddr*)&SERVER_ADDRESS, sizeof(SERVER_ADDRESS)) >= 0); | ||
| 32 | assert_se(listen(bindfd, 1) >= 0); | ||
| 33 | assert_se((acceptfd = accept(bindfd, NULL, NULL)) >= 0); | ||
| 34 | server_handle(acceptfd); | ||
| 35 | @@ -248,7 +248,7 @@ static void test_dns_stream(bool tls) { | ||
| 36 | assert_se((clientfd = socket(AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0)) >= 0); | ||
| 37 | |||
| 38 | for (int i = 0; i < 100; i++) { | ||
| 39 | - r = connect(clientfd, &SERVER_ADDRESS, sizeof(SERVER_ADDRESS)); | ||
| 40 | + r = connect(clientfd, (struct sockaddr*)&SERVER_ADDRESS, sizeof(SERVER_ADDRESS)); | ||
| 41 | if (r >= 0) | ||
| 42 | break; | ||
| 43 | usleep(EVENT_TIMEOUT_USEC / 100); | ||
| 44 | -- | ||
| 45 | 2.36.0 | ||
| 46 | |||
diff --git a/meta/recipes-core/systemd/systemd/38c87ca2ab96d085158485ecfc46c7cb6af0f166.patch b/meta/recipes-core/systemd/systemd/38c87ca2ab96d085158485ecfc46c7cb6af0f166.patch new file mode 100644 index 0000000000..2449023083 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/38c87ca2ab96d085158485ecfc46c7cb6af0f166.patch | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | From 38c87ca2ab96d085158485ecfc46c7cb6af0f166 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl> | ||
| 3 | Date: Fri, 3 Jun 2022 09:32:02 +0200 | ||
| 4 | Subject: [PATCH] sha256: fix compilation on efi-ia32 | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=UTF-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | /usr/bin/gcc -c ../src/fundamental/sha256.c -o src/boot/efi/sha256.c.o -Wno-format-signedness -Wno-missing-field-initializers -Wno-unused-parameter -Wdate-time -Wendif-labels -Werror=format=2 -Werror=implicit-function-declaration -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=overflow -Werror=override-init -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -Werror=undef -Wfloat-equal -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-aliasing=2 -Wstrict-prototypes -Wsuggest-attribute=noreturn -Wunused-function -Wwrite-strings -Wno-unused-result -fno-stack-protector -fno-strict-aliasing -fpic -fwide-exec-charset=UCS2 -Wall -Wextra -Wsign-compare -nostdlib -std=gnu99 -ffreestanding -fshort-wchar -fvisibility=hidden -isystem /usr/include/efi -isystem /usr/include/efi/ia32 -I /builddir/build/BUILD/systemd-stable-250.7/src/fundamental -DSD_BOOT -DGNU_EFI_USE_MS_ABI -include src/boot/efi/efi_config.h -include version.h -mno-sse -mno-mmx -flto -O2 -flto=auto | ||
| 10 | ../src/fundamental/sha256.c: In function ‘sha256_finish_ctx’: | ||
| 11 | ../src/fundamental/sha256.c:61:25: error: ‘false’ undeclared (first use in this function) | ||
| 12 | 61 | # define UNALIGNED_P(p) false | ||
| 13 | | ^~~~~ | ||
| 14 | ../src/fundamental/sha256.c:136:21: note: in expansion of macro ‘UNALIGNED_P’ | ||
| 15 | 136 | if (UNALIGNED_P(resbuf)) | ||
| 16 | | ^~~~~~~~~~~ | ||
| 17 | ../src/fundamental/sha256.c:32:1: note: ‘false’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’? | ||
| 18 | 31 | #include "sha256.h" | ||
| 19 | +++ |+#include <stdbool.h> | ||
| 20 | 32 | | ||
| 21 | ... | ||
| 22 | |||
| 23 | Upstream-Status: Backport | ||
| 24 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
| 25 | --- | ||
| 26 | src/fundamental/sha256.c | 2 +- | ||
| 27 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 28 | |||
| 29 | diff --git a/src/fundamental/sha256.c b/src/fundamental/sha256.c | ||
| 30 | index 67d83b5f1cd6..f08959479643 100644 | ||
| 31 | --- a/src/fundamental/sha256.c | ||
| 32 | +++ b/src/fundamental/sha256.c | ||
| 33 | @@ -60,7 +60,7 @@ | ||
| 34 | # define UNALIGNED_P(p) (((size_t) p) % sizeof(uint32_t) != 0) | ||
| 35 | # endif | ||
| 36 | #else | ||
| 37 | -# define UNALIGNED_P(p) false | ||
| 38 | +# define UNALIGNED_P(p) sd_false | ||
| 39 | #endif | ||
| 40 | |||
| 41 | /* This array contains the bytes used to pad the buffer to the next | ||
diff --git a/meta/recipes-core/systemd/systemd_250.5.bb b/meta/recipes-core/systemd/systemd_251.2.bb index 6fac27ee56..80f80849d0 100644 --- a/meta/recipes-core/systemd/systemd_250.5.bb +++ b/meta/recipes-core/systemd/systemd_251.2.bb | |||
| @@ -24,7 +24,6 @@ SRC_URI += "file://touchscreen.rules \ | |||
| 24 | file://0001-binfmt-Don-t-install-dependency-links-at-install-tim.patch \ | 24 | file://0001-binfmt-Don-t-install-dependency-links-at-install-tim.patch \ |
| 25 | file://0003-implment-systemd-sysv-install-for-OE.patch \ | 25 | file://0003-implment-systemd-sysv-install-for-OE.patch \ |
| 26 | file://0001-Move-sysusers.d-sysctl.d-binfmt.d-modules-load.d-to-.patch \ | 26 | file://0001-Move-sysusers.d-sysctl.d-binfmt.d-modules-load.d-to-.patch \ |
| 27 | file://0001-resolve-Use-sockaddr-pointer-type-for-bind.patch \ | ||
| 28 | " | 27 | " |
| 29 | 28 | ||
| 30 | # patches needed by musl | 29 | # patches needed by musl |
