* [PATCH] qemu-system-native: disable libkeyutils
@ 2025-12-22 9:13 changqing.li
2025-12-22 11:09 ` [OE-core] " Alexander Kanavin
0 siblings, 1 reply; 3+ messages in thread
From: changqing.li @ 2025-12-22 9:13 UTC (permalink / raw)
To: openembedded-core
From: Changqing Li <changqing.li@windriver.com>
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. disable libkeyutils to
workaround above issue
Signed-off-by: Changqing Li <changqing.li@windriver.com>
---
meta/recipes-devtools/qemu/qemu-system-native_10.0.7.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/qemu/qemu-system-native_10.0.7.bb b/meta/recipes-devtools/qemu/qemu-system-native_10.0.7.bb
index 22462e2499..625c4adb42 100644
--- a/meta/recipes-devtools/qemu/qemu-system-native_10.0.7.bb
+++ b/meta/recipes-devtools/qemu/qemu-system-native_10.0.7.bb
@@ -7,7 +7,7 @@ require qemu-native.inc
# and avoid file clashes
DEPENDS += "glib-2.0-native zlib-native pixman-native qemu-native"
-EXTRA_OECONF:append = " --target-list=${@get_qemu_system_target_list(d)}"
+EXTRA_OECONF:append = " --target-list=${@get_qemu_system_target_list(d)} --disable-libkeyutils"
PACKAGECONFIG ??= "fdt alsa kvm pie slirp png pixman sdl \
${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer epoxy', '', d)} \
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [OE-core] [PATCH] qemu-system-native: disable libkeyutils
2025-12-22 9:13 [PATCH] qemu-system-native: disable libkeyutils changqing.li
@ 2025-12-22 11:09 ` Alexander Kanavin
2025-12-23 2:42 ` Changqing Li
0 siblings, 1 reply; 3+ messages in thread
From: Alexander Kanavin @ 2025-12-22 11:09 UTC (permalink / raw)
To: changqing.li; +Cc: openembedded-core
On Mon, 22 Dec 2025 at 10:14, Changqing Li via lists.openembedded.org
<changqing.li=windriver.com@lists.openembedded.org> wrote:
> -EXTRA_OECONF:append = " --target-list=${@get_qemu_system_target_list(d)}"
> +EXTRA_OECONF:append = " --target-list=${@get_qemu_system_target_list(d)} --disable-libkeyutils"
>
> PACKAGECONFIG ??= "fdt alsa kvm pie slirp png pixman sdl \
> ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer epoxy', '', d)} \
It's better to add a PACKAGECONFIG for this. It will be disabled by
default then.
Alex
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [OE-core] [PATCH] qemu-system-native: disable libkeyutils
2025-12-22 11:09 ` [OE-core] " Alexander Kanavin
@ 2025-12-23 2:42 ` Changqing Li
0 siblings, 0 replies; 3+ messages in thread
From: Changqing Li @ 2025-12-23 2:42 UTC (permalink / raw)
To: Alexander Kanavin; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 983 bytes --]
On 12/22/25 19:09, Alexander Kanavin wrote:
> CAUTION: This email comes from a non Wind River email account!
> Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
> On Mon, 22 Dec 2025 at 10:14, Changqing Li via lists.openembedded.org
> <changqing.li=windriver.com@lists.openembedded.org> wrote:
>> -EXTRA_OECONF:append = " --target-list=${@get_qemu_system_target_list(d)}"
>> +EXTRA_OECONF:append = " --target-list=${@get_qemu_system_target_list(d)} --disable-libkeyutils"
>>
>> PACKAGECONFIG ??= "fdt alsa kvm pie slirp png pixman sdl \
>> ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virglrenderer epoxy', '', d)} \
> It's better to add a PACKAGECONFIG for this. It will be disabled by
> default then.
Thanks, it should be better, I will send a V2. My original idea is
only disable libkeyutils for qemu-system-native and keep
original behavior for other recipes.
//Changqing
> Alex
[-- Attachment #2: Type: text/html, Size: 1976 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-12-23 2:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-22 9:13 [PATCH] qemu-system-native: disable libkeyutils changqing.li
2025-12-22 11:09 ` [OE-core] " Alexander Kanavin
2025-12-23 2:42 ` Changqing Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox