1 |
commit: 62ef6e8524251a91d96e54f11c87a485b25c5f70 |
2 |
Author: WANG Xuerui <xen0n <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 5 00:52:11 2022 +0000 |
4 |
Commit: WANG Xuerui <xen0n <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 5 00:53:54 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62ef6e85 |
7 |
|
8 |
app-emulation/qemu: forward 7.0.0-also-build-virtfs-proxy-helper.patch to avoid fuzz |
9 |
|
10 |
Due to upstream commit https://gitlab.com/qemu-project/qemu/-/commit/622d64fffe4f |
11 |
("meson, configure: move bdrv whitelists to meson"). |
12 |
|
13 |
Signed-off-by: WANG Xuerui <xen0n <AT> gentoo.org> |
14 |
|
15 |
...qemu-7.1.0-also-build-virtfs-proxy-helper.patch | 32 ++++++++++++++++++++++ |
16 |
app-emulation/qemu/qemu-9999.ebuild | 2 +- |
17 |
2 files changed, 33 insertions(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/app-emulation/qemu/files/qemu-7.1.0-also-build-virtfs-proxy-helper.patch b/app-emulation/qemu/files/qemu-7.1.0-also-build-virtfs-proxy-helper.patch |
20 |
new file mode 100644 |
21 |
index 000000000000..b6f3078a6906 |
22 |
--- /dev/null |
23 |
+++ b/app-emulation/qemu/files/qemu-7.1.0-also-build-virtfs-proxy-helper.patch |
24 |
@@ -0,0 +1,32 @@ |
25 |
+From d02ea89239768c93651a161d057f2bf04d56a024 Mon Sep 17 00:00:00 2001 |
26 |
+From: Matthias Maier <tamiko@××××.org> |
27 |
+Date: Mon, 4 Apr 2022 12:56:59 +0200 |
28 |
+Subject: [PATCH] also build virtfs-proxy-helper |
29 |
+ |
30 |
+The Gentoo ebuild splits the qemu build into a softmmu, user and tool |
31 |
+phase in order to be able to build and link some of the qemu emulators |
32 |
+statically. This unfortunately has the consequence that we never |
33 |
+configure with "have_virtfs" and "have_tools" at the same time. |
34 |
+ |
35 |
+As a workaround, simply build the virtfs userland unconditionally. After |
36 |
+all, it is a tiny executable |
37 |
+--- |
38 |
+ meson.build | 2 +- |
39 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
40 |
+ |
41 |
+diff --git a/meson.build b/meson.build |
42 |
+index 65a885ea69..29ce7a5a8e 100644 |
43 |
+--- a/meson.build |
44 |
++++ b/meson.build |
45 |
+@@ -1684,7 +1684,7 @@ have_virtfs = get_option('virtfs') \ |
46 |
+ .disable_auto_if(not have_tools and not have_system) \ |
47 |
+ .allowed() |
48 |
+ |
49 |
+-have_virtfs_proxy_helper = targetos != 'darwin' and have_virtfs and have_tools |
50 |
++have_virtfs_proxy_helper = have_tools and libattr.found() and libcap_ng.found() |
51 |
+ |
52 |
+ if get_option('block_drv_ro_whitelist') == '' |
53 |
+ config_host_data.set('CONFIG_BDRV_RO_WHITELIST', '') |
54 |
+-- |
55 |
+2.35.1 |
56 |
+ |
57 |
|
58 |
diff --git a/app-emulation/qemu/qemu-9999.ebuild b/app-emulation/qemu/qemu-9999.ebuild |
59 |
index 8c83655b794e..336c80bd859c 100644 |
60 |
--- a/app-emulation/qemu/qemu-9999.ebuild |
61 |
+++ b/app-emulation/qemu/qemu-9999.ebuild |
62 |
@@ -278,7 +278,7 @@ PATCHES=( |
63 |
"${FILESDIR}"/${PN}-2.11.1-capstone_include_path.patch |
64 |
"${FILESDIR}"/${PN}-5.2.0-disable-keymap.patch |
65 |
"${FILESDIR}"/${PN}-6.0.0-make.patch |
66 |
- "${FILESDIR}"/${PN}-7.0.0-also-build-virtfs-proxy-helper.patch |
67 |
+ "${FILESDIR}"/${PN}-7.1.0-also-build-virtfs-proxy-helper.patch |
68 |
"${FILESDIR}"/${PN}-7.1.0-strings.patch |
69 |
) |