public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jeremy Newton <mystro256@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rocclr] rawhide: Merge #6 `Require a rocm-runtime of a compatible version`
Date: Wed, 18 Nov 2026 02:18:53 GMT	[thread overview]
Message-ID: <179496833330.1.3697759612226334002.rpms-rocclr-0fd3b74f8450@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-11-18  2:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179496833330.1.3697759612226334002.rpms-rocclr-0fd3b74f8450@fedoraproject.org \
    --to=mystro256@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox