[pesign] Fix compile problem with f18's compiler.
Peter Jones
pjones at fedoraproject.org
Thu Jun 21 13:46:56 UTC 2012
commit dccc1c90c3d7bce47bae934469ad44bb9ed6bcbf
Author: Peter Jones <pjones at redhat.com>
Date: Thu Jun 21 09:46:54 2012 -0400
Fix compile problem with f18's compiler.
0001-Fix-decl-of-pe_update-off_t-loff_t.patch | 25 +++++++++++++++++++++++++
pesign.spec | 7 ++++++-
2 files changed, 31 insertions(+), 1 deletions(-)
---
diff --git a/0001-Fix-decl-of-pe_update-off_t-loff_t.patch b/0001-Fix-decl-of-pe_update-off_t-loff_t.patch
new file mode 100644
index 0000000..96e07ea
--- /dev/null
+++ b/0001-Fix-decl-of-pe_update-off_t-loff_t.patch
@@ -0,0 +1,25 @@
+From be102289d381a1c8f2a5eccdc1bba7bdf7593baa Mon Sep 17 00:00:00 2001
+From: Peter Jones <pjones at redhat.com>
+Date: Thu, 21 Jun 2012 09:45:06 -0400
+Subject: [PATCH] Fix decl of pe_update off_t -> loff_t
+
+---
+ libdpe/pe_update.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libdpe/pe_update.c b/libdpe/pe_update.c
+index ca65bca..15678f6 100644
+--- a/libdpe/pe_update.c
++++ b/libdpe/pe_update.c
+@@ -75,7 +75,7 @@ write_file(Pe *pe, off_t size, size_t shnum)
+ return size;
+ }
+
+-off_t
++loff_t
+ pe_update(Pe *pe, Pe_Cmd cmd)
+ {
+ if (cmd != PE_C_NULL && cmd != PE_C_WRITE && cmd != PE_C_WRITE_MMAP) {
+--
+1.7.10.2
+
diff --git a/pesign.spec b/pesign.spec
index 752f952..d1a6782 100644
--- a/pesign.spec
+++ b/pesign.spec
@@ -1,7 +1,7 @@
Summary: Signing utility for UEFI binaries
Name: pesign
Version: 0.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Group: Development/System
License: GPLv2
URL: https://github.com/vathpela/pesign
@@ -13,6 +13,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: git gnu-efi nspr nspr-devel nss nss-devel nss-util popt-devel
Requires: nspr nss nss-util popt
+Patch0: 0001-Fix-decl-of-pe_update-off_t-loff_t.patch
+
%description
This package contains the pesign utility for signing UEFI binaries as
well as other associated tools.
@@ -48,6 +50,9 @@ rm -rf %{buildroot}
%attr(0700,root,root) /etc/pki/pesign
%changelog
+* Thu Jun 21 2012 Peter Jones <pjones at redhat.com> - 0.2-2
+- Fix compile problem with f18's compiler.
+
* Thu Jun 21 2012 Peter Jones <pjones at redhat.com> - 0.2-1
- Fix some rpmlint complaints nirik pointed out
- Add popt-devel build dep
More information about the scm-commits
mailing list