summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>2017-09-26 12:36:04 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-10-10 17:27:39 +0100
commit6ba57ee8b85bfcf075aba18d2e0fca1cc78971bc (patch)
treebec49fc81973875c1152a8f7d69ac2caccfefad4 /meta/classes
parent913b20f799415bb4dddc629c12c0e42ecbf1449e (diff)
downloadpoky-6ba57ee8b85bfcf075aba18d2e0fca1cc78971bc.tar.gz
sign_rpm.bbclass: force rpm serial signing
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] (From OE-Core rev: 3aced3783b808449cd50f12684c061151861a1a5) Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/sign_rpm.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/sign_rpm.bbclass b/meta/classes/sign_rpm.bbclass
index a8ea75faaa..fac1b63824 100644
--- a/meta/classes/sign_rpm.bbclass
+++ b/meta/classes/sign_rpm.bbclass
@@ -51,3 +51,9 @@ python sign_rpm () {
51 51
52do_package_index[depends] += "signing-keys:do_deploy" 52do_package_index[depends] += "signing-keys:do_deploy"
53do_rootfs[depends] += "signing-keys:do_populate_sysroot" 53do_rootfs[depends] += "signing-keys:do_populate_sysroot"
54
55# Newer versions of gpg (at least 2.1.5 and 2.2.1) have issues when signing occurs in parallel
56# so unfortunately the signing must be done serially. Once the upstream problem is fixed,
57# the following line must be removed otherwise we loose all the intrinsic parallelism from
58# bitbake. For more information, check https://bugzilla.yoctoproject.org/show_bug.cgi?id=12022.
59do_package_write_rpm[lockfiles] += "${TMPDIR}/gpg.lock"