1 |
commit: a241bd5e94cea0a32a4be496dd6549b63d1d9f2c |
2 |
Author: Han Han <hanhanzhiyeqianke <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Jul 27 15:33:09 2019 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 22 02:34:08 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a241bd5e |
7 |
|
8 |
app-emulation/qemu: Add use flag jemalloc |
9 |
|
10 |
Add flag jemalloc to enable or disable jemalloc memory jemalloc support |
11 |
for qemu. |
12 |
|
13 |
Signed-off-by: Han Han <hanhanzhiyeqianke <AT> gmail.com> |
14 |
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org> |
15 |
|
16 |
app-emulation/qemu/metadata.xml | 1 + |
17 |
app-emulation/qemu/qemu-4.0.0-r50.ebuild | 4 +++- |
18 |
app-emulation/qemu/qemu-9999.ebuild | 4 +++- |
19 |
3 files changed, 7 insertions(+), 2 deletions(-) |
20 |
|
21 |
diff --git a/app-emulation/qemu/metadata.xml b/app-emulation/qemu/metadata.xml |
22 |
index 3439dfdd4e1..4c468733de5 100644 |
23 |
--- a/app-emulation/qemu/metadata.xml |
24 |
+++ b/app-emulation/qemu/metadata.xml |
25 |
@@ -39,6 +39,7 @@ |
26 |
<flag name="static">Build the User and Software MMU (system) targets as well as tools as static binaries</flag> |
27 |
<flag name="systemtap">Enable SystemTAP/DTrace tracing</flag> |
28 |
<flag name="tci">Enable the TCG Interpreter which can speed up or slowdown workloads depending on the host and guest CPUs being emulated. In the future it will be a runtime option but for now its compile time.</flag> |
29 |
+ <flag name="jemalloc">Enable jemalloc allocator support</flag> |
30 |
<flag name="jpeg">Enable jpeg image support for the VNC console server</flag> |
31 |
<flag name="png">Enable png image support for the VNC console server</flag> |
32 |
<flag name="usb">Enable USB passthrough via <pkg>dev-libs/libusb</pkg></flag> |
33 |
|
34 |
diff --git a/app-emulation/qemu/qemu-4.0.0-r50.ebuild b/app-emulation/qemu/qemu-4.0.0-r50.ebuild |
35 |
index d547b37ab84..cc99fdbbcc1 100644 |
36 |
--- a/app-emulation/qemu/qemu-4.0.0-r50.ebuild |
37 |
+++ b/app-emulation/qemu/qemu-4.0.0-r50.ebuild |
38 |
@@ -28,7 +28,7 @@ HOMEPAGE="http://www.qemu.org http://www.linux-kvm.org" |
39 |
LICENSE="GPL-2 LGPL-2 BSD-2" |
40 |
SLOT="0" |
41 |
IUSE="accessibility +aio alsa bzip2 capstone +caps +curl debug doc |
42 |
- +fdt glusterfs gnutls gtk infiniband iscsi +jpeg kernel_linux |
43 |
+ +fdt glusterfs gnutls gtk infiniband iscsi jemalloc +jpeg kernel_linux |
44 |
kernel_FreeBSD lzo ncurses nfs nls numa opengl +pin-upstream-blobs +png |
45 |
pulseaudio python rbd sasl +seccomp sdl selinux smartcard snappy |
46 |
spice ssh static static-user systemtap tci test usb usbredir vde |
47 |
@@ -108,6 +108,7 @@ SOFTMMU_TOOLS_DEPEND=" |
48 |
sys-fabric/librdmacm:=[static-libs(+)] |
49 |
) |
50 |
iscsi? ( net-libs/libiscsi ) |
51 |
+ jemalloc? ( dev-libs/jemalloc ) |
52 |
jpeg? ( virtual/jpeg:0=[static-libs(+)] ) |
53 |
lzo? ( dev-libs/lzo:2[static-libs(+)] ) |
54 |
ncurses? ( |
55 |
@@ -436,6 +437,7 @@ qemu_src_configure() { |
56 |
$(conf_notuser gtk) |
57 |
$(conf_notuser infiniband rdma) |
58 |
$(conf_notuser iscsi libiscsi) |
59 |
+ $(conf_notuser jemalloc jemalloc) |
60 |
$(conf_notuser jpeg vnc-jpeg) |
61 |
$(conf_notuser kernel_linux kvm) |
62 |
$(conf_notuser lzo) |
63 |
|
64 |
diff --git a/app-emulation/qemu/qemu-9999.ebuild b/app-emulation/qemu/qemu-9999.ebuild |
65 |
index b26d0b2869d..51deb16ff03 100644 |
66 |
--- a/app-emulation/qemu/qemu-9999.ebuild |
67 |
+++ b/app-emulation/qemu/qemu-9999.ebuild |
68 |
@@ -34,7 +34,7 @@ LICENSE="GPL-2 LGPL-2 BSD-2" |
69 |
SLOT="0" |
70 |
|
71 |
IUSE="accessibility +aio alsa bzip2 capstone +caps +curl debug doc |
72 |
- +fdt glusterfs gnutls gtk infiniband iscsi +jpeg kernel_linux |
73 |
+ +fdt glusterfs gnutls gtk infiniband iscsi +jpeg jemalloc kernel_linux |
74 |
kernel_FreeBSD lzo ncurses nfs nls numa opengl +oss +pin-upstream-blobs |
75 |
+png pulseaudio python rbd sasl +seccomp sdl selinux smartcard snappy |
76 |
spice ssh static static-user systemtap tci test usb usbredir vde |
77 |
@@ -114,6 +114,7 @@ SOFTMMU_TOOLS_DEPEND=" |
78 |
sys-fabric/librdmacm:=[static-libs(+)] |
79 |
) |
80 |
iscsi? ( net-libs/libiscsi ) |
81 |
+ jemalloc? ( dev-libs/jemalloc ) |
82 |
jpeg? ( virtual/jpeg:0=[static-libs(+)] ) |
83 |
lzo? ( dev-libs/lzo:2[static-libs(+)] ) |
84 |
ncurses? ( |
85 |
@@ -443,6 +444,7 @@ qemu_src_configure() { |
86 |
$(conf_notuser gtk) |
87 |
$(conf_notuser infiniband rdma) |
88 |
$(conf_notuser iscsi libiscsi) |
89 |
+ $(conf_notuser jemalloc jemalloc) |
90 |
$(conf_notuser jpeg vnc-jpeg) |
91 |
$(conf_notuser kernel_linux kvm) |
92 |
$(conf_notuser lzo) |