Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 541126

Summary: app-emulation/virtualbox-modules needs a patch for Linux 4.0
Product: Gentoo Linux Reporter: Helmut Jarausch <jarausch>
Component: [OLD] UnspecifiedAssignee: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Status: RESOLVED FIXED    
Severity: normal CC: patrick
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch for Linux 4.0.0-rc1

Description Helmut Jarausch 2015-02-23 12:17:17 UTC
Created attachment 397306 [details, diff]
patch for Linux 4.0.0-rc1

virtualbox-modules 4.3.20 ( as well as 4.3.22 which is not in the tree, yet)
does not compile with the recent Linux kernel 4.0.0-rc1 since two symbols have been redefined.
The attached patch solves this.

The ebuild has to include
src_prepare() {
....
	if kernel_is -ge 4 0 0 ; then
		epatch "${FILESDIR}"/${P}-linux4.patch
	fi
}
Comment 1 jospezial 2015-02-23 21:56:07 UTC
I can confirm. the attached patch works.
I did not include it in my ebuild. I patched it per hand.

rm -r /var/tmp/portage/*
ebuild /usr/portage/app-emulation/virtualbox-modules/virtualbox-modules-4.3.20.ebuild unpack
cd /var/tmp/portage/app-emulation/virtualbox-modules-4.3.20/work/
patch -p0 </home/joerg/Downloads/virtualbox-modules-4.3.20-linux4.patch
cd
ebuild /usr/portage/app-emulation/virtualbox-modules/virtualbox-modules-4.3.20.ebuild merge

Merged fine.

Is this patch known upstream?
Comment 2 Viktor Yu. Kovalskii 2015-03-03 04:49:14 UTC
(In reply to jospezial from comment #1)
> Is this patch known upstream?

Upstream bug [1] was fixed in VirtualBox 4.3.24[2].

[1] https://www.virtualbox.org/ticket/13835
[2] https://www.virtualbox.org/wiki/Changelog
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2015-03-04 07:13:57 UTC
=app-emulation/virtualbox-modules-4.3.24 is in the tree now.