public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: Try some probably non-working fix
Date: Mon, 23 Nov 2026 09:32:41 GMT	[thread overview]
Message-ID: <179542636135.1.16513617921731628808.rpms-rpm-68ce99e7f42f@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rpm
            Branch : pmatilai-v6
            Commit : 68ce99e7f42f9d321c2d3ff4446ab1308493f552
            Author : Igor Gnatenko <ignatenkobrain@fedoraproject.org>
            Date   : 2019-06-10T23:46:44+02:00
            Stats  : +49/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/rpm/c/68ce99e7f42f9d321c2d3ff4446ab1308493f552?branch=pmatilai-v6

            Log:
            Try some probably non-working fix

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>

---
diff --git a/rpm.spec b/rpm.spec
index 5ada8b3..1342342 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -57,6 +57,8 @@ Patch906: rpm-4.7.1-geode-i686.patch
 # Probably to be upstreamed in slightly different form
 Patch907: rpm-4.15.x-ldflags.patch
 
+Patch999: test.diff
+
 # Partially GPL/LGPL dual-licensed and some bits with BSD
 # SourceLicense: (GPLv2+ and LGPLv2+ with exceptions) and BSD
 License: GPLv2+

diff --git a/test.diff b/test.diff
new file mode 100644
index 0000000..48746df
--- /dev/null
+++ b/test.diff
@@ -0,0 +1,47 @@
+diff --git a/build/pack.c b/build/pack.c
+index 447e3ec94..21f22d5ca 100644
+--- a/build/pack.c
++++ b/build/pack.c
+@@ -742,25 +742,28 @@ static rpmRC packageBinary(rpmSpec spec, Package pkg, const char *cookie, int ch
+ rpmRC packageBinaries(rpmSpec spec, const char *cookie, int cheating)
+ {
+     rpmRC rc = RPMRC_OK;
+-    Package pkg;
+ 
+     /* Run binary creation in parallel */
+     #pragma omp parallel
+-    #pragma omp single
+-    for (pkg = spec->packages; pkg != NULL; pkg = pkg->next) {
+-	#pragma omp task
++    {
++	#pragma omp single
+ 	{
+-	pkg->rc = packageBinary(spec, pkg, cookie, cheating, &pkg->filename);
+-	rpmlog(RPMLOG_DEBUG,
+-		_("Finished binary package job, result %d, filename %s\n"),
+-		pkg->rc, pkg->filename);
+-	if (pkg->rc) {
+-	    #pragma omp critical
+-	    rc = pkg->rc;
++	for (Package pkg = spec->packages; pkg != NULL; pkg = pkg->next) {
++	    #pragma omp task
++	    {
++	    pkg->rc = packageBinary(spec, pkg, cookie, cheating, &pkg->filename);
++	    rpmlog(RPMLOG_DEBUG,
++		    _("Finished binary package job, result %d, filename %s\n"),
++		    pkg->rc, pkg->filename);
++	    if (pkg->rc) {
++		#pragma omp critical
++		rc = pkg->rc;
++	    }
++	    } /* omp task */
++	    if (rc)
++		break;
++	}
+ 	}
+-	} /* omp task */
+-	if (rc)
+-	    break;
+     }
+ 
+     /* Now check the package set if enabled */

                 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=179542636135.1.16513617921731628808.rpms-rpm-68ce99e7f42f@fedoraproject.org \
    --to=ignatenkobrain@fedoraproject.org \
    --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