public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: Try again with less broken capping patches...
Date: Mon, 23 Nov 2026 09:32:57 GMT	[thread overview]
Message-ID: <179542637772.1.6452209845890824915.rpms-rpm-a0095d14ee5f@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-11-23  9:32 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=179542637772.1.6452209845890824915.rpms-rpm-a0095d14ee5f@fedoraproject.org \
    --to=pmatilai@redhat.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