x11-drivers/xf86-video-virtualbox: fix bug #625690

Package-Manager: Portage-2.3.6, Repoman-2.3.3
Closes: https://github.com/gentoo/gentoo/pull/5202
This commit is contained in:
Kacper Kołodziej
2017-07-24 23:20:26 +02:00
committed by Lars Wendler
parent 5a45b12053
commit 3505625d78
2 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
Fix bug #625690
--- a/src/VBox/Additions/linux/drm/Makefile.module.kms
+++ b/src/VBox/Additions/linux/drm/Makefile.module.kms
@@ -50,7 +50,7 @@ MOD_CFLAGS = -Wno-declaration-after-statement -fshort-wchar -fno-pie
ifneq ($(KERN_VERSION),24)
MOD_CFLAGS += -include $(MANGLING)
endif
-MOD_INCL = $(addprefix -I$(KBUILD_EXTMOD),/ /include)
+MOD_INCL = $(addprefix -I$(KBUILD_EXTMOD),/ /include /r0drv/linux)
# What on earth is this?
MOD_INCL += $(addprefix -I$(KBUILD_EXTMOD)/vboxvideo,/ /include)
MOD_INCL += -Iinclude/drm

View File

@@ -75,7 +75,7 @@ pkg_setup() {
src_prepare() {
# Prepare the vboxvideo_drm Makefiles and build dir
eapply "${FILESDIR}"/${PN}-5.1.4-Makefile.module.kms.patch
eapply "${FILESDIR}"/${PN}-5.1.24-Makefile.module.kms.patch
# Remove shipped binaries (kBuild,yasm), see bug #232775
rm -r kBuild/bin tools || die