[OE-core] [PATCH] openssl: change make install run serially
changqing.li at windriver.com
changqing.li at windriver.com
Thu Oct 25 04:18:36 UTC 2018
From: Changqing Li <changqing.li at windriver.com>
openssl offcially don't supprt parallel make install, and have
occasionally install fail problem for parallel build,
according to upstream suggestion, just make install serially.
refer:
https://github.com/openssl/openssl/issues/7466#issuecomment-432148137
Signed-off-by: Changqing Li <changqing.li at windriver.com>
---
...nssl-let-make-install-stop-parallel-build.patch | 37 ++++++++++++++++++++++
meta/recipes-connectivity/openssl/openssl_1.1.1.bb | 1 +
2 files changed, 38 insertions(+)
create mode 100644 meta/recipes-connectivity/openssl/openssl/0001-openssl-let-make-install-stop-parallel-build.patch
diff --git a/meta/recipes-connectivity/openssl/openssl/0001-openssl-let-make-install-stop-parallel-build.patch b/meta/recipes-connectivity/openssl/openssl/0001-openssl-let-make-install-stop-parallel-build.patch
new file mode 100644
index 0000000..0726d04
--- /dev/null
+++ b/meta/recipes-connectivity/openssl/openssl/0001-openssl-let-make-install-stop-parallel-build.patch
@@ -0,0 +1,37 @@
+From adb36f6dadecf8775cf9603ee4745aed6ee20af1 Mon Sep 17 00:00:00 2001
+From: Changqing Li <changqing.li at windriver.com>
+Date: Thu, 25 Oct 2018 09:43:48 +0800
+Subject: [PATCH] openssl: let make install stop parallel build
+
+openssl offcially don't supprt parallel make install, and have
+occasionally install fail problem for parallel build,
+according to upstream suggestion, just make install serially.
+
+refer:
+https://github.com/openssl/openssl/issues/7466#issuecomment-432148137
+
+Upstream-Status: Inappropriate[oe-specific]
+
+Signed-off-by: Changqing Li <changqing.li at windriver.com>
+---
+ Configurations/unix-Makefile.tmpl | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl
+index 16af4d2..c8f60df 100644
+--- a/Configurations/unix-Makefile.tmpl
++++ b/Configurations/unix-Makefile.tmpl
+@@ -437,6 +437,10 @@ depend:
+
+ # Install helper targets #############################################
+
++ifneq ($(filter install,$(MAKECMDGOALS)),)
++.NOTPARALLEL:
++endif
++
+ install_sw: all install_dev install_engines install_runtime
+
+ uninstall_sw: uninstall_runtime uninstall_engines uninstall_dev
+--
+2.7.4
+
diff --git a/meta/recipes-connectivity/openssl/openssl_1.1.1.bb b/meta/recipes-connectivity/openssl/openssl_1.1.1.bb
index af9038a..8330162 100644
--- a/meta/recipes-connectivity/openssl/openssl_1.1.1.bb
+++ b/meta/recipes-connectivity/openssl/openssl_1.1.1.bb
@@ -15,6 +15,7 @@ SRC_URI = "http://www.openssl.org/source/openssl-${PV}.tar.gz \
file://run-ptest \
file://openssl-c_rehash.sh \
file://0001-skip-test_symbol_presence.patch \
+ file://0001-openssl-let-make-install-stop-parallel-build.patch \
"
SRC_URI_append_class-nativesdk = " \
--
2.7.4
More information about the Openembedded-core
mailing list