From 3431032de4948980d3720393331d1a978461911a Mon Sep 17 00:00:00 2001 From: Yiyang Wu Date: Fri, 2 Sep 2022 16:24:49 +0800 Subject: 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 Signed-off-by: Benda Xu --- .../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(+) create mode 100644 dev-util/hip/files/hip-5.1.3-correct-sample-install-location.patch 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" ) -- cgit v1.2.3-65-gdbad