summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/openssl/openssl-1.0.2o/0001-openssl-force-soft-link-to-avoid-rare-race.patch
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2018-03-28 15:43:07 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-05-03 09:53:48 +0100
commitb8be402e0259fbcd639353aefe2329fb4e43f1bb (patch)
treea0d80f53952fbd974bfe3d78e6cfd95a2e9927c2 /meta/recipes-connectivity/openssl/openssl-1.0.2o/0001-openssl-force-soft-link-to-avoid-rare-race.patch
parent26f09806b8a2456719dd754a460b6bb9c8e3c211 (diff)
downloadpoky-b8be402e0259fbcd639353aefe2329fb4e43f1bb.tar.gz
openssl: update 1.0.2n -> 1.0.2o
Please see this security advisory: https://www.openssl.org/news/secadv/20180327.txt License-Update: copyright years (From OE-Core rev: 13542282e34c078296c46a98721b31ed9a69a980) (From OE-Core rev: 9460cdd9227edcca425b919d5b9061d1da55528b) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/openssl/openssl-1.0.2o/0001-openssl-force-soft-link-to-avoid-rare-race.patch')
-rw-r--r--meta/recipes-connectivity/openssl/openssl-1.0.2o/0001-openssl-force-soft-link-to-avoid-rare-race.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl-1.0.2o/0001-openssl-force-soft-link-to-avoid-rare-race.patch b/meta/recipes-connectivity/openssl/openssl-1.0.2o/0001-openssl-force-soft-link-to-avoid-rare-race.patch
new file mode 100644
index 0000000000..dd1a9b1dd2
--- /dev/null
+++ b/meta/recipes-connectivity/openssl/openssl-1.0.2o/0001-openssl-force-soft-link-to-avoid-rare-race.patch
@@ -0,0 +1,46 @@
1From 3d9199423d48766649a2b2ebb3924e892ed16fa4 Mon Sep 17 00:00:00 2001
2From: Randy MacLeod <Randy.MacLeod@windriver.com>
3Date: Tue, 20 Jun 2017 15:32:08 -0400
4Subject: [PATCH] openssl: Force soft link to avoid rare race
5
6This patch works around a rare parallel build race condition.
7The error seen is:
8
9ln: failed to create symbolic link 'libssl.so': File exists
10make[4]: *** [Makefile.shared:171: link_a.gnu] Error 1
11make[4]: Leaving directory
12'/.../build/tmp-glibc/work/x86_64-linux/openssl-native/1.0.2k-r0/openssl-1.0.2k'
13
14The openssl team is rewriting their build files so it's not
15appropriate for openssl upstream and fixing the root cause of
16the Makefile race condition was also not pursued.
17
18Upstream-Status: Inappropriate [build rules rewrite in progress]
19Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
20---
21 Makefile.shared | 4 ++--
22 1 file changed, 2 insertions(+), 2 deletions(-)
23
24diff --git a/Makefile.shared b/Makefile.shared
25index e8d222a..1bff92f 100644
26--- a/Makefile.shared
27+++ b/Makefile.shared
28@@ -118,14 +118,14 @@
29 if [ -n "$$SHLIB_COMPAT" ]; then \
30 for x in $$SHLIB_COMPAT; do \
31 ( $(SET_X); rm -f $$SHLIB$$x$$SHLIB_SUFFIX; \
32- ln -s $$prev $$SHLIB$$x$$SHLIB_SUFFIX ); \
33+ ln -sf $$prev $$SHLIB$$x$$SHLIB_SUFFIX ); \
34 prev=$$SHLIB$$x$$SHLIB_SUFFIX; \
35 done; \
36 fi; \
37 if [ -n "$$SHLIB_SOVER" ]; then \
38 [ -e "$$SHLIB$$SHLIB_SUFFIX" ] || \
39 ( $(SET_X); rm -f $$SHLIB$$SHLIB_SUFFIX; \
40- ln -s $$prev $$SHLIB$$SHLIB_SUFFIX ); \
41+ ln -sf $$prev $$SHLIB$$SHLIB_SUFFIX ); \
42 fi; \
43 fi
44
45--
462.9.3