public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rocclr] rawhide: Merge #6 `Require a rocm-runtime of a compatible version`
@ 2026-11-18  2:18 Jeremy Newton
  0 siblings, 0 replies; only message in thread
From: Jeremy Newton @ 2026-11-18  2:18 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rocclr
Branch : rawhide
Commit : 0fd3b74f8450465e4333fbc131d28e4316808767
Author : Jeremy Newton <mystro256@fedoraproject.org>
Date   : 2026-11-18T02:18:49+00:00
Stats  : +13/-5 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/rocclr/c/0fd3b74f8450465e4333fbc131d28e4316808767?branch=rawhide

Log:
Merge #6 `Require a rocm-runtime of a compatible version`

---
diff --git a/rocclr.spec b/rocclr.spec
index 1bd7f65..149b106 100644
--- a/rocclr.spec
+++ b/rocclr.spec
@@ -218,7 +218,7 @@ Requires:    opencl-filesystem
 Recommends:  LibOpenCL1
 %endif
 Requires:    rocm-filesystem%{pkg_suffix}
-Requires:    rocm-runtime%{pkg_suffix}
+Requires:    rocm-runtime%{pkg_suffix} >= %{rocm_release}
 
 %description -n rocm-opencl%{pkg_suffix}
 ROCm OpenCL language runtime.
@@ -250,7 +250,7 @@ Summary:        ROCm HIP platform and device tool
 Requires:       comgr%{pkg_suffix}(major) = %{comgr_maj_api_ver}
 Requires:       hipcc%{pkg_suffix}
 Requires:       rocm-filesystem%{pkg_suffix}
-Requires:       rocm-runtime%{pkg_suffix}
+Requires:       rocm-runtime%{pkg_suffix} >= %{rocm_release}
 
 %description -n rocm-hip%{pkg_suffix}
 HIP is a C++ Runtime API and Kernel Language that allows developers to create

diff --git a/rocclr.spec b/rocclr.spec
index e22e707..149b106 100644
--- a/rocclr.spec
+++ b/rocclr.spec
@@ -115,7 +115,7 @@ Version:        %{rocm_version}
 %if %{with preview}
 Release:        0%{?dist}
 %else
-Release:        1%{?dist}
+Release:        2%{?dist}
 %endif
 Summary:        ROCm Compute Language Runtime
 License:        MIT AND Apache-2.0 AND MIT-Khronos-old
@@ -294,6 +294,11 @@ This package contains documentation for the hip package
 sed -i '/INSTALL_RPATH/d' \
     opencl/tools/clinfo/CMakeLists.txt hipamd/CMakeLists.txt
 
+# Fix OpenCL install path.
+# Upstream installs it to %{_libdir}/opencl, but that's not in ldpath without
+# configuration. Just drop this subdir instead of adding an ldconfig file
+sed -i 's/\(AMDOCL_INSTALL_LIBDIR\) ${PROJECT_NAME}/\1 ""/' opencl/CMakeLists.txt
+
 # Upstream doesn't want OpenCL sonames because they don't guarantee API/ABI.
 # For Fedora, SOVERSION can be major.minor (i.e. rocm_release) as rocm patch
 # releases are very unlikely to break anything:
@@ -413,11 +418,11 @@ rm -f %{buildroot}%{pkg_prefix}/share/doc/hip/LICENSE.md
 %license opencl/LICENSE.md
 %config(noreplace) %{_sysconfdir}/OpenCL/vendors/amdocl64.icd
 %endif
-%{pkg_prefix}/%{pkg_libdir}/opencl/libamdocl64.so.%{rocm_major}{,.*}
+%{pkg_prefix}/%{pkg_libdir}/libamdocl64.so.%{rocm_major}{,.*}
 %{pkg_prefix}/%{pkg_libdir}/libcltrace.so.%{rocm_major}{,.*}
 
 %files -n rocm-opencl%{pkg_suffix}-devel
-%{pkg_prefix}/%{pkg_libdir}/opencl/libamdocl64.so
+%{pkg_prefix}/%{pkg_libdir}/libamdocl64.so
 %{pkg_prefix}/%{pkg_libdir}/libcltrace.so
 %{pkg_prefix}/include/%{name}
 
@@ -453,6 +458,9 @@ rm -f %{buildroot}%{pkg_prefix}/share/doc/hip/LICENSE.md
 %endif
 
 %changelog
+* Mon Jan 06 2025 Jeremy Newton <alexjnewt@hotmail.com> - 10.1.0-2
+- Fix install path for OpenCL lib
+
 * Fri Oct 9 2026 Tom Rix <Tom.Rix@amd.com> - 10.1.0-1
 - Update to 10.1
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-18  2:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-18  2:18 [rpms/rocclr] rawhide: Merge #6 `Require a rocm-runtime of a compatible version` Jeremy Newton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox