public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: Try some probably non-working fix
@ 2026-11-23 9:32 Igor Gnatenko
0 siblings, 0 replies; only message in thread
From: Igor Gnatenko @ 2026-11-23 9:32 UTC (permalink / raw)
To: git-commits
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 */
^ 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 some probably non-working fix Igor Gnatenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox