Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/mesa/, media-libs/mesa/files/
Date: Fri, 02 Nov 2018 21:24:10
Message-Id: 1541193832.eb3fef9a8f43d4b973eaad8b162e8dcd3d992a3f.mattst88@gentoo
1 commit: eb3fef9a8f43d4b973eaad8b162e8dcd3d992a3f
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 2 21:23:03 2018 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 2 21:23:52 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb3fef9a
7
8 media-libs/mesa: Add upstream patch to avoid build failure
9
10 Closes: https://bugs.gentoo.org/670094
11 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
12
13 ...2.4-meson-link-gallium-nine-with-pthreads.patch | 34 ++++++++++++++++++++++
14 media-libs/mesa/mesa-18.2.4.ebuild | 4 +++
15 2 files changed, 38 insertions(+)
16
17 diff --git a/media-libs/mesa/files/mesa-18.2.4-meson-link-gallium-nine-with-pthreads.patch b/media-libs/mesa/files/mesa-18.2.4-meson-link-gallium-nine-with-pthreads.patch
18 new file mode 100644
19 index 00000000000..11d4f9cac07
20 --- /dev/null
21 +++ b/media-libs/mesa/files/mesa-18.2.4-meson-link-gallium-nine-with-pthreads.patch
22 @@ -0,0 +1,34 @@
23 +From 7652931d33b36c93b2e84713baa8c283d568402e Mon Sep 17 00:00:00 2001
24 +From: Dylan Baker <dylan@×××××××××.com>
25 +Date: Thu, 1 Nov 2018 14:12:57 -0700
26 +Subject: [PATCH] meson: link gallium nine with pthreads
27 +
28 +In some cases (not building with llvm, which automatically pulls in
29 +pthreads) nine needs to be directly linked with pthreads. Fixes building
30 +on x86 (32 bit) without llvm.
31 +
32 +Distro bug: https://bugs.gentoo.org/670094
33 +Fixes: 6b4c7047d57178d3362a710ad503057c6a582ca3
34 + ("meson: build gallium nine state_tracker")
35 +Tested-by: Rafal Lalik <rafallalik@×××××.com>
36 +Reviewed-by: Matt Turner <mattst88@×××××.com>
37 +---
38 + src/gallium/targets/d3dadapter9/meson.build | 2 +-
39 + 1 file changed, 1 insertion(+), 1 deletion(-)
40 +
41 +diff --git a/src/gallium/targets/d3dadapter9/meson.build b/src/gallium/targets/d3dadapter9/meson.build
42 +index bd05b4f9692..bc72b1110a0 100644
43 +--- a/src/gallium/targets/d3dadapter9/meson.build
44 ++++ b/src/gallium/targets/d3dadapter9/meson.build
45 +@@ -53,7 +53,7 @@ libgallium_nine = shared_library(
46 + libswkmsdri,
47 + ],
48 + dependencies : [
49 +- dep_selinux, dep_expat, dep_libdrm, dep_llvm,
50 ++ dep_selinux, dep_expat, dep_libdrm, dep_llvm, dep_thread,
51 + driver_swrast, driver_r300, driver_r600, driver_radeonsi, driver_nouveau,
52 + driver_i915, driver_svga,
53 + ],
54 +--
55 +2.16.4
56 +
57
58 diff --git a/media-libs/mesa/mesa-18.2.4.ebuild b/media-libs/mesa/mesa-18.2.4.ebuild
59 index 2b4e1542fc5..16b4ad7ea3b 100644
60 --- a/media-libs/mesa/mesa-18.2.4.ebuild
61 +++ b/media-libs/mesa/mesa-18.2.4.ebuild
62 @@ -231,6 +231,10 @@ x86? (
63 )
64 )"
65
66 +PATCHES=(
67 + "${FILESDIR}"/${P}-meson-link-gallium-nine-with-pthreads.patch
68 +)
69 +
70 llvm_check_deps() {
71 local flags=${MULTILIB_USEDEP}
72 if use video_cards_r600 || use video_cards_radeon || use video_cards_radeonsi