summaryrefslogtreecommitdiffstats
path: root/meta-tpm/recipes-tpm/swtpm/files/fix_lib_search_path.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-tpm/recipes-tpm/swtpm/files/fix_lib_search_path.patch')
-rw-r--r--meta-tpm/recipes-tpm/swtpm/files/fix_lib_search_path.patch20
1 files changed, 11 insertions, 9 deletions
diff --git a/meta-tpm/recipes-tpm/swtpm/files/fix_lib_search_path.patch b/meta-tpm/recipes-tpm/swtpm/files/fix_lib_search_path.patch
index 28aca4a..60958f7 100644
--- a/meta-tpm/recipes-tpm/swtpm/files/fix_lib_search_path.patch
+++ b/meta-tpm/recipes-tpm/swtpm/files/fix_lib_search_path.patch
@@ -1,7 +1,7 @@
1From 85706ceb6877ade3b589d3c390abf5b3492bb718 Mon Sep 17 00:00:00 2001 1From 672bb4ee625da3141ba6cecb0601c7563de4c483 Mon Sep 17 00:00:00 2001
2From: Armin Kuster <akuster808@gmail.com> 2From: Armin Kuster <akuster808@gmail.com>
3Date: Thu, 13 Oct 2016 02:03:56 -0700 3Date: Thu, 13 Oct 2016 02:03:56 -0700
4Subject: [PATCH] swtpm: add new package 4Subject: [PATCH 1/4] swtpm: add new package
5 5
6Upstream-Status: Inappropriate [OE config] 6Upstream-Status: Inappropriate [OE config]
7 7
@@ -12,20 +12,21 @@ Rebased to current tip.
12Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> 12Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
13 13
14--- 14---
15 configure.ac | 32 ++++++++++---------------------- 15 configure.ac | 34 ++++++++++------------------------
16 1 file changed, 10 insertions(+), 22 deletions(-) 16 1 file changed, 10 insertions(+), 24 deletions(-)
17 17
18diff --git a/configure.ac b/configure.ac 18diff --git a/configure.ac b/configure.ac
19index c4a9c6d..6267f64 100644 19index abf5be1..85ed6ac 100644
20--- a/configure.ac 20--- a/configure.ac
21+++ b/configure.ac 21+++ b/configure.ac
22@@ -395,29 +395,17 @@ CFLAGS="$CFLAGS -Wformat -Wformat-security" 22@@ -395,31 +395,17 @@ CFLAGS="$CFLAGS -Wformat -Wformat-security"
23 dnl We have to make sure libtpms is using the same crypto library 23 dnl We have to make sure libtpms is using the same crypto library
24 dnl to avoid problems 24 dnl to avoid problems
25 AC_MSG_CHECKING([the crypto library libtpms is using]) 25 AC_MSG_CHECKING([the crypto library libtpms is using])
26-dirs=$($CC $CFLAGS -Xlinker --verbose 2>/dev/null | \ 26-dirs=$($CC $CFLAGS -Xlinker --verbose 2>/dev/null | \
27- sed -n '/SEARCH_DIR/p' | \ 27- sed -n '/SEARCH_DIR/p' | \
28- sed 's/SEARCH_DIR("=\?\(@<:@^"@:>@\+\)"); */\1\n/g') 28- sed 's/SEARCH_DIR("\(@<:@^"@:>@*\)"); */\1 /g' | \
29- sed 's|=/|/|g')
29-for dir in $dirs $LIBRARY_PATH; do 30-for dir in $dirs $LIBRARY_PATH; do
30- if test -r $dir/libtpms.so; then 31- if test -r $dir/libtpms.so; then
31- if test -n "`ldd $dir/libtpms.so | grep libcrypto.so`"; then 32- if test -n "`ldd $dir/libtpms.so | grep libcrypto.so`"; then
@@ -43,12 +44,13 @@ index c4a9c6d..6267f64 100644
43+ break 44+ break
44 fi 45 fi
45- case $host_os in 46- case $host_os in
46- cygwin) 47- cygwin|openbsd*)
47- if test -r $dir/libtpms.a; then 48- if test -r $dir/libtpms.a; then
48- if test -n "$(nm $dir/libtpms.a | grep "U AES_encrypt")"; then 49- if test -n "$(nm $dir/libtpms.a | grep "U AES_encrypt")"; then
49- libtpms_cryptolib="openssl" 50- libtpms_cryptolib="openssl"
50- fi 51- fi
51- fi 52- fi
53- ;;
52- esac 54- esac
53-done 55-done
54+ if test -n "`ldd $dir/libtpms.so | grep libnss3.so`"; then 56+ if test -n "`ldd $dir/libtpms.so | grep libnss3.so`"; then
@@ -60,5 +62,5 @@ index c4a9c6d..6267f64 100644
60 if test -z "$libtpms_cryptolib"; then 62 if test -z "$libtpms_cryptolib"; then
61 AC_MSG_ERROR([Could not determine libtpms crypto library.]) 63 AC_MSG_ERROR([Could not determine libtpms crypto library.])
62-- 64--
632.1.4 652.11.0
64 66