diff options
author | Armin Kuster <akuster808@gmail.com> | 2021-07-04 08:50:06 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2021-07-04 10:59:17 -0700 |
commit | aa84cc36dc46f6f60219ee43d1dc0191ae5d2bfa (patch) | |
tree | d6eaf6aa7ded9257ad4f3d783b4deefde47016b4 /recipes-security | |
parent | be53d1a4677d085e6a46c7cb5dcda3d0ebb5ea9c (diff) | |
download | meta-security-aa84cc36dc46f6f60219ee43d1dc0191ae5d2bfa.tar.gz |
sssd: update to 2.5.1
See full change log: https://sssd.io/release-notes/sssd-2.5.1.html
Including a musl build work around
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'recipes-security')
-rw-r--r-- | recipes-security/sssd/files/musl_fixup.patch | 53 | ||||
-rw-r--r-- | recipes-security/sssd/sssd_2.5.1.bb (renamed from recipes-security/sssd/sssd_2.5.0.bb) | 6 |
2 files changed, 57 insertions, 2 deletions
diff --git a/recipes-security/sssd/files/musl_fixup.patch b/recipes-security/sssd/files/musl_fixup.patch new file mode 100644 index 0000000..68f267c --- /dev/null +++ b/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 | ||
diff --git a/recipes-security/sssd/sssd_2.5.0.bb b/recipes-security/sssd/sssd_2.5.1.bb index 84b7b0e..9205843 100644 --- a/recipes-security/sssd/sssd_2.5.0.bb +++ b/recipes-security/sssd/sssd_2.5.1.bb | |||
@@ -15,15 +15,17 @@ DEPENDS_append_libc-musl = " musl-nscd" | |||
15 | DEPENDS += "${@bb.utils.contains('PACKAGECONFIG', 'nss', '', \ | 15 | DEPENDS += "${@bb.utils.contains('PACKAGECONFIG', 'nss', '', \ |
16 | bb.utils.contains('PACKAGECONFIG', 'crypto', '', 'nss', d), d)}" | 16 | bb.utils.contains('PACKAGECONFIG', 'crypto', '', 'nss', d), d)}" |
17 | 17 | ||
18 | SRC_URI = "https://github.com/SSSD/sssd/releases/download/2.5.0/sssd-2.5.0.tar.gz \ | 18 | SRC_URI = "https://github.com/SSSD/sssd/releases/download/${PV}/sssd-${PV}.tar.gz \ |
19 | file://sssd.conf \ | 19 | file://sssd.conf \ |
20 | file://volatiles.99_sssd \ | 20 | file://volatiles.99_sssd \ |
21 | file://no_gen.patch \ | 21 | file://no_gen.patch \ |
22 | file://fix_gid.patch \ | 22 | file://fix_gid.patch \ |
23 | file://drop_ntpdate_chk.patch \ | 23 | file://drop_ntpdate_chk.patch \ |
24 | file://fix-ldblibdir.patch \ | 24 | file://fix-ldblibdir.patch \ |
25 | file://musl_fixup.patch \ | ||
25 | " | 26 | " |
26 | SRC_URI[sha256sum] = "afa62d7d8d23fca3aba093abe4ec0d14e7d9346c5b28ceb7c2c624bed98caa06" | 27 | |
28 | SRC_URI[sha256sum] = "ce2f5d84a3f1750093318afd27f4fd75b1e3e75f7d80fc42d21a40cc54b58ea4" | ||
27 | 29 | ||
28 | inherit autotools pkgconfig gettext python3-dir features_check systemd | 30 | inherit autotools pkgconfig gettext python3-dir features_check systemd |
29 | 31 | ||