From: Changqing Li <[email protected]>

When package keyutils-devel is installed on host and gcc in extend buildtools
is used, qemu-system-native do_compile failed with error:
../qemu-9.2.0/backends/cryptodev-lkcf.c:36:10: fatal error: keyutils.h: No such 
file or directory*

 36    #include <keyutils.h>

                ^~~~~~~~~~~~

gcc in extend buildtools can find libkeyutil on the host, but it will not
search the headers on the host cause above issue. add PACKAGECONFIG
libkeyutils, and disable libkeyutils by default to fix the issue

Signed-off-by: Changqing Li <[email protected]>
---
 meta/recipes-devtools/qemu/qemu.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/qemu/qemu.inc 
b/meta/recipes-devtools/qemu/qemu.inc
index 63414196fa..908dca7d5d 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -229,6 +229,7 @@ PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack,"
 PACKAGECONFIG[debuginfo] = "--enable-libdw,--disable-libdw,elfutils"
 PACKAGECONFIG[pipewire] = "--enable-pipewire,--disable-pipewire,pipewire"
 PACKAGECONFIG[sndio] = "--enable-sndio,--disable-sndio,sndio"
+PACKAGECONFIG[libkeyutils] = 
"--enable-libkeyutils,--disable-libkeyutils,keyutils"
 
 INSANE_SKIP:${PN}-common = "arch"
 
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#228446): 
https://lists.openembedded.org/g/openembedded-core/message/228446
Mute This Topic: https://lists.openembedded.org/mt/116912094/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to