1 |
commit: f453c0a77a69193eadd8e3dccb4bd04d7b8065df |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 2 12:54:11 2020 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 2 12:54:11 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f453c0a7 |
7 |
|
8 |
dev-libs/roct-thunk-interface: Remove unused patches |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
12 |
|
13 |
...t-thunk-interface-2.0.0-correctly-install.patch | 288 --------------------- |
14 |
...hunk-interface-2.6.0-correctly-install-pc.patch | 25 -- |
15 |
...t-thunk-interface-2.6.0-correctly-install.patch | 25 -- |
16 |
...nterface-2.6.0-do-not-install-kfd_ioctl.h.patch | 25 -- |
17 |
.../roct-thunk-interface-2.6.0-pc-prefix.patch | 22 -- |
18 |
5 files changed, 385 deletions(-) |
19 |
|
20 |
diff --git a/dev-libs/roct-thunk-interface/files/roct-thunk-interface-2.0.0-correctly-install.patch b/dev-libs/roct-thunk-interface/files/roct-thunk-interface-2.0.0-correctly-install.patch |
21 |
deleted file mode 100644 |
22 |
index 8248c5f4b36..00000000000 |
23 |
--- a/dev-libs/roct-thunk-interface/files/roct-thunk-interface-2.0.0-correctly-install.patch |
24 |
+++ /dev/null |
25 |
@@ -1,288 +0,0 @@ |
26 |
-https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/pull/25 |
27 |
-From c60501d7e69db24f5d880aace73662384ea90b27 Mon Sep 17 00:00:00 2001 |
28 |
-From: Andreas Schneider <asn@××××××××××.org> |
29 |
-Date: Fri, 7 Sep 2018 10:30:05 +0200 |
30 |
-Subject: [PATCH 1/7] cmake: Do not mess with CMAKE_C_FLAGS |
31 |
- |
32 |
---- |
33 |
- CMakeLists.txt | 11 +++-------- |
34 |
- 1 file changed, 3 insertions(+), 8 deletions(-) |
35 |
- |
36 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
37 |
-index cb2605b..8a0f362 100644 |
38 |
---- a/CMakeLists.txt |
39 |
-+++ b/CMakeLists.txt |
40 |
-@@ -59,15 +59,9 @@ set ( BUILD_VERSION_STRING "${BUILD_VERSION_MAJOR}.${BUILD_VERSION_MINOR}.${BUIL |
41 |
- #set ( CMAKE_VERBOSE_MAKEFILE on ) |
42 |
- |
43 |
- ## Compiler flags |
44 |
--set ( CMAKE_C_FLAGS "-fPIC -W -Wall -Wextra -Wno-unused-parameter -Wformat-security -Wswitch-default -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wlogical-op -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wunreachable-code -std=gnu99 -fvisibility=hidden" ) |
45 |
-+set (HSAKMT_C_FLAGS -fPIC -W -Wall -Wextra -Wno-unused-parameter -Wformat-security -Wswitch-default -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wlogical-op -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wunreachable-code -std=gnu99 -fvisibility=hidden) |
46 |
- if ( "${CMAKE_C_COMPILER_VERSION}" STRGREATER "4.8.0") |
47 |
-- set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror" ) |
48 |
--endif () |
49 |
-- |
50 |
--if ( "${CMAKE_BUILD_TYPE}" STREQUAL Release ) |
51 |
-- set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2" ) |
52 |
--else () |
53 |
-- set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g" ) |
54 |
-+ set (HSAKMT_C_FLAGS ${HSAKMT_C_FLAGS} -Werror) |
55 |
- endif () |
56 |
- |
57 |
- set ( HSAKMT_LINKER_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/src/libhsakmt.ver" ) |
58 |
-@@ -96,6 +90,7 @@ include_directories ( ${CMAKE_CURRENT_SOURCE_DIR}/src ) |
59 |
- |
60 |
- ## Add the library |
61 |
- add_library ( ${HSAKMT_TARGET} SHARED ${HSAKMT_SRC} ) |
62 |
-+target_compile_options(${HSAKMT_TARGET} PRIVATE ${HSAKMT_C_FLAGS}) |
63 |
- |
64 |
- ## Set the VERSION and SOVERSION values |
65 |
- set_property ( TARGET ${HSAKMT_TARGET} PROPERTY VERSION "${LIB_VERSION_STRING}" ) |
66 |
- |
67 |
-From d37b3e2e634a40192c113d9a8256f3d2aa24acfa Mon Sep 17 00:00:00 2001 |
68 |
-From: Andreas Schneider <asn@××××××××××.org> |
69 |
-Date: Fri, 7 Sep 2018 10:31:59 +0200 |
70 |
-Subject: [PATCH 2/7] cmake: Do not mess with CMAKE_SHARED_LINKER_FLAGS |
71 |
- |
72 |
---- |
73 |
- CMakeLists.txt | 3 ++- |
74 |
- 1 file changed, 2 insertions(+), 1 deletion(-) |
75 |
- |
76 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
77 |
-index 8a0f362..a2a36cd 100644 |
78 |
---- a/CMakeLists.txt |
79 |
-+++ b/CMakeLists.txt |
80 |
-@@ -67,7 +67,7 @@ endif () |
81 |
- set ( HSAKMT_LINKER_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/src/libhsakmt.ver" ) |
82 |
- |
83 |
- ## Linker Flags |
84 |
--set ( CMAKE_SHARED_LINKER_FLAGS "-Wl,--version-script=${HSAKMT_LINKER_SCRIPT} -Wl,-soname=${HSAKMT_COMPONENT}.so.$(PROJECT_VERSION_MAJOR) -Wl,-z,nodelete -Wl,-no-undefined" ) |
85 |
-+set (HSAKMT_LINK_FLAGS "-Wl,--version-script=${HSAKMT_LINKER_SCRIPT} -Wl,-soname=${HSAKMT_COMPONENT}.so.$(PROJECT_VERSION_MAJOR) -Wl,-z,nodelete -Wl,-no-undefined" ) |
86 |
- |
87 |
- ## Source files |
88 |
- set ( HSAKMT_SRC "src/debug.c" |
89 |
-@@ -91,6 +91,7 @@ include_directories ( ${CMAKE_CURRENT_SOURCE_DIR}/src ) |
90 |
- ## Add the library |
91 |
- add_library ( ${HSAKMT_TARGET} SHARED ${HSAKMT_SRC} ) |
92 |
- target_compile_options(${HSAKMT_TARGET} PRIVATE ${HSAKMT_C_FLAGS}) |
93 |
-+set_property(TARGET ${HSAKMT_TARGET} PROPERTY LINK_FLAGS ${HSAKMT_LINK_FLAGS}) |
94 |
- |
95 |
- ## Set the VERSION and SOVERSION values |
96 |
- set_property ( TARGET ${HSAKMT_TARGET} PROPERTY VERSION "${LIB_VERSION_STRING}" ) |
97 |
- |
98 |
-From 7f9ad94a9932319930f96d49a78fa9e741cd7292 Mon Sep 17 00:00:00 2001 |
99 |
-From: Andreas Schneider <asn@××××××××××.org> |
100 |
-Date: Fri, 7 Sep 2018 10:41:04 +0200 |
101 |
-Subject: [PATCH 3/7] cmake: Use GNUInstallDirs for installtion |
102 |
- |
103 |
-This will allow distributions to install it correctly. |
104 |
---- |
105 |
- CMakeLists.txt | 13 ++++++++----- |
106 |
- 1 file changed, 8 insertions(+), 5 deletions(-) |
107 |
- |
108 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
109 |
-index a2a36cd..58076fa 100644 |
110 |
---- a/CMakeLists.txt |
111 |
-+++ b/CMakeLists.txt |
112 |
-@@ -111,8 +111,9 @@ endif () |
113 |
- |
114 |
- ## Define default variable and variables for the optional build target hsakmt-dev |
115 |
- set ( SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE STRING "Location of hsakmt source code." ) |
116 |
--set ( CMAKE_INSTALL_PREFIX "/opt/rocm" CACHE STRING "Default installation directory." ) |
117 |
--set ( CPACK_PACKAGING_INSTALL_PREFIX "/opt/rocm" CACHE STRING "Default packaging prefix." ) |
118 |
-+set ( HSAKMT_INSTALL_PREFIX "/opt/rocm" CACHE STRING "Default installation directory." ) |
119 |
-+set ( HSAKMT_INSTALL_LIBDIR "hsakmt/lib" CACHE STRING "Default installation directory." ) |
120 |
-+set ( HSAKMT_PACKAGING_INSTALL_PREFIX "/opt/rocm" CACHE STRING "Default packaging prefix." ) |
121 |
- set ( CPACK_GENERATOR "DEB;RPM" CACHE STRING "Default packaging generators." ) |
122 |
- |
123 |
- ## Specify build, install and package targets hsakmt-dev |
124 |
-@@ -121,9 +122,12 @@ configure_file ( hsakmt-dev.txt ${DEV_BUILD_DIR}/CMakeLists.txt @ONLY ) |
125 |
- add_custom_target ( build-dev |
126 |
- COMMAND ${CMAKE_COMMAND} |
127 |
- -DSOURCE_DIR="${SOURCE_DIR}" |
128 |
-- -DCMAKE_INSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}" |
129 |
-+ -DCMAKE_INSTALL_PREFIX="${HSAKMT_INSTALL_PREFIX}" |
130 |
-+ -DCMAKE_INSTALL_LIBDIR="${HSAKMT_INSTALL_LIBDIR}" |
131 |
- -DCPACK_RPM_PACKAGE_REQUIRES="hsakmt-roct" |
132 |
-- -DCPACK_PACKAGING_INSTALL_PREFIX="${CPACK_PACKAGING_INSTALL_PREFIX}" |
133 |
-+ -DCPACK_PACKAGING_INSTALL_PREFIX="${HSAKMT_PACKAGING_INSTALL_PREFIX}" |
134 |
-+ COMMAND rm -rf *.deb *.rpm *.tar.gz |
135 |
-+ COMMAND make package |
136 |
- WORKING_DIRECTORY ${DEV_BUILD_DIR} ) |
137 |
- |
138 |
- ## Custom targets for the devel package |
139 |
-@@ -135,7 +139,6 @@ add_custom_target ( package-dev DEPENDS build-dev |
140 |
- |
141 |
- ## Add the install directives for the runtime library. |
142 |
- install ( TARGETS ${HSAKMT_TARGET} DESTINATION ${CMAKE_INSTALL_LIBDIR} ) |
143 |
--install ( FILES ${SOURCE_DIR}/LICENSE.md DESTINATION libhsakmt ) |
144 |
- |
145 |
- ## Add the packaging directives for the runtime library. |
146 |
- set ( CPACK_PACKAGE_NAME ${HSAKMT_PACKAGE} ) |
147 |
- |
148 |
-From d3f841cf2c504c7af9735d27d4f4b9784754708d Mon Sep 17 00:00:00 2001 |
149 |
-From: Andreas Schneider <asn@××××××××××.org> |
150 |
-Date: Fri, 7 Sep 2018 11:10:52 +0200 |
151 |
-Subject: [PATCH 4/7] cmake: Install header files |
152 |
- |
153 |
---- |
154 |
- CMakeLists.txt | 8 ++++++++ |
155 |
- 1 file changed, 8 insertions(+) |
156 |
- |
157 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
158 |
-index 58076fa..81ec134 100644 |
159 |
---- a/CMakeLists.txt |
160 |
-+++ b/CMakeLists.txt |
161 |
-@@ -140,6 +140,14 @@ add_custom_target ( package-dev DEPENDS build-dev |
162 |
- ## Add the install directives for the runtime library. |
163 |
- install ( TARGETS ${HSAKMT_TARGET} DESTINATION ${CMAKE_INSTALL_LIBDIR} ) |
164 |
- |
165 |
-+install(FILES |
166 |
-+ include/hsakmt.h |
167 |
-+ include/hsakmttypes.h |
168 |
-+ DESTINATION |
169 |
-+ ${CMAKE_INSTALL_INCLUDEDIR}/libhsakmt |
170 |
-+ COMPONENT |
171 |
-+ ${HSAKMT_COMPONENT}-header) |
172 |
-+ |
173 |
- ## Add the packaging directives for the runtime library. |
174 |
- set ( CPACK_PACKAGE_NAME ${HSAKMT_PACKAGE} ) |
175 |
- set ( CPACK_PACKAGE_VENDOR "AMD" ) |
176 |
- |
177 |
-From 66e43bab21ee2a8ba1eed59e6a5052eb2f0fc1b8 Mon Sep 17 00:00:00 2001 |
178 |
-From: Andreas Schneider <asn@××××××××××.org> |
179 |
-Date: Fri, 7 Sep 2018 10:43:26 +0200 |
180 |
-Subject: [PATCH 5/7] cmake: Install the pkgconfig file |
181 |
- |
182 |
---- |
183 |
- CMakeLists.txt | 6 ++++++ |
184 |
- 1 file changed, 6 insertions(+) |
185 |
- |
186 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
187 |
-index 81ec134..5482e02 100644 |
188 |
---- a/CMakeLists.txt |
189 |
-+++ b/CMakeLists.txt |
190 |
-@@ -169,5 +169,11 @@ set ( CPACK_RPM_POST_UNINSTALL_SCRIPT_FILE "${CMAKE_CURRENT_SOURCE_DIR}/RPM/rpm_ |
191 |
- |
192 |
- # CPACK_PACKAGING_INSTALL_PREFIX is needed in libhsakmt.pc.in |
193 |
- configure_file ( libhsakmt.pc.in ${DEV_BUILD_DIR}/libhsakmt.pc @ONLY ) |
194 |
-+install(FILES |
195 |
-+ ${DEV_BUILD_DIR}/libhsakmt.pc |
196 |
-+ DESTINATION |
197 |
-+ ${CMAKE_INSTALL_LIBDIR}/pkgconfig |
198 |
-+ COMPONENT |
199 |
-+ ${HSAKMT_COMPONENT}-pkgconfig) |
200 |
- |
201 |
- include ( CPack ) |
202 |
- |
203 |
-From 5f1ed605a484e30c51954817b6d8712ab4c6046e Mon Sep 17 00:00:00 2001 |
204 |
-From: Andreas Schneider <asn@××××××××××.org> |
205 |
-Date: Tue, 25 Sep 2018 18:47:57 +0200 |
206 |
-Subject: [PATCH 6/7] cmake: Do not strip targets in the release build |
207 |
- |
208 |
-Distributions want to generate debuginfo packages, do not strip them! If |
209 |
-you want to do it during installation use 'make install/strip'! |
210 |
---- |
211 |
- CMakeLists.txt | 5 ----- |
212 |
- 1 file changed, 5 deletions(-) |
213 |
- |
214 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
215 |
-index 5482e02..f8f58cd 100644 |
216 |
---- a/CMakeLists.txt |
217 |
-+++ b/CMakeLists.txt |
218 |
-@@ -104,11 +104,6 @@ target_link_libraries ( ${HSAKMT_TARGET} |
219 |
- pthread rt numa ${PC_LIBPCI_LIBRARIES} |
220 |
- ) |
221 |
- |
222 |
--## If the library is a release, strip the target library |
223 |
--if ( "${CMAKE_BUILD_TYPE}" STREQUAL Release ) |
224 |
-- add_custom_command ( TARGET ${HSAKMT_TARGET} POST_BUILD COMMAND ${CMAKE_STRIP} ${HSAKMT_COMPONENT}.so ) |
225 |
--endif () |
226 |
-- |
227 |
- ## Define default variable and variables for the optional build target hsakmt-dev |
228 |
- set ( SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE STRING "Location of hsakmt source code." ) |
229 |
- set ( HSAKMT_INSTALL_PREFIX "/opt/rocm" CACHE STRING "Default installation directory." ) |
230 |
- |
231 |
-From 86b29b265c1a91d2bc931453e4edac66a6d9da0d Mon Sep 17 00:00:00 2001 |
232 |
-From: Andreas Schneider <asn@××××××××××.org> |
233 |
-Date: Tue, 25 Sep 2018 19:16:43 +0200 |
234 |
-Subject: [PATCH 7/7] cmake: Create cmake config file |
235 |
- |
236 |
-Another cmake project like hsa-runtime could just use: |
237 |
- |
238 |
-find_package(hsakmt REQUIRED 1.9.0) |
239 |
---- |
240 |
- CMakeLists.txt | 31 ++++++++++++++++++++++++++++++- |
241 |
- hsakmt-config.cmake.in | 9 +++++++++ |
242 |
- 2 files changed, 39 insertions(+), 1 deletion(-) |
243 |
- create mode 100644 hsakmt-config.cmake.in |
244 |
- |
245 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
246 |
-index f8f58cd..6e5a0fe 100644 |
247 |
---- a/CMakeLists.txt |
248 |
-+++ b/CMakeLists.txt |
249 |
-@@ -30,7 +30,7 @@ set ( HSAKMT_PACKAGE "hsakmt-roct" ) |
250 |
- set ( HSAKMT_COMPONENT "lib${HSAKMT}" ) |
251 |
- set ( HSAKMT_TARGET "${HSAKMT}" ) |
252 |
- |
253 |
--project ( ${HSAKMT_TARGET} ) |
254 |
-+project ( ${HSAKMT_TARGET} VERSION 1.9.0) |
255 |
- |
256 |
- ## Set default module path if not already set |
257 |
- if ( NOT DEFINED CMAKE_MODULE_PATH ) |
258 |
-@@ -44,6 +44,8 @@ include ( GNUInstallDirs ) |
259 |
- ## Setup the package version. |
260 |
- get_version ( "1.0.0" ) |
261 |
- |
262 |
-+# FIXME: The library version should not be tied to the project version! |
263 |
-+# There are rules how to bump version numbers for libraries. |
264 |
- set ( BUILD_VERSION_MAJOR ${VERSION_MAJOR} ) |
265 |
- set ( BUILD_VERSION_MINOR ${VERSION_MINOR} ) |
266 |
- set ( BUILD_VERSION_PATCH ${VERSION_PATCH} ) |
267 |
-@@ -171,4 +173,31 @@ install(FILES |
268 |
- COMPONENT |
269 |
- ${HSAKMT_COMPONENT}-pkgconfig) |
270 |
- |
271 |
-+# Create cmake configuration files |
272 |
-+include(CMakePackageConfigHelpers) |
273 |
-+ |
274 |
-+set(HSAKMT_LIBRARY_NAME ${CMAKE_SHARED_LIBRARY_PREFIX}${PROJECT_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}) |
275 |
-+ |
276 |
-+set(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME} CACHE INTERNAL "") |
277 |
-+set(LIB_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR} CACHE INTERNAL "") |
278 |
-+ |
279 |
-+configure_package_config_file(${PROJECT_NAME}-config.cmake.in |
280 |
-+ ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config.cmake |
281 |
-+ PATH_VARS |
282 |
-+ INCLUDE_INSTALL_DIR LIB_INSTALL_DIR |
283 |
-+ INSTALL_DESTINATION |
284 |
-+ ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}) |
285 |
-+ |
286 |
-+write_basic_package_version_file(${PROJECT_NAME}-config-version.cmake |
287 |
-+ COMPATIBILITY |
288 |
-+ AnyNewerVersion) |
289 |
-+ |
290 |
-+install(FILES |
291 |
-+ ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config.cmake |
292 |
-+ ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config-version.cmake |
293 |
-+ DESTINATION |
294 |
-+ ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME} |
295 |
-+ COMPONENT |
296 |
-+ devel) |
297 |
-+ |
298 |
- include ( CPack ) |
299 |
-diff --git a/hsakmt-config.cmake.in b/hsakmt-config.cmake.in |
300 |
-new file mode 100644 |
301 |
-index 0000000..e6bad17 |
302 |
---- /dev/null |
303 |
-+++ b/hsakmt-config.cmake.in |
304 |
-@@ -0,0 +1,9 @@ |
305 |
-+@PACKAGE_INIT@ |
306 |
-+ |
307 |
-+set_and_check(HSAKMT_INCLUDE_DIR @PACKAGE_LIB_INSTALL_DIR@) |
308 |
-+set_and_check(HSAKMT_LIB_DIR @PACKAGE_LIB_INSTALL_DIR@) |
309 |
-+ |
310 |
-+set(HSAKMT_LIBRARY @PACKAGE_LIB_INSTALL_DIR@/@HSAKMT_LIBRARY_NAME@) |
311 |
-+set(HSAKMT_LIBRARIES @PACKAGE_LIB_INSTALL_DIR@/@HSAKMT_LIBRARY_NAME@) |
312 |
-+ |
313 |
-+mark_as_advanced(HSAKMT_LIBRARY HSAKMT_INCLUDE_DIR) |
314 |
|
315 |
diff --git a/dev-libs/roct-thunk-interface/files/roct-thunk-interface-2.6.0-correctly-install-pc.patch b/dev-libs/roct-thunk-interface/files/roct-thunk-interface-2.6.0-correctly-install-pc.patch |
316 |
deleted file mode 100644 |
317 |
index 4d0680415ce..00000000000 |
318 |
--- a/dev-libs/roct-thunk-interface/files/roct-thunk-interface-2.6.0-correctly-install-pc.patch |
319 |
+++ /dev/null |
320 |
@@ -1,25 +0,0 @@ |
321 |
-https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/pull/39 |
322 |
- |
323 |
-From 032a3e38c62b84ec56fad70d24cf82ee65d8c80b Mon Sep 17 00:00:00 2001 |
324 |
-From: Craig Andrews <candrews@××××××××××××.com> |
325 |
-Date: Mon, 22 Jul 2019 17:06:16 -0400 |
326 |
-Subject: [PATCH] Install libhsakmt.pc to the standard location |
327 |
- |
328 |
-pkgconfig files should be installed to /usr/share/pkgconfig/, not /usr/libhsakmt/ |
329 |
---- |
330 |
- hsakmt-dev.txt | 2 +- |
331 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
332 |
- |
333 |
-diff --git a/hsakmt-dev.txt b/hsakmt-dev.txt |
334 |
-index eb0d3e2..195cc6c 100644 |
335 |
---- a/hsakmt-dev.txt |
336 |
-+++ b/hsakmt-dev.txt |
337 |
-@@ -43,7 +43,7 @@ set ( BUILD_VERSION_PATCH @BUILD_VERSION_PATCH@ ) |
338 |
- set ( CMAKE_VERBOSE_MAKEFILE on ) |
339 |
- |
340 |
- ## Set the install targets |
341 |
--install ( FILES libhsakmt.pc DESTINATION libhsakmt ) |
342 |
-+install ( FILES libhsakmt.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/share/pkgconfig ) |
343 |
- install ( DIRECTORY ${SOURCE_DIR}/include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${HSAKMT_COMPONENT} ) |
344 |
- |
345 |
- |
346 |
|
347 |
diff --git a/dev-libs/roct-thunk-interface/files/roct-thunk-interface-2.6.0-correctly-install.patch b/dev-libs/roct-thunk-interface/files/roct-thunk-interface-2.6.0-correctly-install.patch |
348 |
deleted file mode 100644 |
349 |
index 961d2978a2d..00000000000 |
350 |
--- a/dev-libs/roct-thunk-interface/files/roct-thunk-interface-2.6.0-correctly-install.patch |
351 |
+++ /dev/null |
352 |
@@ -1,25 +0,0 @@ |
353 |
-https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/pull/38 |
354 |
- |
355 |
-From 1362864410579c35eb2ec428384ad883cb8b24b1 Mon Sep 17 00:00:00 2001 |
356 |
-From: Craig Andrews <candrews@××××××××××××.com> |
357 |
-Date: Mon, 22 Jul 2019 16:18:08 -0400 |
358 |
-Subject: [PATCH] Install LICENSE.md to DOCDIR |
359 |
- |
360 |
-LICENSE.md should be installed to the DOCDIR, not /usr/libhsakmt |
361 |
---- |
362 |
- CMakeLists.txt | 2 +- |
363 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
364 |
- |
365 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
366 |
-index e020132..398da3e 100644 |
367 |
---- a/CMakeLists.txt |
368 |
-+++ b/CMakeLists.txt |
369 |
-@@ -145,7 +145,7 @@ add_custom_target ( package-dev DEPENDS build-dev |
370 |
- |
371 |
- ## Add the install directives for the runtime library. |
372 |
- install ( TARGETS ${HSAKMT_TARGET} DESTINATION ${CMAKE_INSTALL_LIBDIR} ) |
373 |
--install ( FILES ${SOURCE_DIR}/LICENSE.md DESTINATION libhsakmt ) |
374 |
-+install ( FILES ${SOURCE_DIR}/LICENSE.md DESTINATION ${CMAKE_INSTALL_DOCDIR} ) |
375 |
- |
376 |
- ## Add the packaging directives for the runtime library. |
377 |
- set ( CPACK_PACKAGE_NAME ${HSAKMT_PACKAGE} ) |
378 |
|
379 |
diff --git a/dev-libs/roct-thunk-interface/files/roct-thunk-interface-2.6.0-do-not-install-kfd_ioctl.h.patch b/dev-libs/roct-thunk-interface/files/roct-thunk-interface-2.6.0-do-not-install-kfd_ioctl.h.patch |
380 |
deleted file mode 100644 |
381 |
index 711c16f852e..00000000000 |
382 |
--- a/dev-libs/roct-thunk-interface/files/roct-thunk-interface-2.6.0-do-not-install-kfd_ioctl.h.patch |
383 |
+++ /dev/null |
384 |
@@ -1,25 +0,0 @@ |
385 |
-https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/pull/42 |
386 |
- |
387 |
-From 9090559aad755bf2b5041fb617c3ddf790c7cdf6 Mon Sep 17 00:00:00 2001 |
388 |
-From: Craig Andrews <candrews@××××××××××××.com> |
389 |
-Date: Thu, 8 Aug 2019 14:01:04 -0400 |
390 |
-Subject: [PATCH] hsakmt-dev should not install linux kernel headers |
391 |
- |
392 |
-hsakmt-dev should not install include/linux/* (currently just kfd_ioctl.h) as those are linux kernel headers provided by the linux kernel header packages (`linux-headers-*` on Debian/Ubuntu or `kernel-headers-*` on Red Hat / Fedora) |
393 |
---- |
394 |
- hsakmt-dev.txt | 2 +- |
395 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
396 |
- |
397 |
-diff --git a/hsakmt-dev.txt b/hsakmt-dev.txt |
398 |
-index eb0d3e2..6af364c 100644 |
399 |
---- a/hsakmt-dev.txt |
400 |
-+++ b/hsakmt-dev.txt |
401 |
-@@ -44,7 +44,7 @@ set ( CMAKE_VERBOSE_MAKEFILE on ) |
402 |
- |
403 |
- ## Set the install targets |
404 |
- install ( FILES libhsakmt.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/share/pkgconfig ) |
405 |
--install ( DIRECTORY ${SOURCE_DIR}/include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${HSAKMT_COMPONENT} ) |
406 |
-+install ( DIRECTORY ${SOURCE_DIR}/include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${HSAKMT_COMPONENT} PATTERN "linux" EXCLUDE ) |
407 |
- |
408 |
- |
409 |
- ## Set the default generator types for the devel package. |
410 |
|
411 |
diff --git a/dev-libs/roct-thunk-interface/files/roct-thunk-interface-2.6.0-pc-prefix.patch b/dev-libs/roct-thunk-interface/files/roct-thunk-interface-2.6.0-pc-prefix.patch |
412 |
deleted file mode 100644 |
413 |
index 0b4a716e6c9..00000000000 |
414 |
--- a/dev-libs/roct-thunk-interface/files/roct-thunk-interface-2.6.0-pc-prefix.patch |
415 |
+++ /dev/null |
416 |
@@ -1,22 +0,0 @@ |
417 |
-https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/pull/40 |
418 |
- |
419 |
-From fb42a02230ed5140b3ac3beadb38ca39eb9ea463 Mon Sep 17 00:00:00 2001 |
420 |
-From: Craig Andrews <candrews@××××××××××××.com> |
421 |
-Date: Mon, 22 Jul 2019 17:17:09 -0400 |
422 |
-Subject: [PATCH] Use CMAKE_INSTALL_PREFIX in pkgconfig |
423 |
- |
424 |
-The location where files are installed is the value to use; the CPACK packaging directory isn't important as the pkgconfig file is used on the system after the package is installed. |
425 |
---- |
426 |
- libhsakmt.pc.in | 2 +- |
427 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
428 |
- |
429 |
-diff --git a/libhsakmt.pc.in b/libhsakmt.pc.in |
430 |
-index 3093afc..1abb66d 100644 |
431 |
---- a/libhsakmt.pc.in |
432 |
-+++ b/libhsakmt.pc.in |
433 |
-@@ -1,4 +1,4 @@ |
434 |
--prefix=@CPACK_PACKAGING_INSTALL_PREFIX@ |
435 |
-+prefix=@CMAKE_INSTALL_PREFIX@ |
436 |
- exec_prefix=${prefix} |
437 |
- libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@ |
438 |
- includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ |