Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 177131 Details for
Bug 251335
app-emulation/virtualbox-{bin,ose}-2.1.0 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
The -ose ebuild with patch for kernel headers 2.6.28
virtualbox-ose-2.1.0.ebuild (text/plain), 6.76 KB, created by
Raphaël Vinot
on 2009-01-02 18:50:56 UTC
(
hide
)
Description:
The -ose ebuild with patch for kernel headers 2.6.28
Filename:
MIME Type:
Creator:
Raphaël Vinot
Created:
2009-01-02 18:50:56 UTC
Size:
6.76 KB
patch
obsolete
># Copyright 1999-2008 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-ose/virtualbox-ose-2.0.4.ebuild,v 1.1 2008/10/27 17:19:20 jokey Exp $ > >EAPI=1 > >inherit eutils fdo-mime flag-o-matic pax-utils qt4 toolchain-funcs > >MY_P=VirtualBox-${PV}-OSE >DESCRIPTION="Softwarefamily of powerful x86 virtualization" >HOMEPAGE="http://www.virtualbox.org/" >SRC_URI="http://download.virtualbox.org/virtualbox/${PV}/${MY_P}.tar.bz2" > >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~amd64 ~x86" >IUSE="+additions alsa headless pulseaudio python +qt4 sdk" > >RDEPEND="!app-emulation/virtualbox-bin > ~app-emulation/virtualbox-modules-${PV} > dev-libs/libIDL > >=dev-libs/libxslt-1.1.19 > !headless? ( > qt4? ( || ( ( x11-libs/qt-gui x11-libs/qt-core ) =x11-libs/qt-4.3*:4 ) ) > x11-libs/libXcursor > media-libs/libsdl > x11-libs/libXt )" >DEPEND="${RDEPEND} > >=dev-util/kbuild-0.1.4 > >=dev-lang/yasm-0.6.2 > sys-devel/bin86 > sys-devel/dev86 > sys-power/iasl > media-libs/libpng > sys-libs/libcap > alsa? ( >=media-libs/alsa-lib-1.0.13 ) > pulseaudio? ( media-sound/pulseaudio ) > python? ( >=dev-lang/python-2.3 )" ># sys-apps/hal is required at runtime (bug #197541) >RDEPEND="${RDEPEND} > additions? ( ~app-emulation/virtualbox-ose-additions-${PV} ) > sys-apps/usermode-utilities > net-misc/bridge-utils > sys-apps/hal" > >S=${WORKDIR}/${MY_P/-OSE/} >MY_LIBDIR="$(get_libdir)" > >pkg_setup() { > # gcc 4.3 is *not supported* by upstream, > # please do not report bugs upstream at this time. > if [[ "$(gcc-major-version)$(gcc-minor-version)" == "43" ]]; then > elog "" > elog "Warning:" > elog "gcc-$(gcc-major-version).$(gcc-minor-version) was detected" > elog "this gcc release is *not supported* by upstream, please" > elog "*don't* file bug reports upstream reporting gcc failures." > elog "" > fi > > if ! use headless; then > # The VBoxSDL frontend needs media-libs/libsdl compiled > # with USE flag X enabled (bug #177335) > if ! built_with_use media-libs/libsdl X; then > eerror "media-libs/libsdl was compiled without the \"X\" USE flag enabled." > eerror "Please re-emerge media-libs/libsdl with USE=\"X\"." > die "media-libs/libsdl should be compiled with the \"X\" USE flag." > fi > if ! use qt4; then > einfo "" > einfo "No USE=\"qt4\" selected, this build will not include" > einfo "any Qt frontend." > einfo "" > fi > else > if use qt4; then > einfo "" > einfo "You selected USE=\"headless qt4\", defaulting to" > einfo "USE=\"headless\", this build will not include any X11/Qt frontend." > einfo "" > fi > fi >} > >src_unpack() { > unpack ${A} > cd "${S}" > > # Remove shipped binaries (kBuild,yasm), see bug #232775 > rm -rf kBuild/bin tools > > # Disable things unused or splitted into separate ebuilds > cp "${FILESDIR}/${PN}-2-localconfig" LocalConfig.kmk > > # Disable the VBoxNetFlt kernel driver > sed -i \ > -e "37d" src/VBox/HostDrivers/Makefile.kmk > > # Set the right libdir > sed -i \ > -e "s/MY_LIBDIR/${MY_LIBDIR}/" LocalConfig.kmk \ > || die "LocalConfig.kmk sed failed" > > # Disable gcc 4.3.x checks in configure > epatch "${FILESDIR}/${P}-allow-gcc43.patch" > # Compilation fix for kernel headers 2.6.28 > # (http://www.virtualbox.org/ticket/2936) > epatch "${FILESDIR}/${P}-kernel-headers-2.6.28.patch" >} > >src_compile() { > > local myconf > # Don't build vboxdrv kernel module, disable deprecated qt3 support > myconf="--disable-kmods --disable-qt3" > > if ! use pulseaudio; then > myconf="${myconf} --disable-pulse" > fi > if ! use python; then > myconf="${myconf} --disable-python" > fi > if ! use alsa; then > myconf="${myconf} --disable-alsa" > fi > if ! use headless; then > if ! use qt4; then > myconf="${myconf} --disable-qt4" > fi > else > myconf="${myconf} --build-headless" > fi > > ./configure --with-gcc="$(tc-getCC)" --with-g++="$(tc-getCXX)" \ > ${myconf} || die "configure failed" > source ./env.sh > > # Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529) > # and strip all flags > strip-flags > > MAKE="kmk" emake TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \ > TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \ > TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \ > TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \ > TOOL_YASM_AS=yasm KBUILD_PATH="${S}/kBuild" \ > all || die "kmk failed" >} > >src_install() { > cd "${S}"/out/linux.${ARCH}/release/bin > > # Create configuration files > insinto /etc/vbox > newins "${FILESDIR}/${PN}-2-config" vbox.cfg > > # Set the right libdir > sed -i \ > -e "s/MY_LIBDIR/${MY_LIBDIR}/" \ > "${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed" > > # Symlink binaries to the shipped wrapper > exeinto /usr/${MY_LIBDIR}/${PN} > newexe "${FILESDIR}/${PN}-2-wrapper" "VBox" || die > fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/VBox > fperms 0750 /usr/${MY_LIBDIR}/${PN}/VBox > > dosym /usr/${MY_LIBDIR}/${PN}/VBox /usr/bin/VBoxManage > dosym /usr/${MY_LIBDIR}/${PN}/VBox /usr/bin/VBoxVRDP > dosym /usr/${MY_LIBDIR}/${PN}/VBox /usr/bin/VBoxHeadless > dosym /usr/${MY_LIBDIR}/${PN}/VBoxTunctl /usr/bin/VBoxTunctl > > # Install binaries and libraries > insinto /usr/${MY_LIBDIR}/${PN} > doins -r components > > if use sdk; then > doins -r sdk > fi > > for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl} *so *r0 *gc ; do > doins $each > fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/${each} > fperms 0750 /usr/${MY_LIBDIR}/${PN}/${each} > done > > if use amd64; then > doins VBoxREM2.rel > fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/VBoxREM2.rel > fperms 0750 /usr/${MY_LIBDIR}/${PN}/VBoxREM2.rel > fi > > if ! use headless; then > for each in VBox{SDL,Headless} ; do > doins $each > fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/${each} > fperms 4750 /usr/${MY_LIBDIR}/${PN}/${each} > pax-mark -m "${D}"/usr/${MY_LIBDIR}/${PN}/${each} > done > > dosym /usr/${MY_LIBDIR}/${PN}/VBox /usr/bin/VBoxSDL > > if use qt4; then > doins VirtualBox > fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/VirtualBox > fperms 4750 /usr/${MY_LIBDIR}/${PN}/VirtualBox > pax-mark -m "${D}"/usr/${MY_LIBDIR}/${PN}/VirtualBox > > dosym /usr/${MY_LIBDIR}/${PN}/VBox /usr/bin/VirtualBox > fi > > newicon "${S}"/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox_32px.png ${PN}.png > domenu "${FILESDIR}"/${PN}.desktop > else > doins VBoxHeadless > fowners root:vboxusers /usr/${MY_LIBDIR}/${PN}/VBoxHeadless > fperms 4750 /usr/${MY_LIBDIR}/${PN}/VBoxHeadless > pax-mark -m "${D}"/usr/${MY_LIBDIR}/${PN}/VBoxHeadless > fi > > insinto /usr/share/${PN} > doins -r nls >} > >pkg_postinst() { > fdo-mime_desktop_database_update > elog "" > if ! use headless; then > elog "To launch VirtualBox just type: \"VirtualBox\"" > fi > elog "You must be in the vboxusers group to use VirtualBox." > elog "" > elog "The last user manual is available for download at:" > elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf" > elog "" >} > >pkg_postrm() { > fdo-mime_desktop_database_update >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 251335
:
175641
|
175642
|
175648
|
175650
|
175752
|
175754
|
176982
|
176984
| 177131 |
177132
|
179006
|
179871