diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2014-04-24 15:59:20 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-04-25 17:19:19 +0100 |
commit | 4c14b094985216c433d330fb3d9532d4b6c91fcf (patch) | |
tree | 6970f383436ca29450779bd98c378aae89f2e079 /meta/recipes-extended | |
parent | 08a38a7865c41ec60f4b993b964f8d477ea0f680 (diff) | |
download | poky-4c14b094985216c433d330fb3d9532d4b6c91fcf.tar.gz |
Globally replace 'base_contains' calls with 'bb.utils.contains'
The base_contains is kept as a compatibility method and we ought to
not use it in OE-Core so we can remove it from base metadata in
future.
(From OE-Core rev: d83b16dbf0862be387f84228710cb165c6d2b03b)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/at/at_3.1.14.bb | 10 | ||||
-rw-r--r-- | meta/recipes-extended/cronie/cronie_1.4.11.bb | 4 | ||||
-rw-r--r-- | meta/recipes-extended/cups/cups.inc | 4 | ||||
-rw-r--r-- | meta/recipes-extended/findutils/findutils_4.4.2.bb | 2 | ||||
-rw-r--r-- | meta/recipes-extended/iptables/iptables_1.4.21.bb | 2 | ||||
-rw-r--r-- | meta/recipes-extended/libarchive/libarchive_3.1.2.bb | 6 | ||||
-rw-r--r-- | meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb | 2 | ||||
-rw-r--r-- | meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb | 2 | ||||
-rw-r--r-- | meta/recipes-extended/pam/libpam_1.1.6.bb | 4 | ||||
-rw-r--r-- | meta/recipes-extended/screen/screen_4.0.3.bb | 8 | ||||
-rw-r--r-- | meta/recipes-extended/shadow/shadow.inc | 4 | ||||
-rw-r--r-- | meta/recipes-extended/shadow/shadow_4.1.4.3.bb | 2 | ||||
-rw-r--r-- | meta/recipes-extended/sudo/sudo_1.8.9p5.bb | 10 | ||||
-rw-r--r-- | meta/recipes-extended/sysklogd/sysklogd.inc | 2 |
14 files changed, 31 insertions, 31 deletions
diff --git a/meta/recipes-extended/at/at_3.1.14.bb b/meta/recipes-extended/at/at_3.1.14.bb index 1b87d4ad41..68a24b8cd0 100644 --- a/meta/recipes-extended/at/at_3.1.14.bb +++ b/meta/recipes-extended/at/at_3.1.14.bb | |||
@@ -5,10 +5,10 @@ SECTION = "base" | |||
5 | LICENSE = "GPLv2+" | 5 | LICENSE = "GPLv2+" |
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=4325afd396febcb659c36b49533135d4" | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=4325afd396febcb659c36b49533135d4" |
7 | DEPENDS = "flex flex-native \ | 7 | DEPENDS = "flex flex-native \ |
8 | ${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | 8 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" |
9 | 9 | ||
10 | VIRTUAL-RUNTIME_initscripts ?= "initscripts" | 10 | VIRTUAL-RUNTIME_initscripts ?= "initscripts" |
11 | RDEPENDS_${PN} = "${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_DEPS}', '', d)} \ | 11 | RDEPENDS_${PN} = "${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_DEPS}', '', d)} \ |
12 | ${VIRTUAL-RUNTIME_initscripts} \ | 12 | ${VIRTUAL-RUNTIME_initscripts} \ |
13 | " | 13 | " |
14 | 14 | ||
@@ -24,7 +24,7 @@ SRC_URI = "${DEBIAN_MIRROR}/main/a/at/at_${PV}.orig.tar.gz \ | |||
24 | file://file_replacement_with_gplv2.patch \ | 24 | file://file_replacement_with_gplv2.patch \ |
25 | file://S99at \ | 25 | file://S99at \ |
26 | file://atd.service \ | 26 | file://atd.service \ |
27 | ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}" | 27 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}" |
28 | 28 | ||
29 | PAM_SRC_URI = "file://pam.conf.patch \ | 29 | PAM_SRC_URI = "file://pam.conf.patch \ |
30 | file://configure-add-enable-pam.patch" | 30 | file://configure-add-enable-pam.patch" |
@@ -37,7 +37,7 @@ EXTRA_OECONF += "ac_cv_path_SENDMAIL=/bin/true \ | |||
37 | --with-daemon_groupname=root \ | 37 | --with-daemon_groupname=root \ |
38 | --with-jobdir=/var/spool/at/jobs \ | 38 | --with-jobdir=/var/spool/at/jobs \ |
39 | --with-atspool=/var/spool/at/spool \ | 39 | --with-atspool=/var/spool/at/spool \ |
40 | ac_cv_header_security_pam_appl_h=${@base_contains('DISTRO_FEATURES', 'pam', 'yes', 'no', d)} " | 40 | ac_cv_header_security_pam_appl_h=${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'yes', 'no', d)} " |
41 | 41 | ||
42 | inherit autotools-brokensep systemd | 42 | inherit autotools-brokensep systemd |
43 | 43 | ||
@@ -62,7 +62,7 @@ do_install () { | |||
62 | install -m 0644 ${WORKDIR}/atd.service ${D}${systemd_unitdir}/system | 62 | install -m 0644 ${WORKDIR}/atd.service ${D}${systemd_unitdir}/system |
63 | sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/atd.service | 63 | sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/atd.service |
64 | 64 | ||
65 | if [ "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" = "pam" ]; then | 65 | if [ "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" = "pam" ]; then |
66 | install -D -m 0644 ${WORKDIR}/${BP}/pam.conf ${D}${sysconfdir}/pam.d/atd | 66 | install -D -m 0644 ${WORKDIR}/${BP}/pam.conf ${D}${sysconfdir}/pam.d/atd |
67 | fi | 67 | fi |
68 | } | 68 | } |
diff --git a/meta/recipes-extended/cronie/cronie_1.4.11.bb b/meta/recipes-extended/cronie/cronie_1.4.11.bb index 2a932e056c..02234f6a36 100644 --- a/meta/recipes-extended/cronie/cronie_1.4.11.bb +++ b/meta/recipes-extended/cronie/cronie_1.4.11.bb | |||
@@ -20,7 +20,7 @@ SRC_URI = "https://fedorahosted.org/releases/c/r/cronie/cronie-${PV}.tar.gz \ | |||
20 | file://crond.init \ | 20 | file://crond.init \ |
21 | file://crontab \ | 21 | file://crontab \ |
22 | file://crond.service \ | 22 | file://crond.service \ |
23 | ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}" | 23 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}" |
24 | 24 | ||
25 | PAM_SRC_URI = "file://crond_pam_config.patch" | 25 | PAM_SRC_URI = "file://crond_pam_config.patch" |
26 | PAM_DEPS = "libpam libpam-runtime pam-plugin-access pam-plugin-loginuid" | 26 | PAM_DEPS = "libpam libpam-runtime pam-plugin-access pam-plugin-loginuid" |
@@ -31,7 +31,7 @@ SRC_URI[sha256sum] = "fd08084cedddbb42499f80ddb7f2158195c3555c2ff40ee11d4ece2f98 | |||
31 | inherit autotools update-rc.d useradd systemd | 31 | inherit autotools update-rc.d useradd systemd |
32 | 32 | ||
33 | 33 | ||
34 | PACKAGECONFIG ?= "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" | 34 | PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" |
35 | 35 | ||
36 | PACKAGECONFIG[audit] = "--with-audit,--without-audit,audit," | 36 | PACKAGECONFIG[audit] = "--with-audit,--without-audit,audit," |
37 | PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam,${PAM_DEPS}" | 37 | PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam,${PAM_DEPS}" |
diff --git a/meta/recipes-extended/cups/cups.inc b/meta/recipes-extended/cups/cups.inc index e4771f7c80..fd885527c2 100644 --- a/meta/recipes-extended/cups/cups.inc +++ b/meta/recipes-extended/cups/cups.inc | |||
@@ -14,8 +14,8 @@ LEAD_SONAME = "libcupsdriver.so" | |||
14 | 14 | ||
15 | inherit autotools-brokensep binconfig | 15 | inherit autotools-brokensep binconfig |
16 | 16 | ||
17 | PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)} \ | 17 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', 'avahi', '', d)} \ |
18 | ${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" | 18 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" |
19 | PACKAGECONFIG[avahi] = "--enable-avahi,--disable-avahi,avahi" | 19 | PACKAGECONFIG[avahi] = "--enable-avahi,--disable-avahi,avahi" |
20 | PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl" | 20 | PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl" |
21 | PACKAGECONFIG[pam] = "--enable-pam, --disable-pam, libpam" | 21 | PACKAGECONFIG[pam] = "--enable-pam, --disable-pam, libpam" |
diff --git a/meta/recipes-extended/findutils/findutils_4.4.2.bb b/meta/recipes-extended/findutils/findutils_4.4.2.bb index ee91945f9f..faf2ebe462 100644 --- a/meta/recipes-extended/findutils/findutils_4.4.2.bb +++ b/meta/recipes-extended/findutils/findutils_4.4.2.bb | |||
@@ -20,6 +20,6 @@ SRC_URI[sha256sum] = "434f32d171cbc0a5e72cfc5372c6fc4cb0e681f8dce566a0de5b6fccd7 | |||
20 | DEPENDS = "bison-native" | 20 | DEPENDS = "bison-native" |
21 | 21 | ||
22 | # http://savannah.gnu.org/bugs/?27299 | 22 | # http://savannah.gnu.org/bugs/?27299 |
23 | CACHED_CONFIGUREVARS += "${@base_contains('DISTRO_FEATURES', 'libc-posix-clang-wchar', 'gl_cv_func_wcwidth_works=yes', '', d)}" | 23 | CACHED_CONFIGUREVARS += "${@bb.utils.contains('DISTRO_FEATURES', 'libc-posix-clang-wchar', 'gl_cv_func_wcwidth_works=yes', '', d)}" |
24 | 24 | ||
25 | EXTRA_OECONF += "ac_cv_path_SORT=${bindir}/sort" | 25 | EXTRA_OECONF += "ac_cv_path_SORT=${bindir}/sort" |
diff --git a/meta/recipes-extended/iptables/iptables_1.4.21.bb b/meta/recipes-extended/iptables/iptables_1.4.21.bb index 166457dc46..02bb8435dc 100644 --- a/meta/recipes-extended/iptables/iptables_1.4.21.bb +++ b/meta/recipes-extended/iptables/iptables_1.4.21.bb | |||
@@ -31,7 +31,7 @@ inherit autotools | |||
31 | 31 | ||
32 | EXTRA_OECONF = "--with-kernel=${STAGING_INCDIR} \ | 32 | EXTRA_OECONF = "--with-kernel=${STAGING_INCDIR} \ |
33 | " | 33 | " |
34 | PACKAGECONFIG ?= "${@base_contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)} \ | 34 | PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)} \ |
35 | " | 35 | " |
36 | 36 | ||
37 | PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," | 37 | PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," |
diff --git a/meta/recipes-extended/libarchive/libarchive_3.1.2.bb b/meta/recipes-extended/libarchive/libarchive_3.1.2.bb index f90dc022dc..eedbaa74e1 100644 --- a/meta/recipes-extended/libarchive/libarchive_3.1.2.bb +++ b/meta/recipes-extended/libarchive/libarchive_3.1.2.bb | |||
@@ -8,9 +8,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b4e3ffd607d6686c6cb2f63394370841" | |||
8 | PACKAGECONFIG ?= "libxml2 zlib bz2" | 8 | PACKAGECONFIG ?= "libxml2 zlib bz2" |
9 | 9 | ||
10 | PACKAGECONFIG_append_class-target = "\ | 10 | PACKAGECONFIG_append_class-target = "\ |
11 | ${@base_contains('DISTRO_FEATURES', 'acl', 'acl', '', d)} \ | 11 | ${@bb.utils.contains('DISTRO_FEATURES', 'acl', 'acl', '', d)} \ |
12 | ${@base_contains('DISTRO_FEATURES', 'xattr', 'xattr', '', d)} \ | 12 | ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'xattr', '', d)} \ |
13 | ${@base_contains('DISTRO_FEATURES', 'largefile', 'largefile', '', d)} \ | 13 | ${@bb.utils.contains('DISTRO_FEATURES', 'largefile', 'largefile', '', d)} \ |
14 | " | 14 | " |
15 | 15 | ||
16 | PACKAGECONFIG_append_class-nativesdk = " largefile" | 16 | PACKAGECONFIG_append_class-nativesdk = " largefile" |
diff --git a/meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb b/meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb index b87213cb99..ad3f240c04 100644 --- a/meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb +++ b/meta/recipes-extended/packagegroups/packagegroup-core-full-cmdline.bb | |||
@@ -133,7 +133,7 @@ RDEPENDS_packagegroup-core-full-cmdline-initscripts = "\ | |||
133 | RDEPENDS_packagegroup-core-full-cmdline-multiuser = "\ | 133 | RDEPENDS_packagegroup-core-full-cmdline-multiuser = "\ |
134 | cracklib \ | 134 | cracklib \ |
135 | gzip \ | 135 | gzip \ |
136 | ${@base_contains('DISTRO_FEATURES', 'pam', 'libuser', '', d)} \ | 136 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libuser', '', d)} \ |
137 | shadow \ | 137 | shadow \ |
138 | sudo \ | 138 | sudo \ |
139 | " | 139 | " |
diff --git a/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb b/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb index 914a7a9b7e..553befdb02 100644 --- a/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb +++ b/meta/recipes-extended/packagegroups/packagegroup-core-lsb.bb | |||
@@ -209,7 +209,7 @@ QT4PKGS = " \ | |||
209 | libqtxml4 \ | 209 | libqtxml4 \ |
210 | libqtnetwork4 \ | 210 | libqtnetwork4 \ |
211 | qt4-plugin-sqldriver-sqlite \ | 211 | qt4-plugin-sqldriver-sqlite \ |
212 | ${@base_contains("DISTRO_FEATURES", "opengl", "libqtopengl4", "", d)} \ | 212 | ${@bb.utils.contains("DISTRO_FEATURES", "opengl", "libqtopengl4", "", d)} \ |
213 | " | 213 | " |
214 | QT4PKGS_mips64 = "" | 214 | QT4PKGS_mips64 = "" |
215 | 215 | ||
diff --git a/meta/recipes-extended/pam/libpam_1.1.6.bb b/meta/recipes-extended/pam/libpam_1.1.6.bb index 7c0111fb04..7e55adfb04 100644 --- a/meta/recipes-extended/pam/libpam_1.1.6.bb +++ b/meta/recipes-extended/pam/libpam_1.1.6.bb | |||
@@ -131,13 +131,13 @@ do_install() { | |||
131 | # The lsb requires unix_chkpwd has setuid permission | 131 | # The lsb requires unix_chkpwd has setuid permission |
132 | chmod 4755 ${D}${sbindir}/unix_chkpwd | 132 | chmod 4755 ${D}${sbindir}/unix_chkpwd |
133 | 133 | ||
134 | if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then | 134 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then |
135 | echo "session optional pam_systemd.so" >> ${D}${sysconfdir}/pam.d/common-session | 135 | echo "session optional pam_systemd.so" >> ${D}${sysconfdir}/pam.d/common-session |
136 | fi | 136 | fi |
137 | } | 137 | } |
138 | 138 | ||
139 | python do_pam_sanity () { | 139 | python do_pam_sanity () { |
140 | if not base_contains('DISTRO_FEATURES', 'pam', True, False, d): | 140 | if not bb.utils.contains('DISTRO_FEATURES', 'pam', True, False, d): |
141 | bb.warn("Building libpam but 'pam' isn't in DISTRO_FEATURES, PAM won't work correctly") | 141 | bb.warn("Building libpam but 'pam' isn't in DISTRO_FEATURES, PAM won't work correctly") |
142 | } | 142 | } |
143 | addtask pam_sanity before do_configure | 143 | addtask pam_sanity before do_configure |
diff --git a/meta/recipes-extended/screen/screen_4.0.3.bb b/meta/recipes-extended/screen/screen_4.0.3.bb index d83dda03c2..6fd02a07cb 100644 --- a/meta/recipes-extended/screen/screen_4.0.3.bb +++ b/meta/recipes-extended/screen/screen_4.0.3.bb | |||
@@ -11,7 +11,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0774d66808b0f602e94448108f59448b \ | |||
11 | 11 | ||
12 | SECTION = "console/utils" | 12 | SECTION = "console/utils" |
13 | DEPENDS = "ncurses \ | 13 | DEPENDS = "ncurses \ |
14 | ${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | 14 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" |
15 | RDEPENDS_${PN} = "base-files" | 15 | RDEPENDS_${PN} = "base-files" |
16 | 16 | ||
17 | PR = "r4" | 17 | PR = "r4" |
@@ -20,7 +20,7 @@ SRC_URI = "${GNU_MIRROR}/screen/screen-${PV}.tar.gz;name=tarball \ | |||
20 | ${DEBIAN_MIRROR}/main/s/screen/screen_4.0.3-14.diff.gz;name=patch \ | 20 | ${DEBIAN_MIRROR}/main/s/screen/screen_4.0.3-14.diff.gz;name=patch \ |
21 | file://configure.patch \ | 21 | file://configure.patch \ |
22 | file://fix-parallel-make.patch \ | 22 | file://fix-parallel-make.patch \ |
23 | ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}" | 23 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}" |
24 | 24 | ||
25 | PAM_SRC_URI = "file://screen.pam" | 25 | PAM_SRC_URI = "file://screen.pam" |
26 | 26 | ||
@@ -33,10 +33,10 @@ SRC_URI[patch.sha256sum] = "10acb274b2fb0bb7137a0d66e52fa0f18125bc5198c7a8d5af38 | |||
33 | inherit autotools | 33 | inherit autotools |
34 | 34 | ||
35 | EXTRA_OECONF = "--with-pty-mode=0620 --with-pty-group=5 \ | 35 | EXTRA_OECONF = "--with-pty-mode=0620 --with-pty-group=5 \ |
36 | ${@base_contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)}" | 36 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)}" |
37 | 37 | ||
38 | do_install_append () { | 38 | do_install_append () { |
39 | if [ "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" = "pam" ]; then | 39 | if [ "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" = "pam" ]; then |
40 | install -D -m 644 ${WORKDIR}/screen.pam ${D}/${sysconfdir}/pam.d/screen | 40 | install -D -m 644 ${WORKDIR}/screen.pam ${D}/${sysconfdir}/pam.d/screen |
41 | fi | 41 | fi |
42 | } | 42 | } |
diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc index a4e9634a56..6848e054b3 100644 --- a/meta/recipes-extended/shadow/shadow.inc +++ b/meta/recipes-extended/shadow/shadow.inc | |||
@@ -15,7 +15,7 @@ SRC_URI = "http://pkg-shadow.alioth.debian.org/releases/${BPN}-${PV}.tar.bz2 \ | |||
15 | file://shadow_fix_for_automake-1.12.patch \ | 15 | file://shadow_fix_for_automake-1.12.patch \ |
16 | file://shadow-4.1.3-dots-in-usernames.patch \ | 16 | file://shadow-4.1.3-dots-in-usernames.patch \ |
17 | file://shadow-4.1.4.2-env-reset-keep-locale.patch \ | 17 | file://shadow-4.1.4.2-env-reset-keep-locale.patch \ |
18 | ${@base_contains('PACKAGECONFIG', 'pam', '${PAM_SRC_URI}', '', d)} \ | 18 | ${@bb.utils.contains('PACKAGECONFIG', 'pam', '${PAM_SRC_URI}', '', d)} \ |
19 | " | 19 | " |
20 | 20 | ||
21 | SRC_URI_append_class-target = " \ | 21 | SRC_URI_append_class-target = " \ |
@@ -81,7 +81,7 @@ PAM_PLUGINS = "libpam-runtime \ | |||
81 | pam-plugin-shells \ | 81 | pam-plugin-shells \ |
82 | pam-plugin-rootok" | 82 | pam-plugin-rootok" |
83 | 83 | ||
84 | PACKAGECONFIG = "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" | 84 | PACKAGECONFIG = "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" |
85 | PACKAGECONFIG_class-native = "" | 85 | PACKAGECONFIG_class-native = "" |
86 | PACKAGECONFIG_class-nativesdk = "" | 86 | PACKAGECONFIG_class-nativesdk = "" |
87 | PACKAGECONFIG[pam] = "--with-libpam,--without-libpam,libpam,${PAM_PLUGINS}" | 87 | PACKAGECONFIG[pam] = "--with-libpam,--without-libpam,libpam,${PAM_PLUGINS}" |
diff --git a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb index 43e578fe4f..5675cb8cc9 100644 --- a/meta/recipes-extended/shadow/shadow_4.1.4.3.bb +++ b/meta/recipes-extended/shadow/shadow_4.1.4.3.bb | |||
@@ -2,7 +2,7 @@ require shadow.inc | |||
2 | 2 | ||
3 | # Build falsely assumes that if --enable-libpam is set, we don't need to link against | 3 | # Build falsely assumes that if --enable-libpam is set, we don't need to link against |
4 | # libcrypt. This breaks chsh. | 4 | # libcrypt. This breaks chsh. |
5 | BUILD_LDFLAGS_append_class-target = " ${@base_contains('DISTRO_FEATURES', 'pam', base_contains('DISTRO_FEATURES', 'libc-crypt', '-lcrypt', '', d), '', d)}" | 5 | BUILD_LDFLAGS_append_class-target = " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', bb.utils.contains('DISTRO_FEATURES', 'libc-crypt', '-lcrypt', '', d), '', d)}" |
6 | 6 | ||
7 | BBCLASSEXTEND = "native nativesdk" | 7 | BBCLASSEXTEND = "native nativesdk" |
8 | 8 | ||
diff --git a/meta/recipes-extended/sudo/sudo_1.8.9p5.bb b/meta/recipes-extended/sudo/sudo_1.8.9p5.bb index b4d18e88ff..7851473e47 100644 --- a/meta/recipes-extended/sudo/sudo_1.8.9p5.bb +++ b/meta/recipes-extended/sudo/sudo_1.8.9p5.bb | |||
@@ -1,20 +1,20 @@ | |||
1 | require sudo.inc | 1 | require sudo.inc |
2 | 2 | ||
3 | SRC_URI = "http://ftp.sudo.ws/sudo/dist/sudo-${PV}.tar.gz \ | 3 | SRC_URI = "http://ftp.sudo.ws/sudo/dist/sudo-${PV}.tar.gz \ |
4 | ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}" | 4 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}" |
5 | 5 | ||
6 | PAM_SRC_URI = "file://sudo.pam" | 6 | PAM_SRC_URI = "file://sudo.pam" |
7 | 7 | ||
8 | SRC_URI[md5sum] = "d3f1f1cfca6b2b06b048e1abb7d0227e" | 8 | SRC_URI[md5sum] = "d3f1f1cfca6b2b06b048e1abb7d0227e" |
9 | SRC_URI[sha256sum] = "bc9d5c96de5f8b4d2b014f87a37870aef60d2891c869202454069150a21a5c21" | 9 | SRC_URI[sha256sum] = "bc9d5c96de5f8b4d2b014f87a37870aef60d2891c869202454069150a21a5c21" |
10 | 10 | ||
11 | DEPENDS += " ${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | 11 | DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" |
12 | RDEPENDS_${PN} += " ${@base_contains('DISTRO_FEATURES', 'pam', 'pam-plugin-limits pam-plugin-keyinit', '', d)}" | 12 | RDEPENDS_${PN} += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-limits pam-plugin-keyinit', '', d)}" |
13 | 13 | ||
14 | EXTRA_OECONF += " ${@base_contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)}" | 14 | EXTRA_OECONF += " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)}" |
15 | 15 | ||
16 | do_install_append () { | 16 | do_install_append () { |
17 | if [ "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" = "pam" ]; then | 17 | if [ "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}" = "pam" ]; then |
18 | install -D -m 664 ${WORKDIR}/sudo.pam ${D}/${sysconfdir}/pam.d/sudo | 18 | install -D -m 664 ${WORKDIR}/sudo.pam ${D}/${sysconfdir}/pam.d/sudo |
19 | fi | 19 | fi |
20 | 20 | ||
diff --git a/meta/recipes-extended/sysklogd/sysklogd.inc b/meta/recipes-extended/sysklogd/sysklogd.inc index 3a518103ea..bcf8aa7a96 100644 --- a/meta/recipes-extended/sysklogd/sysklogd.inc +++ b/meta/recipes-extended/sysklogd/sysklogd.inc | |||
@@ -40,7 +40,7 @@ do_install () { | |||
40 | 40 | ||
41 | # sysklogd package has no internal systemd support, so we weigh busybox's | 41 | # sysklogd package has no internal systemd support, so we weigh busybox's |
42 | # sysklogd utility over it in case of systemd | 42 | # sysklogd utility over it in case of systemd |
43 | ALTERNATIVE_PRIORITY = "${@base_contains('DISTRO_FEATURES','systemd','10','100',d)}" | 43 | ALTERNATIVE_PRIORITY = "${@bb.utils.contains('DISTRO_FEATURES','systemd','10','100',d)}" |
44 | 44 | ||
45 | ALTERNATIVE_${PN} = "syslogd klogd syslog-init syslog-conf" | 45 | ALTERNATIVE_${PN} = "syslogd klogd syslog-init syslog-conf" |
46 | 46 | ||