public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/stress-ng] rawhide: Enable darn on RHEL
@ 2026-11-03 12:54 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-11-03 12:54 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/stress-ng
            Branch : rawhide
            Commit : 6a189a342bda288254ade89b23df5cfc8e5c21a1
            Author : Yaakov Selkowitz <yselkowi@redhat.com>
            Date   : 2026-10-21T12:09:44-04:00
            Stats  : +5/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/stress-ng/c/6a189a342bda288254ade89b23df5cfc8e5c21a1?branch=rawhide

            Log:
            Enable darn on RHEL

RHEL 9 targets POWER9 (Power ISA 3.0), and RHEL 10 targets POWER10 (3.1),
so darn is actually required for this to build on ppc64le.

---
diff --git a/stress-ng.spec b/stress-ng.spec
index bae2d8a..b93b1cd 100644
--- a/stress-ng.spec
+++ b/stress-ng.spec
@@ -6,8 +6,10 @@ Summary:	Stress test a computer system in various ways
 License:	GPL-2.0-or-later
 URL:		https://github.com/ColinIanKing/stress-ng
 Source0:	https://github.com/ColinIanKing/stress-ng/archive/V%{version}/%{name}-%{version}.tar.gz
+## Fedora-specific patches
 # darn is not supported in Power ISA < 3.0, while Fedora aims for Power ISA 2.07
-Patch0:     0_21_01-poewrpc-remove-darn.patch
+# RHEL 9+ does target POWER9+ and therefore requires darn
+Patch1000:      0_21_01-poewrpc-remove-darn.patch
 
 BuildRequires:	make
 BuildRequires:	gcc
@@ -32,7 +34,8 @@ various physical subsystems of a computer as well as the various operating
 system kernel interfaces.
 
 %prep
-%autosetup -n %{name}-%{version}
+%autosetup -n %{name}-%{version} -N
+%autopatch -p0 %{?rhel:-M 999}
 
 %build
 %make_build

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

only message in thread, other threads:[~2026-11-03 12:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-03 12:54 [rpms/stress-ng] rawhide: Enable darn on RHEL Yaakov Selkowitz

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