summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYiyang Wu <xgreenlandforwyy@gmail.com>2022-09-02 16:24:49 +0800
committerBenda Xu <heroxbd@gentoo.org>2022-09-12 16:40:58 +0800
commit3431032de4948980d3720393331d1a978461911a (patch)
treeced7932e92b9690b9d669a9927e001c0c850f81a /dev-util/hip/files
parentdev-util/hip: Fix cmake module and install location (diff)
downloadgentoo-3431032de4948980d3720393331d1a978461911a.tar.gz
gentoo-3431032de4948980d3720393331d1a978461911a.tar.bz2
gentoo-3431032de4948980d3720393331d1a978461911a.zip
dev-util/hip: Fix sample install dir
Using patch instead of sed command. In hip develop branch, the syntax has changed, so use patch can avoid silent failures in the future. Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com> Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'dev-util/hip/files')
-rw-r--r--dev-util/hip/files/hip-5.1.3-correct-sample-install-location.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-util/hip/files/hip-5.1.3-correct-sample-install-location.patch b/dev-util/hip/files/hip-5.1.3-correct-sample-install-location.patch
new file mode 100644
index 000000000000..57ac5cc3e992
--- /dev/null
+++ b/dev-util/hip/files/hip-5.1.3-correct-sample-install-location.patch
@@ -0,0 +1,13 @@
+Index: hipamd-rocm-5.1.3/packaging/CMakeLists.txt
+===================================================================
+--- hipamd-rocm-5.1.3.orig/packaging/CMakeLists.txt
++++ hipamd-rocm-5.1.3/packaging/CMakeLists.txt
+@@ -106,7 +106,7 @@ endif()
+ #End doc files install
+
+ #Begin samples files install
+-install(DIRECTORY ${HIP_COMMON_DIR}/samples DESTINATION . COMPONENT samples)
++install(DIRECTORY ${HIP_COMMON_DIR}/samples DESTINATION ${CMAKE_INSTALL_DOCDIR}/ COMPONENT samples)
+ #End samples files install
+
+ #Begin test files install