util-linux: build setpriv requires libcap-ng
There might a failure when build util-linux with the meta-selinux layer: [snip] sys-utils/setpriv.c:21:20: fatal error: cap-ng.h: No such file or directory #include <cap-ng.h> ^ compilation terminated. [snip] Use PACKAGECONFIG to fix the problem. [YOCTO #6026] (From OE-Core rev: 8a6b1ae336a41292ee314c04d93c2c355c772762) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
228abf24d4
commit
1f85f07414
|
@ -57,6 +57,9 @@ PACKAGECONFIG[pam] = "--enable-su --enable-runuser,--disable-su --disable-runuse
|
||||||
# Respect the systemd feature for uuidd
|
# Respect the systemd feature for uuidd
|
||||||
PACKAGECONFIG[systemd] = "--enable-socket-activation --with-systemdsystemunitdir=${systemd_unitdir}/system/, --disable-socket-activation --without-systemdsystemunitdir"
|
PACKAGECONFIG[systemd] = "--enable-socket-activation --with-systemdsystemunitdir=${systemd_unitdir}/system/, --disable-socket-activation --without-systemdsystemunitdir"
|
||||||
|
|
||||||
|
# Build setpriv requires libcap-ng
|
||||||
|
PACKAGECONFIG[libcap-ng] = "--enable-setpriv,--disable-setpriv,libcap-ng,"
|
||||||
|
|
||||||
FILES_${PN}-bash-completion += "${datadir}/bash-completion"
|
FILES_${PN}-bash-completion += "${datadir}/bash-completion"
|
||||||
FILES_${PN}-doc += "${datadir}/getopt/getopt-*.*"
|
FILES_${PN}-doc += "${datadir}/getopt/getopt-*.*"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue