Old ebuilds removed

This commit is contained in:
Kolan Sh 2014-07-11 22:17:32 +04:00
parent 77c427fc30
commit 69fcb33548
55 changed files with 0 additions and 5020 deletions

View File

@ -1,6 +0,0 @@
AUX localepurge-0.5.4-directorysum.patch 799 SHA256 5b0ef49c52debca8a66a79087902b3beeafa91116d5e4eca5f87a4db54380593 SHA512 a7ccb8b1a6963e45ebde2ff72c0612eeaae62cd248b8b5c675d0e0d5d0c91d7d5db34edc6e09ceebab83016f62e233a62a71562537d5dc2ead20274f1bfead2b WHIRLPOOL 5939fbb8f623099f3c912e2fa9bfe698b4de217722286d7e9eb1cce729756c9510e7db400a3545fb5206ec1f7d95f98bb17154e41964aff8583d376c00532f13
AUX localepurge-0.5.4-evaltotal.patch 366 SHA256 ee62901830d0c370be31279674b174151cfd23cdb7ffbdd7bd67f521b2548aec SHA512 81c10dae3222fee74ab814966745fcf6793aee4601ce3686d19c3ad6a602edb237fe877c94462cdfc5abfd71ce53cfa2fd439c453f38f98335147b1134cc843d WHIRLPOOL 4f76e43a98261a27d548062754104670e9a6980c5378346f9aef7a10d8c4ff5b7011ff6057c97cc7c177bb4b3e77eca533772dc14bccb2d26dac5b6944377444
AUX localepurge-0.5.4-parentdir.patch 730 SHA256 6c3418108a8e34202fe72ad03a673c088bda49667556ca374b98f6549cd0e592 SHA512 f46501a92fb37645c49d7ed50265cb739b7f0ca0f88be0586aae25f4672caf097ce60d6808c545b2dda31e295e596f58fba501f4470b7ea96c8fe11a1de0f0cb WHIRLPOOL 2bd35c43308b63d85b5a651220b813c0d9579621398b68f5fe8ef298658f132b6f3e49e3346d0c23d42e31378f403a525b7a9d76091ee44283b47a56f1c1e37d
AUX localepurge-0.5.4-prefix.patch 2872 SHA256 ebc8a9ed23e968edc182777c7e32a86169550b81dc13b6d78f5ebe919ce1f1ad SHA512 994050265349b6fd91d6759368250a25122d207ec3356dc5d7902a4d897012dadf2fead83d7aa36f98191ed309ce0019d8f21a445c7d56139355a9bd471e1ad6 WHIRLPOOL 0320e8dede7929b4db8cfc340aba8d96f69eee6e38d9c8b99b4ad10d34b5b5b0c973536e12cd79948179482c909fc04b1826ec517b35fc26bccd5251d0de8eda
DIST localepurge-0.5.4.tbz2 5038 SHA256 7aca13f6b44af74480c611c0dd63b6fe05c6084bfd3f08bfd347e7914af2ffaa SHA512 246acb8ef497a2f607ee8545c4d46fd5a1957189eb0b705bf6bcd1cd35ba5b48c7e090db480519c8e3a7427b5ad5a2c020b40232a8fbd0840f9677a6c7af600e WHIRLPOOL d1da9a6a4d5fca92e7353e6ed0e6b916b8529ad7f003a0af02b2403ceb33bdd71769b3bd1a3c37095167a0e8b3811a5b6774a089f96eedd76edb4ebf46a992d4
EBUILD localepurge-0.5.4-r2.ebuild 1184 SHA256 99e0dc29e6342079505c576d83d1bb9c41872fe540807b85c582e10332c8b341 SHA512 e1826f9fb83bc3322ec291bea5dc535ec1b413a6b84ea91f4ccd7e2936c8b30b7871e568320d11b79b30e5464e7beaa1860683ad2a7a2247bb9d35c6f9c3ad9f WHIRLPOOL 4f7dd7221a91694bdcad652e6d0d15a5c70bc0f15ce1939261eb77bdfbceb8ab2fb0707b5811d92542b1e590f4f263e817f5a6fdde8295aa39f9adf46fd07420

View File

@ -1,20 +0,0 @@
--- localepurge.orig 2012-12-04 23:15:29.422756767 +0100
+++ localepurge 2012-12-04 23:16:13.313756491 +0100
@@ -198,7 +198,7 @@
if [ "$SHOWFREEDSPACE" = "enabled" ]; then
if test $SPACETMP -gt 0 ; then
- LOCALETOTAL=$SPACETMP
+ LOCALETOTAL=$(($LOCALETOTAL + $SPACETMP))
einfo "localepurge: Disk space freed in $LOCALEDIR: ${BOLD}"$SPACETMP"K${NORMAL}"
fi
SPACETMP=0
@@ -230,7 +230,7 @@
if [ "$SHOWFREEDSPACE" = "enabled" ]; then
if test $SPACETMP -gt 0 ; then
- MANTOTAL=$SPACETMP
+ MANTOTAL=$(($MANTOTAL + $SPACETMP))
einfo "localepurge: Disk space freed in $MANPAGEDIR: ${BOLD}"$SPACETMP"K${NORMAL}"
fi
SPACETMP=0

View File

@ -1,11 +0,0 @@
--- localepurge.original 2012-12-02 18:32:35.000000000 +0400
+++ localepurge 2013-01-14 19:31:35.327821252 +0400
@@ -254,7 +254,7 @@
# Calculating and reporting total disk space freed:
if [ "$SHOWFREEDSPACE" = "enabled" ]; then
- let TOTAL=$LOCALETOTAL+$MANTOTAL
+ TOTAL=$(($LOCALETOTAL+$MANTOTAL))
if test $TOTAL -lt 0; then
TOTAL=0
fi

View File

@ -1,18 +0,0 @@
--- localepurge.orig 2012-12-04 23:08:17.754765708 +0100
+++ localepurge 2012-12-04 23:09:02.397765264 +0100
@@ -165,7 +165,14 @@
${ACTION} `find ${REMOVEPATH} -type f -o -type l`
if [ "$SHOWFREEDSPACE" = "enabled" ]; then
- SPACEAFTER=$(df -P ${REMOVEPATH} | awk '{if ( NR==2 ) { print $3 }}')
+ # if symlink, REMOVEPATH could be removed
+ # check from parentdir then
+ if [ -d ${REMOVEPATH} ]; then
+ SPACEAFTER=$(df -P ${REMOVEPATH} | awk '{if ( NR==2 ) { print $3 }}')
+ else
+ SPACEAFTER=$(df -P ${REMOVEPATH%/*} | awk '{if ( NR==2 ) { print $3 }}')
+ fi
+
SPACESUM=$(($SPACEBEFORE - $SPACEAFTER))
if test $SPACESUM -gt 0 ; then

View File

@ -1,58 +0,0 @@
--- localepurge.orig 2012-12-02 19:56:18.000000000 +0100
+++ localepurge 2012-12-02 20:00:38.000000000 +0100
@@ -1,14 +1,14 @@
-#!/bin/bash
+#!@GENTOO_PORTAGE_EPREFIX@/bin/bash
# Deleting all locale files on system
# *not* listed in /etc/locale.nopurge
set -e
-LOCALEDIRS="/usr/share/locale /usr/local/share/locale /usr/kde/?.?/share/locale /opt/sun-jdk-*/jre/lib/locale /opt/sun-jre-bin-*/lib/locale /usr/lib/locale /usr/share/binutils-data/*/*/locale /usr/share/gcc-data/*/*/locale"
-MANPAGEDIRS="/usr/share/man /usr/man /usr/local/share/man /usr/kde/?.?/share/man /usr/kde/?.?/man /opt/sun-jdk-*/man /opt/sun-jre-bin-*/man"
-LOCALELIST="/var/cache/localepurge/localelist"
-CONFIGFILE="/etc/locale.nopurge"
+LOCALEDIRS="@GENTOO_PORTAGE_EPREFIX@/usr/share/locale @GENTOO_PORTAGE_EPREFIX@/usr/local/share/locale @GENTOO_PORTAGE_EPREFIX@/usr/kde/?.?/share/locale @GENTOO_PORTAGE_EPREFIX@/opt/sun-jdk-*/jre/lib/locale @GENTOO_PORTAGE_EPREFIX@/opt/sun-jre-bin-*/lib/locale @GENTOO_PORTAGE_EPREFIX@/usr/lib/locale @GENTOO_PORTAGE_EPREFIX@/usr/share/binutils-data/*/*/locale @GENTOO_PORTAGE_EPREFIX@/usr/share/gcc-data/*/*/locale"
+MANPAGEDIRS="@GENTOO_PORTAGE_EPREFIX@/usr/share/man @GENTOO_PORTAGE_EPREFIX@/usr/man @GENTOO_PORTAGE_EPREFIX@/usr/local/share/man @GENTOO_PORTAGE_EPREFIX@/usr/kde/?.?/share/man @GENTOO_PORTAGE_EPREFIX@/usr/kde/?.?/man @GENTOO_PORTAGE_EPREFIX@/opt/sun-jdk-*/man @GENTOO_PORTAGE_EPREFIX@/opt/sun-jre-bin-*/man"
+LOCALELIST="@GENTOO_PORTAGE_EPREFIX@/var/cache/localepurge/localelist"
+CONFIGFILE="@GENTOO_PORTAGE_EPREFIX@/etc/locale.nopurge"
VERSION="0.5.4"
LOCALETOTAL=0
@@ -23,7 +23,7 @@
BRACKET=$'\e[34;01m'
BOLD=$'\e[1m'
-ACTION="/bin/rm -vf"
+ACTION="@GENTOO_PORTAGE_EPREFIX@/bin/rm -vf"
eerror () {
echo -e " ${BAD}*${NORMAL} $*" 2> /dev/stderr
@@ -43,7 +43,7 @@
print() {
for x in $@; do
if [ "${x}" = "" ]; then return 0
- else /bin/echo $x
+ else @GENTOO_PORTAGE_EPREFIX@/bin/echo $x
fi
done
}
@@ -184,7 +184,7 @@
einfo "localepurge: processing locale files in ${LOCALEDIR} ..."
fi
- for LOCALE in `/bin/ls ${LOCALEDIR}`; do
+ for LOCALE in `@GENTOO_PORTAGE_EPREFIX@/bin/ls ${LOCALEDIR}`; do
if echo "${PURGELIST}" | grep -xq ${LOCALE}; then
if [ -d ${LOCALEDIR}/${LOCALE}/LC_MESSAGES ]; then
if [ "${LIST}" = "enabled" ]; then
@@ -216,7 +216,7 @@
einfo "localepurge: processing man pages in ${MANPAGEDIR} ..."
fi
- for LOCALE in `/bin/ls ${MANPAGEDIR} | grep -v ^man[1-9]`; do
+ for LOCALE in `@GENTOO_PORTAGE_EPREFIX@/bin/ls ${MANPAGEDIR} | grep -v ^man[1-9]`; do
if echo "${PURGELIST}" | grep -xq ${LOCALE}; then
if [ -d ${MANPAGEDIR}/${LOCALE} ]; then
if [ "${LIST}" = "enabled" ]; then

View File

@ -1,43 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/localepurge/localepurge-0.5.4-r1.ebuild,v 1.6 2013/01/13 17:53:05 maekke Exp $
EAPI=4
inherit eutils prefix
DESCRIPTION="Script to recover diskspace wasted for unneeded locale files and localized man pages."
HOMEPAGE="http://gentoo.org
http://git.overlays.gentoo.org/gitweb/?p=proj/localepurge.git;a=summary"
SRC_URI="http://dev.gentoo.org/~hwoarang/distfiles/${P}.tbz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 arm hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos"
IUSE=""
DEPEND=""
RDEPEND="app-shells/bash"
S=${WORKDIR}/${PN}
src_prepare() {
epatch "${FILESDIR}"/${P}-prefix.patch
# 164544
epatch "${FILESDIR}"/${P}-directorysum.patch
# 445910
epatch "${FILESDIR}"/${P}-parentdir.patch
# 452208
epatch "${FILESDIR}"/${P}-evaltotal.patch
eprefixify ${PN}
}
src_install() {
insinto /var/cache/${PN}
doins defaultlist
dosym defaultlist /var/cache/${PN}/localelist
insinto /etc
doins locale.nopurge
dobin ${PN}
doman ${PN}.8
}

View File

@ -1,2 +0,0 @@
DIST VBoxGuestAdditions_4.3.10.iso 64647168 SHA256 247e15e9a205dcd4761f6cb547ceca2a61e8d6905c1930870939fd323f4cd1ae SHA512 9af8e01abb8f29e1cd165ad73918b83c681b902636e608d49d2264d30be58d8fe3d2e3a1ad28bd37b644bc54b1a08b3fad32b3d55d7ec9f6b7c018c0ba64c866 WHIRLPOOL f9b3b6af97224ce2ff093f9ed23c465303d695140383bb599c52392fe2f03093f22431c975334bad962c32706832e2e5240a0317eb4bf403931b7ce9b4a0b172
DIST VBoxGuestAdditions_4.3.12.iso 64770048 SHA256 c76dd5ec86f61ad72263ab6d2405723b06badfc2fae57f83ffa5de96f553400d SHA512 46166817d66c2b86ea8539fa6646154f969ac84033526fbb6208c19bfedad71c79fd437156ec89e95cfdc696b260894080217de201cb785ee5c67c96f605f822 WHIRLPOOL c27b3bbaa31113d7604df2d98d10bc2b05f39c1159f0ac44ebf8607ee5b0bcf6857dae614bd2068d92d17687e905dfd12dc8d0b71ae0e46f24320706d2a39317

View File

@ -1,36 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-additions/virtualbox-additions-4.3.10-r1.ebuild,v 1.1 2014/03/27 12:34:03 polynomial-c Exp $
EAPI=5
inherit eutils
MY_PN=VBoxGuestAdditions
MY_PV="${PV/beta/BETA}"
MY_PV="${MY_PV/rc/RC}"
MY_P=${MY_PN}_${MY_PV}
DESCRIPTION="CD image containing guest additions for VirtualBox"
HOMEPAGE="http://www.virtualbox.org/"
SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.iso"
LICENSE="GPL-2+ LGPL-2.1+ MIT SGI-B-2.0 CDDL"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="mirror"
RDEPEND="!app-emulation/virtualbox-bin
!=app-emulation/virtualbox-9999"
S="${WORKDIR}"
src_unpack() {
return 0
}
src_install() {
insinto /usr/share/${PN/-additions}
newins "${DISTDIR}"/${MY_P}.iso ${MY_PN}.iso
}

View File

@ -1,36 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-additions/virtualbox-additions-4.3.12.ebuild,v 1.1 2014/05/17 09:33:51 polynomial-c Exp $
EAPI=5
inherit eutils
MY_PN=VBoxGuestAdditions
MY_PV="${PV/beta/BETA}"
MY_PV="${MY_PV/rc/RC}"
MY_P=${MY_PN}_${MY_PV}
DESCRIPTION="CD image containing guest additions for VirtualBox"
HOMEPAGE="http://www.virtualbox.org/"
SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.iso"
LICENSE="GPL-2+ LGPL-2.1+ MIT SGI-B-2.0 CDDL"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="mirror"
RDEPEND="!app-emulation/virtualbox-bin
!=app-emulation/virtualbox-9999"
S="${WORKDIR}"
src_unpack() {
return 0
}
src_install() {
insinto /usr/share/${PN/-additions}
newins "${DISTDIR}"/${MY_P}.iso ${MY_PN}.iso
}

View File

@ -1,2 +0,0 @@
DIST Oracle_VM_VirtualBox_Extension_Pack-4.3.10-93012.tar.gz 10432166 SHA256 ec3f2a98373d5e228acb4756ac07f44212c4d53f6b83deee81b791abb0d2608a SHA512 cb4551caf296f51ea2a11cac340335333fc7e7b56caa22dd354bbacf041c9c228e8b5262bc585033196b1381389e664c798197654049a334814fd94faeac3e56 WHIRLPOOL a4902e5d6fe3c156ca26607d2cde5ac5ff3ac6deeb520ad83293b4d1eae7f5ec46b7053195739b66bb39b4837aa22ec9c84f2bf627b7176de253cb8cd6c508bf
DIST Oracle_VM_VirtualBox_Extension_Pack-4.3.12-93733.tar.gz 10441011 SHA256 f931ce41b2cc9500dc43aba004630cf7bb7050ba737eae38827e91062f072d1f SHA512 df585f378e778b16ea3f979445da74baf4143aec1cc87f0ee28021947d3f4827ef73de8aebd92c4dd6e525d90322986726729a51ed9736bb2c8f7c6c2a0579a0 WHIRLPOOL ab11ed5ca46144c651ed27b3a402018866eef35f1f5ef917fc6659d505949c64d4b8799f6223dd12d8d8963ebe9adbb5cf09971cde9e1a25742167b08a9a1c98

View File

@ -1,41 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-4.3.10.93012.ebuild,v 1.1 2014/03/27 12:21:26 polynomial-c Exp $
EAPI=5
inherit eutils multilib versionator
MAIN_PV="$(get_version_component_range 1-3)"
if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
MY_PV="${MAIN_PV}_$(get_version_componen_range 5)"
MY_PV="${MY_PV/beta/BETA}"
MY_PV="${MY_PV/rc/RC}"
else
MY_PV="${MAIN_PV}"
fi
VBOX_BUILD_ID="$(get_version_component_range 4)"
MY_PN="Oracle_VM_VirtualBox_Extension_Pack"
MY_P="${MY_PN}-${MY_PV}-${VBOX_BUILD_ID}"
DESCRIPTION="PUEL extensions for VirtualBox"
HOMEPAGE="http://www.virtualbox.org/"
SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.vbox-extpack -> ${MY_P}.tar.gz"
LICENSE="PUEL"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="mirror strip"
RDEPEND="~app-emulation/virtualbox-${MAIN_PV}"
S="${WORKDIR}"
QA_PREBUILT="/usr/$(get_libdir)/virtualbox/ExtensionPacks/${MY_PN}/.*"
src_install() {
insinto /usr/$(get_libdir)/virtualbox/ExtensionPacks/${MY_PN}
doins -r linux.${ARCH}
doins ExtPack* PXE-Intel.rom
}

View File

@ -1,41 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-4.3.12.93733.ebuild,v 1.1 2014/05/17 09:34:09 polynomial-c Exp $
EAPI=5
inherit eutils multilib versionator
MAIN_PV="$(get_version_component_range 1-3)"
if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
MY_PV="${MAIN_PV}_$(get_version_componen_range 5)"
MY_PV="${MY_PV/beta/BETA}"
MY_PV="${MY_PV/rc/RC}"
else
MY_PV="${MAIN_PV}"
fi
VBOX_BUILD_ID="$(get_version_component_range 4)"
MY_PN="Oracle_VM_VirtualBox_Extension_Pack"
MY_P="${MY_PN}-${MY_PV}-${VBOX_BUILD_ID}"
DESCRIPTION="PUEL extensions for VirtualBox"
HOMEPAGE="http://www.virtualbox.org/"
SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.vbox-extpack -> ${MY_P}.tar.gz"
LICENSE="PUEL"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="mirror strip"
RDEPEND="~app-emulation/virtualbox-${MAIN_PV}"
S="${WORKDIR}"
QA_PREBUILT="/usr/$(get_libdir)/virtualbox/ExtensionPacks/${MY_PN}/.*"
src_install() {
insinto /usr/$(get_libdir)/virtualbox/ExtensionPacks/${MY_PN}
doins -r linux.${ARCH}
doins ExtPack* PXE-Intel.rom
}

View File

@ -1,2 +0,0 @@
DIST vbox-kernel-module-src-4.3.10.tar.xz 517568 SHA256 96fd82c79820fd099ddb970f281b86c070b6176c40fc65c61aa8e072bff8485f SHA512 d7d26d34a97ff4a90acb04b5969e2273b709d8857c2c163289b50d83d170aa191e337f07393b4088c4343a28e0fe8596f603de7db3ea7e28baaec578ab025b02 WHIRLPOOL df2e636945ba085d11f29430b8a2bbbf7a165f245a87a00fa504e6b04db9bc0220cce75ca36315009af10df6cca513e2956dc9ed544ec35daf231e1e2150eb93
DIST vbox-kernel-module-src-4.3.12.tar.xz 517768 SHA256 63baad3f8a4970af78c671306676ab79ccf4784c4204c44c5ac9c031cb5ca3fc SHA512 127ab3d121ce69cb34d4adc774a29eae1f16662078734b2838f7c2f95b78eb4f0493dd4cd5ac8a3772cb38c85533d51d87456a0425e828216f680f486ed7fd8d WHIRLPOOL 1eeb54535af0c30113e37cc1b8111889116a1afe90066b0911c87e017e92a51416d8f931eeabfbc285dfe03dc60d06f5b8ce8ed7b47871780fdfeb62720b5f59

View File

@ -1,29 +0,0 @@
#!/bin/bash
# Create a virtualbox modules tarball from a VirtualBox binary package.
# We cannot download the package by this script because of the unpredictable
# build number being in the filename.
#
# usage: create_vbox_modules_tarball.sh VirtualBox-4.1.18-78361-Linux_amd64.run
[ -f "$1" ] || exit 1
VBOX_PACKAGE="$1"
VERSION_SUFFIX=""
if [[ ${VBOX_PACKAGE} = *_BETA* ]] || [[ ${VBOX_PACKAGE} = *_RC* ]] ; then
VERSION_SUFFIX="$(echo ${VBOX_PACKAGE} | sed 's@.*VirtualBox-[[:digit:]\.]\+\(_[[:alpha:]]\+[[:digit:]]\).*@\L\1@')"
fi
VBOX_VER="$(echo ${VBOX_PACKAGE} | sed 's@.*VirtualBox-\([[:digit:]\.]\+\).*@\1@')${VERSION_SUFFIX}"
sh ${VBOX_PACKAGE} --noexec --keep --nox11 || exit 2
cd install || exit 3
tar -xaf VirtualBox.tar.bz2 || exit 4
cd src/vboxhost || exit 5
tar -cvJf ../../../vbox-kernel-module-src-${VBOX_VER}.tar.xz . || exit 6
cd ../../.. && rm install -rf
exit 0

View File

@ -1,48 +0,0 @@
diff -urp vboxdrv.orig/SUPDrvIDC.h vboxdrv/SUPDrvIDC.h
--- vboxdrv.orig/SUPDrvIDC.h 2011-09-06 15:53:27.852567531 +0200
+++ vboxdrv/SUPDrvIDC.h 2011-09-06 15:54:05.420565524 +0200
@@ -160,7 +160,7 @@ typedef struct SUPDRVIDCREQGETSYM
{
/** The symbol address. */
PFNRT pfnSymbol;
- } Out;
+ } __no_const Out;
} u;
} SUPDRVIDCREQGETSYM;
/** Pointer to a SUPDRV IDC get symbol request. */
diff -urp vboxnetflt.orig/include/VBox/intnet.h vboxnetflt/include/VBox/intnet.h
--- vboxnetflt.orig/include/VBox/intnet.h 2011-09-06 15:53:27.852567531 +0200
+++ vboxnetflt/include/VBox/intnet.h 2011-09-06 15:54:05.424565524 +0200
@@ -783,7 +783,7 @@ typedef struct INTNETTRUNKFACTORY
DECLR0CALLBACKMEMBER(int, pfnCreateAndConnect,(struct INTNETTRUNKFACTORY *pIfFactory, const char *pszName,
PINTNETTRUNKSWPORT pSwitchPort, uint32_t fFlags,
PINTNETTRUNKIFPORT *ppIfPort));
-} INTNETTRUNKFACTORY;
+} __no_const INTNETTRUNKFACTORY;
/** Pointer to the trunk factory. */
typedef INTNETTRUNKFACTORY *PINTNETTRUNKFACTORY;
diff -urp vboxnetflt.orig/linux/VBoxNetFlt-linux.c vboxnetflt/linux/VBoxNetFlt-linux.c
--- vboxnetflt.orig/linux/VBoxNetFlt-linux.c 2011-07-19 12:15:22.000000000 +0200
+++ vboxnetflt/linux/VBoxNetFlt-linux.c 2011-09-06 15:56:00.516559379 +0200
@@ -840,7 +840,7 @@ typedef struct ethtool_ops OVR_OPSTYPE;
# else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) */
-typedef struct net_device_ops OVR_OPSTYPE;
+typedef net_device_ops_no_const OVR_OPSTYPE;
# define OVR_OPS netdev_ops
# define OVR_XMIT pOrgOps->ndo_start_xmit
diff -urp vboxpci.orig/include/VBox/rawpci.h vboxpci/include/VBox/rawpci.h
--- vboxpci.orig/include/VBox/rawpci.h 2011-04-18 17:01:12.000000000 +0200
+++ vboxpci/include/VBox/rawpci.h 2011-09-06 15:57:17.340555277 +0200
@@ -545,7 +545,7 @@ typedef struct RAWPCIFACTORY
DECLR0CALLBACKMEMBER(void, pfnDeinitVm,(PRAWPCIFACTORY pFactory,
PVM pVM,
PRAWPCIPERVM pPciData));
-} RAWPCIFACTORY;
+} __no_const RAWPCIFACTORY;
#define RAWPCIFACTORY_UUID_STR "ea089839-4171-476f-adfb-9e7ab1cbd0fb"

View File

@ -1,3 +0,0 @@
vboxnetflt
vboxnetadp
vboxdrv

View File

