teknoraver / rpms / rpm

Forked from rpms/rpm 4 months ago
Clone

Blame 0001-build-Limit-copying-changelog-one-at-a-time.patch

Igor Gnatenko 596561
From 8aab33f69c9d78b6d4d4e79ba661ae01cd970f2b Mon Sep 17 00:00:00 2001
Igor Gnatenko 596561
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Igor Gnatenko 596561
Date: Tue, 11 Jun 2019 14:22:07 +0200
Igor Gnatenko 596561
Subject: [PATCH] build: Limit copying changelog one at a time
Igor Gnatenko 596561
Igor Gnatenko 596561
Getting header content in multiple threads is causing problems since it
Igor Gnatenko 596561
can (and apparently does) change internal state.
Igor Gnatenko 596561
Igor Gnatenko 596561
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Igor Gnatenko 596561
---
Igor Gnatenko 596561
 build/pack.c | 1 +
Igor Gnatenko 596561
 1 file changed, 1 insertion(+)
Igor Gnatenko 596561
Igor Gnatenko 68ce99
diff --git a/build/pack.c b/build/pack.c
Igor Gnatenko 82285f
index ab72750be..e6cec1816 100644
Igor Gnatenko 68ce99
--- a/build/pack.c
Igor Gnatenko 68ce99
+++ b/build/pack.c
Igor Gnatenko 82285f
@@ -713,6 +713,7 @@ static rpmRC packageBinary(rpmSpec spec, Package pkg, const char *cookie, int ch
Igor Gnatenko 68ce99
     }
Igor Gnatenko 68ce99
 
Igor Gnatenko 82285f
     /* Copy changelog from src rpm */
Igor Gnatenko 82285f
+    #pragma omp critical
Igor Gnatenko 82285f
     headerCopyTags(spec->sourcePackage->header, pkg->header, copyTags);
Igor Gnatenko 82285f
 
Igor Gnatenko 82285f
     headerPutString(pkg->header, RPMTAG_RPMVERSION, VERSION);
Igor Gnatenko 596561
-- 
Igor Gnatenko 596561
2.22.0
Igor Gnatenko 596561