]> code.ossystems Code Review - openembedded-core.git/commit
util-linux: Disable chfn-chsh on non-target builds
authorKhem Raj <raj.khem@gmail.com>
Thu, 8 Jul 2021 18:46:41 +0000 (11:46 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 10 Jul 2021 21:40:12 +0000 (22:40 +0100)
commit336625fe433100fb57ea0dda4d9ff5fcb835dc95
tree236b60832f468e5a29e3047daf225cfc4c544b23
parent2b931f8539f73b35d879e3b5993b813394d80d74
util-linux: Disable chfn-chsh on non-target builds

They are also provided by shadow-native e.g. when building native
recipes and packages where they depend on both shadow-native and
util-linux-native, this can conflict

Enable it only when pam is enabled in distro

Fixes
ERROR: systemd-1_248.3-r0 do_prepare_recipe_sysroot: The file /usr/bin/chsh is installed by both util-linux-native and shadow-native, aborting

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/util-linux/util-linux_2.37.bb