From bd48040e2c38d180791db193941a728af90c53bc Mon Sep 17 00:00:00 2001
From: Andrew Clemons <andrew.clemons@gmail.com>
Date: Thu, 18 Jan 2018 21:40:57 +1300
Subject: libraries/efivar: Add patch to make efi_guid_ux_capsule work.

This allows building fwupdate 10.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
---
 .../cd732494ba7685feaf71b9ee58619ca6aef39fc9.patch.gz    | Bin 0 -> 1107 bytes
 libraries/efivar/efivar.SlackBuild                       |   7 +++++--
 2 files changed, 5 insertions(+), 2 deletions(-)
 create mode 100644 libraries/efivar/cd732494ba7685feaf71b9ee58619ca6aef39fc9.patch.gz

(limited to 'libraries/efivar')

diff --git a/libraries/efivar/cd732494ba7685feaf71b9ee58619ca6aef39fc9.patch.gz b/libraries/efivar/cd732494ba7685feaf71b9ee58619ca6aef39fc9.patch.gz
new file mode 100644
index 0000000000000..07cd41a32173a
Binary files /dev/null and b/libraries/efivar/cd732494ba7685feaf71b9ee58619ca6aef39fc9.patch.gz differ
diff --git a/libraries/efivar/efivar.SlackBuild b/libraries/efivar/efivar.SlackBuild
index d90165b735935..0983a50b56423 100644
--- a/libraries/efivar/efivar.SlackBuild
+++ b/libraries/efivar/efivar.SlackBuild
@@ -2,7 +2,7 @@
 
 # Slackware build script for efivar
 
-# Copyright 2017 Andrew Clemons, Wellington New Zealand
+# Copyright 2017-2018 Andrew Clemons, Wellington New Zealand
 # All rights reserved.
 #
 # Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
 
 PRGNAM=efivar
 VERSION=${VERSION:-32}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
 TAG=${TAG:-_SBo}
 
 if [ -z "$ARCH" ]; then
@@ -64,6 +64,9 @@ cd $TMP
 rm -rf $PRGNAM-$VERSION
 tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
 cd $PRGNAM-$VERSION
+# patch to allow building latest fwupdate
+# https://github.com/rhboot/efivar/issues/96
+zcat $CWD/cd732494ba7685feaf71b9ee58619ca6aef39fc9.patch.gz | patch -p1
 chown -R root:root .
 find -L . \
  \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-- 
cgit v1.2.3