@ -1,59 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-modules/virtualbox-modules-4.3.10.ebuild,v 1.1 2014/03/26 10:10:13 polynomial-c Exp $
# XXX: the tarball here is just the kernel modules split out of the binary
# package that comes from virtualbox-bin
EAPI=5
inherit eutils linux-mod user
MY_P=vbox-kernel-module-src-${PV}
DESCRIPTION="Kernel Modules for Virtualbox"
HOMEPAGE="http://www.virtualbox.org/"
SRC_URI="http://dev.gentoo.org/~polynomial-c/virtualbox/${MY_P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="pax_kernel"
RDEPEND="!=app-emulation/virtualbox-9999"
S=${WORKDIR}
BUILD_TARGETS="all"
BUILD_TARGET_ARCH="${ARCH}"
MODULE_NAMES="vboxdrv(misc:${S}) vboxnetflt(misc:${S}) vboxnetadp(misc:${S}) vboxpci(misc:${S})"
pkg_setup() {
linux-mod_pkg_setup
BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}"
enewgroup vboxusers
}
src_prepare() {
if kernel_is -ge 2 6 33 ; then
# evil patch for new kernels - header moved
grep -lR linux/autoconf.h * | xargs sed -i -e 's:<linux/autoconf.h>:<generated/autoconf.h>:'
fi
if use pax_kernel && kernel_is -ge 3 0 0 ; then
epatch "${FILESDIR}"/${PN}-4.1.4-pax-const.patch
fi
}
src_install() {
linux-mod_src_install
insinto /usr/lib/modules-load.d/
doins "${FILESDIR}"/virtualbox.conf
}
pkg_postinst() {
linux-mod_pkg_postinst
elog "If you are using openRC, please add \"vboxdrv\", \"vboxnetflt\""
elog "and \"vboxnetadp\" to:"
elog "/etc/conf.d/modules"
}

View File

@ -1,59 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-modules/virtualbox-modules-4.3.12.ebuild,v 1.1 2014/05/17 09:33:02 polynomial-c Exp $
# XXX: the tarball here is just the kernel modules split out of the binary
# package that comes from virtualbox-bin
EAPI=5
inherit eutils linux-mod user
MY_P=vbox-kernel-module-src-${PV}
DESCRIPTION="Kernel Modules for Virtualbox"
HOMEPAGE="http://www.virtualbox.org/"
SRC_URI="http://dev.gentoo.org/~polynomial-c/virtualbox/${MY_P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="pax_kernel"
RDEPEND="!=app-emulation/virtualbox-9999"
S=${WORKDIR}
BUILD_TARGETS="all"
BUILD_TARGET_ARCH="${ARCH}"
MODULE_NAMES="vboxdrv(misc:${S}) vboxnetflt(misc:${S}) vboxnetadp(misc:${S}) vboxpci(misc:${S})"
pkg_setup() {
linux-mod_pkg_setup
BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}"
enewgroup vboxusers
}
src_prepare() {
if kernel_is -ge 2 6 33 ; then
# evil patch for new kernels - header moved
grep -lR linux/autoconf.h * | xargs sed -i -e 's:<linux/autoconf.h>:<generated/autoconf.h>:'
fi
if use pax_kernel && kernel_is -ge 3 0 0 ; then
epatch "${FILESDIR}"/${PN}-4.1.4-pax-const.patch
fi
}
src_install() {
linux-mod_src_install
insinto /usr/lib/modules-load.d/
doins "${FILESDIR}"/virtualbox.conf
}
pkg_postinst() {
linux-mod_pkg_postinst
elog "If you are using openRC, please add \"vboxdrv\", \"vboxnetflt\""
elog "and \"vboxnetadp\" to:"
elog "/etc/conf.d/modules"
}

View File

@ -1,6 +0,0 @@
DIST VirtualBox-4.2.8.tar.bz2 76412088 SHA256 f336af12244db74e6564dc22e438bbcba70f994aaf0d117fdf70caca9fab1b78 SHA512 70eab0aa0c760937a99d4d199be81cd828bc37d656a796a5cdd25fd3869b6873d2bfac4fa1c719a9a79431312524c21bba995b9a6be8a8bcb8eb2444cca32c08 WHIRLPOOL 54642eaf1c495f46338c348e6f5abb29bf6e17b85d2dae1fd4b4988eebec7dda8a8dad903060b2ef3fa65c4e1aaecdc43bd384f7b993b16f59be86e4fb8d0355
DIST VirtualBox-4.3.10.tar.bz2 90336343 SHA256 8152fcc959565fee63855dffb9731a1585563f01b4756def0a644de1223af37e SHA512 639ad7585d7459373156489ec2a229cf6323202045e14f41ffdaa80cdc38e8b376be84fdbb398dda04b85d5d68247bdfae51d4695a14805fb91adbb5d6f61b3f WHIRLPOOL fe22aaeef2066408bf172ffbd554d421bd1ff4512d7a81eac871ad1675954b16923640aa08868114300de4a839f2cd3a5116ca63cacb37fe68bfb2b890a2f911
DIST VirtualBox-4.3.12.tar.bz2 90346010 SHA256 db84ddf47d1ecd316ec46417595f0252e3ec2f67e35e1e17320aba87b7c2934f SHA512 3c7afe744b49908dae74d57e694976672ea1c638cefb17a8b569ce8663250a1b8157f88c8f1b29b11174a7c65d97a8eb28b77a6bd4526b9bceaa1e503412519d WHIRLPOOL 0ee4a6a3a1985b59425628b10cc4f146e2ac51a9cc1135f2997299b50eaf2c2c0ebf6320d468f3e24f887ab29327fdec60e89cc66681a0c69a237775f0b2d620
DIST virtualbox-4.2.8-patches-01.tar.xz 11140 SHA256 6f738d7e7b0da7bdf284c9429b5db81433fa09977a46d7a27f049118d47dfd97 SHA512 868e9b5feeb26dca647f0f614a7e06eef961081b32a36f4d0a1e6648fb4a2603767d7b536ba913334cfa75c02133186dd5f825a37a7dff9676ef4d65a6cca1b0 WHIRLPOOL 29d6e5d38e02804ad9d7b58e18ad15d5ccee5bda14b71f9ccfd5d6c1447008d889b0f943fb85e5b493ba2ef5aa6848cd895fb947328ecc7075238fb8d4299ccf
DIST virtualbox-4.3.10-patches-01.tar.xz 4076 SHA256 3c8dc2a072e5554b309637ccf8776c0555837dd4251c44f73602fa606f8439b4 SHA512 16b51301d41452636a7cd552306105ed7c8c6b37a1aef5115ba281e3a8cf50317119e226d33c724bedd7f6e9ec2813fc9d3f3fa798ca20352643898f2abbbd64 WHIRLPOOL f12b6ad44ea18b3eb933168b22a91945e60f0843d0f51f4afe1e972dd39dceb7ae515178eaee97697988ecea0d76aa7ca927aab48b82f056f6f8f04a2e083d7b
DIST virtualbox-4.3.4-patches-01.tar.xz 3512 SHA256 92602471590278f42db4e13aeb3975620ce0b8f1f883b82a534b6998bb4fc2e3 SHA512 3a487283066b96fb8abc765d446dbc3d3b34ed93a12d932e843b7ecdf644a02fc185f47764cfb3e4b996e104da8e1fc07432892ea126229c174e00f748468496 WHIRLPOOL 19b344f784e866b87c1f7583081746776da5203737bbb284a32b8bcb48a8546286cd209b6749c6c77c08ee02039afcf3838d49d179ae4cc1592ca1fbd5fd5b12

View File

@ -1,7 +0,0 @@
# create second tree of USB devices according to
# http://www.virtualbox.org/ticket/7759#comment:5
SUBSYSTEM=="usb_device", ACTION!="remove", RUN="%UDEVDIR%/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass}"
SUBSYSTEM=="usb", ACTION!="remove", ENV{DEVTYPE}=="usb_device", RUN="%UDEVDIR%/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass}"
SUBSYSTEM=="usb_device", ACTION=="remove", RUN="%UDEVDIR%/VBoxCreateUSBNode.sh --remove $major $minor"
SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN="%UDEVDIR%/VBoxCreateUSBNode.sh --remove $major $minor"

View File

@ -1,20 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/files/vboxwebsrv-confd,v 1.2 2012/03/16 22:36:03 hwoarang Exp $
# The host to bind to (defaults to "localhost").
VBOXWEBSRV_HOST="localhost"
# Which port to on the host (defaults to 18083).
VBOXWEBSRV_PORT="18083"
# Session timeout, in seconds. (defaults to 20).
VBOXWEBSRV_TIMEOUT=20
# The interval in which the webservice checks for
# timed-out clients, in seconds. Normally does not
# need to be changed (defaults to 5).
VBOXWEBSRV_INTERVAL=5
# User under which vboxwebsrv is running
VBOXWEBSRV_USER="root"

View File

@ -1,24 +0,0 @@
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/files/vboxwebsrv-initd,v 1.2 2012/03/16 22:36:03 hwoarang Exp $
depend() {
need net
}
start() {
#checkconfig || return $?
ebegin "Starting VirtualBox WebService"
start-stop-daemon --start --quiet --user ${VBOXWEBSRV_USER} --pidfile /var/run/vboxwebsrv.pid \
--background --make-pidfile --exec /usr/bin/vboxwebsrv \
-- -H ${VBOXWEBSRV_HOST} -p ${VBOXWEBSRV_PORT} -t ${VBOXWEBSRV_TIMEOUT} -i ${VBOXWEBSRV_INTERVAL}
eend $?
}
stop() {
ebegin "Stopping VirtualBox WebService"
start-stop-daemon --stop --user ${VBOXWEBSRV_USER} --quiet --pidfile /var/run/vboxwebsrv.pid
eend $?
}

View File

@ -1 +0,0 @@
INSTALL_DIR=/usr/MY_LIBDIR/virtualbox

View File

@ -1,45 +0,0 @@
# -*- Makefile -*-
#
# Overwrite some default kBuild settings
#
#
# Copyright (C) 2006-2008 Sun Microsystems, Inc.
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of the GNU
# General Public License as published by the Free Software Foundation,
# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
# distribution. VirtualBox OSE is distributed in the hope that it will
# be useful, but WITHOUT ANY WARRANTY of any kind.
#
# shut up wine complaining about unknown locale
EXEC_X86_WIN32 := wine
# don't build testcases to save time, they are not needed for the package
VBOX_WITH_TESTCASES :=
VBOX_WITH_TESTSUITE :=
VBOX_DOCBOOK_WITH_LATEX := 1
KBUILD_MSG_STYLE := brief
## paths, origin, hardening
VBOX_WITH_HARDENING := 1
VBOX_WITH_ORIGIN :=
VBOX_PATH_APP_PRIVATE_ARCH := /usr/MY_LIBDIR/virtualbox
VBOX_PATH_SHARED_LIBS := $(VBOX_PATH_APP_PRIVATE_ARCH)
VBOX_WITH_RUNPATH := $(VBOX_PATH_APP_PRIVATE_ARCH)
VBOX_PATH_APP_PRIVATE := /usr/share/virtualbox
VBOX_PATH_APP_DOCS = $(VBOX_PATH_PACKAGE_DOCS)
## don't build unwanted/splitted stuff
VBOX_WITHOUT_ADDITIONS := 1
VBOX_WITH_VBOXDRV :=
VBOX_WITH_VBOXBFE :=
VBOX_WITH_KCHMVIEWER :=
## don't build with -Werror
VBOX_WITH_WARNINGS_AS_ERRORS :=

View File

@ -1 +0,0 @@
INSTALL_DIR=/usr/MY_LIBDIR/virtualbox

View File

@ -1,104 +0,0 @@
#!/bin/sh
#
# Sun VirtualBox
#
# Copyright (C) 2006-2009 Sun Microsystems, Inc.
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of the GNU
# General Public License (GPL) as published by the Free Software
# Foundation, in version 2 as it comes in the "COPYING" file of the
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
#
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
# Clara, CA 95054 USA or visit http://www.sun.com if you need
# additional information or have any questions.
#
PATH="/usr/bin:/bin:/usr/sbin:/sbin"
CONFIG="/etc/vbox/vbox.cfg"
if [ ! -r "$CONFIG" ]; then
echo "Could not find VirtualBox installation. Please reinstall."
exit 1
fi
. "$CONFIG"
# Note: This script must not fail if the module was not successfully installed
# because the user might not want to run a VM but only change VM params!
if [ "$1" = "shutdown" ]; then
SHUTDOWN="true"
elif ! lsmod|grep -q vboxdrv; then
cat << EOF
WARNING: The VirtualBox kernel modules are not loaded.
Please load all the needed kernel modules by:
for m in vbox{drv,netadp,netflt}; do modprobe \$m; done
You will not be able to start VMs until this problem is fixed.
EOF
elif [ ! -c /dev/vboxdrv ]; then
cat << EOF
WARNING: The character device /dev/vboxdrv does not exist.
Please try to reload all the needed kernel modules by:
for m in vbox{netflt,netadp,drv}; do rmmod \$m; done
for m in vbox{drv,netadp,netflt}; do modprobe \$m; done
and if that is not successful, try to re-install the package by:
emerge -1av app-emulation/virtualbox-modules
You will not be able to start VMs until this problem is fixed.
EOF
fi
SERVER_PID=`ps -U \`whoami\` | grep VBoxSVC | awk '{ print $1 }'`
if [ -z "$SERVER_PID" ]; then
# Server not running yet/anymore, cleanup socket path.
# See IPC_GetDefaultSocketPath()!
if [ -n "$LOGNAME" ]; then
rm -rf /tmp/.vbox-$LOGNAME-ipc > /dev/null 2>&1
else
rm -rf /tmp/.vbox-$USER-ipc > /dev/null 2>&1
fi
fi
if [ "$SHUTDOWN" = "true" ]; then
if [ -n "$SERVER_PID" ]; then
kill -TERM $SERVER_PID
sleep 2
fi
exit 0
fi
APP=`which $0`
APP=`basename $APP`
APP=${APP##/*/}
case "$APP" in
VirtualBox)
exec "$INSTALL_DIR/VirtualBox" "$@"
;;
VBoxManage)
exec "$INSTALL_DIR/VBoxManage" "$@"
;;
VBoxSDL)
exec "$INSTALL_DIR/VBoxSDL" "$@"
;;
VBoxVRDP)
exec "$INSTALL_DIR/VBoxHeadless" "$@"
;;
VBoxHeadless)
exec "$INSTALL_DIR/VBoxHeadless" "$@"
;;
vboxwebsrv)
exec "$INSTALL_DIR/vboxwebsrv" "$@"
;;
*)
echo "Unknown application - $APP"
;;
esac

View File

@ -1,8 +0,0 @@
[Desktop Entry]
Name=Oracle xVM VirtualBox
Type=Application
Comment=Run several virtual systems on a single host computer
Exec=VirtualBox
TryExec=VirtualBox
Icon=virtualbox
Categories=System;Emulator;

View File

