From bef1d344ac6f05ba01794ac48658ae214c106dbd Mon Sep 17 00:00:00 2001 From: Michael Mair-Keimberger Date: Mon, 6 Jan 2020 18:10:52 +0100 Subject: dev-libs/rocm-opencl-driver: remove unused patch(es) Signed-off-by: Michael Mair-Keimberger Closes: https://github.com/gentoo/gentoo/pull/14268 Signed-off-by: Craig Andrews --- ...ocm-opencl-driver-2.6.0-install-correctly.patch | 49 ---------------------- .../rocm-opencl-driver-2.6.0-install-header.patch | 19 --------- .../files/rocm-opencl-driver-2.7.0-libraries.patch | 40 ------------------ 3 files changed, 108 deletions(-) delete mode 100644 dev-libs/rocm-opencl-driver/files/rocm-opencl-driver-2.6.0-install-correctly.patch delete mode 100644 dev-libs/rocm-opencl-driver/files/rocm-opencl-driver-2.6.0-install-header.patch delete mode 100644 dev-libs/rocm-opencl-driver/files/rocm-opencl-driver-2.7.0-libraries.patch (limited to 'dev-libs/rocm-opencl-driver') diff --git a/dev-libs/rocm-opencl-driver/files/rocm-opencl-driver-2.6.0-install-correctly.patch b/dev-libs/rocm-opencl-driver/files/rocm-opencl-driver-2.6.0-install-correctly.patch deleted file mode 100644 index d70f0977ec8f..000000000000 --- a/dev-libs/rocm-opencl-driver/files/rocm-opencl-driver-2.6.0-install-correctly.patch +++ /dev/null @@ -1,49 +0,0 @@ -https://github.com/RadeonOpenCompute/ROCm-OpenCL-Driver/pull/85 - -From 8819a684c9b6e154abedc041b3da545aab353d67 Mon Sep 17 00:00:00 2001 -From: Craig Andrews -Date: Fri, 26 Jul 2019 15:54:59 -0400 -Subject: [PATCH] Use GNUInstallDirs to install to standard locations - -Some distributions require 64 bit libraries to be installed to lib64, for example. -Using GNUInstallDirs ensures that files are installed to the expected locations. ---- - CMakeLists.txt | 3 +++ - src/driver/CMakeLists.txt | 2 +- - src/roc-cl/CMakeLists.txt | 2 +- - 3 files changed, 5 insertions(+), 2 deletions(-) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index d1759b7..d21e9da 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -42,6 +42,9 @@ - - cmake_minimum_required(VERSION 2.8) - -+## Include common cmake modules -+include ( GNUInstallDirs ) -+ - # Build ROCm-OpenCL-Driver with ccache if the package is present. - set(ROCM_OPENCL_DRIVER_CCACHE_BUILD OFF CACHE BOOL "Set to ON for a ccache enabled build") - if(ROCM_OPENCL_DRIVER_CCACHE_BUILD) -diff --git a/src/driver/CMakeLists.txt b/src/driver/CMakeLists.txt -index 7046e34..55ed13f 100644 ---- a/src/driver/CMakeLists.txt -+++ b/src/driver/CMakeLists.txt -@@ -90,4 +90,4 @@ target_link_libraries(opencl_driver - target_link_libraries(opencl_driver ${llvm_libs}) - target_include_directories(opencl_driver PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) - --install(TARGETS opencl_driver DESTINATION lib) -+install(TARGETS opencl_driver DESTINATION ${CMAKE_INSTALL_LIBDIR} ) -diff --git a/src/roc-cl/CMakeLists.txt b/src/roc-cl/CMakeLists.txt -index 5037453..a8e2801 100644 ---- a/src/roc-cl/CMakeLists.txt -+++ b/src/roc-cl/CMakeLists.txt -@@ -54,4 +54,4 @@ link_directories(${LLVM_LIBRARY_DIRS}) - add_executable(roc-cl ${sources}) - target_link_libraries(roc-cl opencl_driver) - --install(TARGETS roc-cl RUNTIME DESTINATION bin) -+install(TARGETS roc-cl RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ) diff --git a/dev-libs/rocm-opencl-driver/files/rocm-opencl-driver-2.6.0-install-header.patch b/dev-libs/rocm-opencl-driver/files/rocm-opencl-driver-2.6.0-install-header.patch deleted file mode 100644 index b37100994e04..000000000000 --- a/dev-libs/rocm-opencl-driver/files/rocm-opencl-driver-2.6.0-install-header.patch +++ /dev/null @@ -1,19 +0,0 @@ -From 1258a99decf96092de8ea512150209e14152ed9c Mon Sep 17 00:00:00 2001 -From: Craig Andrews -Date: Tue, 30 Jul 2019 16:46:20 -0400 -Subject: [PATCH] Install AmdCompiler.h header - -ROCm-OpenCL-Runtime uses AmdCompiler.h so it should be installed to the system and made available for use ---- - src/driver/CMakeLists.txt | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/src/driver/CMakeLists.txt b/src/driver/CMakeLists.txt -index 55ed13f..8f68fb7 100644 ---- a/src/driver/CMakeLists.txt -+++ b/src/driver/CMakeLists.txt -@@ -91,3 +91,4 @@ target_link_libraries(opencl_driver ${llvm_libs}) - target_include_directories(opencl_driver PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) - - install(TARGETS opencl_driver DESTINATION ${CMAKE_INSTALL_LIBDIR} ) -+install(FILES AmdCompiler.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) 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 deleted file mode 100644 index 9e2a06aac979..000000000000 --- a/dev-libs/rocm-opencl-driver/files/rocm-opencl-driver-2.7.0-libraries.patch +++ /dev/null @@ -1,40 +0,0 @@ -https://github.com/RadeonOpenCompute/ROCm-OpenCL-Driver/pull/88 - -From f49ad81e246f1c196cf86f40cf44dfedec0675f1 Mon Sep 17 00:00:00 2001 -From: Mike Lothain -Date: Tue, 27 Aug 2019 11:32:47 +0100 -Subject: [PATCH] Include more link libraries - -This is required to get dev-libs/rocm-opencl-driver-2.7.0 compiling for me on Gentoo - -I think it might be related to using -Wl,--as-needed in my link flags globally ---- - src/driver/CMakeLists.txt | 5 +++++ - 1 file changed, 5 insertions(+) - -diff --git a/src/driver/CMakeLists.txt b/src/driver/CMakeLists.txt -index 55ed13f..b93356d 100644 ---- a/src/driver/CMakeLists.txt -+++ b/src/driver/CMakeLists.txt -@@ -60,9 +60,13 @@ llvm_map_components_to_libnames(llvm_libs - AllTargetsDescs - AllTargetsDisassemblers - AllTargetsInfos -+ BitWriter - CodeGen -+ IRReader -+ Linker - MC - MCDisassembler -+ MCParser - Object - Symbolize - Core -@@ -83,6 +87,7 @@ target_link_libraries(opencl_driver - clangLex - clangBasic - clangCodeGen -+ clangSerialization - lldELF - lldCore - LLVMDebugInfoDWARF -- cgit v1.2.3-65-gdbad