diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2010-06-08 17:52:54 +0000 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2010-06-08 17:52:54 +0000 |
commit | 23409a040c13d1a7b55fd2b9c86b63838c664f40 (patch) | |
tree | 1f849c23be8b3e2a209c88cdd9520ad99c3bc8c4 /app-emulation/virtualbox-guest-additions/files | |
parent | Version bump, bug #323217 (diff) | |
download | gentoo-2-23409a040c13d1a7b55fd2b9c86b63838c664f40.tar.gz gentoo-2-23409a040c13d1a7b55fd2b9c86b63838c664f40.tar.bz2 gentoo-2-23409a040c13d1a7b55fd2b9c86b63838c664f40.zip |
Added a patch from PaX Team (bug #298988). Removed unused files.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'app-emulation/virtualbox-guest-additions/files')
3 files changed, 16 insertions, 124 deletions
diff --git a/app-emulation/virtualbox-guest-additions/files/vboxguest-log-use-c99.patch b/app-emulation/virtualbox-guest-additions/files/vboxguest-log-use-c99.patch new file mode 100644 index 000000000000..7834340910e1 --- /dev/null +++ b/app-emulation/virtualbox-guest-additions/files/vboxguest-log-use-c99.patch @@ -0,0 +1,16 @@ +# https://bugs.gentoo.org/298988 + +--- vboxguest/Makefile ++++ vboxguest/Makefile +@@ -220,9 +220,9 @@ KFLAGS := -D__KERNEL__ -DMODULE \ + -DVBOX -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_GUEST -DIN_GUEST_R0 \ + -DIN_MODULE -DRT_WITH_VBOX -DVBGL_VBOXGUEST -DVBOX_WITH_HGCM + ifeq ($(BUILD_TARGET_ARCH),amd64) +- KFLAGS += -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS ++ KFLAGS += -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS -DLOG_USE_C99 + else +- KFLAGS += -DRT_ARCH_X86 ++ KFLAGS += -DRT_ARCH_X86 -DLOG_USE_C99 + endif + ifeq ($(BUILD_TYPE),debug) + KFLAGS += -DDEBUG diff --git a/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-5.initd b/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-5.initd deleted file mode 100644 index 732aacac7b67..000000000000 --- a/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-5.initd +++ /dev/null @@ -1,62 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: - -depend() { - need localmount - before xdm -} - -createvboxdevice() { - local maj min - - maj=`sed -n 's;\([0-9]\+\) vboxguest;\1;p' /proc/devices` - - if ! [[ -z $maj ]] ; then - min=0 - else - min=`sed -n 's;\([0-9]\+\) vboxguest;\1;p' /proc/misc` - if ! [[ -z $min ]] ; then - maj=10 - fi - fi - - mknod /dev/vboxguest c $maj $min -m 0664 &> /dev/null -} - -start() { - ebegin "Starting VirtualBox guest additions" - - if [[ -e /dev/vboxguest ]] ; then - rm -f /dev/vboxguest &> /dev/null - fi - - einfo " Loading kernel modules and creating devices" - /sbin/modprobe vboxguest &> /dev/null - createvboxdevice - /sbin/modprobe vboxvfs &> /dev/null - - einfo " Starting the vboxguest system service" - start-stop-daemon --start --make-pidfile \ - --exec /usr/sbin/vboxguest-service --pidfile /var/run/vboxguest-service.pid \ - --name vboxguest-service \ - --background -- \ - --foreground - - eend $? "Failed to start VirtualBox guest additions" -} - -stop() { - ebegin "Stopping VirtualBox guest additions" - - einfo " Stopping the vboxguest system service" - start-stop-daemon --stop --quiet \ - --pidfile /var/run/vboxguest-service.pid --name vboxguest-service - - einfo " Unloading kernel modules and removing devices" - /sbin/rmmod vboxvfs &> /dev/null - /sbin/rmmod vboxguest &> /dev/null - rm -f /dev/vboxguest &> /dev/null - eend $? -} diff --git a/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-6.initd b/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-6.initd deleted file mode 100644 index aeb4acb7490d..000000000000 --- a/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-6.initd +++ /dev/null @@ -1,62 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: - -depend() { - need localmount - before xdm -} - -createvboxdevice() { - local maj min - - maj=`sed -n 's;\([0-9]\+\) vboxguest;\1;p' /proc/devices` - - if ! [[ -z $maj ]] ; then - min=0 - else - min=`sed -n 's;\([0-9]\+\) vboxguest;\1;p' /proc/misc` - if ! [[ -z $min ]] ; then - maj=10 - fi - fi - - mknod /dev/vboxguest c $maj $min -m 0664 &> /dev/null -} - -start() { - ebegin "Starting VirtualBox guest additions" - - if [[ -e /dev/vboxguest ]] ; then - rm -f /dev/vboxguest &> /dev/null - fi - - einfo " Loading kernel modules and creating devices" - /sbin/modprobe vboxguest &> /dev/null - createvboxdevice - /sbin/modprobe vboxsf &> /dev/null - - einfo " Starting the vboxguest system service" - start-stop-daemon --start --make-pidfile \ - --exec /usr/sbin/vboxguest-service --pidfile /var/run/vboxguest-service.pid \ - --name vboxguest-service \ - --background -- \ - --foreground - - eend $? "Failed to start VirtualBox guest additions" -} - -stop() { - ebegin "Stopping VirtualBox guest additions" - - einfo " Stopping the vboxguest system service" - start-stop-daemon --stop --quiet \ - --pidfile /var/run/vboxguest-service.pid --name vboxguest-service - - einfo " Unloading kernel modules and removing devices" - /sbin/rmmod vboxsf &> /dev/null - /sbin/rmmod vboxguest &> /dev/null - rm -f /dev/vboxguest &> /dev/null - eend $? -} |