@ -1,398 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/virtualbox-4.2.8.ebuild,v 1.1 2013/02/28 16:04:19 polynomial-c Exp $
EAPI=4
inherit eutils fdo-mime flag-o-matic linux-info multilib pax-utils python qt4-r2 toolchain-funcs java-pkg-opt-2 udev
if [[ ${PV} == "9999" ]] ; then
# XXX: should finish merging the -9999 ebuild into this one ...
ESVN_REPO_URI="http://www.virtualbox.org/svn/vbox/trunk"
inherit linux-mod subversion
else
MY_PV="${PV/beta/BETA}"
MY_PV="${MY_PV/rc/RC}"
MY_P=VirtualBox-${MY_PV}
SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2"
S="${WORKDIR}/${MY_P}"
fi
DESCRIPTION="Family of powerful x86 virtualization products for enterprise as well as home use"
HOMEPAGE="http://www.virtualbox.org/"
SRC_URI="${SRC_URI}
http://dev.gentoo.org/~polynomial-c/virtualbox/patchsets/virtualbox-4.2.8-patches-01.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+additions alsa doc extensions headless java pam pulseaudio +opengl python +qt4 +sdk vboxwebsrv vnc"
RDEPEND="!app-emulation/virtualbox-bin
~app-emulation/virtualbox-modules-${PV}
dev-libs/libIDL
>=dev-libs/libxslt-1.1.19
net-misc/curl
dev-libs/openssl
dev-libs/libxml2
sys-libs/zlib
>=virtual/udev-171
!headless? (
qt4? (
x11-libs/qt-gui:4
x11-libs/qt-core:4
opengl? ( x11-libs/qt-opengl:4 )
x11-libs/libXinerama
)
opengl? ( virtual/opengl media-libs/freeglut )
x11-libs/libX11
x11-libs/libXcursor
x11-libs/libXext
x11-libs/libXmu
x11-libs/libXt
media-libs/libsdl:0[X,video]
)
vnc? ( >=net-libs/libvncserver-0.9.9 )
java? ( || ( virtual/jre:1.7 virtual/jre:1.6 ) )"
DEPEND="${RDEPEND}
>=dev-util/kbuild-0.1.9998_pre20120806
>=dev-lang/yasm-0.6.2
sys-devel/bin86
sys-power/iasl
media-libs/libpng
pam? ( sys-libs/pam )
sys-libs/libcap
doc? (
dev-texlive/texlive-basic
dev-texlive/texlive-latex
dev-texlive/texlive-latexrecommended
dev-texlive/texlive-latexextra
dev-texlive/texlive-fontsrecommended
dev-texlive/texlive-fontsextra
)
java? ( || ( virtual/jdk:1.7 virtual/jdk:1.6 ) )
virtual/pkgconfig
alsa? ( >=media-libs/alsa-lib-1.0.13 )
!headless? ( x11-libs/libXinerama )
pulseaudio? ( media-sound/pulseaudio )
vboxwebsrv? ( >=net-libs/gsoap-2.7.13 )"
PDEPEND="additions? ( ~app-emulation/virtualbox-additions-${PV} )
extensions? ( ~app-emulation/virtualbox-extpack-oracle-${PV} )"
QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so
usr/lib/virtualbox/VBoxSDL.so
usr/lib/virtualbox/VBoxSharedFolders.so
usr/lib/virtualbox/VBoxDD2.so
usr/lib/virtualbox/VBoxOGLrenderspu.so
usr/lib/virtualbox/VBoxPython.so
usr/lib/virtualbox/VBoxDD.so
usr/lib/virtualbox/VBoxDDU.so
usr/lib/virtualbox/VBoxREM64.so
usr/lib/virtualbox/VBoxSharedClipboard.so
usr/lib/virtualbox/VBoxHeadless.so
usr/lib/virtualbox/VBoxRT.so
usr/lib/virtualbox/VBoxREM.so
usr/lib/virtualbox/VBoxSettings.so
usr/lib/virtualbox/VBoxKeyboard.so
usr/lib/virtualbox/VBoxSharedCrOpenGL.so
usr/lib/virtualbox/VBoxVMM.so
usr/lib/virtualbox/VirtualBox.so
usr/lib/virtualbox/VBoxOGLhosterrorspu.so
usr/lib/virtualbox/components/VBoxC.so
usr/lib/virtualbox/components/VBoxSVCM.so
usr/lib/virtualbox/components/VBoxDDU.so
usr/lib/virtualbox/components/VBoxRT.so
usr/lib/virtualbox/components/VBoxREM.so
usr/lib/virtualbox/components/VBoxVMM.so
usr/lib/virtualbox/VBoxREM32.so
usr/lib/virtualbox/VBoxPython2_4.so
usr/lib/virtualbox/VBoxPython2_5.so
usr/lib/virtualbox/VBoxPython2_6.so
usr/lib/virtualbox/VBoxPython2_7.so
usr/lib/virtualbox/VBoxXPCOMC.so
usr/lib/virtualbox/VBoxOGLhostcrutil.so
usr/lib/virtualbox/VBoxNetDHCP.so"
REQUIRED_USE="
java? ( sdk )
python? ( sdk )
vboxwebsrv? ( java )
"
pkg_setup() {
if ! use headless && ! use qt4 ; then
einfo "No USE=\"qt4\" selected, this build will not include"
einfo "any Qt frontend."
elif use headless && use qt4 ; then
einfo "You selected USE=\"headless qt4\", defaulting to"
einfo "USE=\"headless\", this build will not include any X11/Qt frontend."
fi
if ! use opengl ; then
einfo "No USE=\"opengl\" selected, this build will lack"
einfo "the OpenGL feature."
fi
java-pkg-opt-2_pkg_setup
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
# Remove shipped binaries (kBuild,yasm), see bug #232775
rm -rf kBuild/bin tools
# Disable things unused or split into separate ebuilds
sed -e "s@MY_LIBDIR@$(get_libdir)@" \
"${FILESDIR}"/${PN}-4-localconfig > LocalConfig.kmk || die
# Respect LDFLAGS
sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
-i Config.kmk src/libs/xpcom18a4/Config.kmk || die
# Use PAM only when pam USE flag is enbaled (bug #376531)
if ! use pam ; then
elog "Disabling PAM removes the possibility to use the VRDP features."
sed -i 's@^.*VBOX_WITH_PAM@#VBOX_WITH_PAM@' Config.kmk || die
sed -i 's@\(.*/auth/Makefile.kmk.*\)@#\1@' \
src/VBox/HostServices/Makefile.kmk || die
fi
# add correct java path
if use java ; then
sed "s@/usr/lib/jvm/java-6-sun@$(java-config -O)@" \
-i "${S}"/Config.kmk || die
java-pkg-opt-2_src_prepare
fi
if ! gcc-specs-pie ; then
EPATCH_EXCLUDE="050_${PN}-4.2.0-nopie.patch"
fi
EPATCH_SUFFIX="patch" \
EPATCH_FORCE="yes" \
epatch "${WORKDIR}/patches"
# fix location of ifconfig binary (bug #455902)
local ifcfg="$(type -p ifconfig)"
if [ "${ifcfg}" != "/sbin/ifconfig" ] ; then
sed "/VBOXADPCTL_IFCONFIG_PATH/s@/sbin/ifconfig@${ifcfg}@" \
-i "${S}"/src/apps/adpctl/VBoxNetAdpCtl.cpp \
|| die
fi
# disable USB features which need closed source VRDE
#sed '/^VBOX_WITH_USB_VIDEO/s@1@0@;/^VBOX_WITH_USB_CARDREADER/s@1@0@' \
# -i "${S}"/Config.kmk || die
#sed -e '/VBOX_WITH_USB_VIDEO/d' -e '/VBOX_WITH_USB_CARDREADER/d' \
# -i "${S}"/src/VBox/Main/Makefile.kmk || die
}
src_configure() {
local myconf
use alsa || myconf+=" --disable-alsa"
use opengl || myconf+=" --disable-opengl"
use pulseaudio || myconf+=" --disable-pulse"
use python || myconf+=" --disable-python"
use java || myconf+=" --disable-java"
use vboxwebsrv && myconf+=" --enable-webservice"
use vnc && myconf+=" --enable-vnc"
use doc || myconf+=" --disable-docs"
if ! use headless ; then
use qt4 || myconf+=" --disable-qt4"
else
myconf+=" --build-headless --disable-opengl"
fi
# not an autoconf script
./configure \
--with-gcc="$(tc-getCC)" \
--with-g++="$(tc-getCXX)" \
--disable-kmods \
--disable-dbus \
--disable-devmapper \
${myconf} \
|| die "configure failed"
}
src_compile() {
source ./env.sh
# Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
# and strip all flags
# strip-flags
MAKE="kmk" emake \
VBOX_VERSION_STRING='$(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)'_Gentoo_ \
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}" \
VBOX_GCC_OPT="${CXXFLAGS}" \
TOOL_YASM_AS=yasm KBUILD_PATH="${S}/kBuild" \
all || die "kmk failed"
}
src_install() {
cd "${S}"/out/linux.${ARCH}/release/bin || die
# Create configuration files
insinto /etc/vbox
newins "${FILESDIR}/${PN}-4-config" vbox.cfg
# Set the right libdir
sed -i \
-e "s@MY_LIBDIR@$(get_libdir)@" \
"${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
# Symlink binaries to the shipped wrapper
exeinto /usr/$(get_libdir)/${PN}
newexe "${FILESDIR}/${PN}-ose-3-wrapper" "VBox" || die
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBox
fperms 0750 /usr/$(get_libdir)/${PN}/VBox
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxManage
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxVRDP
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxHeadless
dosym /usr/$(get_libdir)/${PN}/VBoxTunctl /usr/bin/VBoxTunctl
# Install binaries and libraries
insinto /usr/$(get_libdir)/${PN}
doins -r components || die
if use sdk ; then
doins -r sdk || die
fi
if use vboxwebsrv ; then
doins vboxwebsrv || die
fowners root:vboxusers /usr/$(get_libdir)/${PN}/vboxwebsrv
fperms 0750 /usr/$(get_libdir)/${PN}/vboxwebsrv
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/vboxwebsrv
newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
fi
for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP,ExtPackHelperApp} *so *r0 *gc ; do
doins $each || die
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each}
fperms 0750 /usr/$(get_libdir)/${PN}/${each}
done
# VBoxNetAdpCtl and VBoxNetDHCP binaries need to be suid root in any case..
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetAdpCtl
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetDHCP
# VBoxSVC needs to be pax-marked (bug #403453)
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxSVC || die
if ! use headless ; then
for each in VBox{SDL,Headless} ; do
doins $each || die
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each}
fperms 4750 /usr/$(get_libdir)/${PN}/${each}
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/${each}
done
if use opengl && use qt4 ; then
doins VBoxTestOGL || die
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxTestOGL
fperms 0750 /usr/$(get_libdir)/${PN}/VBoxTestOGL
fi
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxSDL
if use qt4 ; then
doins VirtualBox || die
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VirtualBox
fperms 4750 /usr/$(get_libdir)/${PN}/VirtualBox
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VirtualBox
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VirtualBox
newmenu "${FILESDIR}"/${PN}-ose.desktop-2 ${PN}.desktop
fi
pushd "${S}"/src/VBox/Resources/OSE &>/dev/null || die
for size in 16 32 48 64 128 ; do
newicon -s ${size} ${PN}-${size}px.png ${PN}.png
done
newicon ${PN}-48px.png ${PN}.png
popd &>/dev/null || die
else
doins VBoxHeadless || die
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxHeadless
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxHeadless
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxHeadless
fi
insinto /usr/$(get_libdir)/${PN}
# Install EFI Firmware files (bug #320757)
pushd "${S}"/src/VBox/Devices/EFI/FirmwareBin &>/dev/null || die
for fwfile in VBoxEFI{32,64}.fd ; do
doins ${fwfile} || die
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${fwfile} || die
done
popd &>/dev/null || die
# New way of handling USB device nodes for VBox (bug #356215)
local udevdir="$(udev_get_udevdir)"
insinto ${udevdir}
doins VBoxCreateUSBNode.sh
fowners root:vboxusers ${udevdir}/VBoxCreateUSBNode.sh
fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
insinto ${udevdir}/rules.d
doins "${FILESDIR}"/10-virtualbox.rules
sed "s@%UDEVDIR%@${udevdir}@" \
-i "${D}"${udevdir}/rules.d/10-virtualbox.rules || die
insinto /usr/share/${PN}
if ! use headless && use qt4 ; then
doins -r nls
fi
# VRDPAuth only works with this (bug #351949)
dosym VBoxAuth.so /usr/$(get_libdir)/${PN}/VRDPAuth.so
# set an env-variable for 3rd party tools
echo -n "VBOX_APP_HOME=/usr/$(get_libdir)/${PN}" > "${T}/90virtualbox"
doenvd "${T}/90virtualbox"
if use java ; then
java-pkg_regjar "${D}/usr/$(get_libdir)/${PN}/sdk/bindings/xpcom/java/vboxjxpcom.jar"
java-pkg_regso "${D}/usr/$(get_libdir)/${PN}/libvboxjxpcom.so"
fi
}
pkg_postinst() {
fdo-mime_desktop_database_update
udevadm control --reload-rules && udevadm trigger --subsystem-match=usb
if ! use headless && use qt4 ; then
elog "To launch VirtualBox just type: \"VirtualBox\"."
fi
elog "You must be in the vboxusers group to use VirtualBox."
elog ""
elog "The latest user manual is available for download at:"
elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf"
elog ""
elog "For advanced networking setups you should emerge:"
elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
elog ""
elog "IMPORTANT!"
elog "If you upgrade from app-emulation/virtualbox-ose make sure to run"
elog "\"env-update\" as root and logout and relogin as the user you wish"
elog "to run ${PN} as."
elog ""
elog "Starting with version 4.0.0, ${PN} has USB-1 support."
elog "For USB-2 support, PXE-boot ability and VRDP support please emerge"
elog " app-emulation/virtualbox-extpack-oracle"
elog "package."
if [ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
elog ""
elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\""
elog "or else USB in ${PN} won't work."
fi
}
pkg_postrm() {
fdo-mime_desktop_database_update
}

View File

@ -1,398 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/virtualbox-4.2.8.ebuild,v 1.1 2013/02/28 16:04:19 polynomial-c Exp $
EAPI=4
inherit eutils fdo-mime flag-o-matic linux-info multilib pax-utils python qt4-r2 toolchain-funcs java-pkg-opt-2 udev
if [[ ${PV} == "9999" ]] ; then
# XXX: should finish merging the -9999 ebuild into this one ...
ESVN_REPO_URI="http://www.virtualbox.org/svn/vbox/trunk"
inherit linux-mod subversion
else
MY_PV="${PV/beta/BETA}"
MY_PV="${MY_PV/rc/RC}"
MY_P=VirtualBox-${MY_PV}
SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2"
S="${WORKDIR}/${MY_P}"
fi
DESCRIPTION="Family of powerful x86 virtualization products for enterprise as well as home use"
HOMEPAGE="http://www.virtualbox.org/"
SRC_URI="${SRC_URI}
http://dev.gentoo.org/~polynomial-c/virtualbox/patchsets/virtualbox-4.2.8-patches-01.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+additions alsa doc extensions headless java pam pulseaudio +opengl python +qt4 +sdk vboxwebsrv vnc"
RDEPEND="!app-emulation/virtualbox-bin
~app-emulation/virtualbox-modules-${PV}
dev-libs/libIDL
>=dev-libs/libxslt-1.1.19
net-misc/curl
dev-libs/openssl
dev-libs/libxml2
sys-libs/zlib
>=virtual/udev-171
!headless? (
qt4? (
dev-qt/qtgui:4
dev-qt/qtcore:4
opengl? ( dev-qt/qtopengl:4 )
x11-libs/libXinerama
)
opengl? ( virtual/opengl media-libs/freeglut )
x11-libs/libX11
x11-libs/libXcursor
x11-libs/libXext
x11-libs/libXmu
x11-libs/libXt
media-libs/libsdl:0[X,video]
)
vnc? ( >=net-libs/libvncserver-0.9.9 )
java? ( || ( virtual/jre:1.7 virtual/jre:1.6 ) )"
DEPEND="${RDEPEND}
>=dev-util/kbuild-0.1.9998_pre20120806
>=dev-lang/yasm-0.6.2
sys-devel/bin86
sys-power/iasl
media-libs/libpng
pam? ( sys-libs/pam )
sys-libs/libcap
doc? (
dev-texlive/texlive-basic
dev-texlive/texlive-latex
dev-texlive/texlive-latexrecommended
dev-texlive/texlive-latexextra
dev-texlive/texlive-fontsrecommended
dev-texlive/texlive-fontsextra
)
java? ( || ( virtual/jdk:1.7 virtual/jdk:1.6 ) )
virtual/pkgconfig
alsa? ( >=media-libs/alsa-lib-1.0.13 )
!headless? ( x11-libs/libXinerama )
pulseaudio? ( media-sound/pulseaudio )
vboxwebsrv? ( >=net-libs/gsoap-2.7.13 )"
PDEPEND="additions? ( ~app-emulation/virtualbox-additions-${PV} )
extensions? ( ~app-emulation/virtualbox-extpack-oracle-${PV} )"
QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so
usr/lib/virtualbox/VBoxSDL.so
usr/lib/virtualbox/VBoxSharedFolders.so
usr/lib/virtualbox/VBoxDD2.so
usr/lib/virtualbox/VBoxOGLrenderspu.so
usr/lib/virtualbox/VBoxPython.so
usr/lib/virtualbox/VBoxDD.so
usr/lib/virtualbox/VBoxDDU.so
usr/lib/virtualbox/VBoxREM64.so
usr/lib/virtualbox/VBoxSharedClipboard.so
usr/lib/virtualbox/VBoxHeadless.so
usr/lib/virtualbox/VBoxRT.so
usr/lib/virtualbox/VBoxREM.so
usr/lib/virtualbox/VBoxSettings.so
usr/lib/virtualbox/VBoxKeyboard.so
usr/lib/virtualbox/VBoxSharedCrOpenGL.so
usr/lib/virtualbox/VBoxVMM.so
usr/lib/virtualbox/VirtualBox.so
usr/lib/virtualbox/VBoxOGLhosterrorspu.so
usr/lib/virtualbox/components/VBoxC.so
usr/lib/virtualbox/components/VBoxSVCM.so
usr/lib/virtualbox/components/VBoxDDU.so
usr/lib/virtualbox/components/VBoxRT.so
usr/lib/virtualbox/components/VBoxREM.so
usr/lib/virtualbox/components/VBoxVMM.so
usr/lib/virtualbox/VBoxREM32.so
usr/lib/virtualbox/VBoxPython2_4.so
usr/lib/virtualbox/VBoxPython2_5.so
usr/lib/virtualbox/VBoxPython2_6.so
usr/lib/virtualbox/VBoxPython2_7.so
usr/lib/virtualbox/VBoxXPCOMC.so
usr/lib/virtualbox/VBoxOGLhostcrutil.so
usr/lib/virtualbox/VBoxNetDHCP.so"
REQUIRED_USE="
java? ( sdk )
python? ( sdk )
vboxwebsrv? ( java )
"
pkg_setup() {
if ! use headless && ! use qt4 ; then
einfo "No USE=\"qt4\" selected, this build will not include"
einfo "any Qt frontend."
elif use headless && use qt4 ; then
einfo "You selected USE=\"headless qt4\", defaulting to"
einfo "USE=\"headless\", this build will not include any X11/Qt frontend."
fi
if ! use opengl ; then
einfo "No USE=\"opengl\" selected, this build will lack"
einfo "the OpenGL feature."
fi
java-pkg-opt-2_pkg_setup
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
# Remove shipped binaries (kBuild,yasm), see bug #232775
rm -rf kBuild/bin tools
# Disable things unused or split into separate ebuilds
sed -e "s@MY_LIBDIR@$(get_libdir)@" \
"${FILESDIR}"/${PN}-4-localconfig > LocalConfig.kmk || die
# Respect LDFLAGS
sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
-i Config.kmk src/libs/xpcom18a4/Config.kmk || die
# Use PAM only when pam USE flag is enbaled (bug #376531)
if ! use pam ; then
elog "Disabling PAM removes the possibility to use the VRDP features."
sed -i 's@^.*VBOX_WITH_PAM@#VBOX_WITH_PAM@' Config.kmk || die
sed -i 's@\(.*/auth/Makefile.kmk.*\)@#\1@' \
src/VBox/HostServices/Makefile.kmk || die
fi
# add correct java path
if use java ; then
sed "s@/usr/lib/jvm/java-6-sun@$(java-config -O)@" \
-i "${S}"/Config.kmk || die
java-pkg-opt-2_src_prepare
fi
if ! gcc-specs-pie ; then
EPATCH_EXCLUDE="050_${PN}-4.2.0-nopie.patch"
fi
EPATCH_SUFFIX="patch" \
EPATCH_FORCE="yes" \
epatch "${WORKDIR}/patches"
# fix location of ifconfig binary (bug #455902)
local ifcfg="$(type -p ifconfig)"
if [ "${ifcfg}" != "/sbin/ifconfig" ] ; then
sed "/VBOXADPCTL_IFCONFIG_PATH/s@/sbin/ifconfig@${ifcfg}@" \
-i "${S}"/src/apps/adpctl/VBoxNetAdpCtl.cpp \
|| die
fi
# disable USB features which need closed source VRDE
#sed '/^VBOX_WITH_USB_VIDEO/s@1@0@;/^VBOX_WITH_USB_CARDREADER/s@1@0@' \
# -i "${S}"/Config.kmk || die
#sed -e '/VBOX_WITH_USB_VIDEO/d' -e '/VBOX_WITH_USB_CARDREADER/d' \
# -i "${S}"/src/VBox/Main/Makefile.kmk || die
}
src_configure() {
local myconf
use alsa || myconf+=" --disable-alsa"
use opengl || myconf+=" --disable-opengl"
use pulseaudio || myconf+=" --disable-pulse"
use python || myconf+=" --disable-python"
use java || myconf+=" --disable-java"
use vboxwebsrv && myconf+=" --enable-webservice"
use vnc && myconf+=" --enable-vnc"
use doc || myconf+=" --disable-docs"
if ! use headless ; then
use qt4 || myconf+=" --disable-qt4"
else
myconf+=" --build-headless --disable-opengl"
fi
# not an autoconf script
./configure \
--with-gcc="$(tc-getCC)" \
--with-g++="$(tc-getCXX)" \
--disable-kmods \
--disable-dbus \
--disable-devmapper \
${myconf} \
|| die "configure failed"
}
src_compile() {
source ./env.sh
# Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
# and strip all flags
# strip-flags
MAKE="kmk" emake \
VBOX_VERSION_STRING='$(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)'_Gentoo_ \
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}" \
VBOX_GCC_OPT="${CXXFLAGS}" \
TOOL_YASM_AS=yasm KBUILD_PATH="${S}/kBuild" \
all || die "kmk failed"
}
src_install() {
cd "${S}"/out/linux.${ARCH}/release/bin || die
# Create configuration files
insinto /etc/vbox
newins "${FILESDIR}/${PN}-4-config" vbox.cfg
# Set the right libdir
sed -i \
-e "s@MY_LIBDIR@$(get_libdir)@" \
"${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
# Symlink binaries to the shipped wrapper
exeinto /usr/$(get_libdir)/${PN}
newexe "${FILESDIR}/${PN}-ose-3-wrapper" "VBox" || die
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBox
fperms 0750 /usr/$(get_libdir)/${PN}/VBox
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxManage
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxVRDP
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxHeadless
dosym /usr/$(get_libdir)/${PN}/VBoxTunctl /usr/bin/VBoxTunctl
# Install binaries and libraries
insinto /usr/$(get_libdir)/${PN}
doins -r components || die
if use sdk ; then
doins -r sdk || die
fi
if use vboxwebsrv ; then
doins vboxwebsrv || die
fowners root:vboxusers /usr/$(get_libdir)/${PN}/vboxwebsrv
fperms 0750 /usr/$(get_libdir)/${PN}/vboxwebsrv
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/vboxwebsrv
newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
fi
for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP,ExtPackHelperApp} *so *r0 *gc ; do
doins $each || die
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each}
fperms 0750 /usr/$(get_libdir)/${PN}/${each}
done
# VBoxNetAdpCtl and VBoxNetDHCP binaries need to be suid root in any case..
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetAdpCtl
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetDHCP
# VBoxSVC needs to be pax-marked (bug #403453)
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxSVC || die
if ! use headless ; then
for each in VBox{SDL,Headless} ; do
doins $each || die
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each}
fperms 4750 /usr/$(get_libdir)/${PN}/${each}
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/${each}
done
if use opengl && use qt4 ; then
doins VBoxTestOGL || die
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxTestOGL
fperms 0750 /usr/$(get_libdir)/${PN}/VBoxTestOGL
fi
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxSDL
if use qt4 ; then
doins VirtualBox || die
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VirtualBox
fperms 4750 /usr/$(get_libdir)/${PN}/VirtualBox
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VirtualBox
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VirtualBox
newmenu "${FILESDIR}"/${PN}-ose.desktop-2 ${PN}.desktop
fi
pushd "${S}"/src/VBox/Resources/OSE &>/dev/null || die
for size in 16 32 48 64 128 ; do
newicon -s ${size} ${PN}-${size}px.png ${PN}.png
done
newicon ${PN}-48px.png ${PN}.png
popd &>/dev/null || die
else
doins VBoxHeadless || die
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxHeadless
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxHeadless
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxHeadless
fi
insinto /usr/$(get_libdir)/${PN}
# Install EFI Firmware files (bug #320757)
pushd "${S}"/src/VBox/Devices/EFI/FirmwareBin &>/dev/null || die
for fwfile in VBoxEFI{32,64}.fd ; do
doins ${fwfile} || die
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${fwfile} || die
done
popd &>/dev/null || die
# New way of handling USB device nodes for VBox (bug #356215)
local udevdir="$(udev_get_udevdir)"
insinto ${udevdir}
doins VBoxCreateUSBNode.sh
fowners root:vboxusers ${udevdir}/VBoxCreateUSBNode.sh
fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
insinto ${udevdir}/rules.d
doins "${FILESDIR}"/10-virtualbox.rules
sed "s@%UDEVDIR%@${udevdir}@" \
-i "${D}"${udevdir}/rules.d/10-virtualbox.rules || die
insinto /usr/share/${PN}
if ! use headless && use qt4 ; then
doins -r nls
fi
# VRDPAuth only works with this (bug #351949)
dosym VBoxAuth.so /usr/$(get_libdir)/${PN}/VRDPAuth.so
# set an env-variable for 3rd party tools
echo -n "VBOX_APP_HOME=/usr/$(get_libdir)/${PN}" > "${T}/90virtualbox"
doenvd "${T}/90virtualbox"
if use java ; then
java-pkg_regjar "${D}/usr/$(get_libdir)/${PN}/sdk/bindings/xpcom/java/vboxjxpcom.jar"
java-pkg_regso "${D}/usr/$(get_libdir)/${PN}/libvboxjxpcom.so"
fi
}
pkg_postinst() {
fdo-mime_desktop_database_update
udevadm control --reload-rules && udevadm trigger --subsystem-match=usb
if ! use headless && use qt4 ; then
elog "To launch VirtualBox just type: \"VirtualBox\"."
fi
elog "You must be in the vboxusers group to use VirtualBox."
elog ""
elog "The latest user manual is available for download at:"
elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf"
elog ""
elog "For advanced networking setups you should emerge:"
elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
elog ""
elog "IMPORTANT!"
elog "If you upgrade from app-emulation/virtualbox-ose make sure to run"
elog "\"env-update\" as root and logout and relogin as the user you wish"
elog "to run ${PN} as."
elog ""
elog "Starting with version 4.0.0, ${PN} has USB-1 support."
elog "For USB-2 support, PXE-boot ability and VRDP support please emerge"
elog " app-emulation/virtualbox-extpack-oracle"
elog "package."
if [ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
elog ""
elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\""
elog "or else USB in ${PN} won't work."
fi
}
pkg_postrm() {
fdo-mime_desktop_database_update
}

View File

@ -1,402 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/virtualbox-4.3.10-r2.ebuild,v 1.1 2014/04/10 20:49:55 polynomial-c Exp $
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit eutils fdo-mime flag-o-matic java-pkg-opt-2 linux-info multilib pax-utils python-single-r1 qt4-r2 toolchain-funcs udev
MY_PV="${PV/beta/BETA}"
MY_PV="${MY_PV/rc/RC}"
MY_P=VirtualBox-${MY_PV}
SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
http://dev.gentoo.org/~polynomial-c/${PN}/patchsets/${PN}-4.3.10-patches-01.tar.xz"
S="${WORKDIR}/${MY_P}"
DESCRIPTION="Family of powerful x86 virtualization products for enterprise as well as home use"
HOMEPAGE="http://www.virtualbox.org/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+additions alsa doc extensions headless java pam pulseaudio +opengl python +qt4 +sdk vboxwebsrv vnc"
RDEPEND="!app-emulation/virtualbox-bin
~app-emulation/virtualbox-modules-${PV}
dev-libs/libIDL
>=dev-libs/libxslt-1.1.19
net-misc/curl
dev-libs/openssl
dev-libs/libxml2
media-libs/libpng
media-libs/libvpx
sys-libs/zlib
>=virtual/udev-171
!headless? (
qt4? (
dev-qt/qtgui:4
dev-qt/qtcore:4
opengl? ( dev-qt/qtopengl:4 )
x11-libs/libXinerama
)
opengl? ( virtual/opengl media-libs/freeglut )
x11-libs/libX11
x11-libs/libXcursor
x11-libs/libXext
x11-libs/libXmu
x11-libs/libXt
media-libs/libsdl:0[X,video]
)
vnc? ( >=net-libs/libvncserver-0.9.9 )
java? ( || ( virtual/jre:1.7 virtual/jre:1.6 ) )"
DEPEND="${RDEPEND}
>=dev-util/kbuild-0.1.9998_pre20131130
>=dev-lang/yasm-0.6.2
sys-devel/bin86
sys-power/iasl
pam? ( sys-libs/pam )
sys-libs/libcap
doc? (
dev-texlive/texlive-basic
dev-texlive/texlive-latex
dev-texlive/texlive-latexrecommended
dev-texlive/texlive-latexextra
dev-texlive/texlive-fontsrecommended
dev-texlive/texlive-fontsextra
)
java? ( || ( virtual/jdk:1.7 virtual/jdk:1.6 ) )
virtual/pkgconfig
alsa? ( >=media-libs/alsa-lib-1.0.13 )
!headless? ( x11-libs/libXinerama )
pulseaudio? ( media-sound/pulseaudio )
vboxwebsrv? ( net-libs/gsoap[-gnutls] )
${PYTHON_DEPS}"
PDEPEND="additions? ( ~app-emulation/virtualbox-additions-${PV} )
extensions? ( =app-emulation/virtualbox-extpack-oracle-${PV}* )"
QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so
usr/lib/virtualbox/VBoxSDL.so
usr/lib/virtualbox/VBoxSharedFolders.so
usr/lib/virtualbox/VBoxDD2.so
usr/lib/virtualbox/VBoxOGLrenderspu.so
usr/lib/virtualbox/VBoxPython.so
usr/lib/virtualbox/VBoxDD.so
usr/lib/virtualbox/VBoxDDU.so
usr/lib/virtualbox/VBoxREM64.so
usr/lib/virtualbox/VBoxSharedClipboard.so
usr/lib/virtualbox/VBoxHeadless.so
usr/lib/virtualbox/VBoxRT.so
usr/lib/virtualbox/VBoxREM.so
usr/lib/virtualbox/VBoxSettings.so
usr/lib/virtualbox/VBoxKeyboard.so
usr/lib/virtualbox/VBoxSharedCrOpenGL.so
usr/lib/virtualbox/VBoxVMM.so
usr/lib/virtualbox/VirtualBox.so
usr/lib/virtualbox/VBoxOGLhosterrorspu.so
usr/lib/virtualbox/components/VBoxC.so
usr/lib/virtualbox/components/VBoxSVCM.so
usr/lib/virtualbox/components/VBoxDDU.so
usr/lib/virtualbox/components/VBoxRT.so
usr/lib/virtualbox/components/VBoxREM.so
usr/lib/virtualbox/components/VBoxVMM.so
usr/lib/virtualbox/VBoxREM32.so
usr/lib/virtualbox/VBoxPython2_4.so
usr/lib/virtualbox/VBoxPython2_5.so
usr/lib/virtualbox/VBoxPython2_6.so
usr/lib/virtualbox/VBoxPython2_7.so
usr/lib/virtualbox/VBoxXPCOMC.so
usr/lib/virtualbox/VBoxOGLhostcrutil.so
usr/lib/virtualbox/VBoxNetDHCP.so
usr/lib/virtualbox/VBoxNetNAT.so"
REQUIRED_USE="
java? ( sdk )
python? (
( sdk )
)
vboxwebsrv? ( java )
${PYTHON_REQUIRED_USE}
"
pkg_setup() {
if ! use headless && ! use qt4 ; then
einfo "No USE=\"qt4\" selected, this build will not include"
einfo "any Qt frontend."
elif use headless && use qt4 ; then
einfo "You selected USE=\"headless qt4\", defaulting to"
einfo "USE=\"headless\", this build will not include any X11/Qt frontend."
fi
if ! use opengl ; then
einfo "No USE=\"opengl\" selected, this build will lack"
einfo "the OpenGL feature."
fi
if ! use python ; then
einfo "You have disabled the \"python\" USE flag. This will only"
einfo "disable the python bindings being installed."
fi
java-pkg-opt-2_pkg_setup
python-single-r1_pkg_setup
}
src_prepare() {
# Remove shipped binaries (kBuild,yasm), see bug #232775
rm -rf kBuild/bin tools
# Disable things unused or split into separate ebuilds
sed -e "s@MY_LIBDIR@$(get_libdir)@" \
"${FILESDIR}"/${PN}-4-localconfig > LocalConfig.kmk || die
# Respect LDFLAGS
sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
-i Config.kmk src/libs/xpcom18a4/Config.kmk || die
# Use PAM only when pam USE flag is enbaled (bug #376531)
if ! use pam ; then
elog "Disabling PAM removes the possibility to use the VRDP features."
sed -i 's@^.*VBOX_WITH_PAM@#VBOX_WITH_PAM@' Config.kmk || die
sed -i 's@\(.*/auth/Makefile.kmk.*\)@#\1@' \
src/VBox/HostServices/Makefile.kmk || die
fi
# add correct java path
if use java ; then
sed "s@/usr/lib/jvm/java-6-sun@$(java-config -O)@" \
-i "${S}"/Config.kmk || die
java-pkg-opt-2_src_prepare
fi
if ! gcc-specs-pie ; then
EPATCH_EXCLUDE="050_${PN}-4.3.4-nopie.patch"
fi
EPATCH_SUFFIX="patch" \
EPATCH_FORCE="yes" \
epatch "${WORKDIR}/patches"
epatch_user
}
src_configure() {
local myconf
use alsa || myconf+=" --disable-alsa"
use doc || myconf+=" --disable-docs"
use java || myconf+=" --disable-java"
use opengl || myconf+=" --disable-opengl"
use pulseaudio || myconf+=" --disable-pulse"
use python || myconf+=" --disable-python"
use vboxwebsrv && myconf+=" --enable-webservice"
use vnc && myconf+=" --enable-vnc"
if ! use headless ; then
use qt4 || myconf+=" --disable-qt4"
else
myconf+=" --build-headless --disable-opengl"
fi
if use amd64 && ! has_multilib_profile ; then
myconf+=" --disable-vmmraw"
fi
# not an autoconf script
./configure \
--with-gcc="$(tc-getCC)" \
--with-g++="$(tc-getCXX)" \
--disable-kmods \
--disable-dbus \
--disable-devmapper \
${myconf} \
|| die "configure failed"
}
src_compile() {
source ./env.sh
# Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
# and strip all flags
# strip-flags
MAKE="kmk" emake \
VBOX_BUILD_PUBLISHER=_Gentoo \
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}" \
VBOX_GCC_OPT="${CXXFLAGS}" \
TOOL_YASM_AS=yasm KBUILD_PATH="${S}/kBuild" \
KBUILD_VERBOSE=2 \
all
}
src_install() {
cd "${S}"/out/linux.${ARCH}/release/bin || die
# Create configuration files
insinto /etc/vbox
newins "${FILESDIR}/${PN}-4-config" vbox.cfg
# Set the right libdir
sed -i \
-e "s@MY_LIBDIR@$(get_libdir)@" \
"${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
# Symlink binaries to the shipped wrapper
exeinto /usr/$(get_libdir)/${PN}
newexe "${FILESDIR}/${PN}-ose-3-wrapper" "VBox"
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBox
fperms 0750 /usr/$(get_libdir)/${PN}/VBox
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxManage
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxVRDP
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxHeadless
dosym /usr/$(get_libdir)/${PN}/VBoxTunctl /usr/bin/VBoxTunctl
# Install binaries and libraries
insinto /usr/$(get_libdir)/${PN}
doins -r components
if use sdk ; then
doins -r sdk
fi
if use vboxwebsrv ; then
doins vboxwebsrv
fowners root:vboxusers /usr/$(get_libdir)/${PN}/vboxwebsrv
fperms 0750 /usr/$(get_libdir)/${PN}/vboxwebsrv
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/vboxwebsrv
newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
fi
local gcfiles="*gc"
if use amd64 && ! has_multilib_profile ; then
gcfiles=""
fi
for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP,NetNAT,ExtPackHelperApp} *so *r0 ${gcfiles} ; do
doins ${each}
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each}
fperms 0750 /usr/$(get_libdir)/${PN}/${each}
done
# VBoxNetAdpCtl and VBoxNetDHCP binaries need to be suid root in any case..
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetAdpCtl
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetDHCP
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetNAT
# VBoxSVC needs to be pax-marked (bug #403453)
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxSVC || die
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxManage || die
if ! use headless ; then
for each in VBox{SDL,Headless} ; do
doins ${each}
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each}
fperms 4750 /usr/$(get_libdir)/${PN}/${each}
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/${each}
done
if use opengl && use qt4 ; then
doins VBoxTestOGL
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxTestOGL
fperms 0750 /usr/$(get_libdir)/${PN}/VBoxTestOGL
fi
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxSDL
if use qt4 ; then
doins VirtualBox
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VirtualBox
fperms 4750 /usr/$(get_libdir)/${PN}/VirtualBox
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VirtualBox \
|| die
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VirtualBox
newmenu "${FILESDIR}"/${PN}-ose.desktop-2 ${PN}.desktop
fi
pushd "${S}"/src/VBox/Resources/OSE &>/dev/null || die
for size in 16 32 48 64 128 ; do
newicon -s ${size} ${PN}-${size}px.png ${PN}.png
done
newicon ${PN}-48px.png ${PN}.png
popd &>/dev/null || die
else
doins VBoxHeadless
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxHeadless
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxHeadless
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxHeadless || die
fi
insinto /usr/$(get_libdir)/${PN}
# Install EFI Firmware files (bug #320757)
pushd "${S}"/src/VBox/Devices/EFI/FirmwareBin &>/dev/null || die
for fwfile in VBoxEFI{32,64}.fd ; do
doins ${fwfile}
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${fwfile}
done
popd &>/dev/null || die
# New way of handling USB device nodes for VBox (bug #356215)
local udevdir="$(udev_get_udevdir)"
insinto ${udevdir}
doins VBoxCreateUSBNode.sh
fowners root:vboxusers ${udevdir}/VBoxCreateUSBNode.sh
fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
insinto ${udevdir}/rules.d
doins "${FILESDIR}"/10-virtualbox.rules
sed "s@%UDEVDIR%@${udevdir}@" \
-i "${D}"${udevdir}/rules.d/10-virtualbox.rules || die
insinto /usr/share/${PN}
if ! use headless && use qt4 ; then
doins -r nls
fi
# VRDPAuth only works with this (bug #351949)
dosym VBoxAuth.so /usr/$(get_libdir)/${PN}/VRDPAuth.so
# set an env-variable for 3rd party tools
echo -n "VBOX_APP_HOME=/usr/$(get_libdir)/${PN}" > "${T}/90virtualbox"
doenvd "${T}/90virtualbox"
if use java ; then
java-pkg_regjar "${D}/usr/$(get_libdir)/${PN}/sdk/bindings/xpcom/java/vboxjxpcom.jar"
java-pkg_regso "${D}/usr/$(get_libdir)/${PN}/libvboxjxpcom.so"
fi
}
pkg_postinst() {
fdo-mime_desktop_database_update
udevadm control --reload-rules && udevadm trigger --subsystem-match=usb
if ! use headless && use qt4 ; then
elog "To launch VirtualBox just type: \"VirtualBox\"."
fi
elog "You must be in the vboxusers group to use VirtualBox."
elog ""
elog "The latest user manual is available for download at:"
elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf"
elog ""
elog "For advanced networking setups you should emerge:"
elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
elog ""
elog "IMPORTANT!"
elog "If you upgrade from app-emulation/virtualbox-ose make sure to run"
elog "\"env-update\" as root and logout and relogin as the user you wish"
elog "to run ${PN} as."
elog ""
elog "Starting with version 4.0.0, ${PN} has USB-1 support."
elog "For USB-2 support, PXE-boot ability and VRDP support please emerge"
elog " app-emulation/virtualbox-extpack-oracle"
elog "package."
if [ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
elog ""
elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\""
elog "or else USB in ${PN} won't work."
fi
}
pkg_postrm() {
fdo-mime_desktop_database_update
}

View File

@ -1,402 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/virtualbox-4.3.10.ebuild,v 1.2 2014/03/27 12:31:16 polynomial-c Exp $
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit eutils fdo-mime flag-o-matic java-pkg-opt-2 linux-info multilib pax-utils python-single-r1 qt4-r2 toolchain-funcs udev
MY_PV="${PV/beta/BETA}"
MY_PV="${MY_PV/rc/RC}"
MY_P=VirtualBox-${MY_PV}
SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
http://dev.gentoo.org/~polynomial-c/${PN}/patchsets/${PN}-4.3.4-patches-01.tar.xz"
S="${WORKDIR}/${MY_P}"
DESCRIPTION="Family of powerful x86 virtualization products for enterprise as well as home use"
HOMEPAGE="http://www.virtualbox.org/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+additions alsa doc extensions headless java pam pulseaudio +opengl python +qt4 +sdk vboxwebsrv vnc"
RDEPEND="!app-emulation/virtualbox-bin
~app-emulation/virtualbox-modules-${PV}
dev-libs/libIDL
>=dev-libs/libxslt-1.1.19
net-misc/curl
dev-libs/openssl
dev-libs/libxml2
media-libs/libpng
media-libs/libvpx
sys-libs/zlib
>=virtual/udev-171
!headless? (
qt4? (
dev-qt/qtgui:4
dev-qt/qtcore:4
opengl? ( dev-qt/qtopengl:4 )
x11-libs/libXinerama
)
opengl? ( virtual/opengl media-libs/freeglut )
x11-libs/libX11
x11-libs/libXcursor
x11-libs/libXext
x11-libs/libXmu
x11-libs/libXt
media-libs/libsdl:0[X,video]
)
vnc? ( >=net-libs/libvncserver-0.9.9 )
java? ( || ( virtual/jre:1.7 virtual/jre:1.6 ) )"
DEPEND="${RDEPEND}
>=dev-util/kbuild-0.1.9998_pre20131130
>=dev-lang/yasm-0.6.2
sys-devel/bin86
sys-power/iasl
pam? ( sys-libs/pam )
sys-libs/libcap
doc? (
dev-texlive/texlive-basic
dev-texlive/texlive-latex
dev-texlive/texlive-latexrecommended
dev-texlive/texlive-latexextra
dev-texlive/texlive-fontsrecommended
dev-texlive/texlive-fontsextra
)
java? ( || ( virtual/jdk:1.7 virtual/jdk:1.6 ) )
virtual/pkgconfig
alsa? ( >=media-libs/alsa-lib-1.0.13 )
!headless? ( x11-libs/libXinerama )
pulseaudio? ( media-sound/pulseaudio )
vboxwebsrv? ( <net-libs/gsoap-2.8.13 )
${PYTHON_DEPS}"
PDEPEND="additions? ( ~app-emulation/virtualbox-additions-${PV} )
extensions? ( =app-emulation/virtualbox-extpack-oracle-${PV}* )"
QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so
usr/lib/virtualbox/VBoxSDL.so
usr/lib/virtualbox/VBoxSharedFolders.so
usr/lib/virtualbox/VBoxDD2.so
usr/lib/virtualbox/VBoxOGLrenderspu.so
usr/lib/virtualbox/VBoxPython.so
usr/lib/virtualbox/VBoxDD.so
usr/lib/virtualbox/VBoxDDU.so
usr/lib/virtualbox/VBoxREM64.so
usr/lib/virtualbox/VBoxSharedClipboard.so
usr/lib/virtualbox/VBoxHeadless.so
usr/lib/virtualbox/VBoxRT.so
usr/lib/virtualbox/VBoxREM.so
usr/lib/virtualbox/VBoxSettings.so
usr/lib/virtualbox/VBoxKeyboard.so
usr/lib/virtualbox/VBoxSharedCrOpenGL.so
usr/lib/virtualbox/VBoxVMM.so
usr/lib/virtualbox/VirtualBox.so
usr/lib/virtualbox/VBoxOGLhosterrorspu.so
usr/lib/virtualbox/components/VBoxC.so
usr/lib/virtualbox/components/VBoxSVCM.so
usr/lib/virtualbox/components/VBoxDDU.so
usr/lib/virtualbox/components/VBoxRT.so
usr/lib/virtualbox/components/VBoxREM.so
usr/lib/virtualbox/components/VBoxVMM.so
usr/lib/virtualbox/VBoxREM32.so
usr/lib/virtualbox/VBoxPython2_4.so
usr/lib/virtualbox/VBoxPython2_5.so
usr/lib/virtualbox/VBoxPython2_6.so
usr/lib/virtualbox/VBoxPython2_7.so
usr/lib/virtualbox/VBoxXPCOMC.so
usr/lib/virtualbox/VBoxOGLhostcrutil.so
usr/lib/virtualbox/VBoxNetDHCP.so
usr/lib/virtualbox/VBoxNetNAT.so"
REQUIRED_USE="
java? ( sdk )
python? (
( sdk )
)
vboxwebsrv? ( java )
${PYTHON_REQUIRED_USE}
"
pkg_setup() {
if ! use headless && ! use qt4 ; then
einfo "No USE=\"qt4\" selected, this build will not include"
einfo "any Qt frontend."
elif use headless && use qt4 ; then
einfo "You selected USE=\"headless qt4\", defaulting to"
einfo "USE=\"headless\", this build will not include any X11/Qt frontend."
fi
if ! use opengl ; then
einfo "No USE=\"opengl\" selected, this build will lack"
einfo "the OpenGL feature."
fi
if ! use python ; then
einfo "You have disabled the \"python\" USE flag. This will only"
einfo "disable the python bindings being installed."
fi
java-pkg-opt-2_pkg_setup
python-single-r1_pkg_setup
}
src_prepare() {
# Remove shipped binaries (kBuild,yasm), see bug #232775
rm -rf kBuild/bin tools
# Disable things unused or split into separate ebuilds
sed -e "s@MY_LIBDIR@$(get_libdir)@" \
"${FILESDIR}"/${PN}-4-localconfig > LocalConfig.kmk || die
# Respect LDFLAGS
sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
-i Config.kmk src/libs/xpcom18a4/Config.kmk || die
# Use PAM only when pam USE flag is enbaled (bug #376531)
if ! use pam ; then
elog "Disabling PAM removes the possibility to use the VRDP features."
sed -i 's@^.*VBOX_WITH_PAM@#VBOX_WITH_PAM@' Config.kmk || die
sed -i 's@\(.*/auth/Makefile.kmk.*\)@#\1@' \
src/VBox/HostServices/Makefile.kmk || die
fi
# add correct java path
if use java ; then
sed "s@/usr/lib/jvm/java-6-sun@$(java-config -O)@" \
-i "${S}"/Config.kmk || die
java-pkg-opt-2_src_prepare
fi
if ! gcc-specs-pie ; then
EPATCH_EXCLUDE="050_${PN}-4.3.4-nopie.patch"
fi
EPATCH_SUFFIX="patch" \
EPATCH_FORCE="yes" \
epatch "${WORKDIR}/patches"
epatch_user
}
src_configure() {
local myconf
use alsa || myconf+=" --disable-alsa"
use doc || myconf+=" --disable-docs"
use java || myconf+=" --disable-java"
use opengl || myconf+=" --disable-opengl"
use pulseaudio || myconf+=" --disable-pulse"
use python || myconf+=" --disable-python"
use vboxwebsrv && myconf+=" --enable-webservice"
use vnc && myconf+=" --enable-vnc"
if ! use headless ; then
use qt4 || myconf+=" --disable-qt4"
else
myconf+=" --build-headless --disable-opengl"
fi
if use amd64 && ! has_multilib_profile ; then
myconf+=" --disable-vmmraw"
fi
# not an autoconf script
./configure \
--with-gcc="$(tc-getCC)" \
--with-g++="$(tc-getCXX)" \
--disable-kmods \
--disable-dbus \
--disable-devmapper \
${myconf} \
|| die "configure failed"
}
src_compile() {
source ./env.sh
# Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
# and strip all flags
# strip-flags
MAKE="kmk" emake \
VBOX_BUILD_PUBLISHER=_Gentoo \
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}" \
VBOX_GCC_OPT="${CXXFLAGS}" \
TOOL_YASM_AS=yasm KBUILD_PATH="${S}/kBuild" \
KBUILD_VERBOSE=2 \
all
}
src_install() {
cd "${S}"/out/linux.${ARCH}/release/bin || die
# Create configuration files
insinto /etc/vbox
newins "${FILESDIR}/${PN}-4-config" vbox.cfg
# Set the right libdir
sed -i \
-e "s@MY_LIBDIR@$(get_libdir)@" \
"${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
# Symlink binaries to the shipped wrapper
exeinto /usr/$(get_libdir)/${PN}
newexe "${FILESDIR}/${PN}-ose-3-wrapper" "VBox"
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBox
fperms 0750 /usr/$(get_libdir)/${PN}/VBox
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxManage
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxVRDP
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxHeadless
dosym /usr/$(get_libdir)/${PN}/VBoxTunctl /usr/bin/VBoxTunctl
# Install binaries and libraries
insinto /usr/$(get_libdir)/${PN}
doins -r components
if use sdk ; then
doins -r sdk
fi
if use vboxwebsrv ; then
doins vboxwebsrv
fowners root:vboxusers /usr/$(get_libdir)/${PN}/vboxwebsrv
fperms 0750 /usr/$(get_libdir)/${PN}/vboxwebsrv
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/vboxwebsrv
newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
fi
local gcfiles="*gc"
if use amd64 && ! has_multilib_profile ; then
gcfiles=""
fi
for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP,NetNAT,ExtPackHelperApp} *so *r0 ${gcfiles} ; do
doins ${each}
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each}
fperms 0750 /usr/$(get_libdir)/${PN}/${each}
done
# VBoxNetAdpCtl and VBoxNetDHCP binaries need to be suid root in any case..
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetAdpCtl
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetDHCP
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetNAT
# VBoxSVC needs to be pax-marked (bug #403453)
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxSVC || die
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxManage || die
if ! use headless ; then
for each in VBox{SDL,Headless} ; do
doins ${each}
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each}
fperms 4750 /usr/$(get_libdir)/${PN}/${each}
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/${each}
done
if use opengl && use qt4 ; then
doins VBoxTestOGL
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxTestOGL
fperms 0750 /usr/$(get_libdir)/${PN}/VBoxTestOGL
fi
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxSDL
if use qt4 ; then
doins VirtualBox
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VirtualBox
fperms 4750 /usr/$(get_libdir)/${PN}/VirtualBox
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VirtualBox \
|| die
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VirtualBox
newmenu "${FILESDIR}"/${PN}-ose.desktop-2 ${PN}.desktop
fi
pushd "${S}"/src/VBox/Resources/OSE &>/dev/null || die
for size in 16 32 48 64 128 ; do
newicon -s ${size} ${PN}-${size}px.png ${PN}.png
done
newicon ${PN}-48px.png ${PN}.png
popd &>/dev/null || die
else
doins VBoxHeadless
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxHeadless
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxHeadless
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxHeadless || die
fi
insinto /usr/$(get_libdir)/${PN}
# Install EFI Firmware files (bug #320757)
pushd "${S}"/src/VBox/Devices/EFI/FirmwareBin &>/dev/null || die
for fwfile in VBoxEFI{32,64}.fd ; do
doins ${fwfile}
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${fwfile}
done
popd &>/dev/null || die
# New way of handling USB device nodes for VBox (bug #356215)
local udevdir="$(udev_get_udevdir)"
insinto ${udevdir}
doins VBoxCreateUSBNode.sh
fowners root:vboxusers ${udevdir}/VBoxCreateUSBNode.sh
fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
insinto ${udevdir}/rules.d
doins "${FILESDIR}"/10-virtualbox.rules
sed "s@%UDEVDIR%@${udevdir}@" \
-i "${D}"${udevdir}/rules.d/10-virtualbox.rules || die
insinto /usr/share/${PN}
if ! use headless && use qt4 ; then
doins -r nls
fi
# VRDPAuth only works with this (bug #351949)
dosym VBoxAuth.so /usr/$(get_libdir)/${PN}/VRDPAuth.so
# set an env-variable for 3rd party tools
echo -n "VBOX_APP_HOME=/usr/$(get_libdir)/${PN}" > "${T}/90virtualbox"
doenvd "${T}/90virtualbox"
if use java ; then
java-pkg_regjar "${D}/usr/$(get_libdir)/${PN}/sdk/bindings/xpcom/java/vboxjxpcom.jar"
java-pkg_regso "${D}/usr/$(get_libdir)/${PN}/libvboxjxpcom.so"
fi
}
pkg_postinst() {
fdo-mime_desktop_database_update
udevadm control --reload-rules && udevadm trigger --subsystem-match=usb
if ! use headless && use qt4 ; then
elog "To launch VirtualBox just type: \"VirtualBox\"."
fi
elog "You must be in the vboxusers group to use VirtualBox."
elog ""
elog "The latest user manual is available for download at:"
elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf"
elog ""
elog "For advanced networking setups you should emerge:"
elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
elog ""
elog "IMPORTANT!"
elog "If you upgrade from app-emulation/virtualbox-ose make sure to run"
elog "\"env-update\" as root and logout and relogin as the user you wish"
elog "to run ${PN} as."
elog ""
elog "Starting with version 4.0.0, ${PN} has USB-1 support."
elog "For USB-2 support, PXE-boot ability and VRDP support please emerge"
elog " app-emulation/virtualbox-extpack-oracle"
elog "package."
if [ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
elog ""
elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\""
elog "or else USB in ${PN} won't work."
fi
}
pkg_postrm() {
fdo-mime_desktop_database_update
}

View File

@ -1,402 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/virtualbox-4.3.12.ebuild,v 1.1 2014/05/17 09:34:49 polynomial-c Exp $
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit eutils fdo-mime flag-o-matic java-pkg-opt-2 linux-info multilib pax-utils python-single-r1 qt4-r2 toolchain-funcs udev
MY_PV="${PV/beta/BETA}"
MY_PV="${MY_PV/rc/RC}"
MY_P=VirtualBox-${MY_PV}
SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
http://dev.gentoo.org/~polynomial-c/${PN}/patchsets/${PN}-4.3.10-patches-01.tar.xz"
S="${WORKDIR}/${MY_P}"
DESCRIPTION="Family of powerful x86 virtualization products for enterprise as well as home use"
HOMEPAGE="http://www.virtualbox.org/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+additions alsa doc extensions headless java pam pulseaudio +opengl python +qt4 +sdk vboxwebsrv vnc"
RDEPEND="!app-emulation/virtualbox-bin
~app-emulation/virtualbox-modules-${PV}
dev-libs/libIDL
>=dev-libs/libxslt-1.1.19
net-misc/curl
dev-libs/openssl
dev-libs/libxml2
media-libs/libpng
media-libs/libvpx
sys-libs/zlib
>=virtual/udev-171
!headless? (
qt4? (
dev-qt/qtgui:4
dev-qt/qtcore:4
opengl? ( dev-qt/qtopengl:4 )
x11-libs/libXinerama
)
opengl? ( virtual/opengl media-libs/freeglut )
x11-libs/libX11
x11-libs/libXcursor
x11-libs/libXext
x11-libs/libXmu
x11-libs/libXt
media-libs/libsdl:0[X,video]
)
vnc? ( >=net-libs/libvncserver-0.9.9 )
java? ( || ( virtual/jre:1.7 virtual/jre:1.6 ) )"
DEPEND="${RDEPEND}
>=dev-util/kbuild-0.1.9998_pre20131130
>=dev-lang/yasm-0.6.2
sys-devel/bin86
sys-power/iasl
pam? ( sys-libs/pam )
sys-libs/libcap
doc? (
dev-texlive/texlive-basic
dev-texlive/texlive-latex
dev-texlive/texlive-latexrecommended
dev-texlive/texlive-latexextra
dev-texlive/texlive-fontsrecommended
dev-texlive/texlive-fontsextra
)
java? ( || ( virtual/jdk:1.7 virtual/jdk:1.6 ) )
virtual/pkgconfig
alsa? ( >=media-libs/alsa-lib-1.0.13 )
!headless? ( x11-libs/libXinerama )
pulseaudio? ( media-sound/pulseaudio )
vboxwebsrv? ( net-libs/gsoap[-gnutls] )
${PYTHON_DEPS}"
PDEPEND="additions? ( ~app-emulation/virtualbox-additions-${PV} )
extensions? ( =app-emulation/virtualbox-extpack-oracle-${PV}* )"
QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so
usr/lib/virtualbox/VBoxSDL.so
usr/lib/virtualbox/VBoxSharedFolders.so
usr/lib/virtualbox/VBoxDD2.so
usr/lib/virtualbox/VBoxOGLrenderspu.so
usr/lib/virtualbox/VBoxPython.so
usr/lib/virtualbox/VBoxDD.so
usr/lib/virtualbox/VBoxDDU.so
usr/lib/virtualbox/VBoxREM64.so
usr/lib/virtualbox/VBoxSharedClipboard.so
usr/lib/virtualbox/VBoxHeadless.so
usr/lib/virtualbox/VBoxRT.so
usr/lib/virtualbox/VBoxREM.so
usr/lib/virtualbox/VBoxSettings.so
usr/lib/virtualbox/VBoxKeyboard.so
usr/lib/virtualbox/VBoxSharedCrOpenGL.so
usr/lib/virtualbox/VBoxVMM.so
usr/lib/virtualbox/VirtualBox.so
usr/lib/virtualbox/VBoxOGLhosterrorspu.so
usr/lib/virtualbox/components/VBoxC.so
usr/lib/virtualbox/components/VBoxSVCM.so
usr/lib/virtualbox/components/VBoxDDU.so
usr/lib/virtualbox/components/VBoxRT.so
usr/lib/virtualbox/components/VBoxREM.so
usr/lib/virtualbox/components/VBoxVMM.so
usr/lib/virtualbox/VBoxREM32.so
usr/lib/virtualbox/VBoxPython2_4.so
usr/lib/virtualbox/VBoxPython2_5.so
usr/lib/virtualbox/VBoxPython2_6.so
usr/lib/virtualbox/VBoxPython2_7.so
usr/lib/virtualbox/VBoxXPCOMC.so
usr/lib/virtualbox/VBoxOGLhostcrutil.so
usr/lib/virtualbox/VBoxNetDHCP.so
usr/lib/virtualbox/VBoxNetNAT.so"
REQUIRED_USE="
java? ( sdk )
python? (
( sdk )
)
vboxwebsrv? ( java )
${PYTHON_REQUIRED_USE}
"
pkg_setup() {
if ! use headless && ! use qt4 ; then
einfo "No USE=\"qt4\" selected, this build will not include"
einfo "any Qt frontend."
elif use headless && use qt4 ; then
einfo "You selected USE=\"headless qt4\", defaulting to"
einfo "USE=\"headless\", this build will not include any X11/Qt frontend."
fi
if ! use opengl ; then
einfo "No USE=\"opengl\" selected, this build will lack"
einfo "the OpenGL feature."
fi
if ! use python ; then
einfo "You have disabled the \"python\" USE flag. This will only"
einfo "disable the python bindings being installed."
fi
java-pkg-opt-2_pkg_setup
python-single-r1_pkg_setup
}
src_prepare() {
# Remove shipped binaries (kBuild,yasm), see bug #232775
rm -rf kBuild/bin tools
# Disable things unused or split into separate ebuilds
sed -e "s@MY_LIBDIR@$(get_libdir)@" \
"${FILESDIR}"/${PN}-4-localconfig > LocalConfig.kmk || die
# Respect LDFLAGS
sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
-i Config.kmk src/libs/xpcom18a4/Config.kmk || die
# Use PAM only when pam USE flag is enbaled (bug #376531)
if ! use pam ; then
elog "Disabling PAM removes the possibility to use the VRDP features."
sed -i 's@^.*VBOX_WITH_PAM@#VBOX_WITH_PAM@' Config.kmk || die
sed -i 's@\(.*/auth/Makefile.kmk.*\)@#\1@' \
src/VBox/HostServices/Makefile.kmk || die
fi
# add correct java path
if use java ; then
sed "s@/usr/lib/jvm/java-6-sun@$(java-config -O)@" \
-i "${S}"/Config.kmk || die
java-pkg-opt-2_src_prepare
fi
if ! gcc-specs-pie ; then
EPATCH_EXCLUDE="050_${PN}-4.3.4-nopie.patch"
fi
EPATCH_SUFFIX="patch" \
EPATCH_FORCE="yes" \
epatch "${WORKDIR}/patches"
epatch_user
}
src_configure() {
local myconf
use alsa || myconf+=" --disable-alsa"
use doc || myconf+=" --disable-docs"
use java || myconf+=" --disable-java"
use opengl || myconf+=" --disable-opengl"
use pulseaudio || myconf+=" --disable-pulse"
use python || myconf+=" --disable-python"
use vboxwebsrv && myconf+=" --enable-webservice"
use vnc && myconf+=" --enable-vnc"
if ! use headless ; then
use qt4 || myconf+=" --disable-qt4"
else
myconf+=" --build-headless --disable-opengl"
fi
if use amd64 && ! has_multilib_profile ; then
myconf+=" --disable-vmmraw"
fi
# not an autoconf script
./configure \
--with-gcc="$(tc-getCC)" \
--with-g++="$(tc-getCXX)" \
--disable-kmods \
--disable-dbus \
--disable-devmapper \
${myconf} \
|| die "configure failed"
}
src_compile() {
source ./env.sh
# Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
# and strip all flags
# strip-flags
MAKE="kmk" emake \
VBOX_BUILD_PUBLISHER=_Gentoo \
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}" \
VBOX_GCC_OPT="${CXXFLAGS}" \
TOOL_YASM_AS=yasm KBUILD_PATH="${S}/kBuild" \
KBUILD_VERBOSE=2 \
all
}
src_install() {
cd "${S}"/out/linux.${ARCH}/release/bin || die
# Create configuration files
insinto /etc/vbox
newins "${FILESDIR}/${PN}-4-config" vbox.cfg
# Set the right libdir
sed -i \
-e "s@MY_LIBDIR@$(get_libdir)@" \
"${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
# Symlink binaries to the shipped wrapper
exeinto /usr/$(get_libdir)/${PN}
newexe "${FILESDIR}/${PN}-ose-3-wrapper" "VBox"
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBox
fperms 0750 /usr/$(get_libdir)/${PN}/VBox
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxManage
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxVRDP
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxHeadless
dosym /usr/$(get_libdir)/${PN}/VBoxTunctl /usr/bin/VBoxTunctl
# Install binaries and libraries
insinto /usr/$(get_libdir)/${PN}
doins -r components
if use sdk ; then
doins -r sdk
fi
if use vboxwebsrv ; then
doins vboxwebsrv
fowners root:vboxusers /usr/$(get_libdir)/${PN}/vboxwebsrv
fperms 0750 /usr/$(get_libdir)/${PN}/vboxwebsrv
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/vboxwebsrv
newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
fi
local gcfiles="*gc"
if use amd64 && ! has_multilib_profile ; then
gcfiles=""
fi
for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP,NetNAT,ExtPackHelperApp} *so *r0 ${gcfiles} ; do
doins ${each}
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each}
fperms 0750 /usr/$(get_libdir)/${PN}/${each}
done
# VBoxNetAdpCtl and VBoxNetDHCP binaries need to be suid root in any case..
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetAdpCtl
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetDHCP
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxNetNAT
# VBoxSVC needs to be pax-marked (bug #403453)
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxSVC || die
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxManage || die
if ! use headless ; then
for each in VBox{SDL,Headless} ; do
doins ${each}
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each}
fperms 4750 /usr/$(get_libdir)/${PN}/${each}
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/${each}
done
if use opengl && use qt4 ; then
doins VBoxTestOGL
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxTestOGL
fperms 0750 /usr/$(get_libdir)/${PN}/VBoxTestOGL
fi
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxSDL
if use qt4 ; then
doins VirtualBox
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VirtualBox
fperms 4750 /usr/$(get_libdir)/${PN}/VirtualBox
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VirtualBox \
|| die
dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VirtualBox
newmenu "${FILESDIR}"/${PN}-ose.desktop-2 ${PN}.desktop
fi
pushd "${S}"/src/VBox/Resources/OSE &>/dev/null || die
for size in 16 32 48 64 128 ; do
newicon -s ${size} ${PN}-${size}px.png ${PN}.png
done
newicon ${PN}-48px.png ${PN}.png
popd &>/dev/null || die
else
doins VBoxHeadless
fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxHeadless
fperms 4750 /usr/$(get_libdir)/${PN}/VBoxHeadless
pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxHeadless || die
fi
insinto /usr/$(get_libdir)/${PN}
# Install EFI Firmware files (bug #320757)
pushd "${S}"/src/VBox/Devices/EFI/FirmwareBin &>/dev/null || die
for fwfile in VBoxEFI{32,64}.fd ; do
doins ${fwfile}
fowners root:vboxusers /usr/$(get_libdir)/${PN}/${fwfile}
done
popd &>/dev/null || die
# New way of handling USB device nodes for VBox (bug #356215)
local udevdir="$(udev_get_udevdir)"
insinto ${udevdir}
doins VBoxCreateUSBNode.sh
fowners root:vboxusers ${udevdir}/VBoxCreateUSBNode.sh
fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
insinto ${udevdir}/rules.d
doins "${FILESDIR}"/10-virtualbox.rules
sed "s@%UDEVDIR%@${udevdir}@" \
-i "${D}"${udevdir}/rules.d/10-virtualbox.rules || die
insinto /usr/share/${PN}
if ! use headless && use qt4 ; then
doins -r nls
fi
# VRDPAuth only works with this (bug #351949)
dosym VBoxAuth.so /usr/$(get_libdir)/${PN}/VRDPAuth.so
# set an env-variable for 3rd party tools
echo -n "VBOX_APP_HOME=/usr/$(get_libdir)/${PN}" > "${T}/90virtualbox"
doenvd "${T}/90virtualbox"
if use java ; then
java-pkg_regjar "${D}/usr/$(get_libdir)/${PN}/sdk/bindings/xpcom/java/vboxjxpcom.jar"
java-pkg_regso "${D}/usr/$(get_libdir)/${PN}/libvboxjxpcom.so"
fi
}
pkg_postinst() {
fdo-mime_desktop_database_update
udevadm control --reload-rules && udevadm trigger --subsystem-match=usb
if ! use headless && use qt4 ; then
elog "To launch VirtualBox just type: \"VirtualBox\"."
fi
elog "You must be in the vboxusers group to use VirtualBox."
elog ""
elog "The latest user manual is available for download at:"
elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf"
elog ""
elog "For advanced networking setups you should emerge:"
elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
elog ""
elog "IMPORTANT!"
elog "If you upgrade from app-emulation/virtualbox-ose make sure to run"
elog "\"env-update\" as root and logout and relogin as the user you wish"
elog "to run ${PN} as."
elog ""
elog "Starting with version 4.0.0, ${PN} has USB-1 support."
elog "For USB-2 support, PXE-boot ability and VRDP support please emerge"
elog " app-emulation/virtualbox-extpack-oracle"
elog "package."
if [ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
elog ""
elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\""
elog "or else USB in ${PN} won't work."
fi
}
pkg_postrm() {
fdo-mime_desktop_database_update
}

View File

@ -1,7 +0,0 @@
DIST wine-1.7.21.tar.bz2 21635330 SHA256 a14723104135c21414c61e146144a2c527430057255f8c35a3a7d354e68b9401 SHA512 73db3256d04c681ea7a4524767f9f93c24a4cc96aa901c6fdfd700c7e8968cdb127a110df56f10423cac90aadc783ceafcd0dc571e36ea096c1de03c619164d8 WHIRLPOOL 32bcf10f8665dab43339e79240b534f3fa29087787acd752553b4b717f6c26f8e98d36185f61e928e2c5ef9a3663b9eac7ec42cd9898800ba12efab74c78634c
DIST wine-compholio-daily-1.7.21.tar.gz 883833 SHA256 eda345e48ca4b1ff8c191703b3d853fab39527543e96e41bbe0f253b21b9ab68 SHA512 96dea0b5e8d448ef6e54497c222c4c5b5ab3ed727dececfaf1af11f9695749fe53cf52c9f5ecdc9b454ed0fc01a30d0ebae3847bd99e527b99c63fa4942380e8 WHIRLPOOL 3a837e6f0e399db889c8428e01fd52d78dae002f212c570ca1dfa6841dd33a89214913977a2f280fd6363c8a21d27973e20c43f481bfbc02cd7882a9d2d79bc7
DIST wine-gentoo-2013.06.24.tar.bz2 85442 SHA256 bfbf6b25e98f717320de2ede467e3628fbc749d936b8449f8477c9dc6f41e04b SHA512 b6819889314f6a6ea16c1332f4b177c43623116763969c31b23b61754cd304dd085f5d3eafbe847159331eb97dddd9b4c10699430129ea4a71da418c1fe175f0 WHIRLPOOL 227e0ac6569736d4ad5813cef49f775dae956f4fc9255de95753d5d3cba1bf6cf3db31d23d3702bb54d2e60c5a6f779b602f0efb2096e4c827c924565b273d00
DIST wine-mono-4.5.2.msi 52502528 SHA256 d9124edb41ba4418af10eba519dafb25ab4338c567d25ce0eb4ce1e1b4d7eaad SHA512 73c907f63b73836d5afd0753197358aaea43a74a47800f929ef0627112298256f1fa46d1b9ff297b117468d953cdeab21fb5962db13c5debbcb71004462df609 WHIRLPOOL 18d3544c6753c5a01917bfc1b694f31ce45213108527f13317ec0bb8b2d2339ce41800534967e067cd15cd186ef9e186a5d3252275e443dfa1a6ae3641d4d17c
DIST wine_gecko-2.24-x86.msi 22373888 SHA256 6e38acae87ea66e2c1e8f2f0afe88f89eed3e6e0b431cd3da38dea814b71202c SHA512 f158d28ca09bc900a2680892e7ac10770e06050a9251e1ec3a953fee0bf9b1c326e166f92fb88a4648297b6587c91a5ef5af35f267bb2ba5f679da4c8fdb6898 WHIRLPOOL bbe7a2572d89dc5e0347ba11b2014bac79fc4427d7551655313a46b147a79c1607b7f46596877c459ddaa0e202337fb3d217429ddd6a4df49ee33b373a788487
DIST wine_gecko-2.24-x86_64.msi 23608320 SHA256 47557da68bcb2aedaebb93af73275aac96ba23e896bd98f25f2acbfd216d9cc8 SHA512 45ce0dcf42c3e2fe2198092812242e3467b19db4a4946e0b1a2d6327fd48aa936fb85cc1930bace6eaba0c61bff3a6536767ba0a91a0f085f307d1bddd171f0c WHIRLPOOL b6ba7c784d3a79d7afc11f0e12f0372b52b9f194eedfd083abed36a461e7301d2dd936be3be12619364f6ac5aae9cfbfb7fc47141bff92b62826f209365210ec
DIST winepulse-patches-1.7.21.tar.bz2 52679 SHA256 38daf95ea99cf831c56634e1dd4a4ea5fa4c11f570dfbddff06ceb7cd05e7303 SHA512 8feb729461a0e9791eeae11bd354407bdb389aefd1d30454781cd56072deeb507dccf5a825e580194d1a26c2c83b631d38967011c5360c46340dc3ceb7c0096d WHIRLPOOL e5cd496a7a66036825cff73dcdb76d787948b05d604b26042b024f7c9e991f4ea61efbd41a53fe667bd023e04cd5763f806166ab3aa9de757105ee3fbe6f65e8

View File

@ -1,55 +0,0 @@
http://bugs.gentoo.org/260726
--- wine-1.1.15/tools/winegcc/winegcc.c
+++ wine-1.1.15/tools/winegcc/winegcc.c
@@ -215,10 +215,13 @@
strarray* files;
};
+#undef FORCE_POINTER_SIZE
#ifdef __i386__
static const enum target_cpu build_cpu = CPU_x86;
+#define FORCE_POINTER_SIZE
#elif defined(__x86_64__)
static const enum target_cpu build_cpu = CPU_x86_64;
+#define FORCE_POINTER_SIZE
#elif defined(__sparc__)
static const enum target_cpu build_cpu = CPU_SPARC;
#elif defined(__ALPHA__)
@@ -968,6 +971,9 @@
opts.linker_args = strarray_alloc();
opts.compiler_args = strarray_alloc();
opts.winebuild_args = strarray_alloc();
+#ifdef FORCE_POINTER_SIZE
+ opts.force_pointer_size = sizeof(size_t);
+#endif
/* determine the processor type */
if (strendswith(argv[0], "winecpp")) opts.processor = proc_cpp;
--- wine-1.1.15/tools/winebuild/main.c
+++ wine-1.1.15/tools/winebuild/main.c
@@ -50,10 +50,13 @@
int link_ext_symbols = 0;
int force_pointer_size = 0;
+#undef FORCE_POINTER_SIZE
#ifdef __i386__
enum target_cpu target_cpu = CPU_x86;
+#define FORCE_POINTER_SIZE
#elif defined(__x86_64__)
enum target_cpu target_cpu = CPU_x86_64;
+#define FORCE_POINTER_SIZE
#elif defined(__sparc__)
enum target_cpu target_cpu = CPU_SPARC;
#elif defined(__ALPHA__)
@@ -574,6 +577,10 @@
signal( SIGTERM, exit_on_signal );
signal( SIGINT, exit_on_signal );
+#ifdef FORCE_POINTER_SIZE
+ force_pointer_size = sizeof(size_t);
+#endif
+
output_file = stdout;
argv = parse_options( argc, argv, spec );

