mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
systemd: Drop redundant musl patches
These patches are no longer needed in version 250, they have been dragged along rebasing over releases unnessarily. Lets remove them (From OE-Core rev: 5420919e3e5c1e4b816c60a5b1ddd7da44cd6905) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 216fe2b8e53640ae5794e9426de56cd87637dde4) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
-28
@@ -1,28 +0,0 @@
|
||||
From 68bb59615e91c4d3e5eb2076979c2b760f4bf027 Mon Sep 17 00:00:00 2001
|
||||
From: Chen Qi <Qi.Chen@windriver.com>
|
||||
Date: Mon, 25 Feb 2019 15:27:54 +0800
|
||||
Subject: [PATCH] missing_type.h: add __compar_d_fn_t definition
|
||||
|
||||
Fix the following compile failure:
|
||||
src/basic/util.h:71:18: error: unknown type name '__compar_d_fn_t'; did you mean '__compar_fn_t'?
|
||||
|
||||
Upstream-Status: Inappropriate [musl specific]
|
||||
|
||||
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
|
||||
|
||||
---
|
||||
src/basic/missing_type.h | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/basic/missing_type.h b/src/basic/missing_type.h
|
||||
index 3df1084ef2..697aa7f58a 100644
|
||||
--- a/src/basic/missing_type.h
|
||||
+++ b/src/basic/missing_type.h
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
#ifndef __GLIBC__
|
||||
typedef int (*comparison_fn_t)(const void *, const void *);
|
||||
+typedef int (*__compar_d_fn_t) (const void *, const void *, void *);
|
||||
#endif
|
||||
|
||||
#ifndef __COMPAR_FN_T
|
||||
@@ -1,24 +0,0 @@
|
||||
From f1574cf91340800cf8253e922b2c613d6b9b5e4a Mon Sep 17 00:00:00 2001
|
||||
From: Alex Kiernan <alex.kiernan@gmail.com>
|
||||
Date: Fri, 7 Aug 2020 15:19:27 +0000
|
||||
Subject: [PATCH] Handle missing LOCK_EX
|
||||
|
||||
Upstream-Status: Inappropriate [musl specific]
|
||||
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
|
||||
|
||||
---
|
||||
src/partition/makefs.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/partition/makefs.c b/src/partition/makefs.c
|
||||
index b6979b7e4f..63d70d861e 100644
|
||||
--- a/src/partition/makefs.c
|
||||
+++ b/src/partition/makefs.c
|
||||
@@ -6,6 +6,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
+#include <sys/file.h>
|
||||
|
||||
#include "alloc-util.h"
|
||||
#include "blockdev-util.h"
|
||||
-38
@@ -1,38 +0,0 @@
|
||||
From d2f3293ceb22731e0e97945f0d1132e356b66d07 Mon Sep 17 00:00:00 2001
|
||||
From: Alex Kiernan <alex.kiernan@gmail.com>
|
||||
Date: Fri, 7 Aug 2020 15:20:17 +0000
|
||||
Subject: [PATCH] Fix incompatible pointer type struct sockaddr_un *
|
||||
|
||||
| ../../../../../../workspace/sources/systemd/src/nspawn/nspawn.c: In function 'cant_be_in_netns':
|
||||
| ../../../../../../workspace/sources/systemd/src/nspawn/nspawn.c:4893:25: error: passing argument 2 of 'connect' from incompatible pointer type [-Werror=incompatible-pointer-types]
|
||||
| 4893 | if (connect(fd, &sa.un, SOCKADDR_UN_LEN(sa.un)) < 0) {
|
||||
| | ^~~~~~
|
||||
| | |
|
||||
| | struct sockaddr_un *
|
||||
| In file included from ../../../../../../workspace/sources/systemd/src/systemd/sd-daemon.h:22,
|
||||
| from ../../../../../../workspace/sources/systemd/src/nspawn/nspawn.c:21:
|
||||
| /home/ubuntu/poky/build/tmp/work/core2-64-poky-linux-musl/systemd/1_246-r0/recipe-sysroot/usr/include/sys/socket.h:384:19: note: expected 'const struct sockaddr *' but argument is of type 'struct sockaddr_un *'
|
||||
| 384 | int connect (int, const struct sockaddr *, socklen_t);
|
||||
| | ^~~~~~~~~~~~~~~~~~~~~~~
|
||||
| cc1: some warnings being treated as errors
|
||||
|
||||
Upstream-Status: Inappropriate [musl specific]
|
||||
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
|
||||
|
||||
---
|
||||
src/nspawn/nspawn.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
|
||||
index a2af4948c0..fb6af295b5 100644
|
||||
--- a/src/nspawn/nspawn.c
|
||||
+++ b/src/nspawn/nspawn.c
|
||||
@@ -5399,7 +5399,7 @@ static int cant_be_in_netns(void) {
|
||||
if (fd < 0)
|
||||
return log_error_errno(errno, "Failed to allocate udev control socket: %m");
|
||||
|
||||
- if (connect(fd, &sa.sa, SOCKADDR_UN_LEN(sa.un)) < 0) {
|
||||
+ if (connect(fd, (struct sockaddr *)&sa.sa, SOCKADDR_UN_LEN(sa.un)) < 0) {
|
||||
|
||||
if (errno == ENOENT || ERRNO_IS_DISCONNECT(errno))
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP),
|
||||
@@ -45,10 +45,7 @@ SRC_URI_MUSL = "\
|
||||
file://0014-Do-not-disable-buffering-when-writing-to-oom_score_a.patch \
|
||||
file://0015-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch \
|
||||
file://0016-Hide-__start_BUS_ERROR_MAP-and-__stop_BUS_ERROR_MAP.patch \
|
||||
file://0017-missing_type.h-add-__compar_d_fn_t-definition.patch \
|
||||
file://0018-avoid-redefinition-of-prctl_mm_map-structure.patch \
|
||||
file://0019-Handle-missing-LOCK_EX.patch \
|
||||
file://0020-Fix-incompatible-pointer-type-struct-sockaddr_un.patch \
|
||||
file://0021-test-json.c-define-M_PIl.patch \
|
||||
file://0022-do-not-disable-buffer-in-writing-files.patch \
|
||||
file://0025-Handle-__cpu_mask-usage.patch \
|
||||
|
||||
Reference in New Issue
Block a user