[Pkg-libvirt-maintainers] Bug#1024504: libvirt FTCBFS: misdetects linux/kvm.h

Helmut Grohne helmut at subdivi.de
Sun Nov 20 17:01:13 GMT 2022


Source: libvirt
Version: 8.9.0-1
Tags: patch upstream
User: debian-cross at lists.debian.org
Usertags: ftcbfs

libvirt fails to cross build from source when building on amd64 for
armhf or armel. It uses meson's has_header to figure out whether
linux/kvm.h exists and due to linux-libc-dev:amd64 being installed,
/usr/include/linux/kvm.h exists. has_header is able to figure this out
without actually including it. When libvirt actually #includes it,
asm/kvm.h is missing as that's a multiarch headers. Thus linux headers
should be tested with check_header, which actually #includes it. While
has_header may seem relatively useless at this point, it is far quicker
than check_header. Thus I'm proposing to only employ check_header for
linux headers. I'm attaching a patch for your convenience.

Helmut
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cross.patch
Type: text/x-diff
Size: 311 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-libvirt-maintainers/attachments/20221120/5c334f05/attachment.patch>


More information about the Pkg-libvirt-maintainers mailing list