]> code.ossystems Code Review - openembedded-core.git/commitdiff
sign_rpm.bbclass: force rpm serial signing
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Tue, 26 Sep 2017 19:36:04 +0000 (12:36 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 10 Oct 2017 16:26:59 +0000 (17:26 +0100)
Newer versions of gpg (at least 2.1.5 and 2.2.1) have issues when signing occurs in parallel
so (unfortunately) the signing must be done serially. Once the upstream problem is fixed,
this patch must be reverted, otherwise we loose all the intrinsic parallelism from
bitbake.

[YOCTO #12022]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/sign_rpm.bbclass

index a8ea75faaa9429cfe5ae3a51a7b46c3f5c03507b..fac1b6382477610380fc0a93477db4af72cada27 100644 (file)
@@ -51,3 +51,9 @@ python sign_rpm () {
 
 do_package_index[depends] += "signing-keys:do_deploy"
 do_rootfs[depends] += "signing-keys:do_populate_sysroot"
+
+# Newer versions of gpg (at least 2.1.5 and 2.2.1) have issues when signing occurs in parallel
+# so unfortunately the signing must be done serially. Once the upstream problem is fixed,
+# the following line must be removed otherwise we loose all the intrinsic parallelism from
+# bitbake.  For more information, check https://bugzilla.yoctoproject.org/show_bug.cgi?id=12022.
+do_package_write_rpm[lockfiles] += "${TMPDIR}/gpg.lock"