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 +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 - 0.2-2 +- Fix compile problem with f18's compiler. + * Thu Jun 21 2012 Peter Jones - 0.2-1 - Fix some rpmlint complaints nirik pointed out - Add popt-devel build dep