Patchwork [1/1] util-linux: build setpriv requires libcap-ng

login
register
mail settings
Submitter Robert Yang
Date March 24, 2014, 9:24 a.m.
Message ID <193839e768c2b96ced5cac7b6b20f9ec1d4c409c.1395653020.git.liezhi.yang@windriver.com>
Download mbox | patch
Permalink /patch/69053/
State Accepted
Commit 1f85f07414e96aee2603ce61100008dbe7169973
Headers show

Comments

Robert Yang - March 24, 2014, 9:24 a.m.
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]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 meta/recipes-core/util-linux/util-linux.inc |    3 +++
 1 file changed, 3 insertions(+)

Patch

diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc
index 51c982a..ad7aac7 100644
--- a/meta/recipes-core/util-linux/util-linux.inc
+++ b/meta/recipes-core/util-linux/util-linux.inc
@@ -57,6 +57,9 @@  PACKAGECONFIG[pam] = "--enable-su --enable-runuser,--disable-su --disable-runuse
 # Respect the systemd feature for uuidd
 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}-doc += "${datadir}/getopt/getopt-*.*"