qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* building qemu on a system with libxkbcommon installed but not xkeyboard-config produces an core dump
@ 2024-01-31  8:13 Zhang Wen
  2024-02-01 12:11 ` Michael Tokarev
  0 siblings, 1 reply; 10+ messages in thread
From: Zhang Wen @ 2024-01-31  8:13 UTC (permalink / raw)
  To: qemu-trivial
  Cc: pbonzini, marcandre.lureau, berrange, thuth, philmd, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 268 bytes --]

With this patch, qemu requires keyboard-config when libxkbcommon is 
found on the system. So if the qemu is configured when libxkbcommon is 
installed but not keyboard-config, the configure stage will produce an 
error message, thus avoid coredump in the build stage.

[-- Attachment #2: 0001-requires-xkeyboard-config-when-libxkbcommon-is-avail.patch --]
[-- Type: text/plain, Size: 1213 bytes --]

From e0b1e479e8a82f7a7940ca70b5136bf10e36756b Mon Sep 17 00:00:00 2001
From: Zhang Wen <zhw2101024@gmail.com>
Date: Fri, 26 Jan 2024 17:09:10 +0800
Subject: [PATCH] requires xkeyboard-config when libxkbcommon is available to
 avoid build error

Signed-off-by: Zhang Wen <zhw2101024@gmail.com>
---
 meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index d0329966f1..233c006754 100644
--- a/meson.build
+++ b/meson.build
@@ -1093,6 +1093,7 @@ else
   xkbcommon = dependency('xkbcommon', required: get_option('xkbcommon'),
                          method: 'pkg-config')
 endif
+xkeyboard_config = dependency('xkeyboard-config')
 
 slirp = not_found
 if not get_option('slirp').auto() or have_system
@@ -3978,7 +3979,7 @@ subdir('qga')
 if xkbcommon.found()
   # used for the update-keymaps target, so include rules even if !have_tools
   qemu_keymap = executable('qemu-keymap', files('qemu-keymap.c', 'ui/input-keymap.c') + genh,
-                           dependencies: [qemuutil, xkbcommon], install: have_tools)
+                           dependencies: [qemuutil, xkbcommon, xkeyboard_config], install: have_tools)
 endif
 
 if have_tools
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-02-08 11:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-31  8:13 building qemu on a system with libxkbcommon installed but not xkeyboard-config produces an core dump Zhang Wen
2024-02-01 12:11 ` Michael Tokarev
2024-02-01 12:49   ` Michael Tokarev
2024-02-01 12:57     ` Peter Maydell
2024-02-01 12:59       ` Michael Tokarev
2024-02-06  6:35       ` Zhang Wen
2024-02-06  7:08         ` Michael Tokarev
2024-02-06  7:50           ` Zhang Wen
2024-02-08  2:00             ` Zhang Wen
2024-02-08 11:52         ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).