diff --git a/tboot-fix.patch b/tboot-fix.patch new file mode 100644 index 0000000..540b0f0 --- /dev/null +++ b/tboot-fix.patch @@ -0,0 +1,16 @@ +Index: tboot-1.7.2/tb_polgen/param.c +=================================================================== +--- tboot-1.7.2.orig/tb_polgen/param.c ++++ tboot-1.7.2/tb_polgen/param.c +@@ -409,9 +409,9 @@ bool parse_input_params(int argc, char * + return false; + } + if (strlen(optarg) > sizeof(params->cmdline) - 1) { +- error_msg("Command line length of %lu exceeds %d " ++ error_msg("Command line length of %u exceeds %d " + "character maximum\n", +- strlen(optarg), TBOOT_KERNEL_CMDLINE_SIZE-1); ++ (int)strlen(optarg), TBOOT_KERNEL_CMDLINE_SIZE-1); + return false; + } + diff --git a/tboot.changes b/tboot.changes index da97e89..78f1959 100644 --- a/tboot.changes +++ b/tboot.changes @@ -17,8 +17,9 @@ Wed Oct 10 15:31:57 UTC 2012 - meissner@suse.com Add description for option min_ram in README. new tboot cmdline option "min_ram=0xXXXXXX" Update test-patches/tpm-test.patch to fit in latest code. - - zlib patch upstreamed. +- spec file adjustments +- tboot-fix.patch: fixed printf type mismatch ------------------------------------------------------------------- Thu May 31 13:20:57 CEST 2012 - meissner@suse.de diff --git a/tboot.spec b/tboot.spec index 799c35c..763e67f 100644 --- a/tboot.spec +++ b/tboot.spec @@ -25,6 +25,7 @@ License: BSD-3-Clause Group: Productivity/Security Url: http://sourceforge.net/projects/tboot/ Source0: http://downloads.sourceforge.net/project/tboot/tboot/tboot-%{ver}.tar.gz +Patch0: tboot-fix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: openssl-devel BuildRequires: trousers-devel @@ -38,6 +39,7 @@ and verified launch of an OS kernel/VMM. %prep %setup -q -n %name-%ver +%patch0 -p1 %build export CFLAGS="$RPM_OPT_FLAGS"