1 |
polynomial-c 11/06/28 20:46:39 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: virtualbox-4.0.10.ebuild |
5 |
Removed: virtualbox-4.0.6-r1.ebuild |
6 |
Log: |
7 |
Version bump. Removed old |
8 |
|
9 |
(Portage version: 2.2.0_alpha41/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.74 app-emulation/virtualbox/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/virtualbox/ChangeLog?rev=1.74&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/virtualbox/ChangeLog?rev=1.74&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/virtualbox/ChangeLog?r1=1.73&r2=1.74 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/ChangeLog,v |
21 |
retrieving revision 1.73 |
22 |
retrieving revision 1.74 |
23 |
diff -u -r1.73 -r1.74 |
24 |
--- ChangeLog 19 May 2011 09:59:04 -0000 1.73 |
25 |
+++ ChangeLog 28 Jun 2011 20:46:39 -0000 1.74 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for app-emulation/virtualbox |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/ChangeLog,v 1.73 2011/05/19 09:59:04 polynomial-c Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/ChangeLog,v 1.74 2011/06/28 20:46:39 polynomial-c Exp $ |
31 |
+ |
32 |
+*virtualbox-4.0.10 (28 Jun 2011) |
33 |
+ |
34 |
+ 28 Jun 2011; Lars Wendler <polynomial-c@g.o> |
35 |
+ -virtualbox-4.0.6-r1.ebuild, +virtualbox-4.0.10.ebuild: |
36 |
+ Version bump. Removed old. |
37 |
|
38 |
19 May 2011; Lars Wendler <polynomial-c@g.o> |
39 |
virtualbox-4.0.6-r1.ebuild, virtualbox-4.0.8.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 app-emulation/virtualbox/virtualbox-4.0.10.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/virtualbox/virtualbox-4.0.10.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/virtualbox/virtualbox-4.0.10.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: virtualbox-4.0.10.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/virtualbox-4.0.10.ebuild,v 1.1 2011/06/28 20:46:39 polynomial-c Exp $ |
53 |
|
54 |
EAPI=4 |
55 |
|
56 |
inherit eutils fdo-mime flag-o-matic linux-info pax-utils qt4-r2 toolchain-funcs java-pkg-opt-2 |
57 |
|
58 |
if [[ ${PV} == "9999" ]] ; then |
59 |
# XXX: should finish merging the -9999 ebuild into this one ... |
60 |
ESVN_REPO_URI="http://www.virtualbox.org/svn/vbox/trunk" |
61 |
inherit linux-mod subversion |
62 |
else |
63 |
MY_P=VirtualBox-${PV} |
64 |
SRC_URI="http://download.virtualbox.org/virtualbox/${PV}/${MY_P}.tar.bz2" |
65 |
S="${WORKDIR}/${MY_P}_OSE" |
66 |
fi |
67 |
|
68 |
DESCRIPTION="Software family of powerful x86 virtualization" |
69 |
HOMEPAGE="http://www.virtualbox.org/" |
70 |
|
71 |
LICENSE="GPL-2" |
72 |
SLOT="0" |
73 |
KEYWORDS="~amd64 ~x86" |
74 |
IUSE="+additions alsa doc extensions headless java pulseaudio +opengl python +qt4 +sdk vboxwebsrv vnc" |
75 |
|
76 |
RDEPEND="!app-emulation/virtualbox-bin |
77 |
~app-emulation/virtualbox-modules-${PV} |
78 |
dev-libs/libIDL |
79 |
>=dev-libs/libxslt-1.1.19 |
80 |
net-misc/curl |
81 |
dev-libs/openssl |
82 |
dev-libs/libxml2 |
83 |
sys-libs/zlib |
84 |
!headless? ( |
85 |
qt4? ( |
86 |
x11-libs/qt-gui:4 |
87 |
x11-libs/qt-core:4 |
88 |
opengl? ( x11-libs/qt-opengl:4 ) |
89 |
x11-libs/libXinerama |
90 |
) |
91 |
opengl? ( virtual/opengl media-libs/freeglut ) |
92 |
x11-libs/libX11 |
93 |
x11-libs/libXcursor |
94 |
x11-libs/libXext |
95 |
x11-libs/libXmu |
96 |
x11-libs/libXt |
97 |
media-libs/libsdl[X,video] |
98 |
) |
99 |
vnc? ( >=net-libs/libvncserver-0.9.7 ) |
100 |
java? ( >=virtual/jre-1.5 )" |
101 |
DEPEND="${RDEPEND} |
102 |
>=dev-util/kbuild-0.1.5-r1 |
103 |
>=dev-lang/yasm-0.6.2 |
104 |
sys-devel/bin86 |
105 |
sys-devel/dev86 |
106 |
sys-power/iasl |
107 |
media-libs/libpng |
108 |
sys-libs/pam |
109 |
sys-libs/libcap |
110 |
doc? ( |
111 |
dev-texlive/texlive-basic |
112 |
dev-texlive/texlive-latex |
113 |
dev-texlive/texlive-latexrecommended |
114 |
dev-texlive/texlive-latexextra |
115 |
dev-texlive/texlive-fontsrecommended |
116 |
dev-texlive/texlive-fontsextra |
117 |
) |
118 |
java? ( >=virtual/jdk-1.5 ) |
119 |
dev-util/pkgconfig |
120 |
alsa? ( >=media-libs/alsa-lib-1.0.13 ) |
121 |
!headless? ( x11-libs/libXinerama ) |
122 |
pulseaudio? ( media-sound/pulseaudio ) |
123 |
python? ( >=dev-lang/python-2.3[threads] ) |
124 |
vboxwebsrv? ( >=net-libs/gsoap-2.7.13 )" |
125 |
PDEPEND="additions? ( ~app-emulation/virtualbox-additions-${PV} ) |
126 |
extensions? ( ~app-emulation/virtualbox-extpack-oracle-${PV} )" |
127 |
|
128 |
QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so |
129 |
usr/lib/virtualbox/VBoxSDL.so |
130 |
usr/lib/virtualbox/VBoxSharedFolders.so |
131 |
usr/lib/virtualbox/VBoxDD2.so |
132 |
usr/lib/virtualbox/VBoxOGLrenderspu.so |
133 |
usr/lib/virtualbox/VBoxPython.so |
134 |
usr/lib/virtualbox/VBoxDD.so |
135 |
usr/lib/virtualbox/VBoxDDU.so |
136 |
usr/lib/virtualbox/VBoxREM64.so |
137 |
usr/lib/virtualbox/VBoxSharedClipboard.so |
138 |
usr/lib/virtualbox/VBoxHeadless.so |
139 |
usr/lib/virtualbox/VBoxRT.so |
140 |
usr/lib/virtualbox/VBoxREM.so |
141 |
usr/lib/virtualbox/VBoxSettings.so |
142 |
usr/lib/virtualbox/VBoxKeyboard.so |
143 |
usr/lib/virtualbox/VBoxSharedCrOpenGL.so |
144 |
usr/lib/virtualbox/VBoxVMM.so |
145 |
usr/lib/virtualbox/VirtualBox.so |
146 |
usr/lib/virtualbox/VBoxOGLhosterrorspu.so |
147 |
usr/lib/virtualbox/components/VBoxC.so |
148 |
usr/lib/virtualbox/components/VBoxSVCM.so |
149 |
usr/lib/virtualbox/components/VBoxDDU.so |
150 |
usr/lib/virtualbox/components/VBoxRT.so |
151 |
usr/lib/virtualbox/components/VBoxREM.so |
152 |
usr/lib/virtualbox/components/VBoxVMM.so |
153 |
usr/lib/virtualbox/VBoxREM32.so |
154 |
usr/lib/virtualbox/VBoxPython2_4.so |
155 |
usr/lib/virtualbox/VBoxPython2_5.so |
156 |
usr/lib/virtualbox/VBoxPython2_6.so |
157 |
usr/lib/virtualbox/VBoxPython2_7.so |
158 |
usr/lib/virtualbox/VBoxXPCOMC.so |
159 |
usr/lib/virtualbox/VBoxOGLhostcrutil.so |
160 |
usr/lib/virtualbox/VBoxNetDHCP.so" |
161 |
|
162 |
REQUIRED_USE="java? ( sdk ) python? ( sdk )" |
163 |
|
164 |
pkg_setup() { |
165 |
if built_with_use sys-devel/gcc hardened && gcc-config -c | grep -qv -E "hardenednopie|vanilla"; then |
166 |
eerror "The PIE feature provided by the \"hardened\" compiler is incompatible with ${PF}." |
167 |
eerror "You must use gcc-config to select a profile without this feature. You may" |
168 |
eerror "choose either \"hardenednopie\", \"hardenednopiessp\" or \"vanilla\" profile;" |
169 |
eerror "however, \"hardenednopie\" is preferred because it gives the most hardening." |
170 |
eerror "Remember to run \"source /etc/profile\" before continuing. See bug #339914." |
171 |
die |
172 |
fi |
173 |
|
174 |
if ! use headless && ! use qt4 ; then |
175 |
einfo "No USE=\"qt4\" selected, this build will not include" |
176 |
einfo "any Qt frontend." |
177 |
elif use headless && use qt4 ; then |
178 |
einfo "You selected USE=\"headless qt4\", defaulting to" |
179 |
einfo "USE=\"headless\", this build will not include any X11/Qt frontend." |
180 |
fi |
181 |
|
182 |
if ! use opengl ; then |
183 |
einfo "No USE=\"opengl\" selected, this build will lack" |
184 |
einfo "the OpenGL feature." |
185 |
fi |
186 |
java-pkg-opt-2_pkg_setup |
187 |
} |
188 |
|
189 |
src_prepare() { |
190 |
# Remove shipped binaries (kBuild,yasm), see bug #232775 |
191 |
rm -rf kBuild/bin tools |
192 |
|
193 |
# Disable things unused or split into separate ebuilds |
194 |
sed -e "s/MY_LIBDIR/$(get_libdir)/" \ |
195 |
"${FILESDIR}"/${PN}-4-localconfig > LocalConfig.kmk || die |
196 |
|
197 |
# unset useless/problematic checks in configure |
198 |
epatch "${FILESDIR}/${PN}-ose-3.2.8-mesa-check.patch" \ |
199 |
"${FILESDIR}/${PN}-4-makeself-check.patch" \ |
200 |
"${FILESDIR}/${PN}-4-mkisofs-check.patch" |
201 |
|
202 |
# fix build with --as-needed (bug #249295 and bug #350907) |
203 |
epatch "${FILESDIR}/${PN}-4-asneeded.patch" |
204 |
|
205 |
# Respect LDFLAGS |
206 |
sed -e "s/_LDFLAGS\.${ARCH}*.*=/& ${LDFLAGS}/g" \ |
207 |
-i Config.kmk src/libs/xpcom18a4/Config.kmk || die |
208 |
|
209 |
# We still want to use ${HOME}/.VirtualBox/Machines as machines dir. |
210 |
epatch "${FILESDIR}/${PN}-4.0.2-restore_old_machines_dir.patch" |
211 |
|
212 |
# add correct java path |
213 |
if use java ; then |
214 |
sed "s:/usr/lib/jvm/java-6-sun:$(java-config -O):" \ |
215 |
-i "${S}"/Config.kmk || die |
216 |
fi |
217 |
java-pkg-opt-2_src_prepare |
218 |
} |
219 |
|
220 |
src_configure() { |
221 |
local myconf |
222 |
use alsa || myconf+=" --disable-alsa" |
223 |
use opengl || myconf+=" --disable-opengl" |
224 |
use pulseaudio || myconf+=" --disable-pulse" |
225 |
use python || myconf+=" --disable-python" |
226 |
use java || myconf+=" --disable-java" |
227 |
use vboxwebsrv && myconf+=" --enable-webservice" |
228 |
use vnc && myconf+=" --enable-vnc" |
229 |
use doc || myconf+=" --disable-docs" |
230 |
if ! use headless ; then |
231 |
use qt4 || myconf+=" --disable-qt4" |
232 |
else |
233 |
myconf+=" --build-headless --disable-opengl" |
234 |
fi |
235 |
# not an autoconf script |
236 |
./configure \ |
237 |
--with-gcc="$(tc-getCC)" \ |
238 |
--with-g++="$(tc-getCXX)" \ |
239 |
--disable-kmods \ |
240 |
--disable-dbus \ |
241 |
${myconf} \ |
242 |
|| die "configure failed" |
243 |
} |
244 |
|
245 |
src_compile() { |
246 |
source ./env.sh |
247 |
|
248 |
# Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529) |
249 |
# and strip all flags |
250 |
# strip-flags |
251 |
|
252 |
MAKE="kmk" emake \ |
253 |
VBOX_VERSION_STRING='$(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)'-Gentoo \ |
254 |
TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \ |
255 |
TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \ |
256 |
TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \ |
257 |
TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \ |
258 |
VBOX_GCC_OPT="${CXXFLAGS}" \ |
259 |
TOOL_YASM_AS=yasm KBUILD_PATH="${S}/kBuild" \ |
260 |
all || die "kmk failed" |
261 |
} |
262 |
|
263 |
src_install() { |
264 |
cd "${S}"/out/linux.${ARCH}/release/bin || die |
265 |
|
266 |
# Create configuration files |
267 |
insinto /etc/vbox |
268 |
newins "${FILESDIR}/${PN}-4-config" vbox.cfg |
269 |
|
270 |
# Set the right libdir |
271 |
sed -i \ |
272 |
-e "s/MY_LIBDIR/$(get_libdir)/" \ |
273 |
"${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed" |
274 |
|
275 |
# Symlink binaries to the shipped wrapper |
276 |
exeinto /usr/$(get_libdir)/${PN} |
277 |
newexe "${FILESDIR}/${PN}-ose-3-wrapper" "VBox" || die |
278 |
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBox |
279 |
fperms 0750 /usr/$(get_libdir)/${PN}/VBox |
280 |
|
281 |
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxManage |
282 |
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxVRDP |
283 |
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxHeadless |
284 |
dosym /usr/$(get_libdir)/${PN}/VBoxTunctl /usr/bin/VBoxTunctl |
285 |
|
286 |
# Install binaries and libraries |
287 |
insinto /usr/$(get_libdir)/${PN} |
288 |
doins -r components || die |
289 |
|
290 |
if use sdk ; then |
291 |
doins -r sdk || die |
292 |
fi |
293 |
|
294 |
if use vboxwebsrv ; then |
295 |
doins vboxwebsrv || die |
296 |
fowners root:vboxusers /usr/$(get_libdir)/${PN}/vboxwebsrv |
297 |
fperms 0750 /usr/$(get_libdir)/${PN}/vboxwebsrv |
298 |
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/vboxwebsrv |
299 |
newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv |
300 |
newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv |
301 |
fi |
302 |
|
303 |
for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP,ExtPackHelperApp} *so *r0 *gc ; do |
304 |
doins $each || die |
305 |
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each} |
306 |
fperms 0750 /usr/$(get_libdir)/${PN}/${each} |
307 |
done |
308 |
# VBoxNetAdpCtl and VBoxNetDHCP binaries need to be suid root in any case.. |
309 |
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetAdpCtl |
310 |
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetDHCP |
311 |
|
312 |
if ! use headless ; then |
313 |
for each in VBox{SDL,Headless} ; do |
314 |
doins $each || die |
315 |
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each} |
316 |
fperms 4750 /usr/$(get_libdir)/${PN}/${each} |
317 |
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/${each} |
318 |
done |
319 |
|
320 |
if use opengl && use qt4 ; then |
321 |
doins VBoxTestOGL || die |
322 |
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxTestOGL |
323 |
fperms 0750 /usr/$(get_libdir)/${PN}/VBoxTestOGL |
324 |
fi |
325 |
|
326 |
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxSDL |
327 |
|
328 |
if use qt4 ; then |
329 |
doins VirtualBox || die |
330 |
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VirtualBox |
331 |
fperms 4750 /usr/$(get_libdir)/${PN}/VirtualBox |
332 |
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VirtualBox |
333 |
|
334 |
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VirtualBox |
335 |
|
336 |
newmenu "${FILESDIR}"/${PN}-ose.desktop-2 ${PN}.desktop |
337 |
fi |
338 |
|
339 |
newicon "${S}"/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox_32px.png ${PN}.png |
340 |
else |
341 |
doins VBoxHeadless || die |
342 |
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxHeadless |
343 |
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxHeadless |
344 |
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxHeadless |
345 |
fi |
346 |
|
347 |
# Install EFI Firmware files (bug #320757) |
348 |
pushd "${S}"/src/VBox/Devices/EFI/FirmwareBin &>/dev/null || die |
349 |
for fwfile in VBoxEFI{32,64}.fd ; do |
350 |
doins ${fwfile} || die |
351 |
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${fwfile} || die |
352 |
done |
353 |
popd &>/dev/null || die |
354 |
|
355 |
# New way of handling USB device nodes for VBox (bug #356215) |
356 |
insinto /lib/udev |
357 |
doins VBoxCreateUSBNode.sh |
358 |
fowners root:vboxusers /lib/udev/VBoxCreateUSBNode.sh |
359 |
fperms 0750 /lib/udev/VBoxCreateUSBNode.sh |
360 |
insinto /lib/udev/rules.d |
361 |
doins "${FILESDIR}"/10-virtualbox.rules |
362 |
|
363 |
insinto /usr/share/${PN} |
364 |
if ! use headless && use qt4 ; then |
365 |
doins -r nls |
366 |
fi |
367 |
|
368 |
# VRDPAuth only works with this (bug #351949) |
369 |
dosym VBoxAuth.so /usr/$(get_libdir)/${PN}/VRDPAuth.so |
370 |
|
371 |
# set an env-variable for 3rd party tools |
372 |
echo -n "VBOX_APP_HOME=/usr/$(get_libdir)/${PN}" > "${T}/90virtualbox" |
373 |
doenvd "${T}/90virtualbox" |
374 |
|
375 |
if use java ; then |
376 |
java-pkg_regjar "${D}/usr/$(get_libdir)/${PN}/sdk/bindings/xpcom/java/vboxjxpcom.jar" |
377 |
java-pkg_regso "${D}/usr/$(get_libdir)/${PN}/libvboxjxpcom.so" |
378 |
fi |
379 |
} |
380 |
|
381 |
pkg_postinst() { |
382 |
fdo-mime_desktop_database_update |
383 |
|
384 |
udevadm control --reload-rules && udevadm trigger --subsystem-match=usb |
385 |
|
386 |
if ! use headless && use qt4 ; then |
387 |
elog "To launch VirtualBox just type: \"VirtualBox\"." |
388 |
fi |
389 |
elog "You must be in the vboxusers group to use VirtualBox." |
390 |
elog "" |
391 |
elog "The latest user manual is available for download at:" |
392 |
elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf" |
393 |
elog "" |
394 |
elog "For advanced networking setups you should emerge:" |
395 |
elog "net-misc/bridge-utils and sys-apps/usermode-utilities" |
396 |
elog "" |
397 |
elog "IMPORTANT!" |
398 |
elog "If you upgrade from app-emulation/virtualbox-ose make sure to run" |
399 |
elog "\"env-update\" as root and logout and relogin as the user you wish" |
400 |
elog "to run ${PN} as." |
401 |
elog "" |
402 |
elog "Starting with version 4.0.0, ${PN} has USB-1 support." |
403 |
elog "For PXE-boot ability and VRDP support please emerge" |
404 |
elog "app-emulation/virtualbox-extpack-oracle package." |
405 |
elog "Unfortunately USB2 support is still not available." |
406 |
elog "See https://bugs.gentoo.org/364717 for the reasons." |
407 |
if [ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ] ; then |
408 |
elog "" |
409 |
elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\"" |
410 |
elog "or else USB in ${PN} won't work." |
411 |
fi |
412 |
} |
413 |
|
414 |
pkg_postrm() { |
415 |
fdo-mime_desktop_database_update |
416 |
} |