SHA256
1
0
forked from pool/tboot
Marcus Meissner 2012-05-31 11:20:57 +00:00 committed by Git OBS Bridge
parent f89f20b435
commit c1d7225500
2 changed files with 17 additions and 1 deletions

View File

@ -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
View 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;