Hello community, here is the log from the commit of package efivar for openSUSE:Factory checked in at 2015-06-30 10:14:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/efivar (Old) and /work/SRC/openSUSE:Factory/.efivar.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "efivar" Changes: -------- --- /work/SRC/openSUSE:Factory/efivar/efivar.changes 2014-11-12 00:21:02.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.efivar.new/efivar.changes 2015-06-30 10:14:21.000000000 +0200 @@ -1,0 +2,48 @@ +Wed Jun 24 09:58:16 UTC 2015 - [email protected] + +- Add efivar-fix-vars_del_variable.patch to fix the deletion of + the variable with the old efivar kernel modules + +------------------------------------------------------------------- +Tue Jun 16 07:30:20 UTC 2015 - [email protected] + +- Add efivar-revert-linker-order.patch to adjust the linker order + which caused the compilation error in pesign + +------------------------------------------------------------------- +Thu Jun 11 06:59:41 UTC 2015 - [email protected] + +- Use default CFLAGS + +------------------------------------------------------------------- +Wed Jun 3 07:46:58 UTC 2015 - [email protected] + +- Update to 0.20 + * Make sure tester is build with the right link order for + libraries. + * Adjust linker order for pkg-config + * Work around LocateDevicePath() not grokking PcieRoot() devices + properly. + * Rectify some missing changelog entries +- Changes for 0.19 + * Lots of debugging in this release, as well as some of the + documentation that's planned. There's more of that to come. +- Changes for 0.18 + * This release is mostly about adding the efidp and libefiboot + APIs available.Next release will feature documentation for + them, verification that various different device path types + work, etc. Right now efi device path generation is basically + limited to: + + full file paths on sata devices + + full file paths on sas devices + + HD() paths for SATA and SAS devices + + ipv4 dhcp device paths that don't specify their own + filenames +- Drop upstreamed patche + * efivar-correct-license-header.patch +- Drop as Makefiles have been restructured, CFLAGS no longer + defined in them + * efivar-suse-build.patch +- Use fdupes to reduce amount of duplicate files + +------------------------------------------------------------------- Old: ---- efivar-0.15.tar.bz2 efivar-correct-license-header.patch efivar-suse-build.patch New: ---- efivar-0.20.tar.bz2 efivar-fix-vars_del_variable.patch efivar-revert-linker-order.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ efivar.spec ++++++ --- /var/tmp/diff_new_pack.URdtzR/_old 2015-06-30 10:14:22.000000000 +0200 +++ /var/tmp/diff_new_pack.URdtzR/_new 2015-06-30 10:14:22.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package efivar # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,15 +17,16 @@ Name: efivar -Version: 0.15 +Version: 0.20 Release: 0 Summary: Tools to manage UEFI variables License: LGPL-2.1 Group: Development/Libraries/Other Url: https://github.com/vathpela/efivar Source0: https://github.com/vathpela/efivar/releases/download/%{version}/%{name}-%{version}.tar.bz2 -Patch0: efivar-suse-build.patch -Patch1: efivar-correct-license-header.patch +Patch1: efivar-revert-linker-order.patch +Patch2: efivar-fix-vars_del_variable.patch +BuildRequires: fdupes BuildRequires: pkg-config BuildRequires: popt-devel Requires: libefivar0 = %{version}-%{release} @@ -50,14 +51,19 @@ %prep %setup -q -%patch0 -p1 %patch1 -p1 +%patch2 -p1 %build -make %{?_smp_mflags} libdir=%{_libdir} bindir=%{_bindir} OPT_FLAGS="%{optflags}" +export CFLAGS="%{optflags}" +make \ + %{?_smp_mflags} \ + libdir=%{_libdir} \ + bindir=%{_bindir} %install make DESTDIR=%{buildroot} libdir=%{_libdir} install +%fdupes -s %{buildroot} %post -n libefivar0 -p /sbin/ldconfig ++++++ efivar-0.15.tar.bz2 -> efivar-0.20.tar.bz2 ++++++ ++++ 8823 lines of diff (skipped) ++++++ efivar-fix-vars_del_variable.patch ++++++ >From 734994cb0b66020277f9972baa9fa211a85aa582 Mon Sep 17 00:00:00 2001 From: Gary Ching-Pang Lin <[email protected]> Date: Wed, 24 Jun 2015 17:51:44 +0800 Subject: [PATCH] Exclude the padded NULL when comparing the file size In vars_del_variable(), this "if" statement always failed because read_file() returned the actual file size +1. if (rc < 0 || (buf_size != sizeof(efi_kernel_variable_64_t) && buf_size != sizeof(efi_kernel_variable_32_t))) Signed-off-by: Gary Ching-Pang Lin <[email protected]> --- src/vars.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vars.c b/src/vars.c index ca0236e..b0006e1 100644 --- a/src/vars.c +++ b/src/vars.c @@ -344,6 +344,7 @@ vars_del_variable(efi_guid_t guid, const char *name) goto err; rc = read_file(fd, &buf, &buf_size); + buf_size -= 1; /* read_file pads out 1 extra byte to NUL it */ if (rc < 0 || (buf_size != sizeof(efi_kernel_variable_64_t) && buf_size != sizeof(efi_kernel_variable_32_t))) goto err; -- 2.1.4 ++++++ efivar-revert-linker-order.patch ++++++ >From 1335ffbe3c83dacbadce38b19b07aaaf3406a1f5 Mon Sep 17 00:00:00 2001 From: Gary Ching-Pang Lin <[email protected]> Date: Tue, 16 Jun 2015 15:28:54 +0800 Subject: [PATCH] Revert "Adjust linker order for pkg-config to fix FTBFS on Ubuntu toolchain." This reverts commit 624237e6d5c8b84cbf7aeaf8d43b5d38f63da66d. --- src/efiboot.pc.in | 2 +- src/efivar.pc.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/efiboot.pc.in b/src/efiboot.pc.in index 6e51346..a5776d5 100644 --- a/src/efiboot.pc.in +++ b/src/efiboot.pc.in @@ -7,5 +7,5 @@ Name: efiboot Description: UEFI Boot variable support Version: @@VERSION@@ Requires: -Libs: -L${libdir} -ldl -lefivar -lefiboot +Libs: -L${libdir} -lefivar -lefiboot -ldl Cflags: -I${includedir}/efivar diff --git a/src/efivar.pc.in b/src/efivar.pc.in index 0cb3c23..6bbdaf9 100644 --- a/src/efivar.pc.in +++ b/src/efivar.pc.in @@ -7,5 +7,5 @@ Name: efivar Description: UEFI Variable Management Version: @@VERSION@@ Requires: -Libs: -L${libdir} -ldl -lefivar +Libs: -L${libdir} -lefivar -ldl Cflags: -I${includedir}/efivar -- 2.1.4
