From 6d9bf2e85ffe172c82769c02da63e97a1462119e Mon Sep 17 00:00:00 2001 From: Donnie Berkholz Date: Tue, 8 Nov 2011 12:04:28 -0600 Subject: virtualbox-modules: compile w/ 3.2 kernel RCs. --- app-emulation/virtualbox-modules/ChangeLog | 510 +++++++++++++++++++++ app-emulation/virtualbox-modules/Manifest | 6 + .../files/4.1.4-kernel-3.2-compile.patch | 44 ++ .../files/virtualbox-modules-4.1.4-pax-const.patch | 48 ++ app-emulation/virtualbox-modules/metadata.xml | 19 + .../virtualbox-modules-4.1.4.ebuild | 63 +++ 6 files changed, 690 insertions(+) create mode 100644 app-emulation/virtualbox-modules/ChangeLog create mode 100644 app-emulation/virtualbox-modules/Manifest create mode 100644 app-emulation/virtualbox-modules/files/4.1.4-kernel-3.2-compile.patch create mode 100644 app-emulation/virtualbox-modules/files/virtualbox-modules-4.1.4-pax-const.patch create mode 100644 app-emulation/virtualbox-modules/metadata.xml create mode 100644 app-emulation/virtualbox-modules/virtualbox-modules-4.1.4.ebuild diff --git a/app-emulation/virtualbox-modules/ChangeLog b/app-emulation/virtualbox-modules/ChangeLog new file mode 100644 index 0000000..c611c3a --- /dev/null +++ b/app-emulation/virtualbox-modules/ChangeLog @@ -0,0 +1,510 @@ +# ChangeLog for app-emulation/virtualbox-modules +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virtualbox-modules/ChangeLog,v 1.92 2011/11/01 10:54:11 chainsaw Exp $ + + 01 Nov 2011; Tony Vroon + virtualbox-modules-4.1.4.ebuild: + Marked stable on AMD64 based on arch testing by Tomáš "Mepho" Pružina, + Blain "doc235" Anderson & Elijah "Armageddon" El Lazkani in security bug + #386317. + + 24 Oct 2011; Lars Wendler + virtualbox-modules-4.1.4.ebuild, + +files/virtualbox-modules-4.1.4-pax-const.patch: + Fixed compilation with >=3.0.4 hardened kernel. Thanks to letrec for + providing the patch and blueness for giving the correct hints wrt. USE flag + naming (bug #386497). + +*virtualbox-modules-4.1.4 (04 Oct 2011) + + 04 Oct 2011; Lars Wendler + -virtualbox-modules-4.1.0-r1.ebuild, + -files/virtualbox-modules-4.1.0-vboxbug9305.patch, + virtualbox-modules-4.1.2.ebuild, +virtualbox-modules-4.1.4.ebuild: + Version bump. Thanks to Christian Inci who reported this in bug #385577. + Removed old. + +*virtualbox-modules-4.1.2 (17 Aug 2011) + + 17 Aug 2011; Lars Wendler + +virtualbox-modules-4.1.2.ebuild: + Version bump. Added some PCI checks as suggested by Fabio Rossi in bug + #379119. + + 09 Aug 2011; Lars Wendler + -virtualbox-modules-3.2.12.ebuild, -virtualbox-modules-4.0.10.ebuild, + -virtualbox-modules-4.1.0.ebuild: + Removed old versions. + +*virtualbox-modules-4.1.0-r1 (07 Aug 2011) + + 07 Aug 2011; Lars Wendler + +virtualbox-modules-4.1.0-r1.ebuild, + +files/virtualbox-modules-4.1.0-vboxbug9305.patch, metadata.xml: + Fixed kernel panic on suspend. Thanks to Martin Atenreit for reporting this + in bug #377229. + + 22 Jul 2011; Markos Chandras + virtualbox-modules-4.0.12.ebuild: + Stable on amd64 wrt bug #371935 + + 22 Jul 2011; Thomas Kahle + virtualbox-modules-4.0.12.ebuild: + x86 stable per bug 371935 + +*virtualbox-modules-4.1.0 (19 Jul 2011) + + 19 Jul 2011; Lars Wendler + +virtualbox-modules-4.1.0.ebuild: + Added 4.1 version branch + +*virtualbox-modules-4.0.12 (17 Jul 2011) + + 17 Jul 2011; Lars Wendler + -virtualbox-modules-4.0.8.ebuild, +virtualbox-modules-4.0.12.ebuild: + Version bump. Removed old. + +*virtualbox-modules-4.0.10 (28 Jun 2011) + + 28 Jun 2011; Lars Wendler + -virtualbox-modules-4.0.6-r1.ebuild, +virtualbox-modules-4.0.10.ebuild: + Version bump. Removed old. + +*virtualbox-modules-4.0.8 (18 May 2011) + + 18 May 2011; Lars Wendler + -virtualbox-modules-4.0.4.ebuild, +virtualbox-modules-4.0.8.ebuild: + Version bump reported by Philipp Reinkemeier in bug #367947. + +*virtualbox-modules-4.0.6-r1 (08 May 2011) + + 08 May 2011; Lars Wendler + -virtualbox-modules-4.0.6.ebuild, +virtualbox-modules-4.0.6-r1.ebuild: + Moved installation of udev rules to virtualbox{,-bin} (bug #356215). + +*virtualbox-modules-4.0.6 (22 Apr 2011) + + 22 Apr 2011; Lars Wendler + -virtualbox-modules-4.0.2.ebuild, +virtualbox-modules-4.0.6.ebuild: + Version bump. Removed old. + + 20 Feb 2011; Lars Wendler + -virtualbox-modules-3.1.8.ebuild: + Removed ancient 3.1.8 version. + +*virtualbox-modules-4.0.4 (18 Feb 2011) + + 18 Feb 2011; Lars Wendler + -virtualbox-modules-4.0.0.ebuild, +virtualbox-modules-4.0.4.ebuild: + Version bump. Removed old. + + 03 Feb 2011; Thomas Kahle + virtualbox-modules-3.2.12.ebuild: + x86 stable per bug 336465 + +*virtualbox-modules-4.0.2 (18 Jan 2011) + + 18 Jan 2011; Lars Wendler + -virtualbox-modules-3.2.10.ebuild, +virtualbox-modules-4.0.2.ebuild: + Version bump. + + 07 Jan 2011; Lars Wendler + virtualbox-modules-3.1.8.ebuild, virtualbox-modules-3.2.10.ebuild, + virtualbox-modules-3.2.12.ebuild, virtualbox-modules-4.0.0.ebuild: + Adjusted dependencies for pkgmove of virtualbox-ose. + +*virtualbox-modules-4.0.0 (06 Jan 2011) + + 06 Jan 2011; Lars Wendler + +virtualbox-modules-4.0.0.ebuild: + Version bump. + + 31 Dec 2010; Markos Chandras + virtualbox-modules-3.2.12.ebuild: + Stable on amd64 wrt bug #336465 + +*virtualbox-modules-3.2.12 (03 Dec 2010) + + 03 Dec 2010; Lars Wendler + -virtualbox-modules-3.2.8.ebuild, +virtualbox-modules-3.2.12.ebuild: + Version bump. Removed old. + +*virtualbox-modules-3.2.10 (12 Oct 2010) + + 12 Oct 2010; Lars Wendler + -virtualbox-modules-3.2.6.ebuild, +virtualbox-modules-3.2.10.ebuild: + Version bump. Removed old + +*virtualbox-modules-3.2.8 (06 Aug 2010) + + 06 Aug 2010; Lars Wendler + -virtualbox-modules-3.2.4.ebuild, +virtualbox-modules-3.2.8.ebuild: + Version bump. Removed old. + + 01 Aug 2010; Lars Wendler + virtualbox-modules-3.1.8.ebuild, virtualbox-modules-3.2.4.ebuild, + virtualbox-modules-3.2.6.ebuild: + New location of the distfiles. + + 17 Jul 2010; Lars Wendler + -files/virtualbox-modules-1.6.6_2.6.27.patch, + -files/virtualbox-modules-2.6.29_rc.patch, + -virtualbox-modules-3.0.12.ebuild: + Removed old. + + 14 Jul 2010; Christian Faulhammer + virtualbox-modules-3.1.8.ebuild: + stable x86, bug 320595 + +*virtualbox-modules-3.2.6 (27 Jun 2010) + + 27 Jun 2010; Lars Wendler + -virtualbox-modules-3.2.2.ebuild, +virtualbox-modules-3.2.6.ebuild: + Version bump. Removed old. Thanks to tman who reported this in bug + #325799. + + 21 Jun 2010; Christoph Mende + virtualbox-modules-3.1.8.ebuild: + Stable on amd64 wrt bug #320595 + +*virtualbox-modules-3.2.4 (07 Jun 2010) + + 07 Jun 2010; Lars Wendler + -virtualbox-modules-3.2.0.ebuild, +virtualbox-modules-3.2.4.ebuild: + Version bump. Removed old. + +*virtualbox-modules-3.2.2 (03 Jun 2010) + + 03 Jun 2010; Lars Wendler + -virtualbox-modules-3.1.6.ebuild, +virtualbox-modules-3.2.2.ebuild, + metadata.xml: + Version bump. Removed old. + +*virtualbox-modules-3.2.0 (20 May 2010) + + 20 May 2010; Lars Wendler + +virtualbox-modules-3.2.0.ebuild: + Version bump. Removed old versions. + +*virtualbox-modules-3.1.8 (10 May 2010) + + 10 May 2010; Lars Wendler + virtualbox-modules-3.1.2.ebuild, virtualbox-modules-3.1.4.ebuild, + virtualbox-modules-3.1.6.ebuild, +virtualbox-modules-3.1.8.ebuild: + version bump and whitespace fixes + +*virtualbox-modules-3.1.6 (28 Mar 2010) + + 28 Mar 2010; Patrick Lauer + +virtualbox-modules-3.1.6.ebuild: + Bump + +*virtualbox-modules-3.1.4 (13 Feb 2010) + + 13 Feb 2010; Patrick Lauer + +virtualbox-modules-3.1.4.ebuild: + Bump + + 13 Feb 2010; Patrick Lauer + virtualbox-modules-3.1.2.ebuild: + Compile fix for newer kernels + +*virtualbox-modules-3.1.2 (28 Jan 2010) + + 28 Jan 2010; Patrick Lauer + +virtualbox-modules-3.1.2.ebuild: + Bump to 3.1.2 + + 28 Jan 2010; Patrick Lauer metadata.xml: + Taking over maintenance from Jokey + +*virtualbox-modules-3.1.0 (02 Dec 2009) + + 02 Dec 2009; Patrick Lauer + +virtualbox-modules-3.1.0.ebuild: + Bump + + 30 Nov 2009; Patrick Lauer + -virtualbox-modules-3.0.8.ebuild, -virtualbox-modules-3.0.10.ebuild: + Remove old + + 30 Nov 2009; Markus Meier + virtualbox-modules-3.0.12.ebuild: + amd64 stable, bug #294678 + + 27 Nov 2009; Christian Faulhammer + virtualbox-modules-3.0.12.ebuild: + stable x86, security bug 294678 + +*virtualbox-modules-3.0.12 (19 Nov 2009) + + 19 Nov 2009; Patrick Lauer + +virtualbox-modules-3.0.12.ebuild: + Bump, closes #293556 + + 10 Nov 2009; Patrick Lauer + -virtualbox-modules-1.6.6.ebuild, -virtualbox-modules-1.6.6-r1.ebuild, + -virtualbox-modules-3.0.6.ebuild: + Drop old + + 09 Nov 2009; Markus Meier + virtualbox-modules-3.0.8.ebuild: + amd64 stable, bug #288836 + + 09 Nov 2009; Markus Meier + virtualbox-modules-3.0.6.ebuild: + amd64 stable, bug #285451 + +*virtualbox-modules-3.0.10 (03 Nov 2009) + + 03 Nov 2009; Patrick Lauer + +virtualbox-modules-3.0.10.ebuild: + Bump to 3.0.10, fixes #291214 #290296 #285749 #286163 + + 19 Oct 2009; Christian Faulhammer + virtualbox-modules-3.0.8.ebuild: + stable x86, bug 288836 + +*virtualbox-modules-3.0.8 (06 Oct 2009) + + 06 Oct 2009; Patrick Lauer + +virtualbox-modules-3.0.8.ebuild: + Bump to 3.0.8, big thanks to X-Drum for testing + + 21 Sep 2009; Christian Faulhammer + virtualbox-modules-3.0.6.ebuild: + stable x86, bug 285451 + + 12 Sep 2009; Patrick Lauer + -virtualbox-modules-3.0.4.ebuild: + Remove old + +*virtualbox-modules-3.0.6 (10 Sep 2009) + + 10 Sep 2009; Patrick Lauer + +virtualbox-modules-3.0.6.ebuild: + Bump to 3.0.6, thanks to Alessio Cassiba. Fixes #284407 + + 17 Aug 2009; Patrick Lauer + -virtualbox-modules-2.1.4.ebuild, -virtualbox-modules-2.2.0.ebuild, + -virtualbox-modules-2.2.2.ebuild, -virtualbox-modules-2.2.4.ebuild, + -virtualbox-modules-3.0.2.ebuild: + Dropping vulnerable versions for #280157 + +*virtualbox-modules-3.0.4 (17 Aug 2009) + + 17 Aug 2009; Patrick Lauer + +virtualbox-modules-3.0.4.ebuild: + Bump to 3.0.4, fixes #280157. Thanks to Alessio Cassibba + +*virtualbox-modules-3.0.2 (16 Jul 2009) + + 16 Jul 2009; Patrick Lauer + +virtualbox-modules-3.0.2.ebuild: + Bump to 3.0.2. Fixes #275963. Thanks to Alessio Cassiba and all the + testers + +*virtualbox-modules-2.2.4 (01 Jun 2009) + + 01 Jun 2009; Patrick Lauer + +virtualbox-modules-2.2.4.ebuild: + Bump to 2.2.4, thanks to Alessio Cassibba. Fixes #271983 #271341 #269335 + + 30 Apr 2009; Patrick Lauer + -virtualbox-modules-2.0.2.ebuild, -virtualbox-modules-2.0.4.ebuild, + -virtualbox-modules-2.0.6.ebuild: + Remove old 2.0 + +*virtualbox-modules-2.2.2 (30 Apr 2009) + + 30 Apr 2009; Patrick Lauer + +virtualbox-modules-2.2.2.ebuild: + Bump to 2.2.2, thanks to Alessio Cassibba. Fixes #267838 + +*virtualbox-modules-2.2.0 (18 Apr 2009) + + 18 Apr 2009; Patrick Lauer + +virtualbox-modules-2.2.0.ebuild: + Bump to 2.2.0. Many thanks to Alessio Cassibba for the ebuilds. Part of + #265510 + + 05 Mar 2009; Patrick Lauer + +files/virtualbox-modules-2.6.29_rc.patch: + Adding missing patch, closes #261314 + +*virtualbox-modules-2.1.4 (03 Mar 2009) + + 03 Mar 2009; Patrick Lauer + +virtualbox-modules-2.1.4.ebuild: + Bump to 2.1.4. Ebuild by Alessio Cassibba (X-Drum) , + imported from the jokey overlay. Fixes vboxdrv kernel problems with + 2.6.29-rc* kernels, thanks to Ben Kohler bug #259688 + + 25 Dec 2008; Markus Meier + virtualbox-modules-1.6.6-r1.ebuild: + x86 stable, bug #245624 + + 25 Dec 2008; Thomas Anderson + virtualbox-modules-1.6.6-r1.ebuild: + stable amd64, bug 245624 + + 18 Dec 2008; Diego E. Pettenò + +files/virtualbox-modules-1.6.6_2.6.27.patch, + +virtualbox-modules-1.6.6-r1.ebuild: + Proxy fix from Alessio. + +*virtualbox-modules-1.6.6-r1 (18 Dec 2008) + + 18 Dec 2008; Diego E. Pettenò + +files/virtualbox-modules-1.6.6_2.6.27.patch, + +virtualbox-modules-1.6.6-r1.ebuild: + Proxy fix from Alessio. + + 25 Nov 2008; Alessio Cassibba (X-Drum) + -virtualbox-modules-2.0.2.ebuild: + drop version 2.0.2 + + 10 Nov 2008; Alessio Cassibba (X-Drum) + -virtualbox-modules-1.6.6.ebuild, +virtualbox-modules-1.6.6-r1.ebuild, + +files/virtualbox-modules-1.6.6_2.6.27.patch: + fix compilation against kernel 2.6.27 thanks to gengor@gentoo.org, see bug + #245624 + +*virtualbox-modules-2.0.6 (29 Nov 2008) + + 29 Nov 2008; Mike Frysinger + +virtualbox-modules-2.0.6.ebuild: + Version bump for Alessio Cassibba #248776 by Rodrigo Severo. + + 28 Oct 2008; Markus Ullmann + virtualbox-modules-1.6.6.ebuild: + Reinstate stable keyword for bug #244718 + +*virtualbox-modules-2.0.4 (27 Oct 2008) + + 27 Oct 2008; Markus Ullmann + -virtualbox-modules-1.6.4.ebuild, +virtualbox-modules-2.0.4.ebuild: + (Proxy commit) Version bump + + 25 Oct 2008; Alessio Cassibba (X-Drum) + -virtualbox-modules-1.6.4.ebuild, +virtualbox-modules-2.0.4.ebuild: + Version Bump; drop version 1.6.4 + +*virtualbox-modules-2.0.2 (15 Sep 2008) + + 15 Sep 2008; Markus Ullmann + -virtualbox-modules-1.6.2.ebuild, virtualbox-modules-1.6.4.ebuild, + virtualbox-modules-1.6.6.ebuild, +virtualbox-modules-2.0.2.ebuild: + (Proxy-Commit) Port from dev overlay + + 14 Sep 2008; Alessio Cassibba (X-Drum) ChangeLog: + +virtualbox-modules-2.0.2.ebuild, -virtualbox-modules-1.6.2.ebuild: + Version Bump + +*virtualbox-modules-1.6.6 (06 Sep 2008) + + 06 Sep 2008; Markus Ullmann + -virtualbox-modules-1.5.7.ebuild, virtualbox-modules-1.6.2.ebuild, + virtualbox-modules-1.6.4.ebuild, +virtualbox-modules-1.6.6.ebuild: + Port from dev overlay + + 02 Sep 2008; Alessio Cassibba (X-Drum) + -virtualbox-modules-1.5.7.ebuild, virtualbox-modules-1.6.4.ebuild, + +virtualbox-modules-1.6.6.ebuild: + Version bump; drop old 1.5.x version + + 27 Aug 2008; Markus Ullmann + virtualbox-modules-1.6.4.ebuild: + Stable on x86 and amd64 + + 27 Aug 2008; Markus Ullmann + -files/virtualbox-modules_2.6.24.patch, + -virtualbox-modules-1.5.2-r1.ebuild, -virtualbox-modules-1.5.4.ebuild, + -virtualbox-modules-1.5.6.ebuild, virtualbox-modules-1.5.7.ebuild, + virtualbox-modules-1.6.2.ebuild, virtualbox-modules-1.6.4.ebuild: + Adjust blockers for renaming + +*virtualbox-modules-1.6.4 (10 Aug 2008) + + 10 Aug 2008; Markus Ullmann + +virtualbox-modules-1.6.4.ebuild: + Add version bump from my overlay wrt bug #233683 + +*virtualbox-modules-1.6.2 (13 Jun 2008) + + 13 Jun 2008; Doug Goldstein + +virtualbox-modules-1.6.2.ebuild: + copy changes from jokey's overlay to the tree as jokey requested + +*virtualbox-modules-1.5.7 (21 Apr 2008) + + 21 Apr 2008; Markus Ullmann + +virtualbox-modules-1.5.7.ebuild: + (Proxy commit) version bump to fix API change in kernel 2.6.25 + (chage_page_attr function) bug #218198 + + 06 Mar 2008; Christoph Mende + virtualbox-modules-1.5.4.ebuild: + Stable on amd64, bug #208905 + + 04 Mar 2008; Markus Ullmann + virtualbox-modules-1.5.4.ebuild: + Stable on x86 wrt bug #208905 + +*virtualbox-modules-1.5.6 (25 Feb 2008) + + 25 Feb 2008; Diego Pettenò + +virtualbox-modules-1.5.6.ebuild: + Version bump, as requested by the proxy-maintainer Alessio Cassibba. + +*virtualbox-modules-1.5.4 (05 Jan 2008) + + 05 Jan 2008; Markus Ullmann + +virtualbox-modules-1.5.4.ebuild: + Version bump wrt bug #203893 thanks to x-drum + + 06 Dec 2007; Markus Ullmann + files/virtualbox-modules_2.6.24.patch, virtualbox-modules-1.5.2-r1.ebuild: + Only apply 2.6.24 patch if there is such a kernel and add more patch stuff + from upstream, thanks to Bjoern Olausson in bug #199798 + +*virtualbox-modules-1.5.2-r1 (05 Dec 2007) + + 05 Dec 2007; Markus Ullmann + +files/virtualbox-modules_2.6.24.patch, -virtualbox-modules-1.5.2.ebuild, + +virtualbox-modules-1.5.2-r1.ebuild: + Add 2.6.24 kernel patch from bug #199798 , thanks to Bjoern Olausson + + 03 Nov 2007; Markus Ullmann + -virtualbox-modules-1.4.0.ebuild: + Cleanup + + 29 Oct 2007; Dawid Węgliński + virtualbox-modules-1.5.2.ebuild: + Stable on x86 + + 22 Oct 2007; Markus Ullmann + -virtualbox-modules-1.3.8.ebuild, -virtualbox-modules-1.5.0.ebuild: + Drop old + +*virtualbox-modules-1.5.2 (22 Oct 2007) + + 22 Oct 2007; Markus Ullmann + +virtualbox-modules-1.5.2.ebuild: + Version bump wrt bug #196424 thanks to Alessio for the ebuilds + + 17 Sep 2007; Markus Ullmann + virtualbox-modules-1.5.0.ebuild: + nmi_watchdog=0 no more needed for amd64, remove message in pkg_postinst, + from x-drum + +*virtualbox-modules-1.5.0 (04 Sep 2007) + + 04 Sep 2007; Markus Ullmann + +virtualbox-modules-1.5.0.ebuild: + Version bump wrt bug #191142 + + 23 Jun 2007; Charlie Shepherd + virtualbox-modules-1.3.8.ebuild, virtualbox-modules-1.4.0.ebuild: + Fix headers, thanks to x-drum + diff --git a/app-emulation/virtualbox-modules/Manifest b/app-emulation/virtualbox-modules/Manifest new file mode 100644 index 0000000..0243320 --- /dev/null +++ b/app-emulation/virtualbox-modules/Manifest @@ -0,0 +1,6 @@ +AUX 4.1.4-kernel-3.2-compile.patch 1398 RMD160 5233c96295a4a7f0a6baeb5b0d677b528065f77a SHA1 62c446de0c4c8f2f8430c0d8658d136d348d12cc SHA256 acb5a611491e79e0baf11c1812ec9c0749db62977f894f768f812905322a43d1 +AUX virtualbox-modules-4.1.4-pax-const.patch 2335 RMD160 6d082729b5393bab9c185cdc768488636ac9e59e SHA1 efc1fa014934afa0ea3ae692d93e1996441945a2 SHA256 d23da93fa1a3b7833766caa8329745ed7de7a5ed6ce1fecb090325fdc83e42f3 +DIST vbox-kernel-module-src-4.1.4.tar.bz2 505952 RMD160 c540fb563d6fdab747366c66d5e472ebffbd3639 SHA1 35a4274118d44bd8603fecfa93817ef129c8e57c SHA256 03577cd31e5ff322102e9bec1ed40f189c50d94032e2d62206b6541a0fda1fb8 +EBUILD virtualbox-modules-4.1.4.ebuild 1723 RMD160 4b8dc0e9b7e18746c9027688aefe11a551928301 SHA1 98a699a9e7224c27291b37b303f0ba5be6ad7484 SHA256 5028e96492d0853273f94bb522763b8c5723db514811c6b85b39f91ce6cc6cff +MISC ChangeLog 17010 RMD160 371fafb22d0e5540d84697a7f915366a276c2879 SHA1 5f43f1c0eb18d5aecea5019d22c893c39d437218 SHA256 230099a96dd152cd75fd24f3765313d2ac39361b3eb7b86969dc20af8eed0efc +MISC metadata.xml 524 RMD160 605893cae913de8fca2a99e283854a7c195fa4e2 SHA1 a476b7fcd62a5d1a54ad1a018c4daac50bb27d0b SHA256 9ae0eab26084901b8d307d8923f5c130d310deceb09047aae884557a00f70bbb diff --git a/app-emulation/virtualbox-modules/files/4.1.4-kernel-3.2-compile.patch b/app-emulation/virtualbox-modules/files/4.1.4-kernel-3.2-compile.patch new file mode 100644 index 0000000..5dcb904 --- /dev/null +++ b/app-emulation/virtualbox-modules/files/4.1.4-kernel-3.2-compile.patch @@ -0,0 +1,44 @@ +diff -ur work.orig/vboxpci/linux/VBoxPci-linux.c work/vboxpci/linux/VBoxPci-linux.c +--- work.orig/vboxpci/linux/VBoxPci-linux.c 2011-11-08 12:00:19.358988620 -0600 ++++ work/vboxpci/linux/VBoxPci-linux.c 2011-11-08 12:02:04.248848673 -0600 +@@ -35,11 +35,19 @@ + #ifdef VBOX_WITH_IOMMU + #include + #include ++#include + #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 1, 0) + # include + #else + # include + #endif ++#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 2, 0) ++#define IOMMU_PRESENT() iommu_found() ++#define IOMMU_DOMAIN_ALLOC() iommu_domain_alloc() ++#else ++#define IOMMU_PRESENT() iommu_present(&pci_bus_type) ++#define IOMMU_DOMAIN_ALLOC() iommu_domain_alloc(&pci_bus_type) ++#endif + #endif + + +@@ -146,7 +154,7 @@ + #endif + + #ifdef VBOX_WITH_IOMMU +- if (iommu_found()) ++ if (IOMMU_PRESENT()) + printk(KERN_INFO "vboxpci: IOMMU found\n"); + else + printk(KERN_INFO "vboxpci: IOMMU not found (not registered)\n"); +@@ -984,9 +992,9 @@ + printk(KERN_DEBUG "vboxPciOsInitVm: %p\n", pThis); + #endif + #ifdef VBOX_WITH_IOMMU +- if (iommu_found()) ++ if (IOMMU_PRESENT()) + { +- pThis->pIommuDomain = iommu_domain_alloc(); ++ pThis->pIommuDomain = IOMMU_DOMAIN_ALLOC(); + if (!pThis->pIommuDomain) + { + printk(KERN_DEBUG "cannot allocate IOMMU domain\n"); diff --git a/app-emulation/virtualbox-modules/files/virtualbox-modules-4.1.4-pax-const.patch b/app-emulation/virtualbox-modules/files/virtualbox-modules-4.1.4-pax-const.patch new file mode 100644 index 0000000..4e4cde0 --- /dev/null +++ b/app-emulation/virtualbox-modules/files/virtualbox-modules-4.1.4-pax-const.patch @@ -0,0 +1,48 @@ +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" + diff --git a/app-emulation/virtualbox-modules/metadata.xml b/app-emulation/virtualbox-modules/metadata.xml new file mode 100644 index 0000000..4f33f93 --- /dev/null +++ b/app-emulation/virtualbox-modules/metadata.xml @@ -0,0 +1,19 @@ + + + + + polynomial-c@gentoo.org + Lars Wendler + + + patrick@gentoo.org + Patrick Lauer + + + swapon@gmail.com + Alessio Cassibba + + + Apply patch needed for pax enabled kernels + + diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-4.1.4.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-4.1.4.ebuild new file mode 100644 index 0000000..27ceca3 --- /dev/null +++ b/app-emulation/virtualbox-modules/virtualbox-modules-4.1.4.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2011 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.1.4.ebuild,v 1.3 2011/11/01 10:54:11 chainsaw Exp $ + +# XXX: the tarball here is just the kernel modules split out of the binary +# package that comes from virtualbox-bin + +EAPI=2 + +inherit eutils linux-mod + +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.bz2" + +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:::' + fi + + epatch "${FILESDIR}"/4.1.4-kernel-3.2-compile.patch + + use pax_kernel && epatch "${FILESDIR}"/${PN}-4.1.4-pax-const.patch +} + +src_install() { + linux-mod_src_install +} + +pkg_postinst() { + linux-mod_pkg_postinst + elog "Starting with the 3.x release new kernel modules were added," + elog "be sure to load all the needed modules." + elog "" + elog "Please add \"vboxdrv\", \"vboxnetflt\" and \"vboxnetadp\" to:" + if has_version sys-apps/openrc; then + elog "/etc/conf.d/modules" + else + elog "/etc/modules.autoload.d/kernel-${KV_MAJOR}.${KV_MINOR}" + fi +} -- cgit v1.2.3-65-gdbad