1 |
commit: a14f0a3fbd2d7cb7ec3f2f04f16598be2b1b9000 |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 31 16:18:13 2019 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 7 17:38:47 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a14f0a3f |
7 |
|
8 |
dev-libs/rocm-comgr: Radeon Open Compute Code Object Manager |
9 |
|
10 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
11 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
12 |
|
13 |
.../files/rocm-comgr-2.6.0-dependencies.patch | 25 ------------------ |
14 |
.../files/rocm-comgr-2.6.0-unbundle-yaml-cpp.patch | 30 ++++++++++++++++++++++ |
15 |
dev-libs/rocm-comgr/rocm-comgr-2.6.0.ebuild | 7 ++--- |
16 |
3 files changed, 34 insertions(+), 28 deletions(-) |
17 |
|
18 |
diff --git a/dev-libs/rocm-comgr/files/rocm-comgr-2.6.0-dependencies.patch b/dev-libs/rocm-comgr/files/rocm-comgr-2.6.0-dependencies.patch |
19 |
index 47f03716829..bce19d168b0 100644 |
20 |
--- a/dev-libs/rocm-comgr/files/rocm-comgr-2.6.0-dependencies.patch |
21 |
+++ b/dev-libs/rocm-comgr/files/rocm-comgr-2.6.0-dependencies.patch |
22 |
@@ -36,28 +36,3 @@ https://github.com/RadeonOpenCompute/ROCm-CompilerSupport/pull/19 |
23 |
|
24 |
target_link_libraries(amd_comgr |
25 |
PUBLIC |
26 |
-@@ -203,8 +218,8 @@ |
27 |
- ${AMD_COMGR_PRIVATE_LINKER_OPTIONS} |
28 |
- yaml-cpp |
29 |
- ${CLANG_LIBS} |
30 |
-- ${LLD_LIBS} |
31 |
- ${LLVM_LIBS} |
32 |
-+ ${LLD_LIBS} |
33 |
- ) |
34 |
- |
35 |
- if (NOT UNIX) |
36 |
-@@ -238,3 +253,14 @@ |
37 |
- if (NOT CPack_CMake_INCLUDED) |
38 |
- include(CPack) |
39 |
- endif() |
40 |
-+ |
41 |
-+MESSAGE(STATUS "<<< Gentoo configuration >>> |
42 |
-+Build type ${CMAKE_BUILD_TYPE} |
43 |
-+Install path ${CMAKE_INSTALL_PREFIX} |
44 |
-+Compiler flags: |
45 |
-+C ${CMAKE_C_FLAGS} |
46 |
-+C++ ${CMAKE_CXX_FLAGS} |
47 |
-+Linker flags: |
48 |
-+Executable ${CMAKE_EXE_LINKER_FLAGS} |
49 |
-+Module ${CMAKE_MODULE_LINKER_FLAGS} |
50 |
-+Shared ${CMAKE_SHARED_LINKER_FLAGS}\n") |
51 |
|
52 |
diff --git a/dev-libs/rocm-comgr/files/rocm-comgr-2.6.0-unbundle-yaml-cpp.patch b/dev-libs/rocm-comgr/files/rocm-comgr-2.6.0-unbundle-yaml-cpp.patch |
53 |
new file mode 100644 |
54 |
index 00000000000..d61f4c2a200 |
55 |
--- /dev/null |
56 |
+++ b/dev-libs/rocm-comgr/files/rocm-comgr-2.6.0-unbundle-yaml-cpp.patch |
57 |
@@ -0,0 +1,30 @@ |
58 |
+diff --git a/lib/comgr/CMakeLists.txt b/lib/comgr/CMakeLists.txt |
59 |
+index 454b830..70e2526 100644 |
60 |
+--- a/CMakeLists.txt |
61 |
++++ b/CMakeLists.txt |
62 |
+@@ -90,12 +90,8 @@ if (UNIX) |
63 |
+ -Wl,--no-undefined) |
64 |
+ endif() |
65 |
+ endif() |
66 |
+- # FIXME: Remove when yaml-cpp is removed from the build. |
67 |
+- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") |
68 |
+ else() |
69 |
+ list(APPEND AMD_COMGR_PRIVATE_COMPILE_OPTIONS "/W0" "/wd4244") |
70 |
+- # FIXME: Make this private once yaml-cpp is removed from the build. |
71 |
+- add_definitions(-D_HAS_EXCEPTIONS=0) |
72 |
+ endif() |
73 |
+ |
74 |
+ # Windows is strict about visibility of exports in shared libraries, so we ask |
75 |
+@@ -179,10 +175,8 @@ install(EXPORT amd_comgr_export |
76 |
+ DESTINATION "${AMD_COMGR_PACKAGE_PREFIX}" |
77 |
+ FILE "${AMD_COMGR_TARGETS_NAME}") |
78 |
+ |
79 |
+-set(YAML_CPP_BUILD_TESTS OFF CACHE BOOL "Enable testing" FORCE) |
80 |
+-set(YAML_CPP_BUILD_TOOLS OFF CACHE BOOL "Enable parse tools" FORCE) |
81 |
+-add_subdirectory(yaml-cpp EXCLUDE_FROM_ALL) |
82 |
+-include_directories(./yaml-cpp/include) |
83 |
++find_package(yaml-cpp REQUIRED) |
84 |
++include_directories(${YAML_CPP_INCLUDE_DIR}) |
85 |
+ |
86 |
+ set(CLANG_LIBS |
87 |
+ clangFrontendTool) |
88 |
|
89 |
diff --git a/dev-libs/rocm-comgr/rocm-comgr-2.6.0.ebuild b/dev-libs/rocm-comgr/rocm-comgr-2.6.0.ebuild |
90 |
index 0f058da194b..c000ce55ab7 100644 |
91 |
--- a/dev-libs/rocm-comgr/rocm-comgr-2.6.0.ebuild |
92 |
+++ b/dev-libs/rocm-comgr/rocm-comgr-2.6.0.ebuild |
93 |
@@ -19,6 +19,7 @@ PATCHES=( |
94 |
"${FILESDIR}/${P}-find-clang.patch" |
95 |
"${FILESDIR}/${P}-find-lld-includes.patch" |
96 |
"${FILESDIR}/${P}-dependencies.patch" |
97 |
+ "${FILESDIR}/${P}-unbundle-yaml-cpp.patch" |
98 |
) |
99 |
|
100 |
DESCRIPTION="Radeon Open Compute Code Object Manager" |
101 |
@@ -27,12 +28,12 @@ LICENSE="MIT" |
102 |
SLOT="0/$(ver_cut 1-2)" |
103 |
|
104 |
RDEPEND="dev-libs/rocm-device-libs |
105 |
- dev-cpp/yaml-cpp |
106 |
- sys-devel/llvm-roc" |
107 |
+ dev-cpp/yaml-cpp:= |
108 |
+ sys-devel/llvm-roc:=" |
109 |
DEPEND="${RDEPEND}" |
110 |
|
111 |
src_prepare() { |
112 |
-# rm -rf yaml-cpp || die |
113 |
+ rm -rf yaml-cpp || die |
114 |
cmake-utils_src_prepare |
115 |
} |