diff options
Diffstat (limited to 'meta')
17 files changed, 133 insertions, 238 deletions
diff --git a/meta/recipes-core/systemd/systemd/0001-Adjust-for-musl-headers.patch b/meta/recipes-core/systemd/systemd/0001-Adjust-for-musl-headers.patch index c42c66786f..bce1ca4563 100644 --- a/meta/recipes-core/systemd/systemd/0001-Adjust-for-musl-headers.patch +++ b/meta/recipes-core/systemd/systemd/0001-Adjust-for-musl-headers.patch | |||
@@ -37,16 +37,18 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
37 | src/network/networkd-dhcp-prefix-delegation.c | 4 ++-- | 37 | src/network/networkd-dhcp-prefix-delegation.c | 4 ++-- |
38 | src/network/networkd-dhcp-server.c | 2 +- | 38 | src/network/networkd-dhcp-server.c | 2 +- |
39 | src/network/networkd-dhcp4.c | 2 +- | 39 | src/network/networkd-dhcp4.c | 2 +- |
40 | src/network/networkd-ipv6ll.c | 2 +- | ||
40 | src/network/networkd-link.c | 2 +- | 41 | src/network/networkd-link.c | 2 +- |
42 | src/network/networkd-ndisc.c | 2 +- | ||
41 | src/network/networkd-route.c | 8 ++++---- | 43 | src/network/networkd-route.c | 8 ++++---- |
42 | src/network/networkd-setlink.c | 2 +- | 44 | src/network/networkd-setlink.c | 2 +- |
43 | src/shared/linux/ethtool.h | 3 ++- | 45 | src/shared/linux/ethtool.h | 3 ++- |
44 | src/shared/netif-util.c | 2 +- | 46 | src/shared/netif-util.c | 2 +- |
45 | src/udev/udev-builtin-net_id.c | 2 +- | 47 | src/udev/udev-builtin-net_id.c | 2 +- |
46 | 35 files changed, 42 insertions(+), 40 deletions(-) | 48 | 37 files changed, 44 insertions(+), 42 deletions(-) |
47 | 49 | ||
48 | diff --git a/src/libsystemd-network/sd-dhcp6-client.c b/src/libsystemd-network/sd-dhcp6-client.c | 50 | diff --git a/src/libsystemd-network/sd-dhcp6-client.c b/src/libsystemd-network/sd-dhcp6-client.c |
49 | index 84bc739bba..ff8cb6bf9d 100644 | 51 | index b346a50d78..7884d4c1cd 100644 |
50 | --- a/src/libsystemd-network/sd-dhcp6-client.c | 52 | --- a/src/libsystemd-network/sd-dhcp6-client.c |
51 | +++ b/src/libsystemd-network/sd-dhcp6-client.c | 53 | +++ b/src/libsystemd-network/sd-dhcp6-client.c |
52 | @@ -5,7 +5,7 @@ | 54 | @@ -5,7 +5,7 @@ |
@@ -433,8 +435,21 @@ index cb9c428ae9..a35d58f3f1 100644 | |||
433 | 435 | ||
434 | #include "alloc-util.h" | 436 | #include "alloc-util.h" |
435 | #include "dhcp-client-internal.h" | 437 | #include "dhcp-client-internal.h" |
438 | diff --git a/src/network/networkd-ipv6ll.c b/src/network/networkd-ipv6ll.c | ||
439 | index dc09171afe..5b93ef3dd4 100644 | ||
440 | --- a/src/network/networkd-ipv6ll.c | ||
441 | +++ b/src/network/networkd-ipv6ll.c | ||
442 | @@ -1,7 +1,7 @@ | ||
443 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ | ||
444 | |||
445 | #include <linux/if.h> | ||
446 | -#include <linux/if_arp.h> | ||
447 | +//#include <linux/if_arp.h> | ||
448 | |||
449 | #include "in-addr-util.h" | ||
450 | #include "networkd-address.h" | ||
436 | diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c | 451 | diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c |
437 | index b62a154828..75949e6094 100644 | 452 | index 63679505f7..825ea76ff2 100644 |
438 | --- a/src/network/networkd-link.c | 453 | --- a/src/network/networkd-link.c |
439 | +++ b/src/network/networkd-link.c | 454 | +++ b/src/network/networkd-link.c |
440 | @@ -3,7 +3,7 @@ | 455 | @@ -3,7 +3,7 @@ |
@@ -446,8 +461,21 @@ index b62a154828..75949e6094 100644 | |||
446 | #include <linux/if_link.h> | 461 | #include <linux/if_link.h> |
447 | #include <linux/netdevice.h> | 462 | #include <linux/netdevice.h> |
448 | #include <sys/socket.h> | 463 | #include <sys/socket.h> |
464 | diff --git a/src/network/networkd-ndisc.c b/src/network/networkd-ndisc.c | ||
465 | index efe407fedb..46a086cdf5 100644 | ||
466 | --- a/src/network/networkd-ndisc.c | ||
467 | +++ b/src/network/networkd-ndisc.c | ||
468 | @@ -6,7 +6,7 @@ | ||
469 | #include <arpa/inet.h> | ||
470 | #include <netinet/icmp6.h> | ||
471 | #include <linux/if.h> | ||
472 | -#include <linux/if_arp.h> | ||
473 | +//#include <linux/if_arp.h> | ||
474 | |||
475 | #include "sd-ndisc.h" | ||
476 | |||
449 | diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c | 477 | diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c |
450 | index ee7a535075..ce6ed64133 100644 | 478 | index 934fed3b7f..fdb89313dd 100644 |
451 | --- a/src/network/networkd-route.c | 479 | --- a/src/network/networkd-route.c |
452 | +++ b/src/network/networkd-route.c | 480 | +++ b/src/network/networkd-route.c |
453 | @@ -1,9 +1,5 @@ | 481 | @@ -1,9 +1,5 @@ |
@@ -485,12 +513,12 @@ index e00cc1e589..e392c7e1a2 100644 | |||
485 | 513 | ||
486 | #include "missing_network.h" | 514 | #include "missing_network.h" |
487 | diff --git a/src/shared/linux/ethtool.h b/src/shared/linux/ethtool.h | 515 | diff --git a/src/shared/linux/ethtool.h b/src/shared/linux/ethtool.h |
488 | index 974d4292e7..fe9b8a9e07 100644 | 516 | index cf20b6dba5..c3a46dda11 100644 |
489 | --- a/src/shared/linux/ethtool.h | 517 | --- a/src/shared/linux/ethtool.h |
490 | +++ b/src/shared/linux/ethtool.h | 518 | +++ b/src/shared/linux/ethtool.h |
491 | @@ -16,7 +16,8 @@ | 519 | @@ -16,7 +16,8 @@ |
492 | 520 | ||
493 | #include <linux/kernel.h> | 521 | #include <linux/const.h> |
494 | #include <linux/types.h> | 522 | #include <linux/types.h> |
495 | -#include <linux/if_ether.h> | 523 | -#include <linux/if_ether.h> |
496 | +#include <netinet/if_ether.h> | 524 | +#include <netinet/if_ether.h> |
@@ -499,19 +527,20 @@ index 974d4292e7..fe9b8a9e07 100644 | |||
499 | #ifndef __KERNEL__ | 527 | #ifndef __KERNEL__ |
500 | #include <limits.h> /* for INT_MAX */ | 528 | #include <limits.h> /* for INT_MAX */ |
501 | diff --git a/src/shared/netif-util.c b/src/shared/netif-util.c | 529 | diff --git a/src/shared/netif-util.c b/src/shared/netif-util.c |
502 | index 603d4de109..7e3531808a 100644 | 530 | index f56c5646c1..5af28ff119 100644 |
503 | --- a/src/shared/netif-util.c | 531 | --- a/src/shared/netif-util.c |
504 | +++ b/src/shared/netif-util.c | 532 | +++ b/src/shared/netif-util.c |
505 | @@ -1,6 +1,6 @@ | 533 | @@ -1,7 +1,7 @@ |
506 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ | 534 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
507 | 535 | ||
536 | #include <linux/if.h> | ||
508 | -#include <linux/if_arp.h> | 537 | -#include <linux/if_arp.h> |
509 | +//#include <linux/if_arp.h> | 538 | +//#include <linux/if_arp.h> |
510 | 539 | ||
511 | #include "arphrd-util.h" | 540 | #include "arphrd-util.h" |
512 | #include "device-util.h" | 541 | #include "device-util.h" |
513 | diff --git a/src/udev/udev-builtin-net_id.c b/src/udev/udev-builtin-net_id.c | 542 | diff --git a/src/udev/udev-builtin-net_id.c b/src/udev/udev-builtin-net_id.c |
514 | index 65e003eb15..0b3dc04be0 100644 | 543 | index f2ea2a7cd5..fe60a0744d 100644 |
515 | --- a/src/udev/udev-builtin-net_id.c | 544 | --- a/src/udev/udev-builtin-net_id.c |
516 | +++ b/src/udev/udev-builtin-net_id.c | 545 | +++ b/src/udev/udev-builtin-net_id.c |
517 | @@ -18,7 +18,7 @@ | 546 | @@ -18,7 +18,7 @@ |
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 330ad492ba..a19a025559 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 | |||
@@ -39,7 +39,7 @@ index a9bf28f6d9..11d3644168 100644 | |||
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 | @@ -184,8 +183,7 @@ in_units = [ | 42 | @@ -186,8 +185,7 @@ in_units = [ |
43 | ['rescue.service', ''], | 43 | ['rescue.service', ''], |
44 | ['serial-getty@.service', ''], | 44 | ['serial-getty@.service', ''], |
45 | ['systemd-backlight@.service', 'ENABLE_BACKLIGHT'], | 45 | ['systemd-backlight@.service', 'ENABLE_BACKLIGHT'], |
diff --git a/meta/recipes-core/systemd/systemd/0001-pass-correct-parameters-to-getdents64.patch b/meta/recipes-core/systemd/systemd/0001-pass-correct-parameters-to-getdents64.patch index 9ebff9825a..144314c409 100644 --- a/meta/recipes-core/systemd/systemd/0001-pass-correct-parameters-to-getdents64.patch +++ b/meta/recipes-core/systemd/systemd/0001-pass-correct-parameters-to-getdents64.patch | |||
@@ -15,10 +15,10 @@ Fixes | |||
15 | Upstream-Status: Inappropriate [musl specific] | 15 | Upstream-Status: Inappropriate [musl specific] |
16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
17 | Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com> | 17 | Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com> |
18 | |||
18 | --- | 19 | --- |
19 | src/basic/recurse-dir.c | 2 +- | 20 | src/basic/recurse-dir.c | 2 +- |
20 | src/basic/stat-util.c | 2 +- | 21 | 1 file changed, 1 insertion(+), 1 deletion(-) |
21 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
22 | 22 | ||
23 | diff --git a/src/basic/recurse-dir.c b/src/basic/recurse-dir.c | 23 | diff --git a/src/basic/recurse-dir.c b/src/basic/recurse-dir.c |
24 | index efa1797b7b..03ff10ebe9 100644 | 24 | index efa1797b7b..03ff10ebe9 100644 |
@@ -33,19 +33,3 @@ index efa1797b7b..03ff10ebe9 100644 | |||
33 | if (n < 0) | 33 | if (n < 0) |
34 | return -errno; | 34 | return -errno; |
35 | if (n == 0) | 35 | if (n == 0) |
36 | diff --git a/src/basic/stat-util.c b/src/basic/stat-util.c | ||
37 | index c2269844f8..7cd6c7fa42 100644 | ||
38 | --- a/src/basic/stat-util.c | ||
39 | +++ b/src/basic/stat-util.c | ||
40 | @@ -99,7 +99,7 @@ int dir_is_empty_at(int dir_fd, const char *path) { | ||
41 | return fd; | ||
42 | } | ||
43 | |||
44 | - n = getdents64(fd, &buffer, sizeof(buffer)); | ||
45 | + n = getdents64(fd, (struct dirent *)&buffer, sizeof(buffer)); | ||
46 | if (n < 0) | ||
47 | return -errno; | ||
48 | |||
49 | -- | ||
50 | 2.34.1 | ||
51 | |||
diff --git a/meta/recipes-core/systemd/systemd/0002-Add-sys-stat.h-for-S_IFDIR.patch b/meta/recipes-core/systemd/systemd/0002-Add-sys-stat.h-for-S_IFDIR.patch index 8cf0546450..4db5d6d97f 100644 --- a/meta/recipes-core/systemd/systemd/0002-Add-sys-stat.h-for-S_IFDIR.patch +++ b/meta/recipes-core/systemd/systemd/0002-Add-sys-stat.h-for-S_IFDIR.patch | |||
@@ -14,10 +14,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
14 | 1 file changed, 1 insertion(+) | 14 | 1 file changed, 1 insertion(+) |
15 | 15 | ||
16 | diff --git a/src/shared/mkdir-label.c b/src/shared/mkdir-label.c | 16 | diff --git a/src/shared/mkdir-label.c b/src/shared/mkdir-label.c |
17 | index d36a6466d7..63b764cd83 100644 | 17 | index 5b1ac5d1e0..fa5802b894 100644 |
18 | --- a/src/shared/mkdir-label.c | 18 | --- a/src/shared/mkdir-label.c |
19 | +++ b/src/shared/mkdir-label.c | 19 | +++ b/src/shared/mkdir-label.c |
20 | @@ -4,6 +4,7 @@ | 20 | @@ -6,6 +6,7 @@ |
21 | #include "selinux-util.h" | 21 | #include "selinux-util.h" |
22 | #include "smack-util.h" | 22 | #include "smack-util.h" |
23 | #include "user-util.h" | 23 | #include "user-util.h" |
diff --git a/meta/recipes-core/systemd/systemd/0003-implment-systemd-sysv-install-for-OE.patch b/meta/recipes-core/systemd/systemd/0003-implment-systemd-sysv-install-for-OE.patch index c6204786b3..4556ab5da6 100644 --- a/meta/recipes-core/systemd/systemd/0003-implment-systemd-sysv-install-for-OE.patch +++ b/meta/recipes-core/systemd/systemd/0003-implment-systemd-sysv-install-for-OE.patch | |||
@@ -15,10 +15,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
15 | 1 file changed, 3 insertions(+), 3 deletions(-) | 15 | 1 file changed, 3 insertions(+), 3 deletions(-) |
16 | 16 | ||
17 | diff --git a/src/systemctl/systemd-sysv-install.SKELETON b/src/systemctl/systemd-sysv-install.SKELETON | 17 | diff --git a/src/systemctl/systemd-sysv-install.SKELETON b/src/systemctl/systemd-sysv-install.SKELETON |
18 | index 8c16cf99913f..9f078a121469 100755 | 18 | index a2a0059fef..7f95791d9b 100755 |
19 | --- a/src/systemctl/systemd-sysv-install.SKELETON | 19 | --- a/src/systemctl/systemd-sysv-install.SKELETON |
20 | +++ b/src/systemctl/systemd-sysv-install.SKELETON | 20 | +++ b/src/systemctl/systemd-sysv-install.SKELETON |
21 | @@ -32,17 +32,17 @@ case "$1" in | 21 | @@ -34,17 +34,17 @@ case "$1" in |
22 | enable) | 22 | enable) |
23 | # call the command to enable SysV init script $NAME here | 23 | # call the command to enable SysV init script $NAME here |
24 | # (consider optional $ROOT) | 24 | # (consider optional $ROOT) |
diff --git a/meta/recipes-core/systemd/systemd/0004-add-fallback-parse_printf_format-implementation.patch b/meta/recipes-core/systemd/systemd/0004-add-fallback-parse_printf_format-implementation.patch index 1bd538b0c0..0c85f2bcbe 100644 --- a/meta/recipes-core/systemd/systemd/0004-add-fallback-parse_printf_format-implementation.patch +++ b/meta/recipes-core/systemd/systemd/0004-add-fallback-parse_printf_format-implementation.patch | |||
@@ -23,10 +23,10 @@ Signed-off-by: Scott Murray <scott.murray@konsulko.com> | |||
23 | create mode 100644 src/basic/parse-printf-format.h | 23 | create mode 100644 src/basic/parse-printf-format.h |
24 | 24 | ||
25 | diff --git a/meson.build b/meson.build | 25 | diff --git a/meson.build b/meson.build |
26 | index cb9936ee8b..ae53345260 100644 | 26 | index 36cbfa4893..30b5305b89 100644 |
27 | --- a/meson.build | 27 | --- a/meson.build |
28 | +++ b/meson.build | 28 | +++ b/meson.build |
29 | @@ -686,6 +686,7 @@ endif | 29 | @@ -694,6 +694,7 @@ endif |
30 | foreach header : ['crypt.h', | 30 | foreach header : ['crypt.h', |
31 | 'linux/memfd.h', | 31 | 'linux/memfd.h', |
32 | 'linux/vm_sockets.h', | 32 | 'linux/vm_sockets.h', |
@@ -35,10 +35,10 @@ index cb9936ee8b..ae53345260 100644 | |||
35 | 'valgrind/memcheck.h', | 35 | 'valgrind/memcheck.h', |
36 | 'valgrind/valgrind.h', | 36 | 'valgrind/valgrind.h', |
37 | diff --git a/src/basic/meson.build b/src/basic/meson.build | 37 | diff --git a/src/basic/meson.build b/src/basic/meson.build |
38 | index 49e1e7f43e..4131494bfa 100644 | 38 | index 9b89fdcdea..0b1ef91016 100644 |
39 | --- a/src/basic/meson.build | 39 | --- a/src/basic/meson.build |
40 | +++ b/src/basic/meson.build | 40 | +++ b/src/basic/meson.build |
41 | @@ -334,6 +334,11 @@ endforeach | 41 | @@ -336,6 +336,11 @@ endforeach |
42 | 42 | ||
43 | basic_sources += generated_gperf_headers | 43 | basic_sources += generated_gperf_headers |
44 | 44 | ||
diff --git a/meta/recipes-core/systemd/systemd/0005-src-basic-missing.h-check-for-missing-strndupa.patch b/meta/recipes-core/systemd/systemd/0005-src-basic-missing.h-check-for-missing-strndupa.patch index 680930ca3c..9e02666698 100644 --- a/meta/recipes-core/systemd/systemd/0005-src-basic-missing.h-check-for-missing-strndupa.patch +++ b/meta/recipes-core/systemd/systemd/0005-src-basic-missing.h-check-for-missing-strndupa.patch | |||
@@ -73,10 +73,10 @@ Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> | |||
73 | 52 files changed, 63 insertions(+) | 73 | 52 files changed, 63 insertions(+) |
74 | 74 | ||
75 | diff --git a/meson.build b/meson.build | 75 | diff --git a/meson.build b/meson.build |
76 | index cb9936ee8b..7ab201c6d9 100644 | 76 | index 30b5305b89..0189ef8ce6 100644 |
77 | --- a/meson.build | 77 | --- a/meson.build |
78 | +++ b/meson.build | 78 | +++ b/meson.build |
79 | @@ -507,6 +507,7 @@ foreach ident : ['secure_getenv', '__secure_getenv'] | 79 | @@ -512,6 +512,7 @@ foreach ident : ['secure_getenv', '__secure_getenv'] |
80 | endforeach | 80 | endforeach |
81 | 81 | ||
82 | foreach ident : [ | 82 | foreach ident : [ |
@@ -85,19 +85,19 @@ index cb9936ee8b..7ab201c6d9 100644 | |||
85 | ['gettid', '''#include <sys/types.h> | 85 | ['gettid', '''#include <sys/types.h> |
86 | #include <unistd.h>'''], | 86 | #include <unistd.h>'''], |
87 | diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c | 87 | diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c |
88 | index 5a3095cbba..22cfa4d526 100644 | 88 | index a4e5d77f6c..fc12da4c53 100644 |
89 | --- a/src/backlight/backlight.c | 89 | --- a/src/backlight/backlight.c |
90 | +++ b/src/backlight/backlight.c | 90 | +++ b/src/backlight/backlight.c |
91 | @@ -19,6 +19,7 @@ | 91 | @@ -20,6 +20,7 @@ |
92 | #include "string-util.h" | ||
93 | #include "strv.h" | 92 | #include "strv.h" |
93 | #include "terminal-util.h" | ||
94 | #include "util.h" | 94 | #include "util.h" |
95 | +#include "missing_stdlib.h" | 95 | +#include "missing_stdlib.h" |
96 | 96 | ||
97 | static int help(void) { | 97 | static int help(void) { |
98 | _cleanup_free_ char *link = NULL; | 98 | _cleanup_free_ char *link = NULL; |
99 | diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c | 99 | diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c |
100 | index a626ecf2e2..f7dc6c8421 100644 | 100 | index b03cc70e2e..f4615ffce1 100644 |
101 | --- a/src/basic/cgroup-util.c | 101 | --- a/src/basic/cgroup-util.c |
102 | +++ b/src/basic/cgroup-util.c | 102 | +++ b/src/basic/cgroup-util.c |
103 | @@ -37,6 +37,7 @@ | 103 | @@ -37,6 +37,7 @@ |
@@ -249,10 +249,10 @@ index b659d6905d..020112be24 100644 | |||
249 | static clockid_t map_clock_id(clockid_t c) { | 249 | static clockid_t map_clock_id(clockid_t c) { |
250 | 250 | ||
251 | diff --git a/src/boot/bless-boot.c b/src/boot/bless-boot.c | 251 | diff --git a/src/boot/bless-boot.c b/src/boot/bless-boot.c |
252 | index 9e4b0d1f72..d640316ff7 100644 | 252 | index d9c901d73b..79a035274c 100644 |
253 | --- a/src/boot/bless-boot.c | 253 | --- a/src/boot/bless-boot.c |
254 | +++ b/src/boot/bless-boot.c | 254 | +++ b/src/boot/bless-boot.c |
255 | @@ -19,6 +19,7 @@ | 255 | @@ -22,6 +22,7 @@ |
256 | #include "util.h" | 256 | #include "util.h" |
257 | #include "verbs.h" | 257 | #include "verbs.h" |
258 | #include "virt.h" | 258 | #include "virt.h" |
@@ -297,10 +297,10 @@ index 32a2ec0ff9..36be2511e4 100644 | |||
297 | int bus_property_get_triggered_unit( | 297 | int bus_property_get_triggered_unit( |
298 | sd_bus *bus, | 298 | sd_bus *bus, |
299 | diff --git a/src/core/execute.c b/src/core/execute.c | 299 | diff --git a/src/core/execute.c b/src/core/execute.c |
300 | index 0b20d386d3..fccfb9268c 100644 | 300 | index 2762b10287..a8aeec7f6e 100644 |
301 | --- a/src/core/execute.c | 301 | --- a/src/core/execute.c |
302 | +++ b/src/core/execute.c | 302 | +++ b/src/core/execute.c |
303 | @@ -102,6 +102,7 @@ | 303 | @@ -103,6 +103,7 @@ |
304 | #include "unit-serialize.h" | 304 | #include "unit-serialize.h" |
305 | #include "user-util.h" | 305 | #include "user-util.h" |
306 | #include "utmp-wtmp.h" | 306 | #include "utmp-wtmp.h" |
@@ -309,19 +309,19 @@ index 0b20d386d3..fccfb9268c 100644 | |||
309 | #define IDLE_TIMEOUT_USEC (5*USEC_PER_SEC) | 309 | #define IDLE_TIMEOUT_USEC (5*USEC_PER_SEC) |
310 | #define IDLE_TIMEOUT2_USEC (1*USEC_PER_SEC) | 310 | #define IDLE_TIMEOUT2_USEC (1*USEC_PER_SEC) |
311 | diff --git a/src/core/kmod-setup.c b/src/core/kmod-setup.c | 311 | diff --git a/src/core/kmod-setup.c b/src/core/kmod-setup.c |
312 | index d054668b8e..9b4caa7651 100644 | 312 | index f4488dd692..1d331a7ee2 100644 |
313 | --- a/src/core/kmod-setup.c | 313 | --- a/src/core/kmod-setup.c |
314 | +++ b/src/core/kmod-setup.c | 314 | +++ b/src/core/kmod-setup.c |
315 | @@ -10,6 +10,7 @@ | 315 | @@ -11,6 +11,7 @@ |
316 | #include "macro.h" | ||
317 | #include "recurse-dir.h" | 316 | #include "recurse-dir.h" |
318 | #include "string-util.h" | 317 | #include "string-util.h" |
318 | #include "virt.h" | ||
319 | +#include "missing_stdlib.h" | 319 | +#include "missing_stdlib.h" |
320 | 320 | ||
321 | #if HAVE_KMOD | 321 | #if HAVE_KMOD |
322 | #include "module-util.h" | 322 | #include "module-util.h" |
323 | diff --git a/src/core/service.c b/src/core/service.c | 323 | diff --git a/src/core/service.c b/src/core/service.c |
324 | index 87f0d34c8c..ccda3feb29 100644 | 324 | index 9f7af9dffb..3ec5e30c8b 100644 |
325 | --- a/src/core/service.c | 325 | --- a/src/core/service.c |
326 | +++ b/src/core/service.c | 326 | +++ b/src/core/service.c |
327 | @@ -42,6 +42,7 @@ | 327 | @@ -42,6 +42,7 @@ |
@@ -330,13 +330,13 @@ index 87f0d34c8c..ccda3feb29 100644 | |||
330 | #include "util.h" | 330 | #include "util.h" |
331 | +#include "missing_stdlib.h" | 331 | +#include "missing_stdlib.h" |
332 | 332 | ||
333 | static const UnitActiveState state_translation_table[_SERVICE_STATE_MAX] = { | 333 | #define service_spawn(...) service_spawn_internal(__func__, __VA_ARGS__) |
334 | [SERVICE_DEAD] = UNIT_INACTIVE, | 334 | |
335 | diff --git a/src/coredump/coredump-vacuum.c b/src/coredump/coredump-vacuum.c | 335 | diff --git a/src/coredump/coredump-vacuum.c b/src/coredump/coredump-vacuum.c |
336 | index dcf9cc03cd..8f8d992ec2 100644 | 336 | index c6e201ecf2..ab034475e2 100644 |
337 | --- a/src/coredump/coredump-vacuum.c | 337 | --- a/src/coredump/coredump-vacuum.c |
338 | +++ b/src/coredump/coredump-vacuum.c | 338 | +++ b/src/coredump/coredump-vacuum.c |
339 | @@ -16,6 +16,7 @@ | 339 | @@ -17,6 +17,7 @@ |
340 | #include "string-util.h" | 340 | #include "string-util.h" |
341 | #include "time-util.h" | 341 | #include "time-util.h" |
342 | #include "user-util.h" | 342 | #include "user-util.h" |
@@ -369,10 +369,10 @@ index 3e3646e45f..6a8fc60f6d 100644 | |||
369 | #define PRIV_KEY_FILE CERTIFICATE_ROOT "/private/journal-remote.pem" | 369 | #define PRIV_KEY_FILE CERTIFICATE_ROOT "/private/journal-remote.pem" |
370 | #define CERT_FILE CERTIFICATE_ROOT "/certs/journal-remote.pem" | 370 | #define CERT_FILE CERTIFICATE_ROOT "/certs/journal-remote.pem" |
371 | diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c | 371 | diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c |
372 | index 3c4a7c0a7a..6a792404f2 100644 | 372 | index cff34fd585..a5003e47e9 100644 |
373 | --- a/src/journal/journalctl.c | 373 | --- a/src/journal/journalctl.c |
374 | +++ b/src/journal/journalctl.c | 374 | +++ b/src/journal/journalctl.c |
375 | @@ -73,6 +73,7 @@ | 375 | @@ -74,6 +74,7 @@ |
376 | #include "unit-name.h" | 376 | #include "unit-name.h" |
377 | #include "user-util.h" | 377 | #include "user-util.h" |
378 | #include "varlink.h" | 378 | #include "varlink.h" |
@@ -393,11 +393,11 @@ index 96529b422b..ddb5e9c698 100644 | |||
393 | static int message_append_basic(sd_bus_message *m, char type, const void *p, const void **stored); | 393 | static int message_append_basic(sd_bus_message *m, char type, const void *p, const void **stored); |
394 | 394 | ||
395 | diff --git a/src/libsystemd/sd-bus/bus-objects.c b/src/libsystemd/sd-bus/bus-objects.c | 395 | diff --git a/src/libsystemd/sd-bus/bus-objects.c b/src/libsystemd/sd-bus/bus-objects.c |
396 | index 28d8336718..5d3ce88a53 100644 | 396 | index 909dfe4d3a..254b7ce866 100644 |
397 | --- a/src/libsystemd/sd-bus/bus-objects.c | 397 | --- a/src/libsystemd/sd-bus/bus-objects.c |
398 | +++ b/src/libsystemd/sd-bus/bus-objects.c | 398 | +++ b/src/libsystemd/sd-bus/bus-objects.c |
399 | @@ -12,6 +12,7 @@ | 399 | @@ -11,6 +11,7 @@ |
400 | #include "set.h" | 400 | #include "missing_capability.h" |
401 | #include "string-util.h" | 401 | #include "string-util.h" |
402 | #include "strv.h" | 402 | #include "strv.h" |
403 | +#include "missing_stdlib.h" | 403 | +#include "missing_stdlib.h" |
@@ -633,11 +633,11 @@ index f75ef62d2d..530001a821 100644 | |||
633 | static pid_t pager_pid = 0; | 633 | static pid_t pager_pid = 0; |
634 | 634 | ||
635 | diff --git a/src/shared/uid-range.c b/src/shared/uid-range.c | 635 | diff --git a/src/shared/uid-range.c b/src/shared/uid-range.c |
636 | index 2c07a1b7a8..2a9d6ef4ab 100644 | 636 | index 1b4396a34c..c2f72b185f 100644 |
637 | --- a/src/shared/uid-range.c | 637 | --- a/src/shared/uid-range.c |
638 | +++ b/src/shared/uid-range.c | 638 | +++ b/src/shared/uid-range.c |
639 | @@ -9,6 +9,7 @@ | 639 | @@ -14,6 +14,7 @@ |
640 | #include "sort-util.h" | 640 | #include "stat-util.h" |
641 | #include "uid-range.h" | 641 | #include "uid-range.h" |
642 | #include "user-util.h" | 642 | #include "user-util.h" |
643 | +#include "missing_stdlib.h" | 643 | +#include "missing_stdlib.h" |
@@ -704,6 +704,3 @@ index 1a384d6b38..0089833e3f 100644 | |||
704 | 704 | ||
705 | #define RULES_DIRS (const char* const*) CONF_PATHS_STRV("udev/rules.d") | 705 | #define RULES_DIRS (const char* const*) CONF_PATHS_STRV("udev/rules.d") |
706 | 706 | ||
707 | -- | ||
708 | 2.34.1 | ||
709 | |||
diff --git a/meta/recipes-core/systemd/systemd/0007-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch b/meta/recipes-core/systemd/systemd/0007-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch index b84fbaa67e..eeaaac1b9a 100644 --- a/meta/recipes-core/systemd/systemd/0007-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch +++ b/meta/recipes-core/systemd/systemd/0007-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch | |||
@@ -131,7 +131,7 @@ index fcab51c208..fdef1807ae 100644 | |||
131 | /* This reads all files listed in /etc/tmpfiles.d/?*.conf and creates | 131 | /* This reads all files listed in /etc/tmpfiles.d/?*.conf and creates |
132 | * them in the file system. This is intended to be used to create | 132 | * them in the file system. This is intended to be used to create |
133 | * properly owned directories beneath /tmp, /var/tmp, /run, which are | 133 | * properly owned directories beneath /tmp, /var/tmp, /run, which are |
134 | @@ -1961,7 +1967,9 @@ finish: | 134 | @@ -1934,7 +1940,9 @@ finish: |
135 | 135 | ||
136 | static int glob_item(Item *i, action_t action) { | 136 | static int glob_item(Item *i, action_t action) { |
137 | _cleanup_globfree_ glob_t g = { | 137 | _cleanup_globfree_ glob_t g = { |
@@ -140,8 +140,8 @@ index fcab51c208..fdef1807ae 100644 | |||
140 | +#endif | 140 | +#endif |
141 | }; | 141 | }; |
142 | int r = 0, k; | 142 | int r = 0, k; |
143 | char **fn; | 143 | |
144 | @@ -1981,7 +1989,9 @@ static int glob_item(Item *i, action_t action) { | 144 | @@ -1953,7 +1961,9 @@ static int glob_item(Item *i, action_t action) { |
145 | 145 | ||
146 | static int glob_item_recursively(Item *i, fdaction_t action) { | 146 | static int glob_item_recursively(Item *i, fdaction_t action) { |
147 | _cleanup_globfree_ glob_t g = { | 147 | _cleanup_globfree_ glob_t g = { |
@@ -150,4 +150,3 @@ index fcab51c208..fdef1807ae 100644 | |||
150 | +#endif | 150 | +#endif |
151 | }; | 151 | }; |
152 | int r = 0, k; | 152 | int r = 0, k; |
153 | char **fn; | ||
diff --git a/meta/recipes-core/systemd/systemd/0008-add-missing-FTW_-macros-for-musl.patch b/meta/recipes-core/systemd/systemd/0008-add-missing-FTW_-macros-for-musl.patch index 4cce9a3fe6..d1191d7e8e 100644 --- a/meta/recipes-core/systemd/systemd/0008-add-missing-FTW_-macros-for-musl.patch +++ b/meta/recipes-core/systemd/systemd/0008-add-missing-FTW_-macros-for-musl.patch | |||
@@ -7,59 +7,27 @@ This is to avoid build failures like below for musl. | |||
7 | 7 | ||
8 | locale-util.c:296:24: error: 'FTW_STOP' undeclared | 8 | locale-util.c:296:24: error: 'FTW_STOP' undeclared |
9 | 9 | ||
10 | Revisit this when upgrading to 251+ since most of these defines are not | ||
11 | needed anymore except FTW_CONTINUE | ||
12 | |||
13 | Upstream-Status: Inappropriate [musl specific] | 10 | Upstream-Status: Inappropriate [musl specific] |
14 | 11 | ||
15 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | 12 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> |
16 | 13 | ||
17 | --- | 14 | --- |
18 | src/basic/missing_type.h | 20 ++++++++++++++++++++ | 15 | src/basic/missing_type.h | 4 ++++ |
19 | src/shared/mount-setup.c | 1 + | 16 | src/test/test-recurse-dir.c | 1 + |
20 | src/test/test-recurse-dir.c | 1 + | 17 | 2 files changed, 5 insertions(+) |
21 | 3 files changed, 22 insertions(+) | ||
22 | 18 | ||
23 | diff --git a/src/basic/missing_type.h b/src/basic/missing_type.h | 19 | diff --git a/src/basic/missing_type.h b/src/basic/missing_type.h |
24 | index aeaf6ad5ec..3df1084ef2 100644 | 20 | index 6c0456349d..73a5b90e3c 100644 |
25 | --- a/src/basic/missing_type.h | 21 | --- a/src/basic/missing_type.h |
26 | +++ b/src/basic/missing_type.h | 22 | +++ b/src/basic/missing_type.h |
27 | @@ -19,3 +19,23 @@ typedef int (*comparison_fn_t)(const void *, const void *); | 23 | @@ -14,3 +14,7 @@ |
28 | #define __COMPAR_FN_T | 24 | #ifndef __GLIBC__ |
29 | typedef int (*__compar_fn_t)(const void *, const void *); | 25 | typedef int (*comparison_fn_t)(const void *, const void *); |
30 | #endif | 26 | #endif |
31 | + | 27 | + |
32 | +#ifndef FTW_ACTIONRETVAL | ||
33 | +#define FTW_ACTIONRETVAL 16 | ||
34 | +#endif | ||
35 | + | ||
36 | +#ifndef FTW_CONTINUE | 28 | +#ifndef FTW_CONTINUE |
37 | +#define FTW_CONTINUE 0 | 29 | +#define FTW_CONTINUE 0 |
38 | +#endif | 30 | +#endif |
39 | + | ||
40 | +#ifndef FTW_STOP | ||
41 | +#define FTW_STOP 1 | ||
42 | +#endif | ||
43 | + | ||
44 | +#ifndef FTW_SKIP_SUBTREE | ||
45 | +#define FTW_SKIP_SUBTREE 2 | ||
46 | +#endif | ||
47 | + | ||
48 | +#ifndef FTW_SKIP_SIBLINGS | ||
49 | +#define FTW_SKIP_SIBLINGS 3 | ||
50 | +#endif | ||
51 | diff --git a/src/shared/mount-setup.c b/src/shared/mount-setup.c | ||
52 | index 7917968497..cc3d5baaab 100644 | ||
53 | --- a/src/shared/mount-setup.c | ||
54 | +++ b/src/shared/mount-setup.c | ||
55 | @@ -32,6 +32,7 @@ | ||
56 | #include "strv.h" | ||
57 | #include "user-util.h" | ||
58 | #include "virt.h" | ||
59 | +#include "missing_type.h" | ||
60 | |||
61 | typedef enum MountMode { | ||
62 | MNT_NONE = 0, | ||
63 | diff --git a/src/test/test-recurse-dir.c b/src/test/test-recurse-dir.c | 31 | diff --git a/src/test/test-recurse-dir.c b/src/test/test-recurse-dir.c |
64 | index 2c2120b136..bc60a178a2 100644 | 32 | index 2c2120b136..bc60a178a2 100644 |
65 | --- a/src/test/test-recurse-dir.c | 33 | --- a/src/test/test-recurse-dir.c |
diff --git a/meta/recipes-core/systemd/systemd/0009-fix-missing-of-__register_atfork-for-non-glibc-build.patch b/meta/recipes-core/systemd/systemd/0009-fix-missing-of-__register_atfork-for-non-glibc-build.patch deleted file mode 100644 index e7b7269f95..0000000000 --- a/meta/recipes-core/systemd/systemd/0009-fix-missing-of-__register_atfork-for-non-glibc-build.patch +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | From 3ca0920429f7eaf8c59f9ac8afd30a43b83d95ed Mon Sep 17 00:00:00 2001 | ||
2 | From: Chen Qi <Qi.Chen@windriver.com> | ||
3 | Date: Mon, 25 Feb 2019 15:03:47 +0800 | ||
4 | Subject: [PATCH] fix missing of __register_atfork for non-glibc builds | ||
5 | |||
6 | Upstream-Status: Inappropriate [musl specific] | ||
7 | |||
8 | Drop this when upgrading to 251+, systemd does not use | ||
9 | __register_atfork anymore | ||
10 | |||
11 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
12 | |||
13 | --- | ||
14 | src/basic/process-util.c | 7 +++++++ | ||
15 | 1 file changed, 7 insertions(+) | ||
16 | |||
17 | diff --git a/src/basic/process-util.c b/src/basic/process-util.c | ||
18 | index c971852158..df6e85b1fc 100644 | ||
19 | --- a/src/basic/process-util.c | ||
20 | +++ b/src/basic/process-util.c | ||
21 | @@ -18,6 +18,9 @@ | ||
22 | #if HAVE_VALGRIND_VALGRIND_H | ||
23 | #include <valgrind/valgrind.h> | ||
24 | #endif | ||
25 | +#ifndef __GLIBC__ | ||
26 | +#include <pthread.h> | ||
27 | +#endif | ||
28 | |||
29 | #include "alloc-util.h" | ||
30 | #include "architecture.h" | ||
31 | @@ -1161,11 +1164,15 @@ void reset_cached_pid(void) { | ||
32 | cached_pid = CACHED_PID_UNSET; | ||
33 | } | ||
34 | |||
35 | +#ifdef __GLIBC__ | ||
36 | /* We use glibc __register_atfork() + __dso_handle directly here, as they are not included in the glibc | ||
37 | * headers. __register_atfork() is mostly equivalent to pthread_atfork(), but doesn't require us to link against | ||
38 | * libpthread, as it is part of glibc anyway. */ | ||
39 | extern int __register_atfork(void (*prepare) (void), void (*parent) (void), void (*child) (void), void *dso_handle); | ||
40 | extern void* __dso_handle _weak_; | ||
41 | +#else | ||
42 | +#define __register_atfork(prepare,parent,child,dso) pthread_atfork(prepare,parent,child) | ||
43 | +#endif | ||
44 | |||
45 | pid_t getpid_cached(void) { | ||
46 | static bool installed = false; | ||
diff --git a/meta/recipes-core/systemd/systemd/0011-test-sizeof.c-Disable-tests-for-missing-typedefs-in-.patch b/meta/recipes-core/systemd/systemd/0011-test-sizeof.c-Disable-tests-for-missing-typedefs-in-.patch index 7e4587cc23..1074866f86 100644 --- a/meta/recipes-core/systemd/systemd/0011-test-sizeof.c-Disable-tests-for-missing-typedefs-in-.patch +++ b/meta/recipes-core/systemd/systemd/0011-test-sizeof.c-Disable-tests-for-missing-typedefs-in-.patch | |||
@@ -18,8 +18,8 @@ index f349852553..602772227e 100644 | |||
18 | +++ b/src/test/test-sizeof.c | 18 | +++ b/src/test/test-sizeof.c |
19 | @@ -55,8 +55,10 @@ int main(void) { | 19 | @@ -55,8 +55,10 @@ int main(void) { |
20 | info(unsigned); | 20 | info(unsigned); |
21 | info(long unsigned); | 21 | info(unsigned long); |
22 | info(long long unsigned); | 22 | info(unsigned long long); |
23 | +#ifdef __GLIBC__ | 23 | +#ifdef __GLIBC__ |
24 | info(__syscall_ulong_t); | 24 | info(__syscall_ulong_t); |
25 | info(__syscall_slong_t); | 25 | info(__syscall_slong_t); |
diff --git a/meta/recipes-core/systemd/systemd/0012-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch b/meta/recipes-core/systemd/systemd/0012-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch index 6eecd3197c..e1a2512ec3 100644 --- a/meta/recipes-core/systemd/systemd/0012-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch +++ b/meta/recipes-core/systemd/systemd/0012-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch | |||
@@ -65,10 +65,10 @@ index 0bbb3f6298..3dc494dbfb 100644 | |||
65 | int touch_file(const char *path, bool parents, usec_t stamp, uid_t uid, gid_t gid, mode_t mode); | 65 | int touch_file(const char *path, bool parents, usec_t stamp, uid_t uid, gid_t gid, mode_t mode); |
66 | int touch(const char *path); | 66 | int touch(const char *path); |
67 | diff --git a/src/shared/base-filesystem.c b/src/shared/base-filesystem.c | 67 | diff --git a/src/shared/base-filesystem.c b/src/shared/base-filesystem.c |
68 | index 5f5328c8cf..d396bc99fe 100644 | 68 | index 6dacc1d20a..909a6818f6 100644 |
69 | --- a/src/shared/base-filesystem.c | 69 | --- a/src/shared/base-filesystem.c |
70 | +++ b/src/shared/base-filesystem.c | 70 | +++ b/src/shared/base-filesystem.c |
71 | @@ -117,7 +117,7 @@ int base_filesystem_create(const char *root, uid_t uid, gid_t gid) { | 71 | @@ -131,7 +131,7 @@ int base_filesystem_create(const char *root, uid_t uid, gid_t gid) { |
72 | return log_error_errno(errno, "Failed to open root file system: %m"); | 72 | return log_error_errno(errno, "Failed to open root file system: %m"); |
73 | 73 | ||
74 | for (size_t i = 0; i < ELEMENTSOF(table); i++) { | 74 | for (size_t i = 0; i < ELEMENTSOF(table); i++) { |
@@ -77,7 +77,7 @@ index 5f5328c8cf..d396bc99fe 100644 | |||
77 | continue; | 77 | continue; |
78 | 78 | ||
79 | if (table[i].target) { | 79 | if (table[i].target) { |
80 | @@ -125,7 +125,7 @@ int base_filesystem_create(const char *root, uid_t uid, gid_t gid) { | 80 | @@ -139,7 +139,7 @@ int base_filesystem_create(const char *root, uid_t uid, gid_t gid) { |
81 | 81 | ||
82 | /* check if one of the targets exists */ | 82 | /* check if one of the targets exists */ |
83 | NULSTR_FOREACH(s, table[i].target) { | 83 | NULSTR_FOREACH(s, table[i].target) { |
@@ -86,7 +86,7 @@ index 5f5328c8cf..d396bc99fe 100644 | |||
86 | continue; | 86 | continue; |
87 | 87 | ||
88 | /* check if a specific file exists at the target path */ | 88 | /* check if a specific file exists at the target path */ |
89 | @@ -136,7 +136,7 @@ int base_filesystem_create(const char *root, uid_t uid, gid_t gid) { | 89 | @@ -150,7 +150,7 @@ int base_filesystem_create(const char *root, uid_t uid, gid_t gid) { |
90 | if (!p) | 90 | if (!p) |
91 | return log_oom(); | 91 | return log_oom(); |
92 | 92 | ||
diff --git a/meta/recipes-core/systemd/systemd/0014-Do-not-disable-buffering-when-writing-to-oom_score_a.patch b/meta/recipes-core/systemd/systemd/0014-Do-not-disable-buffering-when-writing-to-oom_score_a.patch index 015347cb6a..e5e592a837 100644 --- a/meta/recipes-core/systemd/systemd/0014-Do-not-disable-buffering-when-writing-to-oom_score_a.patch +++ b/meta/recipes-core/systemd/systemd/0014-Do-not-disable-buffering-when-writing-to-oom_score_a.patch | |||
@@ -25,10 +25,10 @@ Signed-off-by: Scott Murray <scott.murray@konsulko.com> | |||
25 | 1 file changed, 1 insertion(+), 1 deletion(-) | 25 | 1 file changed, 1 insertion(+), 1 deletion(-) |
26 | 26 | ||
27 | diff --git a/src/basic/process-util.c b/src/basic/process-util.c | 27 | diff --git a/src/basic/process-util.c b/src/basic/process-util.c |
28 | index df6e85b1fc..635dbb5d26 100644 | 28 | index 6980e0c4f6..45ec26ea45 100644 |
29 | --- a/src/basic/process-util.c | 29 | --- a/src/basic/process-util.c |
30 | +++ b/src/basic/process-util.c | 30 | +++ b/src/basic/process-util.c |
31 | @@ -1489,7 +1489,7 @@ int set_oom_score_adjust(int value) { | 31 | @@ -1460,7 +1460,7 @@ int set_oom_score_adjust(int value) { |
32 | xsprintf(t, "%i", value); | 32 | xsprintf(t, "%i", value); |
33 | 33 | ||
34 | return write_string_file("/proc/self/oom_score_adj", t, | 34 | return write_string_file("/proc/self/oom_score_adj", t, |
diff --git a/meta/recipes-core/systemd/systemd/0021-test-json.c-define-M_PIl.patch b/meta/recipes-core/systemd/systemd/0021-test-json.c-define-M_PIl.patch deleted file mode 100644 index 82a01f732e..0000000000 --- a/meta/recipes-core/systemd/systemd/0021-test-json.c-define-M_PIl.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | From e10a73de254b570bbc29b26423dbb86b4265bb05 Mon Sep 17 00:00:00 2001 | ||
2 | From: Chen Qi <Qi.Chen@windriver.com> | ||
3 | Date: Mon, 25 Feb 2019 16:53:06 +0800 | ||
4 | Subject: [PATCH] test-json.c: define M_PIl | ||
5 | |||
6 | Fix the following compile failure: | ||
7 | src/test/test-json.c:305:50: error: 'M_PIl' undeclared (first use in this function); did you mean 'M_PI'? | ||
8 | |||
9 | Upstream-Status: Inappropriate [musl specific] | ||
10 | |||
11 | This is fixed upstream where systemd no longer needs M_PIl so it could | ||
12 | be dropped when upgrading to 251+ see | ||
13 | https://github.com/systemd/systemd/commit/f9a1fd2a3b2d8212ba84ef1c3b55657ced34475e | ||
14 | |||
15 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
16 | |||
17 | --- | ||
18 | src/test/test-json.c | 4 ++++ | ||
19 | 1 file changed, 4 insertions(+) | ||
20 | |||
21 | diff --git a/src/test/test-json.c b/src/test/test-json.c | ||
22 | index b385edc269..5e5830238c 100644 | ||
23 | --- a/src/test/test-json.c | ||
24 | +++ b/src/test/test-json.c | ||
25 | @@ -14,6 +14,10 @@ | ||
26 | #include "tests.h" | ||
27 | #include "util.h" | ||
28 | |||
29 | +#ifndef M_PIl | ||
30 | +#define M_PIl 3.141592653589793238462643383279502884L | ||
31 | +#endif | ||
32 | + | ||
33 | static void test_tokenizer_one(const char *data, ...) { | ||
34 | unsigned line = 0, column = 0; | ||
35 | void *state = NULL; | ||
diff --git a/meta/recipes-core/systemd/systemd/0022-do-not-disable-buffer-in-writing-files.patch b/meta/recipes-core/systemd/systemd/0022-do-not-disable-buffer-in-writing-files.patch index 4dd6ff6e2e..00131de7d0 100644 --- a/meta/recipes-core/systemd/systemd/0022-do-not-disable-buffer-in-writing-files.patch +++ b/meta/recipes-core/systemd/systemd/0022-do-not-disable-buffer-in-writing-files.patch | |||
@@ -44,10 +44,10 @@ Signed-off-by: Scott Murray <scott.murray@konsulko.com> | |||
44 | 21 files changed, 39 insertions(+), 40 deletions(-) | 44 | 21 files changed, 39 insertions(+), 40 deletions(-) |
45 | 45 | ||
46 | diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c | 46 | diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c |
47 | index f7dc6c8421..5f7a27c2c4 100644 | 47 | index f4615ffce1..07cb8ed669 100644 |
48 | --- a/src/basic/cgroup-util.c | 48 | --- a/src/basic/cgroup-util.c |
49 | +++ b/src/basic/cgroup-util.c | 49 | +++ b/src/basic/cgroup-util.c |
50 | @@ -390,7 +390,7 @@ int cg_kill_kernel_sigkill(const char *controller, const char *path) { | 50 | @@ -399,7 +399,7 @@ int cg_kill_kernel_sigkill(const char *controller, const char *path) { |
51 | if (r < 0) | 51 | if (r < 0) |
52 | return r; | 52 | return r; |
53 | 53 | ||
@@ -56,7 +56,7 @@ index f7dc6c8421..5f7a27c2c4 100644 | |||
56 | if (r < 0) | 56 | if (r < 0) |
57 | return r; | 57 | return r; |
58 | 58 | ||
59 | @@ -803,7 +803,7 @@ int cg_install_release_agent(const char *controller, const char *agent) { | 59 | @@ -805,7 +805,7 @@ int cg_install_release_agent(const char *controller, const char *agent) { |
60 | 60 | ||
61 | sc = strstrip(contents); | 61 | sc = strstrip(contents); |
62 | if (isempty(sc)) { | 62 | if (isempty(sc)) { |
@@ -65,7 +65,7 @@ index f7dc6c8421..5f7a27c2c4 100644 | |||
65 | if (r < 0) | 65 | if (r < 0) |
66 | return r; | 66 | return r; |
67 | } else if (!path_equal(sc, agent)) | 67 | } else if (!path_equal(sc, agent)) |
68 | @@ -821,7 +821,7 @@ int cg_install_release_agent(const char *controller, const char *agent) { | 68 | @@ -823,7 +823,7 @@ int cg_install_release_agent(const char *controller, const char *agent) { |
69 | 69 | ||
70 | sc = strstrip(contents); | 70 | sc = strstrip(contents); |
71 | if (streq(sc, "0")) { | 71 | if (streq(sc, "0")) { |
@@ -74,7 +74,7 @@ index f7dc6c8421..5f7a27c2c4 100644 | |||
74 | if (r < 0) | 74 | if (r < 0) |
75 | return r; | 75 | return r; |
76 | 76 | ||
77 | @@ -848,7 +848,7 @@ int cg_uninstall_release_agent(const char *controller) { | 77 | @@ -850,7 +850,7 @@ int cg_uninstall_release_agent(const char *controller) { |
78 | if (r < 0) | 78 | if (r < 0) |
79 | return r; | 79 | return r; |
80 | 80 | ||
@@ -83,7 +83,7 @@ index f7dc6c8421..5f7a27c2c4 100644 | |||
83 | if (r < 0) | 83 | if (r < 0) |
84 | return r; | 84 | return r; |
85 | 85 | ||
86 | @@ -858,7 +858,7 @@ int cg_uninstall_release_agent(const char *controller) { | 86 | @@ -860,7 +860,7 @@ int cg_uninstall_release_agent(const char *controller) { |
87 | if (r < 0) | 87 | if (r < 0) |
88 | return r; | 88 | return r; |
89 | 89 | ||
@@ -92,7 +92,7 @@ index f7dc6c8421..5f7a27c2c4 100644 | |||
92 | if (r < 0) | 92 | if (r < 0) |
93 | return r; | 93 | return r; |
94 | 94 | ||
95 | @@ -1704,7 +1704,7 @@ int cg_set_attribute(const char *controller, const char *path, const char *attri | 95 | @@ -1730,7 +1730,7 @@ int cg_set_attribute(const char *controller, const char *path, const char *attri |
96 | if (r < 0) | 96 | if (r < 0) |
97 | return r; | 97 | return r; |
98 | 98 | ||
@@ -188,7 +188,7 @@ index 18231c2618..6c598d55c8 100644 | |||
188 | if (r < 0) | 188 | if (r < 0) |
189 | return log_error_errno(r, "%s:%u: Failed to add binary format '%s': %m", | 189 | return log_error_errno(r, "%s:%u: Failed to add binary format '%s': %m", |
190 | filename, line, rulename); | 190 | filename, line, rulename); |
191 | @@ -226,7 +226,7 @@ static int run(int argc, char *argv[]) { | 191 | @@ -225,7 +225,7 @@ static int run(int argc, char *argv[]) { |
192 | } | 192 | } |
193 | 193 | ||
194 | /* Flush out all rules */ | 194 | /* Flush out all rules */ |
@@ -198,10 +198,10 @@ index 18231c2618..6c598d55c8 100644 | |||
198 | log_warning_errno(r, "Failed to flush binfmt_misc rules, ignoring: %m"); | 198 | log_warning_errno(r, "Failed to flush binfmt_misc rules, ignoring: %m"); |
199 | else | 199 | else |
200 | diff --git a/src/core/cgroup.c b/src/core/cgroup.c | 200 | diff --git a/src/core/cgroup.c b/src/core/cgroup.c |
201 | index f58de95a49..7a97ab6f99 100644 | 201 | index 9282b1ff20..7781e0f8eb 100644 |
202 | --- a/src/core/cgroup.c | 202 | --- a/src/core/cgroup.c |
203 | +++ b/src/core/cgroup.c | 203 | +++ b/src/core/cgroup.c |
204 | @@ -4140,7 +4140,7 @@ int unit_cgroup_freezer_action(Unit *u, FreezerAction action) { | 204 | @@ -4182,7 +4182,7 @@ int unit_cgroup_freezer_action(Unit *u, FreezerAction action) { |
205 | else | 205 | else |
206 | u->freezer_state = FREEZER_THAWING; | 206 | u->freezer_state = FREEZER_THAWING; |
207 | 207 | ||
@@ -211,10 +211,10 @@ index f58de95a49..7a97ab6f99 100644 | |||
211 | return r; | 211 | return r; |
212 | 212 | ||
213 | diff --git a/src/core/main.c b/src/core/main.c | 213 | diff --git a/src/core/main.c b/src/core/main.c |
214 | index 57aedb9b93..7ef36d22f5 100644 | 214 | index 409b84a006..b1631e57ce 100644 |
215 | --- a/src/core/main.c | 215 | --- a/src/core/main.c |
216 | +++ b/src/core/main.c | 216 | +++ b/src/core/main.c |
217 | @@ -1466,7 +1466,7 @@ static int bump_unix_max_dgram_qlen(void) { | 217 | @@ -1374,7 +1374,7 @@ static int bump_unix_max_dgram_qlen(void) { |
218 | if (v >= DEFAULT_UNIX_MAX_DGRAM_QLEN) | 218 | if (v >= DEFAULT_UNIX_MAX_DGRAM_QLEN) |
219 | return 0; | 219 | return 0; |
220 | 220 | ||
@@ -223,7 +223,7 @@ index 57aedb9b93..7ef36d22f5 100644 | |||
223 | "%lu", DEFAULT_UNIX_MAX_DGRAM_QLEN); | 223 | "%lu", DEFAULT_UNIX_MAX_DGRAM_QLEN); |
224 | if (r < 0) | 224 | if (r < 0) |
225 | return log_full_errno(IN_SET(r, -EROFS, -EPERM, -EACCES) ? LOG_DEBUG : LOG_WARNING, r, | 225 | return log_full_errno(IN_SET(r, -EROFS, -EPERM, -EACCES) ? LOG_DEBUG : LOG_WARNING, r, |
226 | @@ -1737,7 +1737,7 @@ static void initialize_core_pattern(bool skip_setup) { | 226 | @@ -1646,7 +1646,7 @@ static void initialize_core_pattern(bool skip_setup) { |
227 | if (getpid_cached() != 1) | 227 | if (getpid_cached() != 1) |
228 | return; | 228 | return; |
229 | 229 | ||
@@ -259,23 +259,23 @@ index f88cb80834..68055fb64a 100644 | |||
259 | log_warning_errno(r, "Failed to set SMACK netlabel rule \"127.0.0.1 -CIPSO\": %m"); | 259 | log_warning_errno(r, "Failed to set SMACK netlabel rule \"127.0.0.1 -CIPSO\": %m"); |
260 | #endif | 260 | #endif |
261 | diff --git a/src/hibernate-resume/hibernate-resume.c b/src/hibernate-resume/hibernate-resume.c | 261 | diff --git a/src/hibernate-resume/hibernate-resume.c b/src/hibernate-resume/hibernate-resume.c |
262 | index 58e35e403e..1d0beb4008 100644 | 262 | index 1c7d9179d8..3ae78ee580 100644 |
263 | --- a/src/hibernate-resume/hibernate-resume.c | 263 | --- a/src/hibernate-resume/hibernate-resume.c |
264 | +++ b/src/hibernate-resume/hibernate-resume.c | 264 | +++ b/src/hibernate-resume/hibernate-resume.c |
265 | @@ -45,7 +45,7 @@ int main(int argc, char *argv[]) { | 265 | @@ -40,7 +40,7 @@ int main(int argc, char *argv[]) { |
266 | return EXIT_FAILURE; | 266 | return EXIT_FAILURE; |
267 | } | 267 | } |
268 | 268 | ||
269 | - r = write_string_file("/sys/power/resume", major_minor, WRITE_STRING_FILE_DISABLE_BUFFER); | 269 | - r = write_string_file("/sys/power/resume", FORMAT_DEVNUM(st.st_rdev), WRITE_STRING_FILE_DISABLE_BUFFER); |
270 | + r = write_string_file("/sys/power/resume", major_minor, 0); | 270 | + r = write_string_file("/sys/power/resume", FORMAT_DEVNUM(st.st_rdev), 0); |
271 | if (r < 0) { | 271 | if (r < 0) { |
272 | log_error_errno(r, "Failed to write '%s' to /sys/power/resume: %m", major_minor); | 272 | log_error_errno(r, "Failed to write '" DEVNUM_FORMAT_STR "' to /sys/power/resume: %m", DEVNUM_FORMAT_VAL(st.st_rdev)); |
273 | return EXIT_FAILURE; | 273 | return EXIT_FAILURE; |
274 | diff --git a/src/home/homework.c b/src/home/homework.c | 274 | diff --git a/src/home/homework.c b/src/home/homework.c |
275 | index 9fdc74b775..9858a2b415 100644 | 275 | index 0014a7f598..ec3e9caa1c 100644 |
276 | --- a/src/home/homework.c | 276 | --- a/src/home/homework.c |
277 | +++ b/src/home/homework.c | 277 | +++ b/src/home/homework.c |
278 | @@ -284,7 +284,7 @@ static void drop_caches_now(void) { | 278 | @@ -278,7 +278,7 @@ static void drop_caches_now(void) { |
279 | * details. We write "2" into /proc/sys/vm/drop_caches to ensure dentries/inodes are flushed, but not | 279 | * details. We write "2" into /proc/sys/vm/drop_caches to ensure dentries/inodes are flushed, but not |
280 | * more. */ | 280 | * more. */ |
281 | 281 | ||
@@ -285,10 +285,10 @@ index 9fdc74b775..9858a2b415 100644 | |||
285 | log_warning_errno(r, "Failed to drop caches, ignoring: %m"); | 285 | log_warning_errno(r, "Failed to drop caches, ignoring: %m"); |
286 | else | 286 | else |
287 | diff --git a/src/libsystemd/sd-device/sd-device.c b/src/libsystemd/sd-device/sd-device.c | 287 | diff --git a/src/libsystemd/sd-device/sd-device.c b/src/libsystemd/sd-device/sd-device.c |
288 | index b163a0fb6b..fd6c5301d6 100644 | 288 | index aaf951ced8..45a9d70f0d 100644 |
289 | --- a/src/libsystemd/sd-device/sd-device.c | 289 | --- a/src/libsystemd/sd-device/sd-device.c |
290 | +++ b/src/libsystemd/sd-device/sd-device.c | 290 | +++ b/src/libsystemd/sd-device/sd-device.c |
291 | @@ -2108,7 +2108,7 @@ _public_ int sd_device_set_sysattr_value(sd_device *device, const char *sysattr, | 291 | @@ -2215,7 +2215,7 @@ _public_ int sd_device_set_sysattr_value(sd_device *device, const char *sysattr, |
292 | if (!value) | 292 | if (!value) |
293 | return -ENOMEM; | 293 | return -ENOMEM; |
294 | 294 | ||
@@ -298,10 +298,10 @@ index b163a0fb6b..fd6c5301d6 100644 | |||
298 | /* On failure, clear cache entry, as we do not know how it fails. */ | 298 | /* On failure, clear cache entry, as we do not know how it fails. */ |
299 | device_remove_cached_sysattr_value(device, sysattr); | 299 | device_remove_cached_sysattr_value(device, sysattr); |
300 | diff --git a/src/nspawn/nspawn-cgroup.c b/src/nspawn/nspawn-cgroup.c | 300 | diff --git a/src/nspawn/nspawn-cgroup.c b/src/nspawn/nspawn-cgroup.c |
301 | index d472e80c03..c7780c7fc6 100644 | 301 | index 9e6379ae7b..546a03a7f5 100644 |
302 | --- a/src/nspawn/nspawn-cgroup.c | 302 | --- a/src/nspawn/nspawn-cgroup.c |
303 | +++ b/src/nspawn/nspawn-cgroup.c | 303 | +++ b/src/nspawn/nspawn-cgroup.c |
304 | @@ -124,7 +124,7 @@ int sync_cgroup(pid_t pid, CGroupUnified unified_requested, uid_t uid_shift) { | 304 | @@ -123,7 +123,7 @@ int sync_cgroup(pid_t pid, CGroupUnified unified_requested, uid_t uid_shift) { |
305 | fn = strjoina(tree, cgroup, "/cgroup.procs"); | 305 | fn = strjoina(tree, cgroup, "/cgroup.procs"); |
306 | 306 | ||
307 | sprintf(pid_string, PID_FMT, pid); | 307 | sprintf(pid_string, PID_FMT, pid); |
@@ -311,7 +311,7 @@ index d472e80c03..c7780c7fc6 100644 | |||
311 | log_error_errno(r, "Failed to move process: %m"); | 311 | log_error_errno(r, "Failed to move process: %m"); |
312 | goto finish; | 312 | goto finish; |
313 | diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c | 313 | diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c |
314 | index fb6af295b5..0d83f1e4d2 100644 | 314 | index c5fd978395..fefe8a21e5 100644 |
315 | --- a/src/nspawn/nspawn.c | 315 | --- a/src/nspawn/nspawn.c |
316 | +++ b/src/nspawn/nspawn.c | 316 | +++ b/src/nspawn/nspawn.c |
317 | @@ -2759,7 +2759,7 @@ static int reset_audit_loginuid(void) { | 317 | @@ -2759,7 +2759,7 @@ static int reset_audit_loginuid(void) { |
@@ -323,7 +323,7 @@ index fb6af295b5..0d83f1e4d2 100644 | |||
323 | if (r < 0) { | 323 | if (r < 0) { |
324 | log_error_errno(r, | 324 | log_error_errno(r, |
325 | "Failed to reset audit login UID. This probably means that your kernel is too\n" | 325 | "Failed to reset audit login UID. This probably means that your kernel is too\n" |
326 | @@ -4175,7 +4175,7 @@ static int setup_uid_map( | 326 | @@ -4187,7 +4187,7 @@ static int setup_uid_map( |
327 | return log_oom(); | 327 | return log_oom(); |
328 | 328 | ||
329 | xsprintf(uid_map, "/proc/" PID_FMT "/uid_map", pid); | 329 | xsprintf(uid_map, "/proc/" PID_FMT "/uid_map", pid); |
@@ -332,7 +332,7 @@ index fb6af295b5..0d83f1e4d2 100644 | |||
332 | if (r < 0) | 332 | if (r < 0) |
333 | return log_error_errno(r, "Failed to write UID map: %m"); | 333 | return log_error_errno(r, "Failed to write UID map: %m"); |
334 | 334 | ||
335 | @@ -4185,7 +4185,7 @@ static int setup_uid_map( | 335 | @@ -4197,7 +4197,7 @@ static int setup_uid_map( |
336 | return log_oom(); | 336 | return log_oom(); |
337 | 337 | ||
338 | xsprintf(uid_map, "/proc/" PID_FMT "/gid_map", pid); | 338 | xsprintf(uid_map, "/proc/" PID_FMT "/gid_map", pid); |
@@ -355,19 +355,19 @@ index 724d7f27d9..dd725cff92 100644 | |||
355 | return log_warning_errno(r, "Failed to unregister binfmt_misc entries: %m"); | 355 | return log_warning_errno(r, "Failed to unregister binfmt_misc entries: %m"); |
356 | 356 | ||
357 | diff --git a/src/shared/cgroup-setup.c b/src/shared/cgroup-setup.c | 357 | diff --git a/src/shared/cgroup-setup.c b/src/shared/cgroup-setup.c |
358 | index 8bda66ca36..4e1e9943ee 100644 | 358 | index a1fabc73c1..c5c8fc417e 100644 |
359 | --- a/src/shared/cgroup-setup.c | 359 | --- a/src/shared/cgroup-setup.c |
360 | +++ b/src/shared/cgroup-setup.c | 360 | +++ b/src/shared/cgroup-setup.c |
361 | @@ -345,7 +345,7 @@ int cg_attach(const char *controller, const char *path, pid_t pid) { | 361 | @@ -344,7 +344,7 @@ int cg_attach(const char *controller, const char *path, pid_t pid) { |
362 | 362 | ||
363 | xsprintf(c, PID_FMT "\n", pid); | 363 | xsprintf(c, PID_FMT "\n", pid); |
364 | 364 | ||
365 | - r = write_string_file(fs, c, WRITE_STRING_FILE_DISABLE_BUFFER); | 365 | - r = write_string_file(fs, c, WRITE_STRING_FILE_DISABLE_BUFFER); |
366 | + r = write_string_file(fs, c, 0); | 366 | + r = write_string_file(fs, c, 0); |
367 | if (r < 0) | 367 | if (r == -EOPNOTSUPP && cg_is_threaded(controller, path) > 0) |
368 | return r; | 368 | /* When the threaded mode is used, we cannot read/write the file. Let's return recognizable error. */ |
369 | 369 | return -EUCLEAN; | |
370 | @@ -877,7 +877,7 @@ int cg_enable_everywhere( | 370 | @@ -879,7 +879,7 @@ int cg_enable_everywhere( |
371 | return log_debug_errno(errno, "Failed to open cgroup.subtree_control file of %s: %m", p); | 371 | return log_debug_errno(errno, "Failed to open cgroup.subtree_control file of %s: %m", p); |
372 | } | 372 | } |
373 | 373 | ||
@@ -422,7 +422,7 @@ index 7064f3a905..8f2a7d9da2 100644 | |||
422 | if (r < 0) | 422 | if (r < 0) |
423 | return log_debug_errno(r, "Failed to write swap file offset to /sys/power/resume_offset for '%s': '%s': %m", | 423 | return log_debug_errno(r, "Failed to write swap file offset to /sys/power/resume_offset for '%s': '%s': %m", |
424 | hibernate_location->swap->device, offset_str); | 424 | hibernate_location->swap->device, offset_str); |
425 | @@ -90,7 +90,7 @@ static int write_mode(char **modes) { | 425 | @@ -89,7 +89,7 @@ static int write_mode(char **modes) { |
426 | STRV_FOREACH(mode, modes) { | 426 | STRV_FOREACH(mode, modes) { |
427 | int k; | 427 | int k; |
428 | 428 | ||
@@ -431,7 +431,7 @@ index 7064f3a905..8f2a7d9da2 100644 | |||
431 | if (k >= 0) | 431 | if (k >= 0) |
432 | return 0; | 432 | return 0; |
433 | 433 | ||
434 | @@ -112,7 +112,7 @@ static int write_state(FILE **f, char **states) { | 434 | @@ -110,7 +110,7 @@ static int write_state(FILE **f, char **states) { |
435 | STRV_FOREACH(state, states) { | 435 | STRV_FOREACH(state, states) { |
436 | int k; | 436 | int k; |
437 | 437 | ||
@@ -441,10 +441,10 @@ index 7064f3a905..8f2a7d9da2 100644 | |||
441 | return 0; | 441 | return 0; |
442 | log_debug_errno(k, "Failed to write '%s' to /sys/power/state: %m", *state); | 442 | log_debug_errno(k, "Failed to write '%s' to /sys/power/state: %m", *state); |
443 | diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c | 443 | diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c |
444 | index 0089833e3f..0a6a3abbb4 100644 | 444 | index cd858c9cca..0feb9669a0 100644 |
445 | --- a/src/udev/udev-rules.c | 445 | --- a/src/udev/udev-rules.c |
446 | +++ b/src/udev/udev-rules.c | 446 | +++ b/src/udev/udev-rules.c |
447 | @@ -2181,7 +2181,6 @@ static int udev_rule_apply_token_to_event( | 447 | @@ -2335,7 +2335,6 @@ static int udev_rule_apply_token_to_event( |
448 | log_rule_debug(dev, rules, "ATTR '%s' writing '%s'", buf, value); | 448 | log_rule_debug(dev, rules, "ATTR '%s' writing '%s'", buf, value); |
449 | r = write_string_file(buf, value, | 449 | r = write_string_file(buf, value, |
450 | WRITE_STRING_FILE_VERIFY_ON_FAILURE | | 450 | WRITE_STRING_FILE_VERIFY_ON_FAILURE | |
diff --git a/meta/recipes-core/systemd/systemd/38c87ca2ab96d085158485ecfc46c7cb6af0f166.patch b/meta/recipes-core/systemd/systemd/38c87ca2ab96d085158485ecfc46c7cb6af0f166.patch index 2449023083..6ab89cd99e 100644 --- a/meta/recipes-core/systemd/systemd/38c87ca2ab96d085158485ecfc46c7cb6af0f166.patch +++ b/meta/recipes-core/systemd/systemd/38c87ca2ab96d085158485ecfc46c7cb6af0f166.patch | |||
@@ -22,15 +22,16 @@ Content-Transfer-Encoding: 8bit | |||
22 | 22 | ||
23 | Upstream-Status: Backport | 23 | Upstream-Status: Backport |
24 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | 24 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> |
25 | |||
25 | --- | 26 | --- |
26 | src/fundamental/sha256.c | 2 +- | 27 | src/fundamental/sha256.c | 2 +- |
27 | 1 file changed, 1 insertion(+), 1 deletion(-) | 28 | 1 file changed, 1 insertion(+), 1 deletion(-) |
28 | 29 | ||
29 | diff --git a/src/fundamental/sha256.c b/src/fundamental/sha256.c | 30 | diff --git a/src/fundamental/sha256.c b/src/fundamental/sha256.c |
30 | index 67d83b5f1cd6..f08959479643 100644 | 31 | index cd16aec4dd..58b1a80d33 100644 |
31 | --- a/src/fundamental/sha256.c | 32 | --- a/src/fundamental/sha256.c |
32 | +++ b/src/fundamental/sha256.c | 33 | +++ b/src/fundamental/sha256.c |
33 | @@ -60,7 +60,7 @@ | 34 | @@ -58,7 +58,7 @@ |
34 | # define UNALIGNED_P(p) (((size_t) p) % sizeof(uint32_t) != 0) | 35 | # define UNALIGNED_P(p) (((size_t) p) % sizeof(uint32_t) != 0) |
35 | # endif | 36 | # endif |
36 | #else | 37 | #else |
diff --git a/meta/recipes-core/systemd/systemd_251.2.bb b/meta/recipes-core/systemd/systemd_251.2.bb index 5b2737faa2..bb3c59f418 100644 --- a/meta/recipes-core/systemd/systemd_251.2.bb +++ b/meta/recipes-core/systemd/systemd_251.2.bb | |||
@@ -35,7 +35,6 @@ SRC_URI_MUSL = "\ | |||
35 | file://0005-src-basic-missing.h-check-for-missing-strndupa.patch \ | 35 | file://0005-src-basic-missing.h-check-for-missing-strndupa.patch \ |
36 | file://0007-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch \ | 36 | file://0007-don-t-fail-if-GLOB_BRACE-and-GLOB_ALTDIRFUNC-is-not-.patch \ |
37 | file://0008-add-missing-FTW_-macros-for-musl.patch \ | 37 | file://0008-add-missing-FTW_-macros-for-musl.patch \ |
38 | file://0009-fix-missing-of-__register_atfork-for-non-glibc-build.patch \ | ||
39 | file://0010-Use-uintmax_t-for-handling-rlim_t.patch \ | 38 | file://0010-Use-uintmax_t-for-handling-rlim_t.patch \ |
40 | file://0011-test-sizeof.c-Disable-tests-for-missing-typedefs-in-.patch \ | 39 | file://0011-test-sizeof.c-Disable-tests-for-missing-typedefs-in-.patch \ |
41 | file://0012-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch \ | 40 | file://0012-don-t-pass-AT_SYMLINK_NOFOLLOW-flag-to-faccessat.patch \ |
@@ -43,7 +42,6 @@ SRC_URI_MUSL = "\ | |||
43 | file://0014-Do-not-disable-buffering-when-writing-to-oom_score_a.patch \ | 42 | file://0014-Do-not-disable-buffering-when-writing-to-oom_score_a.patch \ |
44 | file://0015-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch \ | 43 | file://0015-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch \ |
45 | file://0018-avoid-redefinition-of-prctl_mm_map-structure.patch \ | 44 | file://0018-avoid-redefinition-of-prctl_mm_map-structure.patch \ |
46 | file://0021-test-json.c-define-M_PIl.patch \ | ||
47 | file://0022-do-not-disable-buffer-in-writing-files.patch \ | 45 | file://0022-do-not-disable-buffer-in-writing-files.patch \ |
48 | file://0025-Handle-__cpu_mask-usage.patch \ | 46 | file://0025-Handle-__cpu_mask-usage.patch \ |
49 | file://0026-Handle-missing-gshadow.patch \ | 47 | file://0026-Handle-missing-gshadow.patch \ |