public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: Try again with less broken capping patches...
@ 2026-11-23 9:32 Panu Matilainen
0 siblings, 0 replies; only message in thread
From: Panu Matilainen @ 2026-11-23 9:32 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rpm
Branch : pmatilai-v6
Commit : a0095d14ee5fb9e123e56b4675882f9a5625972c
Author : Panu Matilainen <pmatilai@redhat.com>
Date : 2019-08-23T14:12:34+03:00
Stats : +12/-14 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/rpm/c/a0095d14ee5fb9e123e56b4675882f9a5625972c?branch=pmatilai-v6
Log:
Try again with less broken capping patches...
---
diff --git a/0001-Fix-build-code-thread-cap-logic-for-unlimited-CPUs.patch b/0001-Fix-build-code-thread-cap-logic-for-unlimited-CPUs.patch
index e77329e..d9d2d70 100644
--- a/0001-Fix-build-code-thread-cap-logic-for-unlimited-CPUs.patch
+++ b/0001-Fix-build-code-thread-cap-logic-for-unlimited-CPUs.patch
@@ -1,5 +1,5 @@
-From 3ba0136000c986c692baab7b112aba163173d2d3 Mon Sep 17 00:00:00 2001
-Message-Id: <3ba0136000c986c692baab7b112aba163173d2d3.1566556488.git.pmatilai@redhat.com>
+From 4d16d81a1af3e43b8392e7c335f616c9c0c6e41b Mon Sep 17 00:00:00 2001
+Message-Id: <4d16d81a1af3e43b8392e7c335f616c9c0c6e41b.1566558648.git.pmatilai@redhat.com>
From: Panu Matilainen <pmatilai@redhat.com>
Date: Fri, 23 Aug 2019 11:09:40 +0300
Subject: [PATCH 1/2] Fix build code thread cap logic for unlimited CPUs
@@ -12,7 +12,7 @@ limiting to 1.
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/build/parseSpec.c b/build/parseSpec.c
-index 055bdf012..61858aabd 100644
+index 055bdf012..737a1233c 100644
--- a/build/parseSpec.c
+++ b/build/parseSpec.c
@@ -1036,9 +1036,8 @@ static rpmSpec parseSpec(const char *specFile, rpmSpecFlags flags,
@@ -22,7 +22,7 @@ index 055bdf012..61858aabd 100644
- if (ncpus <= 0)
- ncpus = 1;
- omp_set_num_threads(ncpus);
-+ if (ncpus > 0) {
++ if (ncpus > 0)
+ omp_set_num_threads(ncpus);
#endif
diff --git a/0002-Cap-number-of-threads-on-32bit-platforms-add-a-tunab.patch b/0002-Cap-number-of-threads-on-32bit-platforms-add-a-tunab.patch
index f8835bb..f44849d 100644
--- a/0002-Cap-number-of-threads-on-32bit-platforms-add-a-tunab.patch
+++ b/0002-Cap-number-of-threads-on-32bit-platforms-add-a-tunab.patch
@@ -1,7 +1,7 @@
-From bcaa30872087a1002648653358ab9514f829de9a Mon Sep 17 00:00:00 2001
-Message-Id: <bcaa30872087a1002648653358ab9514f829de9a.1566556488.git.pmatilai@redhat.com>
-In-Reply-To: <3ba0136000c986c692baab7b112aba163173d2d3.1566556488.git.pmatilai@redhat.com>
-References: <3ba0136000c986c692baab7b112aba163173d2d3.1566556488.git.pmatilai@redhat.com>
+From 4c772fcf7114d6ce20800c12bc377b490d267548 Mon Sep 17 00:00:00 2001
+Message-Id: <4c772fcf7114d6ce20800c12bc377b490d267548.1566558648.git.pmatilai@redhat.com>
+In-Reply-To: <4d16d81a1af3e43b8392e7c335f616c9c0c6e41b.1566558648.git.pmatilai@redhat.com>
+References: <4d16d81a1af3e43b8392e7c335f616c9c0c6e41b.1566558648.git.pmatilai@redhat.com>
From: Panu Matilainen <pmatilai@redhat.com>
Date: Fri, 23 Aug 2019 11:17:21 +0300
Subject: [PATCH 2/2] Cap number of threads on 32bit platforms, add a tunable
@@ -21,10 +21,10 @@ number of threads just in case, defaulting to max CPUs available.
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/build/parseSpec.c b/build/parseSpec.c
-index 61858aabd..d987bdc7b 100644
+index 737a1233c..ab3ba9cae 100644
--- a/build/parseSpec.c
+++ b/build/parseSpec.c
-@@ -1035,9 +1035,17 @@ static rpmSpec parseSpec(const char *specFile, rpmSpecFlags flags,
+@@ -1035,7 +1035,15 @@ static rpmSpec parseSpec(const char *specFile, rpmSpecFlags flags,
#ifdef ENABLE_OPENMP
/* Set number of OMP threads centrally */
@@ -37,12 +37,10 @@ index 61858aabd..d987bdc7b 100644
+ rpmlog(RPMLOG_DEBUG,
+ "limiting number of threads to %d due to platform\n", ncpus);
+ }
- if (ncpus > 0) {
- omp_set_num_threads(ncpus);
+#endif
+ if (ncpus > 0)
+ omp_set_num_threads(ncpus);
#endif
-
- if (spec->clean == NULL) {
diff --git a/platform.in b/platform.in
index db6d2382f..c70f44193 100644
--- a/platform.in
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-23 9:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 9:32 [rpms/rpm] pmatilai-v6: Try again with less broken capping patches Panu Matilainen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox