1 |
commit: f92dba6164179f3894e3977e6410c912f579e71c |
2 |
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 9 18:39:31 2017 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 9 18:48:47 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f92dba61 |
7 |
|
8 |
app-emulation/qemu: configure tools with all options, bug #611958 |
9 |
|
10 |
This fixes a bug introduced in my previous commit |
11 |
fe801faa69cb147f4fcf2c112e8275f7da935b3d |
12 |
|
13 |
Package-Manager: Portage-2.3.3, Repoman-2.3.2 |
14 |
|
15 |
.../{qemu-2.8.0-r6.ebuild => qemu-2.8.0-r7.ebuild} | 115 +++++++++++---------- |
16 |
1 file changed, 59 insertions(+), 56 deletions(-) |
17 |
|
18 |
diff --git a/app-emulation/qemu/qemu-2.8.0-r6.ebuild b/app-emulation/qemu/qemu-2.8.0-r7.ebuild |
19 |
similarity index 93% |
20 |
rename from app-emulation/qemu/qemu-2.8.0-r6.ebuild |
21 |
rename to app-emulation/qemu/qemu-2.8.0-r7.ebuild |
22 |
index 584a2e15773..4e09e1aca5f 100644 |
23 |
--- a/app-emulation/qemu/qemu-2.8.0-r6.ebuild |
24 |
+++ b/app-emulation/qemu/qemu-2.8.0-r7.ebuild |
25 |
@@ -410,58 +410,71 @@ qemu_src_configure() { |
26 |
$(use_enable xattr attr) |
27 |
) |
28 |
|
29 |
- # Disable options not used by user targets as the default configure |
30 |
- # options will autoprobe and try to link in a bunch of unused junk. |
31 |
- conf_softmmu() { |
32 |
- if [[ ${buildtype} == "softmmu" ]] ; then |
33 |
- use_enable "$@" |
34 |
- else |
35 |
+ # Disable options not used by user targets. This simplifies building |
36 |
+ # static user targets (USE=static-user) considerably. |
37 |
+ conf_notuser() { |
38 |
+ if [[ ${buildtype} == "user" ]] ; then |
39 |
echo "--disable-${2:-$1}" |
40 |
+ else |
41 |
+ use_enable "$@" |
42 |
fi |
43 |
} |
44 |
conf_opts+=( |
45 |
- $(conf_softmmu accessibility brlapi) |
46 |
- $(conf_softmmu aio linux-aio) |
47 |
- $(conf_softmmu bzip2) |
48 |
- $(conf_softmmu bluetooth bluez) |
49 |
- $(conf_softmmu caps cap-ng) |
50 |
- $(conf_softmmu curl) |
51 |
- $(conf_softmmu fdt) |
52 |
- $(conf_softmmu glusterfs) |
53 |
- $(conf_softmmu gnutls) |
54 |
- $(conf_softmmu gnutls nettle) |
55 |
- $(conf_softmmu gtk) |
56 |
- $(conf_softmmu infiniband rdma) |
57 |
- $(conf_softmmu iscsi libiscsi) |
58 |
- $(conf_softmmu jpeg vnc-jpeg) |
59 |
- $(conf_softmmu kernel_linux kvm) |
60 |
- $(conf_softmmu lzo) |
61 |
- $(conf_softmmu ncurses curses) |
62 |
- $(conf_softmmu nfs libnfs) |
63 |
- $(conf_softmmu numa) |
64 |
- $(conf_softmmu opengl) |
65 |
- $(conf_softmmu png vnc-png) |
66 |
- $(conf_softmmu rbd) |
67 |
- $(conf_softmmu sasl vnc-sasl) |
68 |
- $(conf_softmmu sdl) |
69 |
- $(conf_softmmu seccomp) |
70 |
- $(conf_softmmu smartcard) |
71 |
- $(conf_softmmu snappy) |
72 |
- $(conf_softmmu spice) |
73 |
- $(conf_softmmu ssh libssh2) |
74 |
- $(conf_softmmu usb libusb) |
75 |
- $(conf_softmmu usbredir usb-redir) |
76 |
- $(conf_softmmu vde) |
77 |
- $(conf_softmmu vhost-net) |
78 |
- $(conf_softmmu virgl virglrenderer) |
79 |
- $(conf_softmmu virtfs) |
80 |
- $(conf_softmmu vnc) |
81 |
- $(conf_softmmu vte) |
82 |
- $(conf_softmmu xen) |
83 |
- $(conf_softmmu xen xen-pci-passthrough) |
84 |
- $(conf_softmmu xfs xfsctl) |
85 |
+ $(conf_notuser accessibility brlapi) |
86 |
+ $(conf_notuser aio linux-aio) |
87 |
+ $(conf_notuser bzip2) |
88 |
+ $(conf_notuser bluetooth bluez) |
89 |
+ $(conf_notuser caps cap-ng) |
90 |
+ $(conf_notuser curl) |
91 |
+ $(conf_notuser fdt) |
92 |
+ $(conf_notuser glusterfs) |
93 |
+ $(conf_notuser gnutls) |
94 |
+ $(conf_notuser gnutls nettle) |
95 |
+ $(conf_notuser gtk) |
96 |
+ $(conf_notuser infiniband rdma) |
97 |
+ $(conf_notuser iscsi libiscsi) |
98 |
+ $(conf_notuser jpeg vnc-jpeg) |
99 |
+ $(conf_notuser kernel_linux kvm) |
100 |
+ $(conf_notuser lzo) |
101 |
+ $(conf_notuser ncurses curses) |
102 |
+ $(conf_notuser nfs libnfs) |
103 |
+ $(conf_notuser numa) |
104 |
+ $(conf_notuser opengl) |
105 |
+ $(conf_notuser png vnc-png) |
106 |
+ $(conf_notuser rbd) |
107 |
+ $(conf_notuser sasl vnc-sasl) |
108 |
+ $(conf_notuser sdl) |
109 |
+ $(conf_notuser seccomp) |
110 |
+ $(conf_notuser smartcard) |
111 |
+ $(conf_notuser snappy) |
112 |
+ $(conf_notuser spice) |
113 |
+ $(conf_notuser ssh libssh2) |
114 |
+ $(conf_notuser usb libusb) |
115 |
+ $(conf_notuser usbredir usb-redir) |
116 |
+ $(conf_notuser vde) |
117 |
+ $(conf_notuser vhost-net) |
118 |
+ $(conf_notuser virgl virglrenderer) |
119 |
+ $(conf_notuser virtfs) |
120 |
+ $(conf_notuser vnc) |
121 |
+ $(conf_notuser vte) |
122 |
+ $(conf_notuser xen) |
123 |
+ $(conf_notuser xen xen-pci-passthrough) |
124 |
+ $(conf_notuser xfs xfsctl) |
125 |
) |
126 |
|
127 |
+ if [[ ! ${buildtype} == "user" ]] ; then |
128 |
+ # audio options |
129 |
+ local audio_opts="oss" |
130 |
+ use alsa && audio_opts="alsa,${audio_opts}" |
131 |
+ use sdl && audio_opts="sdl,${audio_opts}" |
132 |
+ use pulseaudio && audio_opts="pa,${audio_opts}" |
133 |
+ conf_opts+=( |
134 |
+ --audio-drv-list="${audio_opts}" |
135 |
+ ) |
136 |
+ use gtk && conf_opts+=( --with-gtkabi=$(usex gtk2 2.0 3.0) ) |
137 |
+ use sdl && conf_opts+=( --with-sdlabi=$(usex sdl2 2.0 1.2) ) |
138 |
+ fi |
139 |
+ |
140 |
case ${buildtype} in |
141 |
user) |
142 |
conf_opts+=( |
143 |
@@ -473,21 +486,12 @@ qemu_src_configure() { |
144 |
local static_flag="static-user" |
145 |
;; |
146 |
softmmu) |
147 |
- # audio options |
148 |
- local audio_opts="oss" |
149 |
- use alsa && audio_opts="alsa,${audio_opts}" |
150 |
- use sdl && audio_opts="sdl,${audio_opts}" |
151 |
- use pulseaudio && audio_opts="pa,${audio_opts}" |
152 |
- |
153 |
conf_opts+=( |
154 |
--disable-linux-user |
155 |
--enable-system |
156 |
--disable-tools |
157 |
--with-system-pixman |
158 |
- --audio-drv-list="${audio_opts}" |
159 |
) |
160 |
- use gtk && conf_opts+=( --with-gtkabi=$(usex gtk2 2.0 3.0) ) |
161 |
- use sdl && conf_opts+=( --with-sdlabi=$(usex sdl2 2.0 1.2) ) |
162 |
local static_flag="static" |
163 |
;; |
164 |
tools) |
165 |
@@ -496,7 +500,6 @@ qemu_src_configure() { |
166 |
--disable-system |
167 |
--disable-blobs |
168 |
--enable-tools |
169 |
- $(use_enable bzip2) |
170 |
) |
171 |
local static_flag="static" |
172 |
;; |