tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: qemu fails to build



On Wed, Jun 07, 2023 at 01:40:30PM +0200, Manuel Bouyer wrote:
> hello
> in HEAD qemu fails to build (not related to the recent 8.0.2 update, it
> did fail with 8.0.0 in the same way):
> [5880/6893] Generating pc-bios/keymaps/bepo with a custom command
> FAILED: pc-bios/keymaps/bepo 
> /usr/tmp/emulators/qemu/work/qemu-8.0.2/build/qemu-keymap -f pc-bios/keymaps/bep
> o -l fr -v dvorak
> xkbcommon: ERROR: failed to add default include path /usr/X11R7/share/X11/xkb
> [...]
> /usr/tmp/emulators/qemu/work/qemu-8.0.2/build/qemu-keymap -f pc-bios/keymaps/ar -l ar
> xkbcommon: ERROR: failed to add default include path /usr/X11R7/share/X11/xkb
> [5883/6893] Generating pc-bios/edk2-x86_64-secure-code.fd with a custom command (wrapped by meson to capture output)
> ninja: build stopped: subcommand failed.
> *** Error code 1
> 
> indeed the correct path is /usr/X11R7/lib/X11/xkb
> 
> I tracked it down to x11/libxkbcommon not using the correct path.
> The attached patch fixes it for me, allowing qemu to build.
> Any comment ?

Niklas Rosenvik suggested a different solution to this, have you tried
his version?
 Thomas
--- Begin Message ---
On Wed, 15 Mar 2023 14:57:11 -0400
Greg Troxel <gdt%lexort.com@localhost> wrote:

> On:
>   netbsd-10 amd64 from about a week ago
>     x sets installed, so pkgsrc using native
>   pkgsrc-current from about 36h ago, but with qemu from an hour ago
>   everthing else up to date (pkg_rr)
> 
> 
> building qemu fails:
> 
>   [5721/6717] Generating pc-bios/edk2-i386-vars.fd with a custom
> command (wrapped by meson to capture output) [5722/6717] Generating
> pc-bios/keymaps/ar with a custom command FAILED: pc-bios/keymaps/ar 
>   /usr/pkg/bin/qemu-keymap -f pc-bios/keymaps/ar -l ar
>   xkbcommon: ERROR: failed to add default include path
> /usr/X11R7/share/X11/xkb [5723/6717] Generating
> pc-bios/edk2-x86_64-code.fd with a custom command (wrapped by meson
> to capture output) [5724/6717] Generating
> pc-bios/edk2-x86_64-secure-code.fd with a custom command (wrapped by
> meson to capture output) ninja: build stopped: subcommand failed. ***
> Error code 1
> 
> I dimly remember seeing this before, but I do not remember the
> outcome.

Hi, Greg.
This has been fixed in pull-up ticket 120 for NetBSD 10 .
Also see pkg/57232 on how to fix it.
I your case, uninstall qemu ,update to NetBSD 10 with the fix, run make
update in x11/libxkbcommon. Now you can install and rebuild qemu
without the problem. The reason for the problem is that libxkbcommon is
using the wrong directory /usr/X11R7/share/X11/xkb that it has taken
from xkeyboard-config.pc during build time. Using
/usr/X11R7/lib/X11/xkb that is the right directory in
xkeyboard-config.pc and rebuilding libxkbcommon fixes the issue.

Niclas

--- End Message ---


Home | Main Index | Thread Index | Old Index