rpms/trousers/devel trousers-0.3.1-cast.patch, NONE, 1.1 trousers.spec, 1.5, 1.6

Emily Ratliff (ejratl) fedora-extras-commits at redhat.com
Wed Jun 4 04:12:31 UTC 2008


Author: ejratl

Update of /cvs/pkgs/rpms/trousers/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31797

Modified Files:
	trousers.spec 
Added Files:
	trousers-0.3.1-cast.patch 
Log Message:
fix build error on ppc64 & x86_64


trousers-0.3.1-cast.patch:

--- NEW FILE trousers-0.3.1-cast.patch ---
diff -Naur trousers-0.3.1-orig/src/tspi/tspi_nv.c trousers-0.3.1/src/tspi/tspi_nv.c
--- trousers-0.3.1-orig/src/tspi/tspi_nv.c	2007-09-25 13:57:58.000000000 -0500
+++ trousers-0.3.1/src/tspi/tspi_nv.c	2008-06-03 22:20:30.000000000 -0500
@@ -217,7 +217,7 @@
 
 	nv_data_public.tag = TPM_TAG_NV_DATA_PUBLIC;
 
-	if ((result = obj_nvstore_create_pcrshortinfo(hNvstore, (TSS_HPCRS)NULL, &pPCR_len, &pPCR)))
+	if ((result = obj_nvstore_create_pcrshortinfo(hNvstore, (TSS_HPCRS)0, &pPCR_len, &pPCR)))
 		return result;
 
 	NVPublic_DataSize = 0;


Index: trousers.spec
===================================================================
RCS file: /cvs/pkgs/rpms/trousers/devel/trousers.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- trousers.spec	3 Jun 2008 21:31:21 -0000	1.5
+++ trousers.spec	4 Jun 2008 04:11:48 -0000	1.6
@@ -24,6 +24,7 @@
 Requires(preun):	/sbin/service
 Patch0:			trousers-0.3.1-remove-group-install-code.patch
 Patch1:			trousers-0.3.1-limits.patch
+Patch2:			trousers-0.3.1-cast.patch
 
 %description
 TrouSerS is an implementation of the Trusted Computing Group's Software Stack
@@ -55,6 +56,7 @@
 %setup -q
 %patch0 -p1
 %patch1 -p2
+%patch2 -p1
 
 %build
 %configure
@@ -121,6 +123,7 @@
 %changelog
 * Tue Jun 03 2008 Emily Ratliff <ratliff at austin.ibm.com> - 0.3.1-7
 - Fix for BZ #434267 and #440733. Patch authored by Debora Velarde
+- Fix cast issue preventing successful build on ppc64 and x86_64
 
 * Tue Feb 19 2008 Fedora Release Engineering <rel-eng at fedoraproject.org> - 0.3.1-6
 - Autorebuild for GCC 4.3




More information about the fedora-extras-commits mailing list