commit: 01d5ea3feda75913684f89f973863c873895a28c
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 13 11:50:36 2018 +0000
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Sat Jan 13 12:16:26 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01d5ea3f
media-libs/libv4l: fixup sysmacros includes with recent glibc
Package-Manager: Portage-2.3.19, Repoman-2.3.6
.../libv4l/files/libv4l-1.14.1-sysmacros.patch | 26 ++++++++++++++++++++++
media-libs/libv4l/libv4l-1.14.1.ebuild | 2 ++
2 files changed, 28 insertions(+)
diff --git a/media-libs/libv4l/files/libv4l-1.14.1-sysmacros.patch
b/media-libs/libv4l/files/libv4l-1.14.1-sysmacros.patch
new file mode 100644
index 00000000000..b8190507fc7
--- /dev/null
+++ b/media-libs/libv4l/files/libv4l-1.14.1-sysmacros.patch
@@ -0,0 +1,26 @@
+Index: v4l-utils-1.14.1/lib/libv4lconvert/control/libv4lcontrol.c
+===================================================================
+--- v4l-utils-1.14.1.orig/lib/libv4lconvert/control/libv4lcontrol.c
++++ v4l-utils-1.14.1/lib/libv4lconvert/control/libv4lcontrol.c
+@@ -20,9 +20,7 @@
+ */
+
+ #include <sys/types.h>
+-#if defined(MAJOR_IN_SYSMACROS)
+ #include <sys/sysmacros.h>
+-#endif
+ #include <sys/mman.h>
+ #include <fcntl.h>
+ #include <sys/stat.h>
+Index: v4l-utils-1.14.1/utils/v4l2-ctl/v4l2-ctl.cpp
+===================================================================
+--- v4l-utils-1.14.1.orig/utils/v4l2-ctl/v4l2-ctl.cpp
++++ v4l-utils-1.14.1/utils/v4l2-ctl/v4l2-ctl.cpp
+@@ -21,6 +21,7 @@
+ */
+
+ #include <unistd.h>
++#include <sys/sysmacros.h>
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
diff --git a/media-libs/libv4l/libv4l-1.14.1.ebuild
b/media-libs/libv4l/libv4l-1.14.1.ebuild
index b52b6e56277..4ab5d355259 100644
--- a/media-libs/libv4l/libv4l-1.14.1.ebuild
+++ b/media-libs/libv4l/libv4l-1.14.1.ebuild
@@ -28,6 +28,8 @@ DEPEND="${RDEPEND}
S=${WORKDIR}/${MY_P}
+PATCHES=( "${FILESDIR}"/${PN}-1.14.1-sysmacros.patch ) #580910
+
pkg_setup() {
CONFIG_CHECK="~SHMEM"
linux-info_pkg_setup