diff options
Diffstat (limited to 'meta/recipes-extended/shadow/shadow.inc')
-rw-r--r-- | meta/recipes-extended/shadow/shadow.inc | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc index ce3ce62715..c024746d4f 100644 --- a/meta/recipes-extended/shadow/shadow.inc +++ b/meta/recipes-extended/shadow/shadow.inc | |||
@@ -5,7 +5,7 @@ BUGTRACKER = "http://github.com/shadow-maint/shadow/issues" | |||
5 | SECTION = "base/utils" | 5 | SECTION = "base/utils" |
6 | LICENSE = "BSD-3-Clause" | 6 | LICENSE = "BSD-3-Clause" |
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=c9a450b7be84eac23e6353efecb60b5b \ | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=c9a450b7be84eac23e6353efecb60b5b \ |
8 | file://src/passwd.c;beginline=2;endline=30;md5=758c26751513b6795395275969dd3be1 \ | 8 | file://src/passwd.c;beginline=2;endline=7;md5=67bcf314687820b2f010d4863fce3fc5 \ |
9 | " | 9 | " |
10 | 10 | ||
11 | DEPENDS = "virtual/crypt" | 11 | DEPENDS = "virtual/crypt" |
@@ -14,10 +14,6 @@ GITHUB_BASE_URI = "https://github.com/shadow-maint/shadow/releases" | |||
14 | SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/${BP}.tar.gz \ | 14 | SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/${BP}.tar.gz \ |
15 | ${@bb.utils.contains('PACKAGECONFIG', 'pam', '${PAM_SRC_URI}', '', d)} \ | 15 | ${@bb.utils.contains('PACKAGECONFIG', 'pam', '${PAM_SRC_URI}', '', d)} \ |
16 | file://useradd \ | 16 | file://useradd \ |
17 | file://0001-Fix-can-not-print-full-login.patch \ | ||
18 | file://CVE-2023-29383.patch \ | ||
19 | file://0001-Overhaul-valid_field.patch \ | ||
20 | file://CVE-2023-4641.patch \ | ||
21 | " | 17 | " |
22 | 18 | ||
23 | SRC_URI:append:class-target = " \ | 19 | SRC_URI:append:class-target = " \ |
@@ -26,14 +22,9 @@ SRC_URI:append:class-target = " \ | |||
26 | " | 22 | " |
27 | 23 | ||
28 | SRC_URI:append:class-native = " \ | 24 | SRC_URI:append:class-native = " \ |
29 | file://0001-Disable-use-of-syslog-for-sysroot.patch \ | ||
30 | file://commonio.c-fix-unexpected-open-failure-in-chroot-env.patch \ | 25 | file://commonio.c-fix-unexpected-open-failure-in-chroot-env.patch \ |
31 | " | 26 | " |
32 | SRC_URI:append:class-nativesdk = " \ | 27 | SRC_URI[sha256sum] = "a305edf5d19bddbdf5e836d2d609fa8bff2d35458819de4d9f06306a1cf24342" |
33 | file://0001-Disable-use-of-syslog-for-sysroot.patch \ | ||
34 | " | ||
35 | SRC_URI[sha256sum] = "813057047499c7fe81108adcf0cffa3ad4ec75e19a80151f9cbaa458ff2e86cd" | ||
36 | |||
37 | 28 | ||
38 | # Additional Policy files for PAM | 29 | # Additional Policy files for PAM |
39 | PAM_SRC_URI = "file://pam.d/chfn \ | 30 | PAM_SRC_URI = "file://pam.d/chfn \ |
@@ -44,7 +35,7 @@ PAM_SRC_URI = "file://pam.d/chfn \ | |||
44 | file://pam.d/passwd \ | 35 | file://pam.d/passwd \ |
45 | file://pam.d/su" | 36 | file://pam.d/su" |
46 | 37 | ||
47 | inherit autotools gettext github-releases | 38 | inherit autotools gettext github-releases pkgconfig |
48 | 39 | ||
49 | export CONFIG_SHELL="/bin/sh" | 40 | export CONFIG_SHELL="/bin/sh" |
50 | 41 | ||
@@ -54,6 +45,8 @@ EXTRA_OECONF += "--without-libcrack \ | |||
54 | --without-sssd \ | 45 | --without-sssd \ |
55 | ${NSCDOPT}" | 46 | ${NSCDOPT}" |
56 | 47 | ||
48 | CFLAGS:append:libc-musl = " -DLIBBSD_OVERLAY" | ||
49 | |||
57 | NSCDOPT = "" | 50 | NSCDOPT = "" |
58 | NSCDOPT:class-native = "--without-nscd" | 51 | NSCDOPT:class-native = "--without-nscd" |
59 | NSCDOPT:class-nativesdk = "--without-nscd" | 52 | NSCDOPT:class-nativesdk = "--without-nscd" |
@@ -73,13 +66,14 @@ PAM_PLUGINS = "libpam-runtime \ | |||
73 | 66 | ||
74 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \ | 67 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \ |
75 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)}" | 68 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)}" |
76 | PACKAGECONFIG:class-native ??= "${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)}" | 69 | PACKAGECONFIG:class-native ??= "${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} libbsd" |
77 | PACKAGECONFIG:class-nativesdk = "" | 70 | PACKAGECONFIG:class-nativesdk = "" |
78 | PACKAGECONFIG[pam] = "--with-libpam,--without-libpam,libpam,${PAM_PLUGINS}" | 71 | PACKAGECONFIG[pam] = "--with-libpam,--without-libpam,libpam,${PAM_PLUGINS}" |
79 | PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" | 72 | PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" |
80 | PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" | 73 | PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" |
81 | PACKAGECONFIG[audit] = "--with-audit,--without-audit,audit" | 74 | PACKAGECONFIG[audit] = "--with-audit,--without-audit,audit" |
82 | PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux libsemanage" | 75 | PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux libsemanage" |
76 | PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" | ||
83 | 77 | ||
84 | RDEPENDS:${PN} = "shadow-securetty \ | 78 | RDEPENDS:${PN} = "shadow-securetty \ |
85 | base-passwd \ | 79 | base-passwd \ |