- add fix_dlopen.patch: fixes an issue with dlopen()'ing the tcti-device
library from tpm2-0-tss. See https://github.com/tpm2-software/tpm2-abrmd/issues/486. OBS-URL: https://build.opensuse.org/package/show/security/tpm2.0-abrmd?expand=0&rev=20
This commit is contained in:
parent
5fe02cf67b
commit
2ccdd2a027
13
fix_dlopen.patch
Normal file
13
fix_dlopen.patch
Normal file
@ -0,0 +1,13 @@
|
||||
Index: tpm2-abrmd-2.0.0/src/tcti-util.c
|
||||
===================================================================
|
||||
--- tpm2-abrmd-2.0.0.orig/src/tcti-util.c
|
||||
+++ tpm2-abrmd-2.0.0/src/tcti-util.c
|
||||
@@ -53,7 +53,7 @@ tcti_util_discover_info (const char *fil
|
||||
if (*tcti_dl_handle == NULL) {
|
||||
size = snprintf (filename_xfrm,
|
||||
sizeof (filename_xfrm),
|
||||
- "libtss2-tcti-%s.so.0",
|
||||
+ "%s.0",
|
||||
filename);
|
||||
if (size >= sizeof (filename_xfrm)) {
|
||||
g_critical ("TCTI name truncated in transform.");
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 2 09:27:43 UTC 2018 - matthias.gerstner@suse.com
|
||||
|
||||
- add fix_dlopen.patch: fixes an issue with dlopen()'ing the tcti-device
|
||||
library from tpm2-0-tss. See
|
||||
https://github.com/tpm2-software/tpm2-abrmd/issues/486.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 29 11:43:08 UTC 2018 - matthias.gerstner@suse.com
|
||||
|
||||
|
@ -35,6 +35,7 @@ BuildRequires: pkgconfig(gio-unix-2.0)
|
||||
BuildRequires: pkgconfig(tss2-sys)
|
||||
Requires(pre): pwdutils
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Patch0: fix_dlopen.patch
|
||||
|
||||
%description
|
||||
The tpm2.0-abrmd package provides the TPM2 Access Broker & Resource Manager.
|
||||
@ -65,6 +66,7 @@ use with the SAPI library (libtss2-sys) like any other TCTI.
|
||||
|
||||
%prep
|
||||
%setup -q -n tpm2-abrmd-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
export CFLAGS="%optflags -fPIE"
|
||||
|
Loading…
Reference in New Issue
Block a user