public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hipify] rawhide: merge compat changes
@ 2026-06-06 21:04 Tom Rix
  0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2026-06-06 21:04 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/hipify
            Branch : rawhide
            Commit : ea9ab4bd0aa503487ad0e70717da32d17237f11e
            Author : Tom Rix <Tom.Rix@amd.com>
            Date   : 2026-06-06T14:04:07-07:00
            Stats  : +20/-6 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/hipify/c/ea9ab4bd0aa503487ad0e70717da32d17237f11e?branch=rawhide

            Log:
            merge compat changes

Signed-off-by: Tom Rix <Tom.Rix@amd.com>

---
diff --git a/hipify.spec b/hipify.spec
index c14f468..9d4ca25 100644
--- a/hipify.spec
+++ b/hipify.spec
@@ -31,11 +31,13 @@
 %global pkg_prefix %{_prefix}/lib64/rocm/rocm-%{rocm_release}/
 %global pkg_suffix %{rocm_release}
 %global pkg_module rocm%{pkg_suffix}
+%global skip_install_rpath OFF
 %else
 %global pkg_libdir %{_lib}
 %global pkg_prefix %{_prefix}
 %global pkg_suffix %{nil}
 %global pkg_module default
+%global skip_install_rpath ON
 %endif
 
 # This is a clang tool so best to build with clang
@@ -43,7 +45,7 @@
 
 Name:           hipify%{pkg_suffix}
 Version:        %{rocm_version}
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Convert CUDA to HIP
 
 Url:            https://github.com/ROCm
@@ -59,9 +61,13 @@ BuildRequires:  perl
 BuildRequires:  rocm-llvm%{pkg_suffix}-static
 BuildRequires:  rocm-clang%{pkg_suffix}-devel
 BuildRequires:  rocm-compilersupport%{pkg_suffix}-macros
+BuildRequires:  rocm-filesystem%{pkg_suffix}
 BuildRequires:  zlib-devel
 
 Requires:       perl
+Requires:       rocm-filesystem%{pkg_suffix}
+Requires:       rocm-llvm%{pkg_suffix}-libs
+Requires:       rocm-clang%{pkg_suffix}-libs
 
 # ROCm is really only on x86_64
 ExclusiveArch:  x86_64
@@ -73,13 +79,19 @@ HIP C++ automatically.
 %prep
 %autosetup -p1 -n %{upstreamname}-rocm-%{version}
 
+# Remove meddling with rpath
+sed -i -e '/INSTALL_RPATH/,+2d' CMakeLists.txt
+
 %build
 %cmake \
     -DCMAKE_CXX_COMPILER=%rocmllvm_bindir/clang++ \
     -DCMAKE_C_COMPILER=%rocmllvm_bindir/clang \
     -DCMAKE_INSTALL_LIBDIR=%{pkg_libdir} \
     -DCMAKE_INSTALL_PREFIX=%{pkg_prefix} \
-    -DCMAKE_PREFIX_PATH=%{rocmllvm_cmakedir}/..
+    -DCMAKE_PREFIX_PATH=%{rocmllvm_cmakedir}/.. \
+    -DCMAKE_INSTALL_RPATH=%{rocmllvm_libdir} \
+    -DCMAKE_SKIP_RPATH=%{skip_install_rpath} \
+    -DCMAKE_SKIP_INSTALL_RPATH=%{skip_install_rpath}
 
 %cmake_build
 
@@ -97,13 +109,12 @@ chmod a+x %{buildroot}%{pkg_prefix}/bin/*
 # Fix script shebang (Fedora doesn't allow using "env"):
 sed -i 's|\(/usr/bin/\)env perl|\1perl|' %{buildroot}%{pkg_prefix}/bin//hipify-perl
 
-# Fix
-# /usr/bin/hipify-clang: error while loading shared libraries: libclang-cpp.so.19.0git
-chrpath %{buildroot}%{pkg_prefix}/bin/hipify-clang -r %rocmllvm_libdir
-
 # No devel package
 rm -rf %{buildroot}%{pkg_prefix}/include
 
+# cleanup extra hipify-perl
+rm -f %{buildroot}%{pkg_prefix}/libexec/hipify/hipify-perl
+
 %files
 %doc README.md
 %license LICENSE.txt
@@ -112,6 +123,9 @@ rm -rf %{buildroot}%{pkg_prefix}/include
 %{pkg_prefix}/libexec/hipify/
 
 %changelog
+* Sat Jun 6 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-2
+- merge compat changes
+
 * Sun Jan 25 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-1
 - Update to 7.2.0
 

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

only message in thread, other threads:[~2026-06-06 21:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-06 21:04 [rpms/hipify] rawhide: merge compat changes Tom Rix

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