Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/rocm-opencl-driver/, dev-libs/rocm-opencl-driver/files/
Date: Tue, 27 Aug 2019 13:04:56
Message-Id: 1566911083.a31c9aa8de9537fe1918546bd4895c187917eabb.candrews@gentoo
1 commit: a31c9aa8de9537fe1918546bd4895c187917eabb
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 27 13:04:10 2019 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 27 13:04:43 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a31c9aa8
7
8 dev-libs/rocm-opencl-driver: Include more link libraries
9
10 Closes: https://bugs.gentoo.org/692404
11 Package-Manager: Portage-2.3.73, Repoman-2.3.17
12 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
13
14 .../files/rocm-opencl-driver-2.7.0-libraries.patch | 40 ++++++++++++++++++++++
15 .../rocm-opencl-driver-2.7.0.ebuild | 1 +
16 2 files changed, 41 insertions(+)
17
18 diff --git a/dev-libs/rocm-opencl-driver/files/rocm-opencl-driver-2.7.0-libraries.patch b/dev-libs/rocm-opencl-driver/files/rocm-opencl-driver-2.7.0-libraries.patch
19 new file mode 100644
20 index 00000000000..9e2a06aac97
21 --- /dev/null
22 +++ b/dev-libs/rocm-opencl-driver/files/rocm-opencl-driver-2.7.0-libraries.patch
23 @@ -0,0 +1,40 @@
24 +https://github.com/RadeonOpenCompute/ROCm-OpenCL-Driver/pull/88
25 +
26 +From f49ad81e246f1c196cf86f40cf44dfedec0675f1 Mon Sep 17 00:00:00 2001
27 +From: Mike Lothain <mike@×××××××××××.uk>
28 +Date: Tue, 27 Aug 2019 11:32:47 +0100
29 +Subject: [PATCH] Include more link libraries
30 +
31 +This is required to get dev-libs/rocm-opencl-driver-2.7.0 compiling for me on Gentoo
32 +
33 +I think it might be related to using -Wl,--as-needed in my link flags globally
34 +---
35 + src/driver/CMakeLists.txt | 5 +++++
36 + 1 file changed, 5 insertions(+)
37 +
38 +diff --git a/src/driver/CMakeLists.txt b/src/driver/CMakeLists.txt
39 +index 55ed13f..b93356d 100644
40 +--- a/src/driver/CMakeLists.txt
41 ++++ b/src/driver/CMakeLists.txt
42 +@@ -60,9 +60,13 @@ llvm_map_components_to_libnames(llvm_libs
43 + AllTargetsDescs
44 + AllTargetsDisassemblers
45 + AllTargetsInfos
46 ++ BitWriter
47 + CodeGen
48 ++ IRReader
49 ++ Linker
50 + MC
51 + MCDisassembler
52 ++ MCParser
53 + Object
54 + Symbolize
55 + Core
56 +@@ -83,6 +87,7 @@ target_link_libraries(opencl_driver
57 + clangLex
58 + clangBasic
59 + clangCodeGen
60 ++ clangSerialization
61 + lldELF
62 + lldCore
63 + LLVMDebugInfoDWARF
64
65 diff --git a/dev-libs/rocm-opencl-driver/rocm-opencl-driver-2.7.0.ebuild b/dev-libs/rocm-opencl-driver/rocm-opencl-driver-2.7.0.ebuild
66 index f95628a7cb7..e4e2818a7ed 100644
67 --- a/dev-libs/rocm-opencl-driver/rocm-opencl-driver-2.7.0.ebuild
68 +++ b/dev-libs/rocm-opencl-driver/rocm-opencl-driver-2.7.0.ebuild
69 @@ -28,6 +28,7 @@ DEPEND="${RDEPEND}"
70 PATCHES=(
71 "${FILESDIR}/${PN}-2.6.0-install-correctly.patch"
72 "${FILESDIR}/${PN}-2.6.0-install-header.patch"
73 + "${FILESDIR}/${PN}-2.7.0-libraries.patch"
74 )
75
76 src_prepare() {