Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/xine-lib/, media-libs/xine-lib/files/
Date: Sun, 27 Nov 2016 23:43:15
Message-Id: 1480290181.42c946fd3b81136b633882884a8e47abc49c706e.vapier@gentoo
1 commit: 42c946fd3b81136b633882884a8e47abc49c706e
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 27 23:41:11 2016 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 27 23:43:01 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42c946fd
7
8 media-libs/xine-lib: fix build w/newer glibc #580012
9
10 media-libs/xine-lib/files/xine-lib-1.2.6-sysmacros.patch | 15 +++++++++++++++
11 media-libs/xine-lib/xine-lib-1.2.6-r1.ebuild | 1 +
12 2 files changed, 16 insertions(+)
13
14 diff --git a/media-libs/xine-lib/files/xine-lib-1.2.6-sysmacros.patch b/media-libs/xine-lib/files/xine-lib-1.2.6-sysmacros.patch
15 new file mode 100644
16 index 00000000..a7168d5
17 --- /dev/null
18 +++ b/media-libs/xine-lib/files/xine-lib-1.2.6-sysmacros.patch
19 @@ -0,0 +1,15 @@
20 +fix build w/newer glibc due to major/minor includes being dropped from sys/types.h
21 +
22 +https://bugs.gentoo.org/580012
23 +https://bugs.xine-project.org/show_bug.cgi?id=574
24 +
25 +--- a/src/xine-utils/xine_check.c
26 ++++ b/src/xine-utils/xine_check.c
27 +@@ -55,6 +55,7 @@
28 + #include <dlfcn.h>
29 + #include <sys/stat.h>
30 + #include <sys/ioctl.h>
31 ++#include <sys/sysmacros.h>
32 + #include <sys/utsname.h>
33 + #include <linux/major.h>
34 + #include <linux/hdreg.h>
35
36 diff --git a/media-libs/xine-lib/xine-lib-1.2.6-r1.ebuild b/media-libs/xine-lib/xine-lib-1.2.6-r1.ebuild
37 index 38f2b64..1acf133 100644
38 --- a/media-libs/xine-lib/xine-lib-1.2.6-r1.ebuild
39 +++ b/media-libs/xine-lib/xine-lib-1.2.6-r1.ebuild
40 @@ -118,6 +118,7 @@ REQUIRED_USE="vidix? ( || ( X fbcon ) )
41
42 PATCHES=(
43 "${FILESDIR}/${P}-libxcb-1.12.patch"
44 + "${FILESDIR}/${P}-sysmacros.patch"
45 )
46
47 src_prepare() {