View File

@ -1,574 +0,0 @@
From 26603f25f73142a45b5b964bb9bb2e59bc0908d4 Mon Sep 17 00:00:00 2001
From: Alexandre Julliard <julliard@winehq.org>
Date: Thu, 24 Feb 2011 13:11:53 +0100
Subject: [PATCH] msxml3: Include the system libxml headers before the Windows
headers.
[Alexandre Rostovtsev <tetromino@gentoo.org>: backport to wine-1.2.3]
---
dlls/msxml3/attribute.c | 6 ++++++
dlls/msxml3/bsc.c | 6 ++++++
dlls/msxml3/cdata.c | 5 +++++
dlls/msxml3/comment.c | 5 +++++
dlls/msxml3/dispex.c | 5 +++++
dlls/msxml3/docfrag.c | 5 +++++
dlls/msxml3/domdoc.c | 11 +++++++++--
dlls/msxml3/domimpl.c | 5 +++++
dlls/msxml3/element.c | 5 +++++
dlls/msxml3/entityref.c | 5 +++++
dlls/msxml3/factory.c | 5 +++++
dlls/msxml3/httprequest.c | 6 ++++++
dlls/msxml3/main.c | 15 +++++++++++++++
dlls/msxml3/msxml_private.h | 23 -----------------------
dlls/msxml3/node.c | 31 +++++++++++++++++++++++++++----
dlls/msxml3/nodelist.c | 5 +++++
dlls/msxml3/nodemap.c | 5 +++++
dlls/msxml3/parseerror.c | 5 +++++
dlls/msxml3/pi.c | 5 +++++
dlls/msxml3/queryresult.c | 9 +++++++--
dlls/msxml3/regsvr.c | 4 ++++
dlls/msxml3/saxreader.c | 10 +++++++---
dlls/msxml3/schema.c | 12 ++++++++++++
dlls/msxml3/text.c | 5 +++++
dlls/msxml3/xmldoc.c | 5 +++++
dlls/msxml3/xmlelem.c | 5 +++++
26 files changed, 174 insertions(+), 34 deletions(-)
diff --git a/dlls/msxml3/attribute.c b/dlls/msxml3/attribute.c
index d78fa47..3df93d6 100644
--- a/dlls/msxml3/attribute.c
+++ b/dlls/msxml3/attribute.c
@@ -23,6 +23,12 @@
#include "config.h"
#include <stdarg.h>
+#ifdef HAVE_LIBXML2
+# include <libxml/parser.h>
+# include <libxml/xmlerror.h>
+# include <libxml/HTMLtree.h>
+#endif
+
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
diff --git a/dlls/msxml3/bsc.c b/dlls/msxml3/bsc.c
index b24e04c..01a09a5 100644
--- a/dlls/msxml3/bsc.c
+++ b/dlls/msxml3/bsc.c
@@ -23,6 +23,12 @@
#include <stdarg.h>
#include <assert.h>
+#ifdef HAVE_LIBXML2
+# include <libxml/parser.h>
+# include <libxml/xmlerror.h>
+# include <libxml/HTMLtree.h>
+#endif
+
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
diff --git a/dlls/msxml3/cdata.c b/dlls/msxml3/cdata.c
index 3fba66c..caf8cd8 100644
--- a/dlls/msxml3/cdata.c
+++ b/dlls/msxml3/cdata.c
@@ -23,6 +23,11 @@
#include "config.h"
#include <stdarg.h>
+#ifdef HAVE_LIBXML2
+# include <libxml/parser.h>
+# include <libxml/xmlerror.h>
+#endif
+
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
diff --git a/dlls/msxml3/comment.c b/dlls/msxml3/comment.c
index e74de07..1cabfa3 100644
--- a/dlls/msxml3/comment.c
+++ b/dlls/msxml3/comment.c
@@ -23,6 +23,11 @@
#include "config.h"
#include <stdarg.h>
+#ifdef HAVE_LIBXML2
+# include <libxml/parser.h>
+# include <libxml/xmlerror.h>
+#endif
+
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
diff --git a/dlls/msxml3/dispex.c b/dlls/msxml3/dispex.c
index 09b71fe..6b01b15 100644
--- a/dlls/msxml3/dispex.c
+++ b/dlls/msxml3/dispex.c
@@ -22,6 +22,11 @@
#include <stdarg.h>
#include <assert.h>
+#ifdef HAVE_LIBXML2
+# include <libxml/parser.h>
+# include <libxml/xmlerror.h>
+#endif
+
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
diff --git a/dlls/msxml3/docfrag.c b/dlls/msxml3/docfrag.c
index fff3f62..bebd252 100644
--- a/dlls/msxml3/docfrag.c
+++ b/dlls/msxml3/docfrag.c
@@ -23,6 +23,11 @@
#include "config.h"
#include <stdarg.h>
+#ifdef HAVE_LIBXML2
+# include <libxml/parser.h>
+# include <libxml/xmlerror.h>
+#endif
+
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
diff --git a/dlls/msxml3/domdoc.c b/dlls/msxml3/domdoc.c
index 0007503..e6a61e4 100644
--- a/dlls/msxml3/domdoc.c
+++ b/dlls/msxml3/domdoc.c
@@ -25,6 +25,15 @@
#include <stdarg.h>
#include <assert.h>
+#ifdef HAVE_LIBXML2
+# include <libxml/parser.h>
+# include <libxml/xmlerror.h>
+# include <libxml/xpathInternals.h>
+# include <libxml/xmlsave.h>
+# include <libxml/SAX2.h>
+# include <libxml/parserInternals.h>
+#endif
+
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
@@ -47,8 +56,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(msxml);
#ifdef HAVE_LIBXML2
-#include <libxml/xmlsave.h>
-
/* not defined in older versions */
#define XML_SAVE_FORMAT 1
#define XML_SAVE_NO_DECL 2
diff --git a/dlls/msxml3/domimpl.c b/dlls/msxml3/domimpl.c
index dd518a1..c6794ac 100644
--- a/dlls/msxml3/domimpl.c
+++ b/dlls/msxml3/domimpl.c
@@ -23,6 +23,11 @@
#include "config.h"
#include <stdarg.h>
+#ifdef HAVE_LIBXML2
+# include <libxml/parser.h>
+# include <libxml/xmlerror.h>
+#endif
+
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
diff --git a/dlls/msxml3/element.c b/dlls/msxml3/element.c
index 617c008..1b5c693 100644
--- a/dlls/msxml3/element.c
+++ b/dlls/msxml3/element.c
@@ -23,6 +23,11 @@
#include "config.h"
#include <stdarg.h>
+#ifdef HAVE_LIBXML2
+# include <libxml/parser.h>
+# include <libxml/xmlerror.h>
+#endif
+
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
diff --git a/dlls/msxml3/entityref.c b/dlls/msxml3/entityref.c
index db46193..1baea6e 100644
--- a/dlls/msxml3/entityref.c
+++ b/dlls/msxml3/entityref.c
@@ -23,6 +23,11 @@
#include "config.h"
#include <stdarg.h>
+#ifdef HAVE_LIBXML2
+# include <libxml/parser.h>
+# include <libxml/xmlerror.h>
+#endif
+
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
diff --git a/dlls/msxml3/factory.c b/dlls/msxml3/factory.c
index 3fd229c..45df9f0 100644
--- a/dlls/msxml3/factory.c
+++ b/dlls/msxml3/factory.c
@@ -24,6 +24,11 @@
#include "config.h"
#include <stdarg.h>
+#ifdef HAVE_LIBXML2
+# include <libxml/parser.h>
+# include <libxml/xmlerror.h>
+#endif
+
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
diff --git a/dlls/msxml3/httprequest.c b/dlls/msxml3/httprequest.c
index 4585484..be1a5f7 100644
--- a/dlls/msxml3/httprequest.c
+++ b/dlls/msxml3/httprequest.c
@@ -22,6 +22,12 @@
#include "config.h"
#include <stdarg.h>
+#ifdef HAVE_LIBXML2
+# include <libxml/parser.h>
+# include <libxml/xmlerror.h>
+# include <libxml/encoding.h>
+#endif
+
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
diff --git a/dlls/msxml3/main.c b/dlls/msxml3/main.c
index 60b0cbd..47a89b1 100644
--- a/dlls/msxml3/main.c
+++ b/dlls/msxml3/main.c
@@ -25,6 +25,21 @@
#define COBJMACROS
#include <stdarg.h>
+#ifdef HAVE_LIBXML2
+# include <libxml/parser.h>
+# include <libxml/xmlerror.h>
+# ifdef SONAME_LIBXSLT
+# ifdef HAVE_LIBXSLT_PATTERN_H
+# include <libxslt/pattern.h>
+# endif
+# ifdef HAVE_LIBXSLT_TRANSFORM_H
+# include <libxslt/transform.h>
+# endif
+# include <libxslt/xsltutils.h>
+# include <libxslt/xsltInternals.h>
+# endif
+#endif
+
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
diff --git a/dlls/msxml3/msxml_private.h b/dlls/msxml3/msxml_private.h
index e0279f1..e1fbb59 100644
--- a/dlls/msxml3/msxml_private.h
+++ b/dlls/msxml3/msxml_private.h
@@ -102,10 +102,6 @@ BOOL dispex_query_interface(DispatchEx*,REFIID,void**);
#ifdef HAVE_LIBXML2
-#ifdef HAVE_LIBXML_PARSER_H
-#include <libxml/parser.h>
-#endif
-
/* constructors */
extern IUnknown *create_domdoc( xmlNodePtr document );
extern IUnknown *create_xmldoc( void );
@@ -184,25 +180,6 @@ static inline BSTR bstr_from_xmlChar(const xmlChar *str)
#endif
-void* libxslt_handle;
-#ifdef SONAME_LIBXSLT
-# ifdef HAVE_LIBXSLT_PATTERN_H
-# include <libxslt/pattern.h>
-# endif
-# ifdef HAVE_LIBXSLT_TRANSFORM_H
-# include <libxslt/transform.h>
-# endif
-# include <libxslt/xsltutils.h>
-# include <libxslt/xsltInternals.h>
-
-# define MAKE_FUNCPTR(f) extern typeof(f) * p##f
-MAKE_FUNCPTR(xsltApplyStylesheet);
-MAKE_FUNCPTR(xsltCleanupGlobals);
-MAKE_FUNCPTR(xsltFreeStylesheet);
-MAKE_FUNCPTR(xsltParseStylesheetDoc);
-# undef MAKE_FUNCPTR
-#endif
-
extern IXMLDOMParseError *create_parseError( LONG code, BSTR url, BSTR reason, BSTR srcText,
LONG line, LONG linepos, LONG filepos );
extern HRESULT DOMDocument_create( IUnknown *pUnkOuter, LPVOID *ppObj );
diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c
index bbdcb5d..2980566 100644
--- a/dlls/msxml3/node.c
+++ b/dlls/msxml3/node.c
@@ -24,6 +24,23 @@
#include <stdarg.h>
#include <assert.h>
+
+#ifdef HAVE_LIBXML2
+# include <libxml/parser.h>
+# include <libxml/xmlerror.h>
+# include <libxml/HTMLtree.h>
+# ifdef SONAME_LIBXSLT
+# ifdef HAVE_LIBXSLT_PATTERN_H
+# include <libxslt/pattern.h>
+# endif
+# ifdef HAVE_LIBXSLT_TRANSFORM_H
+# include <libxslt/transform.h>
+# endif
+# include <libxslt/xsltutils.h>
+# include <libxslt/xsltInternals.h>
+# endif
+#endif
+
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
@@ -33,16 +50,22 @@
#include "msxml_private.h"
-#ifdef HAVE_LIBXML2
-# include <libxml/HTMLtree.h>
-#endif
-
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(msxml);
#ifdef HAVE_LIBXML2
+#ifdef SONAME_LIBXSLT
+extern void* libxslt_handle;
+# define MAKE_FUNCPTR(f) extern typeof(f) * p##f
+MAKE_FUNCPTR(xsltApplyStylesheet);
+MAKE_FUNCPTR(xsltCleanupGlobals);
+MAKE_FUNCPTR(xsltFreeStylesheet);
+MAKE_FUNCPTR(xsltParseStylesheetDoc);
+# undef MAKE_FUNCPTR
+#endif
+
static const WCHAR szBinBase64[] = {'b','i','n','.','b','a','s','e','6','4',0};
static const WCHAR szString[] = {'s','t','r','i','n','g',0};
static const WCHAR szNumber[] = {'n','u','m','b','e','r',0};
diff --git a/dlls/msxml3/nodelist.c b/dlls/msxml3/nodelist.c
index f643c5e..4b2bba9 100644
--- a/dlls/msxml3/nodelist.c
+++ b/dlls/msxml3/nodelist.c
@@ -23,6 +23,11 @@
#include "config.h"
#include <stdarg.h>
+#ifdef HAVE_LIBXML2
+# include <libxml/parser.h>
+# include <libxml/xmlerror.h>
+#endif
+
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
diff --git a/dlls/msxml3/nodemap.c b/dlls/msxml3/nodemap.c
index 7d23ec8..d3d9c38 100644
--- a/dlls/msxml3/nodemap.c
+++ b/dlls/msxml3/nodemap.c
@@ -23,6 +23,11 @@
#define COBJMACROS
#include <stdarg.h>
+#ifdef HAVE_LIBXML2
+# include <libxml/parser.h>
+# include <libxml/xmlerror.h>
+#endif
+
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
diff --git a/dlls/msxml3/parseerror.c b/dlls/msxml3/parseerror.c
index 4b0dc57..89f14ca 100644
--- a/dlls/msxml3/parseerror.c
+++ b/dlls/msxml3/parseerror.c
@@ -25,6 +25,11 @@
#include <stdarg.h>
#include <assert.h>
+#ifdef HAVE_LIBXML2
+# include <libxml/parser.h>
+# include <libxml/xmlerror.h>
+#endif
+
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
diff --git a/dlls/msxml3/pi.c b/dlls/msxml3/pi.c
index 0baefe4..3ebc1bf 100644
--- a/dlls/msxml3/pi.c
+++ b/dlls/msxml3/pi.c
@@ -23,6 +23,11 @@
#include "config.h"
#include <stdarg.h>
+#ifdef HAVE_LIBXML2
+# include <libxml/parser.h>
+# include <libxml/xmlerror.h>
+#endif
+
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
diff --git a/dlls/msxml3/queryresult.c b/dlls/msxml3/queryresult.c
index 2c6f23e..8613b20 100644
--- a/dlls/msxml3/queryresult.c
+++ b/dlls/msxml3/queryresult.c
@@ -24,6 +24,13 @@
#include "config.h"
#include <stdarg.h>
+#ifdef HAVE_LIBXML2
+# include <libxml/parser.h>
+# include <libxml/xmlerror.h>
+# include <libxml/xpath.h>
+# include <libxml/xpathInternals.h>
+#endif
+
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
@@ -48,8 +55,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(msxml);
#ifdef HAVE_LIBXML2
-#include <libxml/xpath.h>
-
typedef struct _queryresult
{
DispatchEx dispex;
diff --git a/dlls/msxml3/regsvr.c b/dlls/msxml3/regsvr.c
index 415e5af..864d61e 100644
--- a/dlls/msxml3/regsvr.c
+++ b/dlls/msxml3/regsvr.c
@@ -24,6 +24,10 @@
#include <stdarg.h>
#include <string.h>
+#ifdef HAVE_LIBXML2
+# include <libxml/parser.h>
+# include <libxml/xmlerror.h>
+#endif
#define COBJMACROS
diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c
index eca9f1d..f2d340e 100644
--- a/dlls/msxml3/saxreader.c
+++ b/dlls/msxml3/saxreader.c
@@ -24,6 +24,13 @@
#include <stdarg.h>
#include <assert.h>
+#ifdef HAVE_LIBXML2
+# include <libxml/parser.h>
+# include <libxml/xmlerror.h>
+# include <libxml/SAX2.h>
+# include <libxml/parserInternals.h>
+#endif
+
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
@@ -43,9 +50,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(msxml);
#ifdef HAVE_LIBXML2
-#include <libxml/SAX2.h>
-#include <libxml/parserInternals.h>
-
typedef struct _saxreader
{
const struct IVBSAXXMLReaderVtbl *lpVBSAXXMLReaderVtbl;
diff --git a/dlls/msxml3/schema.c b/dlls/msxml3/schema.c
index 72d7854..c1465c0 100644
--- a/dlls/msxml3/schema.c
+++ b/dlls/msxml3/schema.c
@@ -23,6 +23,18 @@
#include "config.h"
#include <stdarg.h>
+#ifdef HAVE_LIBXML2
+# include <libxml/parser.h>
+# include <libxml/xmlerror.h>
+# include <libxml/tree.h>
+# include <libxml/xmlschemas.h>
+# include <libxml/schemasInternals.h>
+# include <libxml/hash.h>
+# include <libxml/parser.h>
+# include <libxml/parserInternals.h>
+# include <libxml/xmlIO.h>
+#endif
+
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
diff --git a/dlls/msxml3/text.c b/dlls/msxml3/text.c
index fdcb06b..72b2ffd 100644
--- a/dlls/msxml3/text.c
+++ b/dlls/msxml3/text.c
@@ -24,6 +24,11 @@
#include "config.h"
#include <stdarg.h>
+#ifdef HAVE_LIBXML2
+# include <libxml/parser.h>
+# include <libxml/xmlerror.h>
+#endif
+
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
diff --git a/dlls/msxml3/xmldoc.c b/dlls/msxml3/xmldoc.c
index d1a010f..0d1006e 100644
--- a/dlls/msxml3/xmldoc.c
+++ b/dlls/msxml3/xmldoc.c
@@ -23,6 +23,11 @@
#include "config.h"
#include <stdarg.h>
+#ifdef HAVE_LIBXML2
+# include <libxml/parser.h>
+# include <libxml/xmlerror.h>
+#endif
+
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
diff --git a/dlls/msxml3/xmlelem.c b/dlls/msxml3/xmlelem.c
index a71b18b..a818d14 100644
--- a/dlls/msxml3/xmlelem.c
+++ b/dlls/msxml3/xmlelem.c
@@ -23,6 +23,11 @@
#include "config.h"
#include <stdarg.h>
+#ifdef HAVE_LIBXML2
+# include <libxml/parser.h>
+# include <libxml/xmlerror.h>
+#endif
+
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
--
1.7.8.3

View File

@ -1,40 +0,0 @@
https://bugs.gentoo.org/show_bug.cgi?id=395615
Explicitly add the required -m32/m64 to *FLAGS; this overrides any
arch-specific -m* flags that may have been appended by multilib-portage.
Even though -m32/m64 is now added to *FLAGS, -m32/m64 still has to be
explicitly added to CC and CXX due to wine's build system. For example,
winegcc saves the build-time value of CC and uses it at runtime.
--- a/configure.ac
+++ b/configure.ac
@@ -133,12 +133,18 @@
then
CC="$CC -m64"
CXX="$CXX -m64"
+ CFLAGS="$CFLAGS -m64"
+ LDFLAGS="$LDFLAGS -m64"
+ CXXFLAGS="$CXXFLAGS -m64"
host_cpu="x86_64"
notice_platform="64-bit "
AC_SUBST(TARGETFLAGS,"-m64")
else
CC="$CC -m32"
CXX="$CXX -m32"
+ CFLAGS="$CFLAGS -m32"
+ LDFLAGS="$LDFLAGS -m32"
+ CXXFLAGS="$CXXFLAGS -m32"
host_cpu="i386"
notice_platform="32-bit "
AC_SUBST(TARGETFLAGS,"-m32")
@@ -150,6 +156,9 @@
then
CC="$CC -m32"
CXX="$CXX -m32"
+ CFLAGS="$CFLAGS -m32"
+ LDFLAGS="$LDFLAGS -m32"
+ CXXFLAGS="$CXXFLAGS -m32"
AC_MSG_CHECKING([whether $CC works])
AC_LINK_IFELSE([AC_LANG_PROGRAM()],AC_MSG_RESULT([yes]),
[AC_MSG_RESULT([no])

View File

@ -1,38 +0,0 @@
From 22fcf835dfe713ad93f649a901973208e0f7b62d Mon Sep 17 00:00:00 2001
From: Alexandre Rostovtsev <tetromino@gentoo.org>
Date: Tue, 7 Aug 2012 01:29:01 -0400
Subject: [PATCH] Do not check for libGL symbols when checking libOSMesa
If mesa had been built with shared glapi, glAccum is not available in
libOSMesa without explicitly linking to libGL. In addition, in
mesa-8.0.x and earlier, libOSMesa needs to be explicitly linked to
libglapi if mesa was built with shared glapi, see
https://bugs.gentoo.org/show_bug.cgi?id=399813
And in mesa-8.1.x, libOSMesa in addition needs libdl, libpthread, and
libstdc++, see https://bugs.gentoo.org/show_bug.cgi?id=431832
---
configure.ac | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 15ada86..6eab75e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1133,7 +1133,13 @@ This probably prevents linking to OpenGL. Try deleting the file and restarting c
if test "$ac_cv_header_GL_osmesa_h" = "yes"
then
- WINE_CHECK_SONAME(OSMesa,glAccum,,,[$X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS])
+ WINE_CHECK_SONAME(OSMesa,OSMesaCreateContext,,,[$X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS])
+ if test "x$ac_cv_lib_soname_OSMesa" = "x"; then
+ osmesa_save_CC=$CC
+ CC=$CXX
+ WINE_CHECK_SONAME(OSMesa,OSMesaCreateContext,,,[-lglapi -lpthread -ldl $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS])
+ CC=$osmesa_save_CC
+ fi
fi
WINE_NOTICE_WITH(osmesa,[test "x$ac_cv_lib_soname_OSMesa" = "x"],
[libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.])
--
1.7.8.6

View File

@ -1,38 +0,0 @@
From 1ede664b18bd8a88359a3cebb291ad49833ee033 Mon Sep 17 00:00:00 2001
From: Alexandre Rostovtsev <tetromino@gentoo.org>
Date: Tue, 7 Aug 2012 01:29:01 -0400
Subject: [PATCH] Do not check for libGL symbols when checking libOSMesa
If mesa had been built with shared glapi, glAccum is not available in
libOSMesa without explicitly linking to libGL. In addition, in
mesa-8.0.x and earlier, libOSMesa needs to be explicitly linked to
libglapi if mesa was built with shared glapi, see
https://bugs.gentoo.org/show_bug.cgi?id=399813
And in mesa-8.1.x, libOSMesa in addition needs libdl, libpthread, and
libstdc++, see https://bugs.gentoo.org/show_bug.cgi?id=431832
---
configure.ac | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index cc32c24..275b792 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1128,7 +1128,13 @@ This probably prevents linking to OpenGL. Try deleting the file and restarting c
if test "x$with_osmesa" != "xno"
then
- WINE_CHECK_SONAME(OSMesa,glAccum,,,[$X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS])
+ WINE_CHECK_SONAME(OSMesa,OSMesaCreateContext,,,[$X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS])
+ if test "x$ac_cv_lib_soname_OSMesa" = "x"; then
+ osmesa_save_CC=$CC
+ CC=$CXX
+ WINE_CHECK_SONAME(OSMesa,OSMesaCreateContext,,,[-lglapi -lpthread -ldl $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS])
+ CC=$osmesa_save_CC
+ fi
WINE_NOTICE_WITH(osmesa,[test "x$ac_cv_lib_soname_OSMesa" = "x"],
[libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.])
fi
--
1.8.0

View File

@ -1,214 +0,0 @@
From 57c57e9dfae50f045503ae9f3107fa3748512483 Mon Sep 17 00:00:00 2001
From: Alexandre Rostovtsev <tetromino@gentoo.org>
Date: Sun, 3 Feb 2013 19:19:36 -0500
Subject: [PATCH] winebuild: Use $CCAS to assemble if found
Commit c14bdaf1 made winebuild use Clang to assemble if found.
However, just because a user has some version of Clang installed, it
does not mean that she wants to use Clang to assemble Wine. For example,
a user who has both Clang and GAS installed may want to use GAS to avoid
textrels (see https://bugs.gentoo.org/show_bug.cgi?id=455308).
This patch allows the user to override which assembler gets used by
exporting CCAS at Wine configure time; the name CCAS was chosen for
compatibility with automake's standard AM_PROG_AS macro.
---
configure | 106 ++++++++++++++++++++++++++++++++++++++++++++
configure.ac | 4 ++
tools/winebuild/Makefile.in | 5 ++-
tools/winebuild/utils.c | 12 +++++
4 files changed, 126 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index e3253ee..d0b7777 100755
--- a/configure
+++ b/configure
@@ -732,6 +732,8 @@ FLEX
TOOLSDIR
WOW64_DISABLE
TARGETFLAGS
+ac_ct_CCAS
+CCAS
CPPBIN
ac_ct_CXX
CXXFLAGS
@@ -861,6 +863,7 @@ CPPFLAGS
CXX
CXXFLAGS
CCC
+CCAS
CPP
XMKMF'
@@ -1549,6 +1552,7 @@ Some influential environment variables:
you have headers in a nonstandard directory <include dir>
CXX C++ compiler command
CXXFLAGS C++ compiler flags
+ CCAS Assembler command
CPP C preprocessor
XMKMF Path to xmkmf, Makefile generator for X Window System
@@ -4075,6 +4079,108 @@ cat >>confdefs.h <<_ACEOF
_ACEOF
+
+if test -n "$ac_tool_prefix"; then
+ for ac_prog in clang gas as
+ do
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_CCAS+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CCAS"; then
+ ac_cv_prog_CCAS="$CCAS" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CCAS="$ac_tool_prefix$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+CCAS=$ac_cv_prog_CCAS
+if test -n "$CCAS"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCAS" >&5
+$as_echo "$CCAS" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$CCAS" && break
+ done
+fi
+if test -z "$CCAS"; then
+ ac_ct_CCAS=$CCAS
+ for ac_prog in clang gas as
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_CCAS+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_CCAS"; then
+ ac_cv_prog_ac_ct_CCAS="$ac_ct_CCAS" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CCAS="$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CCAS=$ac_cv_prog_ac_ct_CCAS
+if test -n "$ac_ct_CCAS"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CCAS" >&5
+$as_echo "$ac_ct_CCAS" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$ac_ct_CCAS" && break
+done
+
+ if test "x$ac_ct_CCAS" = x; then
+ CCAS=""$CC""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ CCAS=$ac_ct_CCAS
+ fi
+fi
+
+
case $host in
*-darwin*)
if test "x$enable_win64" = "xyes"
diff --git a/configure.ac b/configure.ac
index c93cd08..760f325 100644
--- a/configure.ac
+++ b/configure.ac
@@ -126,6 +126,10 @@ dnl We can't use AC_PROG_CPP for winegcc, it uses by default $(CC) -E
AC_CHECK_TOOL(CPPBIN,cpp,cpp)
AC_DEFINE_UNQUOTED(EXEEXT,["$ac_exeext"],[Define to the file extension for executables.])
+dnl Analogous to AM_PROG_AS
+AC_ARG_VAR([CCAS],[Assembler command])
+AC_CHECK_TOOLS(CCAS,[clang gas as],["$CC"])
+
case $host in
*-darwin*)
if test "x$enable_win64" = "xyes"
diff --git a/tools/winebuild/Makefile.in b/tools/winebuild/Makefile.in
index 2017129..3fe47a3 100644
--- a/tools/winebuild/Makefile.in
+++ b/tools/winebuild/Makefile.in
@@ -1,4 +1,7 @@
-DEFS = -D__WINESRC__ $(EXTRADEFS)
+DEFS = \
+ -DCCAS="\"@CCAS@\"" \
+ -D__WINESRC__ \
+ $(EXTRADEFS)
PROGRAMS = winebuild$(EXEEXT)
MANPAGE = winebuild.man
diff --git a/tools/winebuild/utils.c b/tools/winebuild/utils.c
index 262ff3a..1c5f918 100644
--- a/tools/winebuild/utils.c
+++ b/tools/winebuild/utils.c
@@ -352,6 +352,18 @@ struct strarray *get_as_command(void)
static int as_is_clang = 0;
struct strarray *args = strarray_init();
+ if (!as_command && strlen( CCAS ))
+ {
+ struct stat st;
+
+ if (!stat( CCAS, &st ))
+ as_command = CCAS;
+ else
+ as_command = find_tool( CCAS, NULL );
+
+ if (as_command && strstr( as_command, "clang" )) as_is_clang = 1;
+ }
+
if (!as_command)
{
as_command = find_tool( "clang", NULL );
--
1.8.1.2

View File

@ -1,59 +0,0 @@
http://bugs.gentoo.org/260726
diff --git a/tools/winebuild/main.c b/tools/winebuild/main.c
index 16b4165..5c77267 100644
--- a/tools/winebuild/main.c
+++ b/tools/winebuild/main.c
@@ -48,10 +48,13 @@ int link_ext_symbols = 0;
int force_pointer_size = 0;
int unwind_tables = 0;
+#undef FORCE_POINTER_SIZE
#ifdef __i386__
enum target_cpu target_cpu = CPU_x86;
+#define FORCE_POINTER_SIZE
#elif defined(__x86_64__)
enum target_cpu target_cpu = CPU_x86_64;
+#define FORCE_POINTER_SIZE
#elif defined(__powerpc__)
enum target_cpu target_cpu = CPU_POWERPC;
#elif defined(__arm__)
@@ -611,6 +614,10 @@ int main(int argc, char **argv)
signal( SIGTERM, exit_on_signal );
signal( SIGINT, exit_on_signal );
+#ifdef FORCE_POINTER_SIZE
+ force_pointer_size = sizeof(size_t);
+#endif
+
output_file = stdout;
argv = parse_options( argc, argv, spec );
diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c
index 06aa200..c44d2e3 100644
--- a/tools/winegcc/winegcc.c
+++ b/tools/winegcc/winegcc.c
@@ -213,10 +213,13 @@ struct options
strarray* files;
};
+#undef FORCE_POINTER_SIZE
#ifdef __i386__
static const enum target_cpu build_cpu = CPU_x86;
+#define FORCE_POINTER_SIZE
#elif defined(__x86_64__)
static const enum target_cpu build_cpu = CPU_x86_64;
+#define FORCE_POINTER_SIZE
#elif defined(__powerpc__)
static const enum target_cpu build_cpu = CPU_POWERPC;
#elif defined(__arm__)
@@ -1258,6 +1261,9 @@ int main(int argc, char **argv)
opts.linker_args = strarray_alloc();
opts.compiler_args = strarray_alloc();
opts.winebuild_args = strarray_alloc();
+#ifdef FORCE_POINTER_SIZE
+ opts.force_pointer_size = sizeof(size_t);
+#endif
/* determine the processor type */
if (strendswith(argv[0], "winecpp")) opts.processor = proc_cpp;

View File

@ -1,45 +0,0 @@
commit ce4b6451aabbe83809c7483c748cfa009cc090d6
Author: Alexandre Julliard <julliard@winehq.org>
Date: Fri May 10 22:01:44 2013 +0200
configure: Add explicit install targets in libs/wine for make_makefiles.
diff --git a/configure b/configure
index d4c1f8e..ef38bfd 100755
--- a/configure
+++ b/configure
@@ -16379,7 +16379,7 @@ wine_fn_config_makefile documentation enable_documentation
wine_fn_config_makefile fonts enable_fonts install-lib
wine_fn_config_makefile include enable_include install-dev
wine_fn_config_makefile libs/port enable_libs_port
-wine_fn_config_makefile libs/wine enable_libs_wine
+wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
wine_fn_config_makefile libs/wpp enable_libs_wpp
wine_fn_config_makefile loader enable_loader install-lib,manpage
wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
diff --git a/configure.ac b/configure.ac
index 6dd2348..b44673e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3173,7 +3173,7 @@ WINE_CONFIG_MAKEFILE([documentation])
WINE_CONFIG_MAKEFILE([fonts],,[install-lib])
WINE_CONFIG_MAKEFILE([include],,[install-dev])
WINE_CONFIG_MAKEFILE([libs/port])
-WINE_CONFIG_MAKEFILE([libs/wine])
+WINE_CONFIG_MAKEFILE([libs/wine],,[install-dev,install-lib])
WINE_CONFIG_MAKEFILE([libs/wpp])
WINE_CONFIG_MAKEFILE([loader],,[install-lib,manpage])
WINE_CONFIG_PROGRAM(aspnet_regiis,,[install])
diff --git a/libs/wine/Makefile.in b/libs/wine/Makefile.in
index b8dc385..7de7799 100644
--- a/libs/wine/Makefile.in
+++ b/libs/wine/Makefile.in
@@ -111,4 +111,8 @@ version.c: dummy
$(RELPATH):
@cd $(TOOLSDIR)/tools && $(MAKE) relpath$(TOOLSEXT)
+# Make sure that make_makefiles sees the install rules
+install install-lib::
+install install-dev::
+
@LIBWINE_RULES@

View File

@ -1,44 +0,0 @@
From 9fb3de8e9268e8e81128fc77328495567140e082 Mon Sep 17 00:00:00 2001
From: Alexandre Rostovtsev <tetromino@gentoo.org>
Date: Sat, 25 May 2013 23:57:04 -0400
Subject: [PATCH] configure, secur32: In gnutls-3.2, gnutls_mac_get_key_size()
moved to crypto.h
Based on a patch by Ben Kohler <bkohler@gmail.com>
https://bugs.gentoo.org/show_bug.cgi?id=471077
http://bugs.winehq.org/show_bug.cgi?id=33649
---
configure.ac | 3 ++-
dlls/secur32/schannel_gnutls.c | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 1941be1..2c10734 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1344,7 +1344,8 @@ then
ac_save_CPPFLAGS="$CPPFLAGS"
WINE_PACKAGE_FLAGS(GNUTLS,[gnutls])
AC_CHECK_HEADER(gnutls/gnutls.h,
- [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <gnutls/gnutls.h>]], [[static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;]])],
+ [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <gnutls/gnutls.h>
+#include <gnutls/crypto.h>]], [[static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;]])],
[WINE_CHECK_SONAME(gnutls,gnutls_global_init,,[GNUTLS_CFLAGS=""],[$GNUTLS_LIBS])])],
[GNUTLS_CFLAGS=""])
CPPFLAGS="$ac_save_CPPFLAGS"
diff --git a/dlls/secur32/schannel_gnutls.c b/dlls/secur32/schannel_gnutls.c
index 70b8276..cbe64e8 100644
--- a/dlls/secur32/schannel_gnutls.c
+++ b/dlls/secur32/schannel_gnutls.c
@@ -25,6 +25,7 @@
#include <stdarg.h>
#ifdef SONAME_LIBGNUTLS
#include <gnutls/gnutls.h>
+#include <gnutls/crypto.h>
#endif
#include "windef.h"
--
1.8.2.1

