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: Copy changelog in one thread at a time
Date: Mon, 23 Nov 2026 09:32:43 GMT [thread overview]
Message-ID: <179542636384.1.14365617390074523433.rpms-rpm-82285fa5c12d@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rpm
Branch : pmatilai-v6
Commit : 82285fa5c12d36080d4d7bb625ccdfa88012d9e2
Author : Igor Gnatenko <ignatenkobrain@fedoraproject.org>
Date : 2019-06-11T13:45:21+02:00
Stats : +8/-42 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/rpm/c/82285fa5c12d36080d4d7bb625ccdfa88012d9e2?branch=pmatilai-v6
Log:
Copy changelog in one thread at a time
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
---
diff --git a/rpm.spec b/rpm.spec
index bb7a4a5..8a6c0c2 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -52,6 +52,7 @@ Patch6: 0001-find-debuginfo.sh-decompress-DWARF-compressed-ELF-se.patch
# https://github.com/rpm-software-management/rpm/issues/742
#Patch7: 0001-Revert-Run-binary-package-generation-in-parallel-thr.patch
Patch7: 0001-Only-permit-one-thread-at-a-time-in-addFileToTag.patch
+Patch8: test.diff
# Patches already upstream:
diff --git a/test.diff b/test.diff
index 48746df..137546e 100644
--- a/test.diff
+++ b/test.diff
@@ -1,47 +1,12 @@
diff --git a/build/pack.c b/build/pack.c
-index 447e3ec94..21f22d5ca 100644
+index ab72750be..e6cec1816 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;
+@@ -713,6 +713,7 @@ static rpmRC packageBinary(rpmSpec spec, Package pkg, const char *cookie, int ch
}
- /* Now check the package set if enabled */
+ /* Copy changelog from src rpm */
++ #pragma omp critical
+ headerCopyTags(spec->sourcePackage->header, pkg->header, copyTags);
+
+ headerPutString(pkg->header, RPMTAG_RPMVERSION, VERSION);
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=179542636384.1.14365617390074523433.rpms-rpm-82285fa5c12d@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