commit: d46ef5409051d8a325ff959f94c10b6981f6ebbb Author: Patrick Lauer <patrick <AT> gentoo <DOT> org> AuthorDate: Thu Mar 2 08:50:43 2023 +0000 Commit: 罗百科 <patrick <AT> gentoo <DOT> org> CommitDate: Thu Mar 2 08:53:57 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d46ef540
dev-libs/rocr-runtime: Fix version detection This breaks rocm_bandwidth_test and others downstream as they compare to an internal version string. This silently breaks if git is not installed, so fix it to always be correct. Closes: https://bugs.gentoo.org/894064 Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org> .../{rocr-runtime-5.4.3.ebuild => rocr-runtime-5.4.3-r1.ebuild} | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dev-libs/rocr-runtime/rocr-runtime-5.4.3.ebuild b/dev-libs/rocr-runtime/rocr-runtime-5.4.3-r1.ebuild similarity index 88% rename from dev-libs/rocr-runtime/rocr-runtime-5.4.3.ebuild rename to dev-libs/rocr-runtime/rocr-runtime-5.4.3-r1.ebuild index f408d4213314..f6a8a5598f2a 100644 --- a/dev-libs/rocr-runtime/rocr-runtime-5.4.3.ebuild +++ b/dev-libs/rocr-runtime/rocr-runtime-5.4.3-r1.ebuild @@ -44,6 +44,11 @@ src_prepare() { # Gentoo installs "*.bc" to "/usr/lib" instead of a "[path]/bitcode" directory ... sed -e "s:-O2:--rocm-path=${EPREFIX}/usr/lib/ -O2:" -i image/blit_src/CMakeLists.txt || die + # internal version depends on git being present and random weird magic, otherwise fallback to incoherent default value + # fix default value to be more better + + sed -i -e "s:1.7.0:${PV}:" CMakeLists.txt || die + cmake_src_prepare }