[tboot] Upgrade to latest upstream version (#902653)

David Cantrell dcantrel at fedoraproject.org
Wed Jan 30 19:50:37 UTC 2013


commit e21667dab8f6fe0163042f440dab737eb326af25
Author: David Cantrell <david.l.cantrell at gmail.com>
Date:   Wed Jan 30 14:50:25 2013 -0500

    Upgrade to latest upstream version (#902653)

 .gitignore                      |    1 +
 sources                         |    2 +-
 tboot-1.7.0-zlib-fix.patch      |   42 ---------------------------------------
 tboot-1.7.3-format-string.patch |   21 +++++++++++++++++++
 tboot.spec                      |   36 ++++++++++++++++++++++++---------
 5 files changed, 49 insertions(+), 53 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index f49e03a..8715fd6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
 /tboot-1.5.0.tar.gz
 /tboot-20110429.tar.gz
 /tboot-1.7.0.tar.gz
+/tboot-1.7.3.tar.gz
diff --git a/sources b/sources
index bed4959..51971f4 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-718ac20a74b66c1dd353af4b3d931a05  tboot-1.7.0.tar.gz
+bc7ec3bdd71b21fb73368f24bf697739  tboot-1.7.3.tar.gz
diff --git a/tboot-1.7.3-format-string.patch b/tboot-1.7.3-format-string.patch
new file mode 100644
index 0000000..a6474a8
--- /dev/null
+++ b/tboot-1.7.3-format-string.patch
@@ -0,0 +1,21 @@
+diff -up tboot-1.7.3/tb_polgen/param.c.orig tboot-1.7.3/tb_polgen/param.c
+--- tboot-1.7.3/tb_polgen/param.c.orig	2012-12-28 01:30:13.000000000 -0500
++++ tboot-1.7.3/tb_polgen/param.c	2013-01-30 14:34:03.696709545 -0500
+@@ -184,7 +184,7 @@ void print_params(param_data_t *params)
+     info_msg("\t pcr = %d\n", params->pcr);
+     info_msg("\t hash_type = %d\n", params->hash_type);
+     info_msg("\t pos = %d\n", params->pos);
+-    info_msg("\t cmdline length = %lu\n", strlen(params->cmdline));
++    info_msg("\t cmdline length = %u\n", strlen(params->cmdline));
+     info_msg("\t cmdline = %s\n", params->cmdline);
+     info_msg("\t image_file = %s\n", params->image_file);
+     info_msg("\t elt_file = %s\n", params->elt_file);
+@@ -409,7 +409,7 @@ 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);
+                     return false;
diff --git a/tboot.spec b/tboot.spec
index 0639d89..0f0eda3 100644
--- a/tboot.spec
+++ b/tboot.spec
@@ -1,21 +1,20 @@
 Summary:        Performs a verified launch using Intel TXT
 Name:           tboot
-Version:        1.7.0
-Release:        2%{?dist}
+Version:        1.7.3
+Release:        1%{?dist}
 Epoch:          1
 
-
 Group:          System Environment/Base
 License:        BSD
 URL:            http://sourceforge.net/projects/tboot/
 Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
-Patch0:         tboot-1.7.0-zlib-fix.patch
+Patch0:         tboot-1.7.3-format-string.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-BuildRequires:  trousers-devel openssl-devel
+BuildRequires:  trousers-devel
+BuildRequires:  openssl-devel
 ExclusiveArch:  %{ix86} x86_64
 
-
 %description
 Trusted Boot (tboot) is an open source, pre-kernel/VMM module that uses
 Intel Trusted Execution Technology (Intel TXT) to perform a measured
@@ -23,13 +22,16 @@ and verified launch of an OS kernel/VMM.
 
 %prep
 %setup -q
-%patch0 -p1 -b .zlib-fix
+
+# Patch format strings only on 32-bit x86 builds.  size_t
+%ifarch %{ix86}
+%patch0 -p1
+%endif
 
 %build
 CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS
 make debug=y %{?_smp_mflags}
 
-
 %install
 rm -rf $RPM_BUILD_ROOT
 make debug=y DISTDIR=$RPM_BUILD_ROOT install
@@ -37,10 +39,11 @@ make debug=y DISTDIR=$RPM_BUILD_ROOT install
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-
 %files
 %defattr(-,root,root,-)
 %doc README COPYING docs/* lcptools/lcptools2.txt lcptools/Linux_LCP_Tools_User_Manual.pdf
+%config %{_sysconfdir}/grub.d/20_linux_tboot
+%config %{_sysconfdir}/grub.d/20_linux_xen_tboot
 %{_sbindir}/acminfo
 %{_sbindir}/lcp_crtpconf
 %{_sbindir}/lcp_crtpol
@@ -57,11 +60,24 @@ rm -rf $RPM_BUILD_ROOT
 %{_sbindir}/tpmnv_lock
 %{_sbindir}/tpmnv_relindex
 %{_sbindir}/txt-stat
+%{_mandir}/man8/acminfo.8.gz
+%{_mandir}/man8/lcp_crtpconf.8.gz
+%{_mandir}/man8/lcp_crtpol.8.gz
+%{_mandir}/man8/lcp_crtpol2.8.gz
+%{_mandir}/man8/lcp_crtpolelt.8.gz
+%{_mandir}/man8/lcp_crtpollist.8.gz
+%{_mandir}/man8/lcp_mlehash.8.gz
+%{_mandir}/man8/lcp_readpol.8.gz
+%{_mandir}/man8/lcp_writepol.8.gz
+%{_mandir}/man8/tb_polgen.8.gz
+%{_mandir}/man8/txt-stat.8.gz
 /boot/tboot.gz
 /boot/tboot-syms
 
-
 %changelog
+* Wed Jan 30 2013 David Cantrell <dcantrell at redhat.com> - 1:1.7.3-1
+- Upgrade to latest upstream version (#902653)
+
 * Wed Aug 22 2012 Gang Wei <gang.wei at intel.com> - 1:1.7.0-2
 - Fix build error with zlib 1.2.7
 


More information about the scm-commits mailing list