summaryrefslogtreecommitdiff
path: root/dev-util/hip/files/hip-4.2.0-cancel-hcc-header-removal.patch
blob: 08e0f3a3d4e3874a8ce0e2e0c2d0c8153ed91bb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
hcc now deprecated by ROCm upstream. They use cmake to delete hcc headers for upgrating hip on other distros, 
but Gentoo don't need this and the following code causes sandbox violation (#799257).

github.com/ROCm-Developer-Tools/HIP/commit/c2adc70d4df3d30ef0db84d47be14b99b01aa340 introduce these lines.

--- orig/CMakeLists.txt
+++ HIP-rocm-4.2.0/CMakeLists.txt
@@ -333,10 +333,6 @@ if(NOT ${INSTALL_SOURCE} EQUAL 0)
     endif()
     install(DIRECTORY bin DESTINATION . USE_SOURCE_PERMISSIONS)
 
-    # The following two lines will be removed after upstream updation
-    install(CODE "MESSAGE(\"Removing ${CMAKE_INSTALL_PREFIX}/include\")")
-    install(CODE "file(REMOVE_RECURSE ${CMAKE_INSTALL_PREFIX}/include)")
-
     install(DIRECTORY include DESTINATION .)
     install(DIRECTORY cmake DESTINATION .)
 endif()