diff options
author | Armin Kuster <akuster808@gmail.com> | 2022-06-09 16:11:29 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2022-06-18 06:48:22 -0700 |
commit | db3a3e87a6f6fcc424eb208bf37417ab3aeaf43a (patch) | |
tree | dfca042d5d71cdaedf3aea7d14cbd824a7ef7410 /dynamic-layers/networking-layer/recipes-security/sssd/files/musl_fixup.patch | |
parent | b67b4cf5cafa5fb0c13dddc344ed286e7e6fcc72 (diff) | |
download | meta-security-db3a3e87a6f6fcc424eb208bf37417ab3aeaf43a.tar.gz |
sssd:move to dynamic networking-layer
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'dynamic-layers/networking-layer/recipes-security/sssd/files/musl_fixup.patch')
-rw-r--r-- | dynamic-layers/networking-layer/recipes-security/sssd/files/musl_fixup.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/dynamic-layers/networking-layer/recipes-security/sssd/files/musl_fixup.patch b/dynamic-layers/networking-layer/recipes-security/sssd/files/musl_fixup.patch new file mode 100644 index 0000000..68f267c --- /dev/null +++ b/dynamic-layers/networking-layer/recipes-security/sssd/files/musl_fixup.patch | |||
@@ -0,0 +1,53 @@ | |||
1 | fix musl build failures | ||
2 | |||
3 | Missing _PATH_HOSTS and some NETDB defines when musl is enabled. | ||
4 | |||
5 | These are work arounds for now while we figure out where the real fix should reside (musl, gcompact, sssd): | ||
6 | |||
7 | ./sssd-2.5.1/src/providers/fail_over.c:1199:19: error: '_PATH_HOSTS' undeclared (first use in this function) | ||
8 | | 1199 | _PATH_HOSTS); | ||
9 | | | ^~~~~~~~~~~ | ||
10 | |||
11 | and | ||
12 | |||
13 | i./sssd-2.5.1/src/sss_client/nss_ipnetworks.c:415:21: error: 'NETDB_INTERNAL' undeclared (first use in this function) | ||
14 | | 415 | *h_errnop = NETDB_INTERNAL; | ||
15 | |||
16 | |||
17 | Upstream-Status: Pending | ||
18 | Signed-off-by: Armin Kuster <akuster808@gmail.com> | ||
19 | |||
20 | Index: sssd-2.5.1/src/providers/fail_over.c | ||
21 | =================================================================== | ||
22 | --- sssd-2.5.1.orig/src/providers/fail_over.c | ||
23 | +++ sssd-2.5.1/src/providers/fail_over.c | ||
24 | @@ -31,6 +31,10 @@ | ||
25 | #include <talloc.h> | ||
26 | #include <netdb.h> | ||
27 | |||
28 | +#if !defined(_PATH_HOSTS) | ||
29 | +#define _PATH_HOSTS "/etc/hosts" | ||
30 | +#endif | ||
31 | + | ||
32 | #include "util/dlinklist.h" | ||
33 | #include "util/refcount.h" | ||
34 | #include "util/util.h" | ||
35 | Index: sssd-2.5.1/src/sss_client/sss_cli.h | ||
36 | =================================================================== | ||
37 | --- sssd-2.5.1.orig/src/sss_client/sss_cli.h | ||
38 | +++ sssd-2.5.1/src/sss_client/sss_cli.h | ||
39 | @@ -44,6 +44,14 @@ typedef int errno_t; | ||
40 | #define EOK 0 | ||
41 | #endif | ||
42 | |||
43 | +#ifndef NETDB_INTERNAL | ||
44 | +# define NETDB_INTERNAL (-1) | ||
45 | +#endif | ||
46 | + | ||
47 | +#ifndef NETDB_SUCCESS | ||
48 | +# define NETDB_SUCCESS (0) | ||
49 | +#endif | ||
50 | + | ||
51 | #define SSS_NSS_PROTOCOL_VERSION 1 | ||
52 | #define SSS_PAM_PROTOCOL_VERSION 3 | ||
53 | #define SSS_SUDO_PROTOCOL_VERSION 1 | ||