diff options
author | Saul Wold <sgw@linux.intel.com> | 2013-07-05 12:24:02 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-07-10 09:42:04 +0100 |
commit | b5c49e6032a05f1c452010010f97b81d9100196f (patch) | |
tree | f1e51860b1a8da89d93f02e58c839606c240a232 /meta | |
parent | b472553fa3668975f774fa88fb0da664c269f57d (diff) | |
download | poky-b5c49e6032a05f1c452010010f97b81d9100196f.tar.gz |
util-linux: Use PACKAGECONFIG to control pam and system config options
The PACKAGECONFIG will ensure consistent enabling and disabling of the pam and systemd related
options for configure and the correct dependencies
(From OE-Core rev: 7cde7c639c53724327d981cbc0db5e123607de1c)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/util-linux/util-linux.inc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc index 5bae370688..d373cecdf0 100644 --- a/meta/recipes-core/util-linux/util-linux.inc +++ b/meta/recipes-core/util-linux/util-linux.inc | |||
@@ -42,18 +42,17 @@ EXTRA_OECONF = "--libdir=${base_libdir} --disable-use-tty-group \ | |||
42 | --disable-makeinstall-chown --enable-elvtune --enable-init \ | 42 | --disable-makeinstall-chown --enable-elvtune --enable-init \ |
43 | --enable-kill --enable-last --enable-mesg --enable-partx \ | 43 | --enable-kill --enable-last --enable-mesg --enable-partx \ |
44 | --enable-raw --enable-rdev --enable-reset --disable-login \ | 44 | --enable-raw --enable-rdev --enable-reset --disable-login \ |
45 | --disable-vipw --disable-newgrp --disable-chfn-chsh --disable-su \ | 45 | --disable-vipw --disable-newgrp --disable-chfn-chsh \ |
46 | --enable-write --enable-arch --enable-mount --with-fsprobe=builtin \ | 46 | --enable-write --enable-arch --enable-mount --with-fsprobe=builtin \ |
47 | --enable-libuuid --enable-libblkid --enable-fsck --without-udev \ | 47 | --enable-libuuid --enable-libblkid --enable-fsck --without-udev \ |
48 | --disable-runuser \ | ||
49 | usrsbin_execdir='${sbindir}' \ | 48 | usrsbin_execdir='${sbindir}' \ |
50 | " | 49 | " |
50 | PACKAGECONFIG_class-target ??= "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)} \ | ||
51 | ${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} " | ||
52 | PACKAGECONFIG[pam] = "--enable-su --enable-runuser,--disable-su --disable-runuser, pam," | ||
51 | 53 | ||
52 | # Respect the systemd feature for uuidd | 54 | # Respect the systemd feature for uuidd |
53 | EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'systemd', '--enable-socket-activation', '--disable-socket-activation', d)}" | 55 | PACKAGECONFIG[systemd] = "--enable-socket-activation --with-systemdsystemunitdir=${systemd_unitdir}/system/, --disable-socket-activation --without-systemdsystemunitdir" |
54 | EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/', '--without-systemdsystemunitdir', d)}" | ||
55 | |||
56 | EXTRA_OECONF_append_class-native = " --disable-login --disable-su --disable-runuser" | ||
57 | 56 | ||
58 | FILES_${PN}-bash-completion += "${datadir}/bash-completion" | 57 | FILES_${PN}-bash-completion += "${datadir}/bash-completion" |
59 | FILES_${PN}-doc += "${datadir}/getopt/getopt-*.*" | 58 | FILES_${PN}-doc += "${datadir}/getopt/getopt-*.*" |