From fb465e879075b8ae73954a3503b3e669f83a7158 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 22 Jul 2017 14:37:29 +0100 Subject: x11-drivers/xf86-video-virtualbox : adjust Gentoo's out-of-date kms patch --- .../files/xf86-video-virtualbox-5.1.22-sysmacros.patch | 15 +++++++++++++++ .../xf86-video-virtualbox-5.1.4-Makefile.module.kms.patch | 2 +- .../files/xf86-video-virtualbox-kms.patch | 12 ++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-5.1.22-sysmacros.patch create mode 100644 x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-kms.patch (limited to 'x11-drivers/xf86-video-virtualbox/files') diff --git a/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-5.1.22-sysmacros.patch b/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-5.1.22-sysmacros.patch new file mode 100644 index 00000000..673beef3 --- /dev/null +++ b/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-5.1.22-sysmacros.patch @@ -0,0 +1,15 @@ +Fix bug #579910. Add sys/sysmacros.h header. + +https://bugs.gentoo.org/579910 + +index 20ae130..2f3fac0 100644 +--- a/src/VBox/Runtime/r3/linux/sysfs.cpp ++++ b/src/VBox/Runtime/r3/linux/sysfs.cpp +@@ -46,6 +46,7 @@ + #include + #include + #include ++#include + #include + + diff --git a/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-5.1.4-Makefile.module.kms.patch b/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-5.1.4-Makefile.module.kms.patch index f34ac667..3acd10cc 100644 --- a/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-5.1.4-Makefile.module.kms.patch +++ b/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-5.1.4-Makefile.module.kms.patch @@ -1,6 +1,6 @@ --- a/src/VBox/Additions/linux/drm/Makefile.module.kms +++ b/src/VBox/Additions/linux/drm/Makefile.module.kms -@@ -43,7 +43,7 @@ else +@@ -50,7 +50,7 @@ else MANGLING := $(KBUILD_EXTMOD)/include/VBox/VBoxGuestMangling.h endif MOD_CFLAGS = -Wno-declaration-after-statement -fshort-wchar -include $(MANGLING) -fno-pie diff --git a/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-kms.patch b/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-kms.patch new file mode 100644 index 00000000..56fdfd2a --- /dev/null +++ b/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-kms.patch @@ -0,0 +1,12 @@ +diff -Nur a/src/VBox/Additions/linux/drm/Makefile.module.kms b/src/VBox/Additions/linux/drm/Makefile.module.kms +--- a/src/VBox/Additions/linux/drm/Makefile.module.kms 2017-07-17 16:58:30.000000000 +0100 ++++ b/src/VBox/Additions/linux/drm/Makefile.module.kms 2017-07-22 14:29:44.977047225 +0100 +@@ -50,7 +50,7 @@ + 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 -- cgit v1.2.3