public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Tom Rix <Tom.Rix@amd.com>
To: git-commits@fedoraproject.org
Subject: [rpms/hipfort] rawhide: Fix check
Date: Wed, 15 Jul 2026 14:15:02 GMT [thread overview]
Message-ID: <178412490268.1.13085147743393788651.rpms-hipfort-16f18f1eb2e8@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/hipfort
Branch : rawhide
Commit : 16f18f1eb2e84d107229038be6ee7f95838fcbce
Author : Tom Rix <Tom.Rix@amd.com>
Date : 2026-07-15T07:14:37-07:00
Stats : +12/-13 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/hipfort/c/16f18f1eb2e84d107229038be6ee7f95838fcbce?branch=rawhide
Log:
Fix check
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
---
diff --git a/hipfort.spec b/hipfort.spec
index b5d11c0..bba0fc4 100644
--- a/hipfort.spec
+++ b/hipfort.spec
@@ -46,10 +46,15 @@
# Needs ROCm HW so is only suitable for local testing
%bcond_with check
+%if %{with check}
+%global build_test ON
+%else
+%global build_test OFF
+%endif
Name: hipfort%{pkg_suffix}
Version: %{rocm_version}
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Fortran interfaces for ROCm libraries
Url: https://github.com/ROCm/%{upstreamname}
@@ -116,24 +121,15 @@ sed -i 's@cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR@cmake_minimum_requir
-DROCM_SYMLINK_LIBS=OFF \
-DHIP_PLATFORM=amd \
-DBUILD_SHARED_LIBS=ON \
+ -DBUILD_TESTING=%{build_test} \
-DCMAKE_BUILD_TYPE=%{build_type}
%cmake_build
-# Assume you _just_ installed hipfort-devel as the tests assume hipfc is in the PATH
%if %{with check}
%check
-# Mixing rpm gfortran security flags with hipcc does not work
-# Override the normal rpm flags
-export CFLAGS=""
-export CXXFLAGS=""
-export FFLAGS=""
-export FCFLAGS=""
-export LDFLAGS=""
-# hipfc needs these set to find things
-export HIPFORT="%{pkg_prefix}"
-export ROCM_PATH="%{pkg_prefix}"
-%cmake_build -t all-tests-run
+export LD_LIBRARY_PATH=${PWD}/%{_vpath_builddir}/lib:$LD_LIBRARY_PATH
+%ctest -j1
%endif
%install
@@ -162,6 +158,9 @@ rm -f %{buildroot}%{pkg_prefix}/share/doc/hipfort/LICENSE
%{pkg_prefix}/%{pkg_libdir}/cmake/hipfort/
%changelog
+* Wed Jul 15 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-3
+- Fix check
+
* Fri Feb 20 2026 Tom Rix <Tom.Rix@amd.com> - 7.2.0-2
- Fix so version
reply other threads:[~2026-07-15 14:15 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=178412490268.1.13085147743393788651.rpms-hipfort-16f18f1eb2e8@fedoraproject.org \
--to=tom.rix@amd.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