View File

@ -1,21 +0,0 @@
Avoid "undefined reference to `memset'" error when building with
USE=custom-cflags and -O3 in CFLAGS with gcc-4.8.
See:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56888
http://bugs.winehq.org/show_bug.cgi?id=33521
https://bugs.gentoo.org/show_bug.cgi?id=480508
diff --git a/configure.ac b/configure.ac
index d8033cf..fe7cc7d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1767,6 +1767,7 @@ then
dnl Check for some compiler flags
WINE_TRY_CFLAGS([-fno-builtin],[AC_SUBST(BUILTINFLAG,"-fno-builtin")])
+ WINE_TRY_CFLAGS([-fno-tree-loop-distribute-patterns])
WINE_TRY_CFLAGS([-fno-strict-aliasing])
dnl clang needs to be told to fail on unknown options
saved_CFLAGS=$CFLAGS

View File

@ -1,38 +0,0 @@
From 6932b9a17c4f64c13f7060895d46334bc7022430 Mon Sep 17 00:00:00 2001
From: Alexandre Rostovtsev <tetromino@gentoo.org>
Date: Tue, 7 Aug 2012 01:29:01 -0400
Subject: [PATCH] Do not check for libGL symbols when checking libOSMesa
If mesa had been built with shared glapi, glAccum is not available in
libOSMesa without explicitly linking to libGL. In addition, in
mesa-8.0.x and earlier, libOSMesa needs to be explicitly linked to
libglapi if mesa was built with shared glapi, see
https://bugs.gentoo.org/show_bug.cgi?id=399813
And in mesa-8.1.x, libOSMesa in addition needs libdl, libpthread, and
libstdc++, see https://bugs.gentoo.org/show_bug.cgi?id=431832
---
configure.ac | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index de807d2..a2e8684 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1233,7 +1233,13 @@ This probably prevents linking to OpenGL. Try deleting the file and restarting c
if test "x$with_osmesa" != "xno"
then
- WINE_CHECK_SONAME(OSMesa,glAccum,,,[$X_LIBS -lm $X_EXTRA_LIBS])
+ WINE_CHECK_SONAME(OSMesa,OSMesaCreateContext,,,[$X_LIBS -lm $X_EXTRA_LIBS])
+ if test "x$ac_cv_lib_soname_OSMesa" = "x"; then
+ osmesa_save_CC=$CC
+ CC=$CXX
+ WINE_CHECK_SONAME(OSMesa,OSMesaCreateContext,,,[-lglapi -lpthread -ldl $X_LIBS -lm $X_EXTRA_LIBS])
+ CC=$osmesa_save_CC
+ fi
WINE_NOTICE_WITH(osmesa,[test "x$ac_cv_lib_soname_OSMesa" = "x"],
[libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.])
fi
--
1.8.5.3

