commit:     3431032de4948980d3720393331d1a978461911a
Author:     Yiyang Wu <xgreenlandforwyy <AT> gmail <DOT> com>
AuthorDate: Fri Sep  2 08:24:49 2022 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Mon Sep 12 08:40:58 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3431032d

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 <AT> gmail.com>
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>

 .../files/hip-5.1.3-correct-sample-install-location.patch   | 13 +++++++++++++
 dev-util/hip/hip-5.1.3-r1.ebuild                            |  1 +
 2 files changed, 14 insertions(+)

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

diff --git a/dev-util/hip/hip-5.1.3-r1.ebuild b/dev-util/hip/hip-5.1.3-r1.ebuild
index 634351aead1f..f9f620fe8170 100644
--- a/dev-util/hip/hip-5.1.3-r1.ebuild
+++ b/dev-util/hip/hip-5.1.3-r1.ebuild
@@ -47,6 +47,7 @@ PATCHES=(
        "${FILESDIR}/${PN}-4.2.0-cancel-hcc-header-removal.patch"
        "${FILESDIR}/${PN}-5.0.2-set-build-id.patch"
        "${FILESDIR}/${PN}-5.1.3-fix-hip_prof_gen.patch"
+       "${FILESDIR}/${PN}-5.1.3-correct-sample-install-location.patch"
        "${FILESDIR}/0001-SWDEV-316128-HIP-surface-API-support.patch"
 )
 

Reply via email to