[packages/fwupdate] - updated to 9 - added undefined patch (fix undefined value warning)
qboosh
qboosh at pld-linux.org
Fri Jun 2 22:28:33 CEST 2017
commit 4015a93ff2a47c543fe9c33237e56bd9370ec1e6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Jun 2 22:29:35 2017 +0200
- updated to 9
- added undefined patch (fix undefined value warning)
fwupdate-undefined.patch | 11 +++++++++++
fwupdate.spec | 12 +++++++-----
2 files changed, 18 insertions(+), 5 deletions(-)
---
diff --git a/fwupdate.spec b/fwupdate.spec
index d9c176d..a518079 100644
--- a/fwupdate.spec
+++ b/fwupdate.spec
@@ -5,15 +5,16 @@
Summary: Tools to manage UEFI firmware updates
Summary(pl.UTF-8): Narzędzia do zarządzania aktualizacjami firmware'u przez UEFI
Name: fwupdate
-Version: 8
+Version: 9
Release: 1
License: GPL v2
Group: Libraries
Source0: https://github.com/rhinstaller/fwupdate/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: b68e67b706ac5f551e8fcab20cf43a60
+# Source0-md5: 0ce656b18a60256a7cf9fa42fd5d99de
Patch0: %{name}-overflow.patch
+Patch1: %{name}-undefined.patch
URL: https://github.com/rhinstaller/fwupdate
-BuildRequires: efivar-devel >= 0.19
+BuildRequires: efivar-devel >= 0.30
BuildRequires: gnu-efi
%{?with_pesign:BuildRequires: pesign}
BuildRequires: popt-devel
@@ -37,7 +38,7 @@ firmware'u przez UEFI.
Summary: Library to manage UEFI firmware updates
Summary(pl.UTF-8): Biblioteka do zarządzania aktualizacjami firmware'u przez UEFI
Group: Libraries
-Requires: efivar-libs >= 0.19
+Requires: efivar-libs >= 0.30
%description libs
Library to manage UEFI firmware updates.
@@ -50,7 +51,7 @@ Summary: Header files for libfwup library
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libfwup
Group: Development/Libraries
Requires: %{name}-libs = %{version}-%{release}
-Requires: efivar-devel >= 0.19
+Requires: efivar-devel >= 0.30
%description devel
Header files for libfwup library.
@@ -74,6 +75,7 @@ Bashowe uzupełnianie parametrów polecenia fwupdate.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%if %{without pesign}
%{__sed} -i -e 's/pesign/cp $< $@ \&\& : &/' efi/Makefile
diff --git a/fwupdate-undefined.patch b/fwupdate-undefined.patch
new file mode 100644
index 0000000..46903b4
--- /dev/null
+++ b/fwupdate-undefined.patch
@@ -0,0 +1,11 @@
+--- fwupdate-9/linux/libfwup.c.orig 2017-03-06 21:36:55.000000000 +0100
++++ fwupdate-9/linux/libfwup.c 2017-06-02 22:26:43.828884242 +0200
+@@ -777,7 +777,7 @@
+ size_t boot_order_size = 0;
+ uint32_t attr;
+ int rc;
+- unsigned int i;
++ unsigned int i = 0;
+
+ rc = efi_get_variable_size(efi_guid_global, "BootOrder",
+ &boot_order_size);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/fwupdate.git/commitdiff/4015a93ff2a47c543fe9c33237e56bd9370ec1e6
More information about the pld-cvs-commit
mailing list