Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 541126 - app-emulation/virtualbox-modules needs a patch for Linux 4.0
Summary: app-emulation/virtualbox-modules needs a patch for Linux 4.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-23 12:17 UTC by Helmut Jarausch
Modified: 2015-03-04 07:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for Linux 4.0.0-rc1 (virtualbox-modules-4.3.20-linux4.patch,1.00 KB, patch)
2015-02-23 12:17 UTC, Helmut Jarausch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.