commit:     fbb4e03fbd53bd42e46d0ce64e66dca3d8154f79
Author:     Kacper KoƂodziej <kacper <AT> kolodziej <DOT> in>
AuthorDate: Wed Jun 14 20:06:17 2017 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Sun Jun 25 20:02:01 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbb4e03f

x11-drivers/xf86-video-virtualbox: fix bug 579910

Package-Manager: Portage-2.3.6, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4932

 .../files/xf86-video-virtualbox-5.1.22-sysmacros.patch    | 15 +++++++++++++++
 .../xf86-video-virtualbox-5.1.22.ebuild                   |  3 +++
 2 files changed, 18 insertions(+)

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 00000000000..673beef32de
--- /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 <sys/sysctl.h>
+ #include <sys/stat.h>
+ #include <sys/fcntl.h>
++#include <sys/sysmacros.h>
+ #include <errno.h>
+ 
+ 

diff --git 
a/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-5.1.22.ebuild 
b/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-5.1.22.ebuild
index cb90ffc4122..31448eb0c1a 100644
--- a/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-5.1.22.ebuild
+++ b/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-5.1.22.ebuild
@@ -58,6 +58,9 @@ PATCHES=(
 
        # xorg-1.19 patch from opensuse (bug #602784)
        "${FILESDIR}/${PN}-5.1.10-xorg119.patch"
+
+       # fix bug #579946
+       "${FILESDIR}/${PN}-5.1.22-sysmacros.patch"
 )
 
 QA_TEXTRELS_x86="usr/lib/VBoxOGL.so"

Reply via email to