forked from pool/tboot
adjust
OBS-URL: https://build.opensuse.org/package/show/security/tboot?expand=0&rev=13
This commit is contained in:
parent
f89f20b435
commit
c1d7225500
@ -25,7 +25,7 @@ License: BSD-3-Clause
|
|||||||
Group: Productivity/Security
|
Group: Productivity/Security
|
||||||
Url: http://sourceforge.net/projects/tboot/
|
Url: http://sourceforge.net/projects/tboot/
|
||||||
Source0: %{name}-%{ver}.tar.gz
|
Source0: %{name}-%{ver}.tar.gz
|
||||||
#Patch0: tboot-%{version}-Makefile_typo.diff
|
Patch0: zlib.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: openssl-devel
|
BuildRequires: openssl-devel
|
||||||
BuildRequires: trousers-devel
|
BuildRequires: trousers-devel
|
||||||
@ -39,6 +39,7 @@ and verified launch of an OS kernel/VMM.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %name-%ver
|
%setup -q -n %name-%ver
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="$RPM_OPT_FLAGS"
|
export CFLAGS="$RPM_OPT_FLAGS"
|
||||||
|
15
zlib.patch
Normal file
15
zlib.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
Index: tboot-1.7.0/lcptools/mlehash.c
|
||||||
|
===================================================================
|
||||||
|
--- tboot-1.7.0.orig/lcptools/mlehash.c
|
||||||
|
+++ tboot-1.7.0/lcptools/mlehash.c
|
||||||
|
@@ -233,8 +233,8 @@ static void print_dump(uint32_t s, uint3
|
||||||
|
*/
|
||||||
|
static bool read_file(const char *filename, void **buffer, size_t *length)
|
||||||
|
{
|
||||||
|
- FILE *fcompressed = NULL;
|
||||||
|
- FILE *fdecompressed = NULL;
|
||||||
|
+ gzFile fcompressed = NULL;
|
||||||
|
+ FILE *fdecompressed = NULL;
|
||||||
|
struct stat filestat;
|
||||||
|
char tmpbuffer[1024];
|
||||||
|
unsigned long i;
|
Loading…
x
Reference in New Issue
Block a user