public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jeremy Newton <alexjnewt@hotmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rocclr] rawhide: Fix OpenCL install directory
Date: Thu, 12 Nov 2026 04:30:22 GMT	[thread overview]
Message-ID: <179445782267.1.5802909382180160126.rpms-rocclr-e20731b9c6d1@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rocclr
            Branch : rawhide
            Commit : e20731b9c6d16df763fd9ee196708439e9b36eef
            Author : Jeremy Newton <alexjnewt@hotmail.com>
            Date   : 2026-11-11T23:28:30-05:00
            Stats  : +11/-3 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/rocclr/c/e20731b9c6d16df763fd9ee196708439e9b36eef?branch=rawhide

            Log:
            Fix OpenCL install directory

Upstream seems to think we should create a ldconfig file for the new path.
Since these libs are unique, I would rather move them back to libdir.

Signed-off-by: Jeremy Newton <alexjnewt@hotmail.com>

---
diff --git a/rocclr.spec b/rocclr.spec
index 4262cd9..1bd7f65 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-12  4:30 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=179445782267.1.5802909382180160126.rpms-rocclr-e20731b9c6d1@fedoraproject.org \
    --to=alexjnewt@hotmail.com \
    --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