View File

@ -1,38 +0,0 @@
From b7eb1ff48dd1210aa3e1002afc503d5df75d50b9 Mon Sep 17 00:00:00 2001
From: Alexandre Rostovtsev <tetromino@gentoo.org>
Date: Tue, 7 Aug 2012 01:29:01 -0400
Subject: [PATCH] Do not check for libGL symbols when checking libOSMesa
If mesa had been built with shared glapi, glAccum is not available in
libOSMesa without explicitly linking to libGL. In addition, in
mesa-8.0.x and earlier, libOSMesa needs to be explicitly linked to
libglapi if mesa was built with shared glapi, see
https://bugs.gentoo.org/show_bug.cgi?id=399813
And in mesa-8.1.x, libOSMesa in addition needs libdl, libpthread, and
libstdc++, see https://bugs.gentoo.org/show_bug.cgi?id=431832
---
configure.ac | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 66b4dd6..0303d87 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1213,7 +1213,13 @@ This probably prevents linking to OpenGL. Try deleting the file and restarting c
if test "x$with_osmesa" != "xno"
then
- WINE_CHECK_SONAME(OSMesa,glAccum,,,[$X_LIBS $XLIB -lm $X_EXTRA_LIBS])
+ WINE_CHECK_SONAME(OSMesa,OSMesaCreateContext,,,[$X_LIBS $XLIB -lm $X_EXTRA_LIBS])
+ if test "x$ac_cv_lib_soname_OSMesa" = "x"; then
+ osmesa_save_CC=$CC
+ CC=$CXX
+ WINE_CHECK_SONAME(OSMesa,OSMesaCreateContext,,,[-lglapi -lpthread -ldl $X_LIBS $XLIB -lm $X_EXTRA_LIBS])
+ CC=$osmesa_save_CC
+ fi
WINE_NOTICE_WITH(osmesa,[test "x$ac_cv_lib_soname_OSMesa" = "x"],
[libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.])
fi
--
1.8.3.2

View File

@ -1,498 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/wine/wine-1.7.21.ebuild,v 1.1 2014/06/29 00:42:47 tetromino Exp $
EAPI="5"
AUTOTOOLS_AUTORECONF=1
PLOCALES="ar bg ca cs da de el en en_US eo es fa fi fr he hi hr hu it ja ko lt ml nb_NO nl or pa pl pt_BR pt_PT rm ro ru sk sl sr_RS@cyrillic sr_RS@latin sv te th tr uk wa zh_CN zh_TW"
PLOCALE_BACKUP="en"
inherit autotools-utils eutils fdo-mime flag-o-matic gnome2-utils l10n multilib multilib-minimal pax-utils toolchain-funcs virtualx
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="git://source.winehq.org/git/wine.git"
inherit git-2
SRC_URI=""
#KEYWORDS=""
else
MY_P="${PN}-${PV/_/-}"
SRC_URI="mirror://sourceforge/${PN}/Source/${MY_P}.tar.bz2"
KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd"
S=${WORKDIR}/${MY_P}
fi
GV="2.24"
MV="4.5.2"
PULSE_PATCHES="winepulse-patches-1.7.21"
COMPHOLIOV="1.7.21"
COMPHOLIO_PATCHES="wine-compholio-daily-${COMPHOLIOV}"
WINE_GENTOO="wine-gentoo-2013.06.24"
DESCRIPTION="Free implementation of Windows(tm) on Unix"
HOMEPAGE="http://www.winehq.org/"
SRC_URI="${SRC_URI}
gecko? (
abi_x86_32? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86.msi )
abi_x86_64? ( mirror://sourceforge/${PN}/Wine%20Gecko/${GV}/wine_gecko-${GV}-x86_64.msi )
)
mono? ( mirror://sourceforge/${PN}/Wine%20Mono/${MV}/wine-mono-${MV}.msi )
pipelight? ( https://github.com/compholio/wine-compholio-daily/archive/v${COMPHOLIOV}.tar.gz -> ${COMPHOLIO_PATCHES}.tar.gz )
pulseaudio? ( http://dev.gentoo.org/~tetromino/distfiles/${PN}/${PULSE_PATCHES}.tar.bz2 )
http://dev.gentoo.org/~tetromino/distfiles/${PN}/${WINE_GENTOO}.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0"
IUSE="+abi_x86_32 +abi_x86_64 +alsa capi cups custom-cflags dos elibc_glibc +fontconfig +gecko gphoto2 gsm gstreamer +jpeg lcms ldap +mono mp3 ncurses netapi nls odbc openal opencl +opengl osmesa oss +perl pipelight +png +prelink pulseaudio +realtime +run-exes samba scanner selinux +ssl test +threads +truetype +udisks v4l +X xcomposite xinerama +xml"
REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )
test? ( abi_x86_32 )
elibc_glibc? ( threads )
gstreamer? ( pulseaudio )
mono? ( abi_x86_32 )
osmesa? ( opengl )" #286560
# winepulse patches needed for gstreamer due to http://bugs.winehq.org/show_bug.cgi?id=30557
# FIXME: the test suite is unsuitable for us; many tests require net access
# or fail due to Xvfb's opengl limitations.
RESTRICT="test"
NATIVE_DEPEND="
truetype? ( >=media-libs/freetype-2.0.0 )
capi? ( net-dialup/capi4k-utils )
ncurses? ( >=sys-libs/ncurses-5.2:= )
udisks? ( sys-apps/dbus )
fontconfig? ( media-libs/fontconfig:= )
gphoto2? ( media-libs/libgphoto2:= )
openal? ( media-libs/openal:= )
gstreamer? ( media-libs/gstreamer:0.10 media-libs/gst-plugins-base:0.10 )
X? (
x11-libs/libXcursor
x11-libs/libXext
x11-libs/libXrandr
x11-libs/libXi
x11-libs/libXxf86vm
)
xinerama? ( x11-libs/libXinerama )
alsa? ( media-libs/alsa-lib )
cups? ( net-print/cups:= )
opencl? ( virtual/opencl )
opengl? (
virtual/glu
virtual/opengl
)
gsm? ( media-sound/gsm:= )
jpeg? ( virtual/jpeg:0= )
ldap? ( net-nds/openldap:= )
lcms? ( media-libs/lcms:2= )
mp3? ( >=media-sound/mpg123-1.5.0 )
netapi? ( net-fs/samba[netapi(+)] )
nls? ( sys-devel/gettext )
odbc? ( dev-db/unixODBC:= )
osmesa? ( media-libs/mesa[osmesa] )
pipelight? ( sys-apps/attr )
pulseaudio? ( media-sound/pulseaudio )
xml? ( dev-libs/libxml2 dev-libs/libxslt )
scanner? ( media-gfx/sane-backends:= )
ssl? ( net-libs/gnutls:= )
png? ( media-libs/libpng:0= )
v4l? ( media-libs/libv4l )
xcomposite? ( x11-libs/libXcomposite )"
COMMON_DEPEND="
!amd64? ( ${NATIVE_DEPEND} )
amd64? (
abi_x86_64? ( ${NATIVE_DEPEND} )
abi_x86_32? (
truetype? ( || (
>=app-emulation/emul-linux-x86-xlibs-2.1[development,-abi_x86_32(-)]
>=media-libs/freetype-2.5.0.1[abi_x86_32(-)]
) )
ncurses? ( || (
app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)]
>=sys-libs/ncurses-5.9-r3[abi_x86_32(-)]
) )
udisks? ( || (
>=app-emulation/emul-linux-x86-baselibs-20130224[development,-abi_x86_32(-)]
>=sys-apps/dbus-1.6.18-r1[abi_x86_32(-)]
) )
fontconfig? ( || (
app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)]
>=media-libs/fontconfig-2.10.92[abi_x86_32(-)]
) )
gphoto2? ( || (
app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)]
>=media-libs/libgphoto2-2.5.3.1[abi_x86_32(-)]
) )
openal? ( || (
app-emulation/emul-linux-x86-sdl[development,-abi_x86_32(-)]
>=media-libs/openal-1.15.1[abi_x86_32(-)]
) )
gstreamer? ( || (
app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)]
(
>=media-libs/gstreamer-0.10.36-r2:0.10[abi_x86_32(-)]
>=media-libs/gst-plugins-base-0.10.36:0.10[abi_x86_32(-)]
)
) )
X? ( || (
app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)]
(
>=x11-libs/libXcursor-1.1.14[abi_x86_32(-)]
>=x11-libs/libXext-1.3.2[abi_x86_32(-)]
>=x11-libs/libXrandr-1.4.2[abi_x86_32(-)]
>=x11-libs/libXi-1.7.2[abi_x86_32(-)]
>=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)]
)
) )
xinerama? ( || (
app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)]
>=x11-libs/libXinerama-1.1.3[abi_x86_32(-)]
) )
alsa? ( || (
app-emulation/emul-linux-x86-soundlibs[alsa,development,-abi_x86_32(-)]
>=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)]
) )
cups? ( || (
app-emulation/emul-linux-x86-baselibs
>=net-print/cups-1.7.1-r1[abi_x86_32(-)]
) )
opencl? ( >=virtual/opencl-0-r3[abi_x86_32(-)] )
opengl? ( || (
app-emulation/emul-linux-x86-opengl[development,-abi_x86_32(-)]
(
>=virtual/glu-9.0-r1[abi_x86_32(-)]
>=virtual/opengl-7.0-r1[abi_x86_32(-)]
)
) )
gsm? ( || (
app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)]
>=media-sound/gsm-1.0.13-r1[abi_x86_32(-)]
) )
jpeg? ( || (
app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)]
>=virtual/jpeg-0-r2:0[abi_x86_32(-)]
) )
ldap? ( || (
app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)]
>=net-nds/openldap-2.4.38-r1:=[abi_x86_32(-)]
) )
lcms? ( || (
app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)]
>=media-libs/lcms-2.5:2[abi_x86_32(-)]
) )
mp3? ( || (
app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)]
>=media-sound/mpg123-1.15.4[abi_x86_32(-)]
) )
netapi? ( >=net-fs/samba-3.6.23-r1[netapi(+),abi_x86_32(-)] )
nls? ( || (
app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)]
>=sys-devel/gettext-0.18.3.2[abi_x86_32(-)]
) )
odbc? ( || (
app-emulation/emul-linux-x86-db[development,-abi_x86_32(-)]
>=dev-db/unixODBC-2.3.2:=[abi_x86_32(-)]
) )
osmesa? ( || (
>=app-emulation/emul-linux-x86-opengl-20121028[development,-abi_x86_32(-)]
>=media-libs/mesa-9.1.6[osmesa,abi_x86_32(-)]
) )
pipelight? ( || (
app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)]
>=sys-apps/attr-2.4.47-r1[abi_x86_32(-)]
) )
pulseaudio? ( || (
app-emulation/emul-linux-x86-soundlibs[development,-abi_x86_32(-)]
>=media-sound/pulseaudio-5.0[abi_x86_32(-)]
) )
xml? ( || (
>=app-emulation/emul-linux-x86-baselibs-20131008[development,-abi_x86_32(-)]
(
>=dev-libs/libxml2-2.9.1-r4[abi_x86_32(-)]
>=dev-libs/libxslt-1.1.28-r1[abi_x86_32(-)]
)
) )
scanner? ( || (
app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)]
>=media-gfx/sane-backends-1.0.23:=[abi_x86_32(-)]
) )
ssl? ( || (
app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)]
>=net-libs/gnutls-2.12.23-r6:=[abi_x86_32(-)]
) )
png? ( || (
app-emulation/emul-linux-x86-baselibs[development,-abi_x86_32(-)]
>=media-libs/libpng-1.6.10:0[abi_x86_32(-)]
) )
v4l? ( || (
app-emulation/emul-linux-x86-medialibs[development,-abi_x86_32(-)]
>=media-libs/libv4l-0.9.5[abi_x86_32(-)]
) )
xcomposite? ( || (
app-emulation/emul-linux-x86-xlibs[development,-abi_x86_32(-)]
>=x11-libs/libXcomposite-0.4.4-r1[abi_x86_32(-)]
) )
)
)"
RDEPEND="${COMMON_DEPEND}
dos? ( games-emulation/dosbox )
perl? ( dev-lang/perl dev-perl/XML-Simple )
samba? ( >=net-fs/samba-3.0.25 )
selinux? ( sec-policy/selinux-wine )
udisks? ( sys-fs/udisks:2 )
pulseaudio? ( realtime? ( sys-auth/rtkit ) )"
DEPEND="${COMMON_DEPEND}
amd64? ( abi_x86_32? ( !abi_x86_64? ( ${NATIVE_DEPEND} ) ) )
X? (
x11-proto/inputproto
x11-proto/xextproto
x11-proto/xf86vidmodeproto
)
xinerama? ( x11-proto/xineramaproto )
prelink? ( sys-devel/prelink )
>=sys-kernel/linux-headers-2.6
virtual/pkgconfig
virtual/yacc
sys-devel/flex"
# These use a non-standard "Wine" category, which is provided by
# /etc/xdg/applications-merged/wine.menu
QA_DESKTOP_FILE="usr/share/applications/wine-browsedrive.desktop
usr/share/applications/wine-notepad.desktop
usr/share/applications/wine-uninstaller.desktop
usr/share/applications/wine-winecfg.desktop"
wine_build_environment_check() {
[[ ${MERGE_TYPE} = "binary" ]] && return 0
if use abi_x86_64 && [[ $(( $(gcc-major-version) * 100 + $(gcc-minor-version) )) -lt 404 ]]; then
eerror "You need gcc-4.4+ to build 64-bit wine"
eerror
return 1
fi
if use abi_x86_32 && use opencl && [[ x$(eselect opencl show 2> /dev/null) = "xintel" ]]; then
eerror "You cannot build wine with USE=opencl because intel-ocl-sdk is 64-bit only."
eerror "See https://bugs.gentoo.org/487864 for more details."
eerror
return 1
fi
}
pkg_pretend() {
wine_build_environment_check || die
}
pkg_setup() {
wine_build_environment_check || die
}
src_unpack() {
if [[ ${PV} == "9999" ]] ; then
git-2_src_unpack
else
unpack ${MY_P}.tar.bz2
fi
use pulseaudio && unpack "${PULSE_PATCHES}.tar.bz2"
if use pipelight; then
unpack "${COMPHOLIO_PATCHES}.tar.gz"
# we use a separate pulseaudio patchset
rm -r "${COMPHOLIO_PATCHES}/patches/06-winepulse" || die
# ... and need special tools for binary patches
mv "${COMPHOLIO_PATCHES}/patches/10-Missing_Fonts" "${T}" || die
fi
unpack "${WINE_GENTOO}.tar.bz2"
l10n_find_plocales_changes "${S}/po" "" ".po"
}
src_prepare() {
local md5="$(md5sum server/protocol.def)"
local f
local PATCHES=(
"${FILESDIR}"/${PN}-1.5.26-winegcc.patch #260726
"${FILESDIR}"/${PN}-1.4_rc2-multilib-portage.patch #395615
"${FILESDIR}"/${PN}-1.7.12-osmesa-check.patch #429386
"${FILESDIR}"/${PN}-1.6-memset-O3.patch #480508
)
use pulseaudio && PATCHES+=(
"../${PULSE_PATCHES}"/*.patch #421365
)
if use gstreamer; then
# See http://bugs.winehq.org/show_bug.cgi?id=30557
ewarn "Applying experimental patch to fix GStreamer support. Note that"
ewarn "this patch has been reported to cause crashes in certain games."
PATCHES+=( "../${PULSE_PATCHES}"/gstreamer/*.patch )
fi
if use pipelight; then
ewarn "Applying the unofficial Compholio patchset for Pipelight support,"
ewarn "which is unsupported by Wine developers. Please don't report bugs"
ewarn "to Wine bugzilla unless you can reproduce them with USE=-pipelight"
PATCHES+=(
"../${COMPHOLIO_PATCHES}/patches"/*/*.patch #507950
"../${COMPHOLIO_PATCHES}/patches/patch-list.patch"
)
# epatch doesn't support binary patches
ebegin "Applying Compholio font patches"
for f in "${T}/10-Missing_Fonts"/*.patch; do
"../${COMPHOLIO_PATCHES}/debian/tools/gitapply.sh" < "${f}" || die "Failed to apply Compholio font patches"
done
eend
fi
autotools-utils_src_prepare
if [[ "$(md5sum server/protocol.def)" != "${md5}" ]]; then
einfo "server/protocol.def was patched; running tools/make_requests"
tools/make_requests || die #432348
fi
sed -i '/^UPDATE_DESKTOP_DATABASE/s:=.*:=true:' tools/Makefile.in || die
if ! use run-exes; then
sed -i '/^MimeType/d' tools/wine.desktop || die #117785
fi
# hi-res default icon, #472990, http://bugs.winehq.org/show_bug.cgi?id=24652
cp "${WORKDIR}"/${WINE_GENTOO}/icons/oic_winlogo.ico dlls/user32/resources/ || die
l10n_get_locales > po/LINGUAS # otherwise wine doesn't respect LINGUAS
}
src_configure() {
export LDCONFIG=/bin/true
use custom-cflags || strip-flags
multilib-minimal_src_configure
}
multilib_src_configure() {
local myconf=(
--sysconfdir=/etc/wine
$(use_with alsa)
$(use_with capi)
$(use_with lcms cms)
$(use_with cups)
$(use_with ncurses curses)
$(use_with udisks dbus)
$(use_with fontconfig)
$(use_with ssl gnutls)
$(use_with gphoto2 gphoto)
$(use_with gsm)
$(use_with gstreamer)
--without-hal
$(use_with jpeg)
$(use_with ldap)
$(use_with mp3 mpg123)
$(use_with netapi)
$(use_with nls gettext)
$(use_with openal)
$(use_with opencl)
$(use_with opengl)
$(use_with osmesa)
$(use_with oss)
$(use_with png)
$(use_with threads pthread)
$(use_with scanner sane)
$(use_enable test tests)
$(use_with truetype freetype)
$(use_with v4l)
$(use_with X x)
$(use_with xcomposite)
$(use_with xinerama)
$(use_with xml)
$(use_with xml xslt)
)
use pulseaudio && myconf+=( --with-pulse )
use pipelight && myconf+=( --with-xattr )
local PKG_CONFIG AR RANLIB
# Avoid crossdev's i686-pc-linux-gnu-pkg-config if building wine32 on amd64; #472038
# set AR and RANLIB to make QA scripts happy; #483342
tc-export PKG_CONFIG AR RANLIB
if use amd64; then
if [[ ${ABI} == amd64 ]]; then
myconf+=( --enable-win64 )
else
myconf+=( --disable-win64 )
fi
# Note: using --with-wine64 results in problems with multilib.eclass
# CC/LD hackery. We're using separate tools instead.
fi
ECONF_SOURCE=${S} \
econf "${myconf[@]}"
emake depend
}
multilib_src_test() {
# FIXME: win32-only; wine64 tests fail with "could not find the Wine loader"
if [[ ${ABI} == x86 ]]; then
if [[ $(id -u) == 0 ]]; then
ewarn "Skipping tests since they cannot be run under the root user."
ewarn "To run the test ${PN} suite, add userpriv to FEATURES in make.conf"
return
fi
WINEPREFIX="${T}/.wine-${ABI}" \
Xemake test
fi
}
multilib_src_install_all() {
local DOCS=( ANNOUNCE AUTHORS README )
local l
add_locale_docs() {
local locale_doc="documentation/README.$1"
[[ ! -e ${locale_doc} ]] || DOCS+=( ${locale_doc} )
}
l10n_for_each_locale_do add_locale_docs
einstalldocs
prune_libtool_files --all
emake -C "../${WINE_GENTOO}" install DESTDIR="${D}" EPREFIX="${EPREFIX}"
if use gecko ; then
insinto /usr/share/wine/gecko
use abi_x86_32 && doins "${DISTDIR}"/wine_gecko-${GV}-x86.msi
use abi_x86_64 && doins "${DISTDIR}"/wine_gecko-${GV}-x86_64.msi
fi
if use mono ; then
insinto /usr/share/wine/mono
doins "${DISTDIR}"/wine-mono-${MV}.msi
fi
if ! use perl ; then
rm "${D}"usr/bin/{wine{dump,maker},function_grep.pl} "${D}"usr/share/man/man1/wine{dump,maker}.1 || die
fi
use abi_x86_32 && pax-mark psmr "${D}"usr/bin/wine{,-preloader} #255055
use abi_x86_64 && pax-mark psmr "${D}"usr/bin/wine64{,-preloader}
if use abi_x86_64 && ! use abi_x86_32; then
dosym /usr/bin/wine{64,} # 404331
dosym /usr/bin/wine{64,}-preloader
fi
# respect LINGUAS when installing man pages, #469418
for l in de fr pl; do
use linguas_${l} || rm -r "${D}"usr/share/man/${l}*
done
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
gnome2_icon_cache_update
fdo-mime_desktop_database_update
}
pkg_postrm() {
gnome2_icon_cache_update
fdo-mime_desktop_database_update
}

View File

@ -1,19 +0,0 @@
DIST linux-3.6.tar.bz2 82296001 SHA256 88ae0a20fd39ecae79db0ce8f9397922fae33c8b06a54ed2c883c861126c9771 SHA512 cbaefc2c4c8ab2251c3345b7b2c88d55a49e3468d8b177b05dd6d96a802efa9a052b1a1ecab8b71298bac97f45259516d88253838332b4fdb4307780ebcddce9 WHIRLPOOL e17e3800951f0c3af21015d1a1c99698d0ef70815bd4f131dd60b30baef70d4c255988857533a9a7c058388c2febfcf02d12cde2a7ed46b24fa85aeb260c0251
DIST linux-3.7.tar.bz2 83671392 SHA256 dc08d87a579fe2918362e6666e503a95a76296419195cb499aa9dd4dbe171a9e SHA512 dad07e23b5d05a1a12092b59ea25c514ff9e89803ecf65b08f09b82aebc511fd06d2a492dea6364c3740a517f0a06a0ddb1c6847658d158205ad88995d69aaf3 WHIRLPOOL 572514032d7d64cc6a2b6ceeae7489e4b3fb48b5b63543d041ad675cd0569549ed88dc9c04ffdf91e78b8424d00b62384af78d7a41b7f399c31c056f0aa0344b
DIST patch-3.6.10-pf.bz2 517996 SHA256 36149f90332c84b54b23c48d37db677337908766f683fb64346087f0a14232fc SHA512 025f17c0baac970ad5107a0ba495010e83f44a98a9f5c943e7f40e00c3aeee599081eec7bb851604153d30b90f01ead301559043682cdb8438d34e4d5dd083e9 WHIRLPOOL cd212693f73a6688d5ff1710a5a35b948032bf1e0c019a135d42c7479d5147cd5f5aaf6bdd162bcb3edceb80a1fd1c21755d6b587b6e1e45a8333569c9e08af8
DIST patch-3.6.11-pf.bz2 530916 SHA256 14cbce82b2da7571112a4804b11d83ae27fe31c41f8914d6347284830786e029 SHA512 8f70cf9c8d9300f9d62a736e1e332c8c64727581553dbe431eedd64fbae186f07cde1c621dc9c46421587ea3a05391d507c48b1e27b154a3f0fb8d4d08fffde6 WHIRLPOOL 44df216ac3360ff6b04bb4ab8bdfbafb739e51ddc4ebb0f879b4b49ad0e257aefda9f3b933972116e9d85c503dd8312bfce1ad714a42c6087e13535e0c90b2e7
DIST patch-3.6.8-pf.bz2 474222 SHA256 541ed364ddf0545ea4533d1fbf8eb8a0381ed6bf16b53e491f5b8831f0e85f70 SHA512 1c90f863fc2e0a15c352c3136d4438680a4bf467ead955eafd05419f308f280f1a73037e17469b99c184e66b7c65c1b3540edcc65590e663b30b60a88375ffca WHIRLPOOL bbe1e8d926b94116040ba9cc5016f253434200474b633683056d21c163cab42d24081e0f088cb9ce0a7d53fc9aa188b31842823c94a6a03113c1ee5613037e20
DIST patch-3.6.9-pf.bz2 497164 SHA256 4f0ee881dbfa7680cf2e9a2de3dc6d71b2e65e7446b33db661f0e4d0bfbedaea SHA512 c48860f510e5c028aeeb408531f77866b9f505c55470abc9e85bf63f27cc730c7ac236fa215ad6cd45a54c80befd433944c39ac1e24f03b30e25e977addad384 WHIRLPOOL 81f086302054abfb33c5c7ec3b08328d6a4d57d199045eacd169b3e2e0f46c2bc4b46408354de0eda79990022b96fe873b7a03986eae30b4be246a7941e64af2
DIST patch-3.7.1-pf.bz2 322775 SHA256 835a759f5310523a2b52d291b350d64637581c750c5119a931ad7c3f225ba3cd SHA512 5611c7eeb25ed1d72e439be3f2ae820b1294cbc2d6f57c8b6a38d878acfecbdb886b050e8d918d1f59dbcd2d97c305ed1ad63eaac3ea194755be619fd25066a2 WHIRLPOOL 6cb78b45f6ccf916628d4b598fb0d5111c54db32bfdfaface1d65e8cd5ed24ac6b4abbdfdc645aa0f63c07992fbb63725a862d07b7b7efb9fb371f8a1af3d39c
DIST patch-3.7.2-pf.bz2 440856 SHA256 53d34100897a84404fa2a70e7e91dff8c0c60c915c4ea59c87d2187692bd56aa SHA512 5d6332ddc60afb9bc1f6eb2260927fae229ecf414bbe56f6a8bd3f113ecef4cafab1ffed7aafcaba9e7ac5ddf1fe3265cc6e2881dfc3f5abfcb1ee0395479de4 WHIRLPOOL ed5ac858fbfc1ae226827964701e0c3e00f03504bca23543992eba17cbf53cb8c4fe3c843c89aae3120b15d51e91ca92b0dbae287443c429f9a6da007ecd99df
DIST patch-3.7.3-pf.bz2 527627 SHA256 ef74403103167902571589f1d4ebe2e0e8d8c1147b92923d31cbae03076d1c03 SHA512 2b7a6c0f2f7bea908195e389406385924183cb6c343dface9c15fb711cd7af90e8a1e09f5464a91696866a52254c1d1e19f5be0b8c7bb0cf78b8f896bfcda92b WHIRLPOOL e2f566a4d2db71175c5d2ac23fd95ee5a2278020e7d4251678680d88f9dd2c605d0a76984a2300be0bb68ce84ddd6acf6da79b51a0e06dade65a21cb62e34b61
DIST patch-3.7.5-pf.bz2 583386 SHA256 5b712c6b3c4548ee81a2f8a8eb46fbe8d10cd473fd5c62ad280132f752ee1579 SHA512 68aaea121d1531711d65fb743292c1fe209e1aaa0dfae577bfd89576104237ea96b08f7855e24194e878c2db01dc33d70841d44093545eb63019a11fcabbe070 WHIRLPOOL 306e78db02becb6d1669482b21380358fc5471502d235c5b0fadf4125b2f233b44fd104dd26acdf1b4f10e57226c977b6238663612eb0c0cef21dbcf54d584b9
EBUILD pf-sources-3.6.10.ebuild 2041 SHA256 a8f22e84343f0f47805718804da438413188f03b3662789d3d3f8d42936e67f1 SHA512 574b5a8156be06e0027954b3a93ee0911ec81a28c3704816b34c14b28338dcd9eb9ed7f44a3d933511e4ec5d90303c164a8ea34d5de7e5a152107e7ff212adf0 WHIRLPOOL 644c1771872472cbb099ce44ec7b23111a2c2ae36c486196258f1b5e45fbf4588da4e353f826344a76ae6fb0d41ac5f6ad554aeb18c660e19b33564afb2d2568
EBUILD pf-sources-3.6.11.ebuild 2045 SHA256 31cdbbb434847a5a0cc02341fbce60d593be8638ff31f2fb8ca40ff8c0950cd8 SHA512 636e4aa2de9b3c73399c20181b1f2098b7188a5d2a06003e4738f30966f8fef80d2117a331d36abe6fcc794b13804f0bc6e5a0b76b5ec94ee8bf8958b916c0ac WHIRLPOOL e6aed5c2efd7c3c0001d17f247975e6cc3698bd9e6e0d6dbd7bb3ca1e9f5e5a5dad6894fbc0b13d3d5ce78f38d6a151dfe4240aa36c8ef8a5211f02dcf235526
EBUILD pf-sources-3.6.8.ebuild 2044 SHA256 745bc3c20d6926dd557e1bb32ccd29e0de510fdd81a9430bd489230da89dcc2c SHA512 13d0efa5d540ee7ebff2fe0f3a63f4d54a0b8c483df58a708c4795f07b598dacf5d89a9ef8a04fe03da6a34aab5380b2cfe188cabbfbb8a85b335be8a33e7e82 WHIRLPOOL c5df31b8230ac36e03d5a84b2233c60731b7435434323feaa714639ebde26efeb4d1d62e7967c8ee217679806a18fbdfc1c78f4c5635f9b57a98f9c72fc7a415
EBUILD pf-sources-3.6.9.ebuild 2041 SHA256 a8f22e84343f0f47805718804da438413188f03b3662789d3d3f8d42936e67f1 SHA512 574b5a8156be06e0027954b3a93ee0911ec81a28c3704816b34c14b28338dcd9eb9ed7f44a3d933511e4ec5d90303c164a8ea34d5de7e5a152107e7ff212adf0 WHIRLPOOL 644c1771872472cbb099ce44ec7b23111a2c2ae36c486196258f1b5e45fbf4588da4e353f826344a76ae6fb0d41ac5f6ad554aeb18c660e19b33564afb2d2568
EBUILD pf-sources-3.7.1.ebuild 2045 SHA256 31cdbbb434847a5a0cc02341fbce60d593be8638ff31f2fb8ca40ff8c0950cd8 SHA512 636e4aa2de9b3c73399c20181b1f2098b7188a5d2a06003e4738f30966f8fef80d2117a331d36abe6fcc794b13804f0bc6e5a0b76b5ec94ee8bf8958b916c0ac WHIRLPOOL e6aed5c2efd7c3c0001d17f247975e6cc3698bd9e6e0d6dbd7bb3ca1e9f5e5a5dad6894fbc0b13d3d5ce78f38d6a151dfe4240aa36c8ef8a5211f02dcf235526
EBUILD pf-sources-3.7.2.ebuild 2041 SHA256 5159598c3820114b4881cc67d43ff6ddf5e5deafa5f34bcf70891b4001a95773 SHA512 153e51bc1ef6b8f43ad7dc8f08facdaebc38797454fb599f9daf763d23501f73d134ef9a978ea4742ec069c39f553cbe63012fd9bff245a0dd90cf0eb1bde62a WHIRLPOOL 3a2d3235759421a9a6e24fc154c629c62e2bb00b776fedb2c0b6a1558d1d3447c3f97f3c8b2413a81bdbc3fb67821654438d36d97a1dc7aec951e1c0c0bc9804
EBUILD pf-sources-3.7.3.ebuild 2041 SHA256 5159598c3820114b4881cc67d43ff6ddf5e5deafa5f34bcf70891b4001a95773 SHA512 153e51bc1ef6b8f43ad7dc8f08facdaebc38797454fb599f9daf763d23501f73d134ef9a978ea4742ec069c39f553cbe63012fd9bff245a0dd90cf0eb1bde62a WHIRLPOOL 3a2d3235759421a9a6e24fc154c629c62e2bb00b776fedb2c0b6a1558d1d3447c3f97f3c8b2413a81bdbc3fb67821654438d36d97a1dc7aec951e1c0c0bc9804
EBUILD pf-sources-3.7.5.ebuild 2041 SHA256 a8ce0d8b7e28ac749c807c027d09a1234990d027c0b34cdafebda47bbc76a25e SHA512 ecd19fb43d510108a283e268e1458e6213876676dbaf0a298a4391f527673f0a71419edba67d45c0dbf3c88d3edca9155cd5ff68ba19bc351dfbbd1755c2001d WHIRLPOOL 3c7bf9b4a580d11e6acca29229a54fc3ef56b93159464c7d099253870f0e0f1f0dfe9070a243f78802166b5dca402752eb499d7d58967fc2bdc7078e17c3b705
MISC patch-3.7.5-pf.bz2 583386 SHA256 5b712c6b3c4548ee81a2f8a8eb46fbe8d10cd473fd5c62ad280132f752ee1579 SHA512 68aaea121d1531711d65fb743292c1fe209e1aaa0dfae577bfd89576104237ea96b08f7855e24194e878c2db01dc33d70841d44093545eb63019a11fcabbe070 WHIRLPOOL 306e78db02becb6d1669482b21380358fc5471502d235c5b0fadf4125b2f233b44fd104dd26acdf1b4f10e57226c977b6238663612eb0c0cef21dbcf54d584b9

View File

@ -1,70 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/pf-sources/pf-sources-3.6.9.ebuild,v 1.1 2012/11/19 10:39:56 wired Exp $
EAPI="2"
inherit versionator
COMPRESSTYPE=".bz2"
K_USEPV="yes"
UNIPATCH_STRICTORDER="yes"
K_SECURITY_UNSUPPORTED="1"
CKV="$(get_version_component_range 1-2)"
ETYPE="sources"
inherit kernel-2
detect_version
K_NOSETEXTRAVERSION="don't_set_it"
DESCRIPTION="Linux kernel fork with new features, including the -ck patchset (BFS), BFQ, TuxOnIce and UKSM"
HOMEPAGE="http://pf.natalenko.name/"
PF_FILE="patch-${PV}-pf${COMPRESSTYPE}"
PF_URI="http://pf.natalenko.name/sources/$(get_version_component_range 1-2)/${PF_FILE}"
EXPERIMENTAL_PATCHES=(
# http://ck-hack.blogspot.com/2010/11/create-task-groups-by-tty-comment.html
# http://ck.kolivas.org/patches/bfs/bfs357-penalise_fork_depth_account_threads.patch
)
EXPERIMENTAL_URI="
experimental? (
${EXPERIMENTAL_PATCHES[@]}
)
"
SRC_URI="${KERNEL_URI} ${PF_URI}" # \${EXPERIMENTAL_URI}
KEYWORDS="-* ~amd64 ~ppc ~ppc64 ~x86"
IUSE="" # experimental
KV_FULL="${PVR}-pf"
S="${WORKDIR}"/linux-"${KV_FULL}"
pkg_setup(){
ewarn
ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way."
ewarn "If you need support, please contact the pf developers directly."
ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with"
ewarn "the ebuilds. Thank you."
ewarn
kernel-2_pkg_setup
}
src_prepare(){
epatch "${DISTDIR}"/"${PF_FILE}"
}
pkg_postinst() {
kernel-2_pkg_postinst
elog
elog "${P} has the following optional runtime dependencies:"
elog " sys-apps/tuxonice-userui"
elog " provides minimal userspace progress information related to"
elog " suspending and resuming process"
elog " sys-power/hibernate-script or sys-power/pm-utils"
elog " runtime utilites for hibernating and suspending your computer"
elog
}
K_EXTRAEINFO="For more info on pf-sources and details on how to report problems,
see: ${HOMEPAGE}."

View File

@ -1,70 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/pf-sources/pf-sources-3.6.11.ebuild,v 1.1 2012/12/06 20:06:44 hwoarang Exp $
EAPI="2"
inherit versionator
COMPRESSTYPE=".bz2"
K_USEPV="yes"
UNIPATCH_STRICTORDER="yes"
K_SECURITY_UNSUPPORTED="1"
CKV="$(get_version_component_range 1-2)"
ETYPE="sources"
inherit kernel-2
detect_version
K_NOSETEXTRAVERSION="don't_set_it"
DESCRIPTION="Linux kernel fork with new features, including the -ck patchset (BFS), BFQ, TuxOnIce and UKSM"
HOMEPAGE="http://pf.natalenko.name/"
PF_FILE="patch-${PV}-pf${COMPRESSTYPE}"
PF_URI="http://pf.natalenko.name/sources/$(get_version_component_range 1-2)/${PF_FILE}"
EXPERIMENTAL_PATCHES=(
# http://ck-hack.blogspot.com/2010/11/create-task-groups-by-tty-comment.html
# http://ck.kolivas.org/patches/bfs/bfs357-penalise_fork_depth_account_threads.patch
)
EXPERIMENTAL_URI="
experimental? (
${EXPERIMENTAL_PATCHES[@]}
)
"
SRC_URI="${KERNEL_URI} ${PF_URI}" # \${EXPERIMENTAL_URI}
KEYWORDS="-* ~amd64 ~ppc ~ppc64 ~x86"
IUSE="" # experimental
KV_FULL="${PVR}-pf"
S="${WORKDIR}"/linux-"${KV_FULL}"
pkg_setup(){
ewarn
ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way."
ewarn "If you need support, please contact the pf developers directly."
ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with"
ewarn "the ebuilds. Thank you."
ewarn
kernel-2_pkg_setup
}
src_prepare(){
epatch "${DISTDIR}"/"${PF_FILE}"
}
pkg_postinst() {
kernel-2_pkg_postinst
elog
elog "${P} has the following optional runtime dependencies:"
elog " sys-apps/tuxonice-userui"
elog " provides minimal userspace progress information related to"
elog " suspending and resuming process"
elog " sys-power/hibernate-script or sys-power/pm-utils"
elog " runtime utilites for hibernating and suspending your computer"
elog
}
K_EXTRAEINFO="For more info on pf-sources and details on how to report problems,
see: ${HOMEPAGE}."

View File

@ -1,70 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/pf-sources/pf-sources-3.6.8.ebuild,v 1.1 2012/11/07 18:53:09 hwoarang Exp $
EAPI="2"
inherit versionator
COMPRESSTYPE=".bz2"
K_USEPV="yes"
UNIPATCH_STRICTORDER="yes"
K_SECURITY_UNSUPPORTED="1"
CKV="$(get_version_component_range 1-2)"
ETYPE="sources"
inherit kernel-2
detect_version
K_NOSETEXTRAVERSION="don't_set_it"
DESCRIPTION="Linux kernel fork with new features, including the -ck patchset (BFS), BFQ, TuxOnIce and UKSM"
HOMEPAGE="http://pf.natalenko.name/"
PF_FILE="patch-${PV}-pf${COMPRESSTYPE}"
PF_URI="http://pf.natalenko.name/sources/$(get_version_component_range 1-2)/${PF_FILE}"
EXPERIMENTAL_PATCHES=(
# http://ck-hack.blogspot.com/2010/11/create-task-groups-by-tty-comment.html
# http://ck.kolivas.org/patches/bfs/bfs357-penalise_fork_depth_account_threads.patch
)
EXPERIMENTAL_URI="
experimental? (
${EXPERIMENTAL_PATCHES[@]}
)
"
SRC_URI="${KERNEL_URI} ${PF_URI}" # \${EXPERIMENTAL_URI}
KEYWORDS="-* ~amd64 ~ppc ~ppc64 ~x86"
IUSE="" # experimental
KV_FULL="${PVR}-pf"
S="${WORKDIR}"/linux-"${KV_FULL}"
pkg_setup(){
ewarn
ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way."
ewarn "If you need support, please contact the pf developers directly."
ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with"
ewarn "the ebuilds. Thank you."
ewarn
kernel-2_pkg_setup
}
src_prepare(){
epatch "${DISTDIR}"/"${PF_FILE}"
}
pkg_postinst() {
kernel-2_pkg_postinst
elog
elog "${P} has the following optional runtime dependencies:"
elog " sys-apps/tuxonice-userui"
elog " provides minimal userspace progress information related to"
elog " suspending and resuming process"
elog " sys-power/hibernate-script or sys-power/pm-utils"
elog " runtime utilites for hibernating and suspending your computer"
elog
}
K_EXTRAEINFO="For more info on pf-sources and details on how to report problems,
see: ${HOMEPAGE}."

View File

@ -1,70 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/pf-sources/pf-sources-3.6.9.ebuild,v 1.1 2012/11/19 10:39:56 wired Exp $
EAPI="2"
inherit versionator
COMPRESSTYPE=".bz2"
K_USEPV="yes"
UNIPATCH_STRICTORDER="yes"
K_SECURITY_UNSUPPORTED="1"
CKV="$(get_version_component_range 1-2)"
ETYPE="sources"
inherit kernel-2
detect_version
K_NOSETEXTRAVERSION="don't_set_it"
DESCRIPTION="Linux kernel fork with new features, including the -ck patchset (BFS), BFQ, TuxOnIce and UKSM"
HOMEPAGE="http://pf.natalenko.name/"
PF_FILE="patch-${PV}-pf${COMPRESSTYPE}"
PF_URI="http://pf.natalenko.name/sources/$(get_version_component_range 1-2)/${PF_FILE}"
EXPERIMENTAL_PATCHES=(
# http://ck-hack.blogspot.com/2010/11/create-task-groups-by-tty-comment.html
# http://ck.kolivas.org/patches/bfs/bfs357-penalise_fork_depth_account_threads.patch
)
EXPERIMENTAL_URI="
experimental? (
${EXPERIMENTAL_PATCHES[@]}
)
"
SRC_URI="${KERNEL_URI} ${PF_URI}" # \${EXPERIMENTAL_URI}
KEYWORDS="-* ~amd64 ~ppc ~ppc64 ~x86"
IUSE="" # experimental
KV_FULL="${PVR}-pf"
S="${WORKDIR}"/linux-"${KV_FULL}"
pkg_setup(){
ewarn
ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way."
ewarn "If you need support, please contact the pf developers directly."
ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with"
ewarn "the ebuilds. Thank you."
ewarn
kernel-2_pkg_setup
}
src_prepare(){
epatch "${DISTDIR}"/"${PF_FILE}"
}
pkg_postinst() {
kernel-2_pkg_postinst
elog
elog "${P} has the following optional runtime dependencies:"
elog " sys-apps/tuxonice-userui"
elog " provides minimal userspace progress information related to"
elog " suspending and resuming process"
elog " sys-power/hibernate-script or sys-power/pm-utils"
elog " runtime utilites for hibernating and suspending your computer"
elog
}
K_EXTRAEINFO="For more info on pf-sources and details on how to report problems,
see: ${HOMEPAGE}."

View File

@ -1,70 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/pf-sources/pf-sources-3.6.11.ebuild,v 1.1 2012/12/06 20:06:44 hwoarang Exp $
EAPI="2"
inherit versionator
COMPRESSTYPE=".bz2"
K_USEPV="yes"
UNIPATCH_STRICTORDER="yes"
K_SECURITY_UNSUPPORTED="1"
CKV="$(get_version_component_range 1-2)"
ETYPE="sources"
inherit kernel-2
detect_version
K_NOSETEXTRAVERSION="don't_set_it"
DESCRIPTION="Linux kernel fork with new features, including the -ck patchset (BFS), BFQ, TuxOnIce and UKSM"
HOMEPAGE="http://pf.natalenko.name/"
PF_FILE="patch-${PV}-pf${COMPRESSTYPE}"
PF_URI="http://pf.natalenko.name/sources/$(get_version_component_range 1-2)/${PF_FILE}"
EXPERIMENTAL_PATCHES=(
# http://ck-hack.blogspot.com/2010/11/create-task-groups-by-tty-comment.html
# http://ck.kolivas.org/patches/bfs/bfs357-penalise_fork_depth_account_threads.patch
)
EXPERIMENTAL_URI="
experimental? (
${EXPERIMENTAL_PATCHES[@]}
)
"
SRC_URI="${KERNEL_URI} ${PF_URI}" # \${EXPERIMENTAL_URI}
KEYWORDS="-* ~amd64 ~ppc ~ppc64 ~x86"
IUSE="" # experimental
KV_FULL="${PVR}-pf"
S="${WORKDIR}"/linux-"${KV_FULL}"
pkg_setup(){
ewarn
ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way."
ewarn "If you need support, please contact the pf developers directly."
ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with"
ewarn "the ebuilds. Thank you."
ewarn
kernel-2_pkg_setup
}
src_prepare(){
epatch "${DISTDIR}"/"${PF_FILE}"
}
pkg_postinst() {
kernel-2_pkg_postinst
elog
elog "${P} has the following optional runtime dependencies:"
elog " sys-apps/tuxonice-userui"
elog " provides minimal userspace progress information related to"
elog " suspending and resuming process"
elog " sys-power/hibernate-script or sys-power/pm-utils"
elog " runtime utilites for hibernating and suspending your computer"
elog
}
K_EXTRAEINFO="For more info on pf-sources and details on how to report problems,
see: ${HOMEPAGE}."

View File

@ -1,70 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/pf-sources/pf-sources-3.7.2.ebuild,v 1.1 2013/01/13 03:14:33 wired Exp $
EAPI="2"
inherit versionator
COMPRESSTYPE=".bz2"
K_USEPV="yes"
UNIPATCH_STRICTORDER="yes"
K_SECURITY_UNSUPPORTED="1"
CKV="$(get_version_component_range 1-2)"
ETYPE="sources"
inherit kernel-2
detect_version
K_NOSETEXTRAVERSION="don't_set_it"
DESCRIPTION="Linux kernel fork with new features, including the -ck patchset (BFS), BFQ, TuxOnIce and UKSM"
HOMEPAGE="http://pf.natalenko.name/"
PF_FILE="patch-${PV}-pf${COMPRESSTYPE}"
PF_URI="http://pf.natalenko.name/sources/$(get_version_component_range 1-2)/${PF_FILE}"
EXPERIMENTAL_PATCHES=(
# http://ck-hack.blogspot.com/2010/11/create-task-groups-by-tty-comment.html
# http://ck.kolivas.org/patches/bfs/bfs357-penalise_fork_depth_account_threads.patch
)
EXPERIMENTAL_URI="
experimental? (
${EXPERIMENTAL_PATCHES[@]}
)
"
SRC_URI="${KERNEL_URI} ${PF_URI}" # \${EXPERIMENTAL_URI}
KEYWORDS="-* ~amd64 ~ppc ~ppc64 ~x86"
IUSE="" # experimental
KV_FULL="${PVR}-pf"
S="${WORKDIR}"/linux-"${KV_FULL}"
pkg_setup(){
ewarn
ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way."
ewarn "If you need support, please contact the pf developers directly."
ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with"
ewarn "the ebuilds. Thank you."
ewarn
kernel-2_pkg_setup
}
src_prepare(){
epatch "${DISTDIR}"/"${PF_FILE}"
}
pkg_postinst() {
kernel-2_pkg_postinst
elog
elog "${P} has the following optional runtime dependencies:"
elog " sys-apps/tuxonice-userui"
elog " provides minimal userspace progress information related to"
elog " suspending and resuming process"
elog " sys-power/hibernate-script or sys-power/pm-utils"
elog " runtime utilites for hibernating and suspending your computer"
elog
}
K_EXTRAEINFO="For more info on pf-sources and details on how to report problems,
see: ${HOMEPAGE}."

View File

@ -1,70 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/pf-sources/pf-sources-3.7.2.ebuild,v 1.1 2013/01/13 03:14:33 wired Exp $
EAPI="2"
inherit versionator
COMPRESSTYPE=".bz2"
K_USEPV="yes"
UNIPATCH_STRICTORDER="yes"
K_SECURITY_UNSUPPORTED="1"
CKV="$(get_version_component_range 1-2)"
ETYPE="sources"
inherit kernel-2
detect_version
K_NOSETEXTRAVERSION="don't_set_it"
DESCRIPTION="Linux kernel fork with new features, including the -ck patchset (BFS), BFQ, TuxOnIce and UKSM"
HOMEPAGE="http://pf.natalenko.name/"
PF_FILE="patch-${PV}-pf${COMPRESSTYPE}"
PF_URI="http://pf.natalenko.name/sources/$(get_version_component_range 1-2)/${PF_FILE}"
EXPERIMENTAL_PATCHES=(
# http://ck-hack.blogspot.com/2010/11/create-task-groups-by-tty-comment.html
# http://ck.kolivas.org/patches/bfs/bfs357-penalise_fork_depth_account_threads.patch
)
EXPERIMENTAL_URI="
experimental? (
${EXPERIMENTAL_PATCHES[@]}
)
"
SRC_URI="${KERNEL_URI} ${PF_URI}" # \${EXPERIMENTAL_URI}
KEYWORDS="-* ~amd64 ~ppc ~ppc64 ~x86"
IUSE="" # experimental
KV_FULL="${PVR}-pf"
S="${WORKDIR}"/linux-"${KV_FULL}"
pkg_setup(){
ewarn
ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way."
ewarn "If you need support, please contact the pf developers directly."
ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with"
ewarn "the ebuilds. Thank you."
ewarn
kernel-2_pkg_setup
}
src_prepare(){
epatch "${DISTDIR}"/"${PF_FILE}"
}
pkg_postinst() {
kernel-2_pkg_postinst
elog
elog "${P} has the following optional runtime dependencies:"
elog " sys-apps/tuxonice-userui"
elog " provides minimal userspace progress information related to"
elog " suspending and resuming process"
elog " sys-power/hibernate-script or sys-power/pm-utils"
elog " runtime utilites for hibernating and suspending your computer"
elog
}
K_EXTRAEINFO="For more info on pf-sources and details on how to report problems,
see: ${HOMEPAGE}."

View File

@ -1,70 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/pf-sources/pf-sources-3.7.4.ebuild,v 1.1 2013/02/02 04:48:17 wired Exp $
EAPI="2"
inherit versionator
COMPRESSTYPE=".bz2"
K_USEPV="yes"
UNIPATCH_STRICTORDER="yes"
K_SECURITY_UNSUPPORTED="1"
CKV="$(get_version_component_range 1-2)"
ETYPE="sources"
inherit kernel-2
detect_version
K_NOSETEXTRAVERSION="don't_set_it"
DESCRIPTION="Linux kernel fork with new features, including the -ck patchset (BFS), BFQ, TuxOnIce and UKSM"
HOMEPAGE="http://pf.natalenko.name/"
PF_FILE="patch-${PV}-pf${COMPRESSTYPE}"
PF_URI="http://pf.natalenko.name/sources/$(get_version_component_range 1-2)/${PF_FILE}"
EXPERIMENTAL_PATCHES=(
# http://ck-hack.blogspot.com/2010/11/create-task-groups-by-tty-comment.html
# http://ck.kolivas.org/patches/bfs/bfs357-penalise_fork_depth_account_threads.patch
)
EXPERIMENTAL_URI="
experimental? (
${EXPERIMENTAL_PATCHES[@]}
)
"
SRC_URI="${KERNEL_URI} ${PF_URI}" # \${EXPERIMENTAL_URI}
KEYWORDS="-* ~amd64 ~ppc ~ppc64 ~x86"
IUSE="" # experimental
KV_FULL="${PVR}-pf"
S="${WORKDIR}"/linux-"${KV_FULL}"
pkg_setup(){
ewarn
ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way."
ewarn "If you need support, please contact the pf developers directly."
ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with"
ewarn "the ebuilds. Thank you."
ewarn
kernel-2_pkg_setup
}
src_prepare(){
epatch "${DISTDIR}"/"${PF_FILE}"
}
pkg_postinst() {
kernel-2_pkg_postinst
elog
elog "${P} has the following optional runtime dependencies:"
elog " sys-apps/tuxonice-userui"
elog " provides minimal userspace progress information related to"
elog " suspending and resuming process"
elog " sys-power/hibernate-script or sys-power/pm-utils"
elog " runtime utilites for hibernating and suspending your computer"
elog
}
K_EXTRAEINFO="For more info on pf-sources and details on how to report problems,
see: ${HOMEPAGE}."