Gentoo Archives: gentoo-commits

From: Jory Pratt <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: media-libs/mesa/, media-libs/mesa/files/
Date: Sun, 08 Jul 2018 09:01:57
Message-Id: 1531040466.9aa4cb5f04ad7cb0bde81bb6238582ac0de1fd8b.anarchy@gentoo
1 commit: 9aa4cb5f04ad7cb0bde81bb6238582ac0de1fd8b
2 Author: Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 8 09:01:06 2018 +0000
4 Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 8 09:01:06 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=9aa4cb5f
7
8 media-libs/mesa: Fix missing includes in mesa-18.1.3
9
10 .../mesa/files/mesa-18-missing-includes.patch | 53 ++++++++++++++++++++++
11 media-libs/mesa/mesa-18.1.3.ebuild | 1 +
12 2 files changed, 54 insertions(+)
13
14 diff --git a/media-libs/mesa/files/mesa-18-missing-includes.patch b/media-libs/mesa/files/mesa-18-missing-includes.patch
15 new file mode 100644
16 index 0000000..3f7bd62
17 --- /dev/null
18 +++ b/media-libs/mesa/files/mesa-18-missing-includes.patch
19 @@ -0,0 +1,53 @@
20 +From 456b660306e475a30f170a3bcecc0445124d7e2b Mon Sep 17 00:00:00 2001
21 +From:
22 +Date: Sun, 8 Jul 2018 03:57:11 -0500
23 +Subject: [PATCH] Fix all missing includes for mesa
24 +
25 +Signed-off-by:
26 +---
27 + src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h | 1 +
28 + src/gallium/winsys/svga/drm/vmw_screen.h | 2 +-
29 + src/util/rand_xor.c | 2 ++
30 + 3 files changed, 4 insertions(+), 1 deletion(-)
31 +
32 +diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h
33 +index d6af605..6eee83f 100644
34 +--- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h
35 ++++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.h
36 +@@ -32,6 +32,7 @@
37 + #include "ac_gpu_info.h"
38 + #include "addrlib/addrinterface.h"
39 + #include <amdgpu.h>
40 ++#include <pthread.h>
41 + #include "util/list.h"
42 +
43 + struct radv_amdgpu_winsys {
44 +diff --git a/src/gallium/winsys/svga/drm/vmw_screen.h b/src/gallium/winsys/svga/drm/vmw_screen.h
45 +index f21cabb..20d03f8 100644
46 +--- a/src/gallium/winsys/svga/drm/vmw_screen.h
47 ++++ b/src/gallium/winsys/svga/drm/vmw_screen.h
48 +@@ -34,7 +34,7 @@
49 + #ifndef VMW_SCREEN_H_
50 + #define VMW_SCREEN_H_
51 +
52 +-
53 ++#include <sys/stat.h>
54 + #include "pipe/p_compiler.h"
55 + #include "pipe/p_state.h"
56 +
57 +diff --git a/src/util/rand_xor.c b/src/util/rand_xor.c
58 +index de04bbc..08d507f 100644
59 +--- a/src/util/rand_xor.c
60 ++++ b/src/util/rand_xor.c
61 +@@ -24,6 +24,8 @@
62 +
63 + #if defined(__linux__)
64 + #include <sys/file.h>
65 ++#include <sys/types.h>
66 ++#include <sys/stat.h>
67 + #include <unistd.h>
68 + #include <fcntl.h>
69 + #else
70 +--
71 +2.18.0
72 +
73
74 diff --git a/media-libs/mesa/mesa-18.1.3.ebuild b/media-libs/mesa/mesa-18.1.3.ebuild
75 index 256a07b..1a602e6 100644
76 --- a/media-libs/mesa/mesa-18.1.3.ebuild
77 +++ b/media-libs/mesa/mesa-18.1.3.ebuild
78 @@ -276,6 +276,7 @@ src_prepare() {
79 eapply "${FILESDIR}"/${PN}-17-musl-invocation_name.patch
80 eapply "${FILESDIR}"/${PN}-18-musl-pthread.patch
81 eapply "${FILESDIR}"/${PN}-18-intel-missing-time_t.patch
82 + eapply "${FILESDIR}"/${PN}-18-missing-includes.patch
83
84 eapply_user
85 [[ ${PV} == 9999 ]] && eautoreconf