1 |
lu_zero 12/03/03 17:19:52 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: qemu-1.0.1.ebuild |
5 |
Log: |
6 |
New version |
7 |
|
8 |
(Portage version: 2.2.0_alpha89/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.107 app-emulation/qemu/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/qemu/ChangeLog?rev=1.107&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/qemu/ChangeLog?rev=1.107&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/qemu/ChangeLog?r1=1.106&r2=1.107 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/qemu/ChangeLog,v |
20 |
retrieving revision 1.106 |
21 |
retrieving revision 1.107 |
22 |
diff -u -r1.106 -r1.107 |
23 |
--- ChangeLog 1 Mar 2012 23:38:13 -0000 1.106 |
24 |
+++ ChangeLog 3 Mar 2012 17:19:52 -0000 1.107 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for app-emulation/qemu |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/ChangeLog,v 1.106 2012/03/01 23:38:13 ranger Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/ChangeLog,v 1.107 2012/03/03 17:19:52 lu_zero Exp $ |
30 |
+ |
31 |
+*qemu-1.0.1 (03 Mar 2012) |
32 |
+ |
33 |
+ 03 Mar 2012; Luca Barbato <lu_zero@g.o> +qemu-1.0.1.ebuild: |
34 |
+ New version |
35 |
|
36 |
01 Mar 2012; Brent Baude <ranger@g.o> qemu-0.11.1.ebuild: |
37 |
Marking qemu-0.11.1 ppc for bug 356685 |
38 |
|
39 |
|
40 |
|
41 |
1.1 app-emulation/qemu/qemu-1.0.1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/qemu/qemu-1.0.1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/qemu/qemu-1.0.1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: qemu-1.0.1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2012 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/qemu-1.0.1.ebuild,v 1.1 2012/03/03 17:19:52 lu_zero Exp $ |
51 |
|
52 |
EAPI=4 |
53 |
|
54 |
if [[ ${PV} = *9999* ]]; then |
55 |
EGIT_REPO_URI="git://git.qemu.org/qemu.git |
56 |
http://git.qemu.org/git/qemu.git" |
57 |
GIT_ECLASS="git-2" |
58 |
fi |
59 |
|
60 |
inherit eutils flag-o-matic ${GIT_ECLASS} linux-info toolchain-funcs |
61 |
|
62 |
if [[ ${PV} != *9999* ]]; then |
63 |
SRC_URI="http://wiki.qemu.org/download/${P}.tar.gz |
64 |
http://dev.gentoo.org/~lu_zero/distfiles/${PN}-1.0-patches.tar.xz" |
65 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
66 |
fi |
67 |
|
68 |
DESCRIPTION="QEMU emulator and ABI wrapper" |
69 |
HOMEPAGE="http://www.qemu.org" |
70 |
|
71 |
LICENSE="GPL-2" |
72 |
SLOT="0" |
73 |
IUSE="+aio alsa bluetooth brltty curl esd fdt hardened jpeg kvm ncurses nss |
74 |
opengl png pulseaudio qemu-ifup rbd sasl sdl spice ssl static threads usbredir vde |
75 |
+vhost-net xattr xen xfs" |
76 |
|
77 |
COMMON_TARGETS="i386 x86_64 alpha arm cris m68k microblaze microblazeel mips mipsel ppc ppc64 sh4 sh4eb sparc sparc64 s390x" |
78 |
IUSE_SOFTMMU_TARGETS="${COMMON_TARGETS} lm32 mips64 mips64el ppcemb xtensa xtensaeb" |
79 |
IUSE_USER_TARGETS="${COMMON_TARGETS} armeb ppc64abi32 sparc32plus unicore32" |
80 |
|
81 |
for target in ${IUSE_SOFTMMU_TARGETS}; do |
82 |
IUSE="${IUSE} +qemu_softmmu_targets_${target}" |
83 |
done |
84 |
|
85 |
for target in ${IUSE_USER_TARGETS}; do |
86 |
IUSE="${IUSE} +qemu_user_targets_${target}" |
87 |
done |
88 |
|
89 |
RESTRICT="test" |
90 |
|
91 |
RDEPEND=" |
92 |
!app-emulation/qemu-kvm |
93 |
!app-emulation/qemu-user |
94 |
>=dev-libs/glib-2.0 |
95 |
sys-apps/pciutils |
96 |
>=sys-apps/util-linux-2.16.0 |
97 |
sys-libs/zlib |
98 |
aio? ( dev-libs/libaio ) |
99 |
alsa? ( >=media-libs/alsa-lib-1.0.13 ) |
100 |
bluetooth? ( net-wireless/bluez ) |
101 |
brltty? ( app-accessibility/brltty ) |
102 |
curl? ( net-misc/curl ) |
103 |
esd? ( media-sound/esound ) |
104 |
fdt? ( >=sys-apps/dtc-1.2.0 ) |
105 |
jpeg? ( virtual/jpeg ) |
106 |
ncurses? ( sys-libs/ncurses ) |
107 |
nss? ( dev-libs/nss ) |
108 |
opengl? ( |
109 |
virtual/opengl |
110 |
x11-libs/libX11 |
111 |
) |
112 |
png? ( media-libs/libpng ) |
113 |
pulseaudio? ( media-sound/pulseaudio ) |
114 |
qemu-ifup? ( |
115 |
sys-apps/iproute2 |
116 |
net-misc/bridge-utils |
117 |
) |
118 |
rbd? ( sys-cluster/ceph ) |
119 |
sasl? ( dev-libs/cyrus-sasl ) |
120 |
sdl? ( >=media-libs/libsdl-1.2.11[X] ) |
121 |
spice? ( |
122 |
>=app-emulation/spice-0.9.0 |
123 |
>=app-emulation/spice-protocol-0.8.1 |
124 |
) |
125 |
ssl? ( net-libs/gnutls ) |
126 |
usbredir? ( sys-apps/usbredir ) |
127 |
vde? ( net-misc/vde ) |
128 |
xattr? ( sys-apps/attr ) |
129 |
xen? ( app-emulation/xen-tools ) |
130 |
xfs? ( sys-fs/xfsprogs ) |
131 |
" |
132 |
|
133 |
DEPEND="${RDEPEND} |
134 |
app-text/texi2html |
135 |
dev-util/pkgconfig |
136 |
>=sys-kernel/linux-headers-2.6.35 |
137 |
" |
138 |
|
139 |
# alpha ELF binary. don't let portage mess with it |
140 |
STRIP_MASK="usr/share/qemu/palcode-clipper" |
141 |
|
142 |
QA_PRESTRIPPED=" |
143 |
usr/share/qemu/openbios-ppc |
144 |
usr/share/qemu/openbios-sparc64 |
145 |
usr/share/qemu/openbios-sparc32 |
146 |
usr/share/qemu/palcode-clipper |
147 |
" |
148 |
# keep sorted |
149 |
QA_WX_LOAD="${QA_PRESTRIPPED} |
150 |
usr/bin/qemu-alpha |
151 |
usr/bin/qemu-arm |
152 |
usr/bin/qemu-armeb |
153 |
usr/bin/qemu-cris |
154 |
usr/bin/qemu-i386 |
155 |
usr/bin/qemu-m68k |
156 |
usr/bin/qemu-microblaze |
157 |
usr/bin/qemu-microblazeel |
158 |
usr/bin/qemu-mips |
159 |
usr/bin/qemu-mipsel |
160 |
usr/bin/qemu-ppc |
161 |
usr/bin/qemu-ppc64 |
162 |
usr/bin/qemu-ppc64abi32 |
163 |
usr/bin/qemu-sh4 |
164 |
usr/bin/qemu-sh4eb |
165 |
usr/bin/qemu-sparc |
166 |
usr/bin/qemu-sparc32plus |
167 |
usr/bin/qemu-sparc64 |
168 |
usr/bin/qemu-s390x |
169 |
usr/bin/qemu-unicore32 |
170 |
usr/bin/qemu-x86_64 |
171 |
" |
172 |
|
173 |
pkg_setup() { |
174 |
use qemu_softmmu_targets_x86_64 || ewarn "You disabled default target QEMU_SOFTMMU_TARGETS=x86_64" |
175 |
|
176 |
use kvm && ewarn "You have enabled USE=kvm feature. Please consider using app-emulation/qemu-kvm" |
177 |
} |
178 |
|
179 |
src_prepare() { |
180 |
|
181 |
EPATCH_SOURCE="${WORKDIR}/patches" EPATCH_SUFFIX="patch" \ |
182 |
EPATCH_EXCLUDE="0033-PPC-Fix-linker-scripts-on-ppc-hosts.patch" \ |
183 |
EPATCH_FORCE="yes" epatch |
184 |
|
185 |
# prevent docs to get automatically installed |
186 |
sed -i '/$(DESTDIR)$(docdir)/d' Makefile || die |
187 |
|
188 |
# Fix underlinking. |
189 |
# Fault reproducer: USE=nss QEMU_SOFTMMU_TARGETS=lm32 QEMU_USER_TARGETS= |
190 |
sed -i 's/opengl_libs="-lGL"/opengl_libs="-lGL -lX11"/' configure || die |
191 |
} |
192 |
|
193 |
src_configure() { |
194 |
local conf_opts audio_opts user_targets |
195 |
|
196 |
for target in ${IUSE_SOFTMMU_TARGETS} ; do |
197 |
use "qemu_softmmu_targets_${target}" && \ |
198 |
softmmu_targets="${softmmu_targets} ${target}-softmmu" |
199 |
done |
200 |
|
201 |
for target in ${IUSE_USER_TARGETS} ; do |
202 |
use "qemu_user_targets_${target}" && \ |
203 |
user_targets="${user_targets} ${target}-linux-user" |
204 |
done |
205 |
|
206 |
if [[ -z ${softmmu_targets} ]]; then |
207 |
conf_opts="${conf_opts} --disable-system" |
208 |
else |
209 |
einfo "Building the following softmmu targets: ${softmmu_targets}" |
210 |
fi |
211 |
|
212 |
if [[ -n ${user_targets} ]]; then |
213 |
einfo "Building the following user targets: ${user_targets}" |
214 |
conf_opts="${conf_opts} --enable-linux-user" |
215 |
else |
216 |
conf_opts="${conf_opts} --disable-linux-user" |
217 |
fi |
218 |
|
219 |
# Fix QA issues. QEMU needs executable heaps and we need to mark it as such |
220 |
conf_opts="${conf_opts} --extra-ldflags=-Wl,-z,execheap" |
221 |
|
222 |
# drop '-g' by default as it tends to eat |
223 |
# A LOT (~2GB) of ram for each job #355861 |
224 |
conf_opts="${conf_opts} --disable-debug-info" |
225 |
|
226 |
# Add support for static builds |
227 |
use static && conf_opts="${conf_opts} --static" |
228 |
|
229 |
#config options |
230 |
conf_opts="${conf_opts} |
231 |
$(use_enable aio linux-aio) |
232 |
$(use_enable bluetooth bluez) |
233 |
$(use_enable brltty brlapi) |
234 |
$(use_enable curl) |
235 |
$(use_enable fdt) |
236 |
$(use_enable hardened pie) |
237 |
$(use_enable jpeg vnc-jpeg) |
238 |
$(use_enable ncurses curses) |
239 |
$(use_enable nss smartcard-nss) |
240 |
$(use_enable opengl) |
241 |
$(use_enable png vnc-png) |
242 |
$(use_enable rbd) |
243 |
$(use_enable sasl vnc-sasl) |
244 |
$(use_enable sdl) |
245 |
$(use_enable spice) |
246 |
$(use_enable ssl vnc-tls) |
247 |
$(use_enable threads vnc-thread) |
248 |
$(use_enable vde) |
249 |
$(use_enable vhost-net) |
250 |
$(use_enable xen) |
251 |
$(use_enable xattr attr) |
252 |
$(use_enable xfs xfsctl) |
253 |
--disable-darwin-user --disable-bsd-user |
254 |
" |
255 |
|
256 |
# audio options |
257 |
audio_opts="oss" |
258 |
use alsa && audio_opts="alsa ${audio_opts}" |
259 |
use esd && audio_opts="esd ${audio_opts}" |
260 |
use pulseaudio && audio_opts="pa ${audio_opts}" |
261 |
use sdl && audio_opts="sdl ${audio_opts}" |
262 |
|
263 |
set -- --prefix="${EPREFIX}"/usr \ |
264 |
--sysconfdir="${EPREFIX}"/etc \ |
265 |
--disable-strip \ |
266 |
--disable-werror \ |
267 |
$(use_enable kvm) \ |
268 |
--disable-libiscsi \ |
269 |
--enable-nptl \ |
270 |
--enable-uuid \ |
271 |
${conf_opts} \ |
272 |
--audio-card-list="ac97 es1370 sb16 cs4231a adlib gus hda" \ |
273 |
--audio-drv-list="${audio_opts}" \ |
274 |
--target-list="${softmmu_targets} ${user_targets}" \ |
275 |
--cc="$(tc-getCC)" \ |
276 |
--host-cc="$(tc-getBUILD_CC)" |
277 |
|
278 |
echo ./configure "$@" # show actual options |
279 |
./configure "$@" || die "configure failed" |
280 |
} |
281 |
|
282 |
src_install() { |
283 |
emake DESTDIR="${D}" install || die "make install failed" |
284 |
|
285 |
if [[ -n ${softmmu_targets} ]]; then |
286 |
if use qemu-ifup; then |
287 |
exeinto /etc/qemu |
288 |
doexe "${FILESDIR}"/qemu-if{up,down} |
289 |
fi |
290 |
fi |
291 |
|
292 |
dodoc Changelog MAINTAINERS TODO pci-ids.txt |
293 |
newdoc pc-bios/README README.pc-bios |
294 |
dohtml qemu-doc.html qemu-tech.html |
295 |
} |
296 |
|
297 |
pkg_postinst() { |
298 |
use qemu-ifup || return |
299 |
elog "You will need the Universal TUN/TAP driver compiled into your" |
300 |
elog "kernel or loaded as a module to use the virtual network device" |
301 |
elog "if using -net tap. You will also need support for 802.1d" |
302 |
elog "Ethernet Bridging and a configured bridge if using the provided" |
303 |
elog "qemu-ifup script from /etc/qemu." |
304 |
echo |
305 |
} |