qemu: Fix building with latest glibc 2.36
PATCH v2 1/1 qemu: Fix building with latest glibc 2.36
From: Joel Stanley <[email protected]>
When building native qemu with glibc 2.36 (including latest changes from the glibc stable branch), qemu fails to build:
In file included from /usr/include/linux/btrfs.h:29,
from ../qemu-7.2.0/linux-user/syscall.c:165:
/usr/include/linux/fs.h:50:8: error: redefinition of ‘struct file_clone_range’
50 | struct file_clone_range {
| ^~~~~~~~~~~~~~~~
../qemu-7.2.0/linux-user/syscall.c:129:8: note: originally defined here
129 | struct file_clone_range {
| ^~~~~~~~~~~~~~~~Backport changes to linux-user that remove the local copy of struct file_clone_range.
Patches from https://lore.kernel.org/qemu-devel/[email protected]/
Signed-off-by Joel Stanley <[email protected]>
Tested-by Martin Jansa <[email protected]>
--- meta/recipes-devtools/qemu/qemu.inc | 2 + ...er-add-more-compat-ioctl-definitions.patch | 69 ++++++++++++++++ ...r-fix-compat-with-glibc-2.36-sys-mou.patch | 78 +++++++++++++++++++ 3 files changed, 149 insertions(+) create mode 100644 meta/recipes-devtools/qemu/qemu/0001-Revert-linux-user-add-more-compat-ioctl-definitions.patch create mode 100644 meta/recipes-devtools/qemu/qemu/0002-Revert-linux-user-fix-compat-with-glibc-2.36-sys-mou.patch
meta/recipes-devtools/qemu/qemu.inc +2 -0
@@ -30,6 +30,8 @@ SRC_URI = "https://download.qemu.org/${BPN}-${PV}.tar.xz \ file://0001-contrib-vhost-user-blk-Replace-lseek64-with-lseek.patch \ file://0002-linux-user-Replace-use-of-lfs64-related-functions-an.patch \ file://0001-configure-Fix-check-tcg-not-executing-any-tests.patch \ + file://0001-Revert-linux-user-add-more-compat-ioctl-definitions.patch \ + file://0002-Revert-linux-user-fix-compat-with-glibc-2.36-sys-mou.patch \ " UPSTREAM_CHECK_REGEX = "qemu-(?P<pver>\d+(\.\d+)+)\.tar"
meta/recipes-devtools/qemu/qemu/0001-Revert-linux-user-add-more-compat-ioctl-definitions.patch new file +69 -0
69 lines not on this page · raw message
meta/recipes-devtools/qemu/qemu/0002-Revert-linux-user-fix-compat-with-glibc-2.36-sys-mou.patch new file +78 -0
78 lines not on this page · raw message
Signature · 1 line
2.39.2