Fix compile problem with f18's compiler.
This commit is contained in:
parent
d6e5c968ad
commit
dccc1c90c3
25
0001-Fix-decl-of-pe_update-off_t-loff_t.patch
Normal file
25
0001-Fix-decl-of-pe_update-off_t-loff_t.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From be102289d381a1c8f2a5eccdc1bba7bdf7593baa Mon Sep 17 00:00:00 2001
|
||||||
|
From: Peter Jones <pjones@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
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
Summary: Signing utility for UEFI binaries
|
Summary: Signing utility for UEFI binaries
|
||||||
Name: pesign
|
Name: pesign
|
||||||
Version: 0.2
|
Version: 0.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Group: Development/System
|
Group: Development/System
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: https://github.com/vathpela/pesign
|
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
|
BuildRequires: git gnu-efi nspr nspr-devel nss nss-devel nss-util popt-devel
|
||||||
Requires: nspr nss nss-util popt
|
Requires: nspr nss nss-util popt
|
||||||
|
|
||||||
|
Patch0: 0001-Fix-decl-of-pe_update-off_t-loff_t.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains the pesign utility for signing UEFI binaries as
|
This package contains the pesign utility for signing UEFI binaries as
|
||||||
well as other associated tools.
|
well as other associated tools.
|
||||||
@ -48,6 +50,9 @@ rm -rf %{buildroot}
|
|||||||
%attr(0700,root,root) /etc/pki/pesign
|
%attr(0700,root,root) /etc/pki/pesign
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jun 21 2012 Peter Jones <pjones@redhat.com> - 0.2-2
|
||||||
|
- Fix compile problem with f18's compiler.
|
||||||
|
|
||||||
* Thu Jun 21 2012 Peter Jones <pjones@redhat.com> - 0.2-1
|
* Thu Jun 21 2012 Peter Jones <pjones@redhat.com> - 0.2-1
|
||||||
- Fix some rpmlint complaints nirik pointed out
|
- Fix some rpmlint complaints nirik pointed out
|
||||||
- Add popt-devel build dep
|
- Add popt-devel build dep
|
||||||
|
Loading…
Reference in New Issue
Block a user