diff --git a/system/boot/efivar/actions.py b/system/boot/efivar/actions.py index 054756ce7f..0d9479d6e0 100644 --- a/system/boot/efivar/actions.py +++ b/system/boot/efivar/actions.py @@ -12,7 +12,8 @@ from pisi.actionsapi import get def build(): shelltools.export("CFLAGS", "-Os") pisitools.dosed("Make.defaults","-O0","-Os") - autotools.make("libdir=/usr/lib bindir=/usr/bin") + pisitools.dosed("src/test/Makefile","-rpath=$(TOPDIR)/src/","-rpath=$(libdir)|g") + autotools.make("libdir=/usr/lib bindir=/usr/bin includedir=/usr/include/ V=1 -j1") def install(): autotools.rawInstall("DESTDIR=%s libdir=/usr/lib/" % get.installDIR()) diff --git a/system/boot/efivar/files/0001-Workaround-rename-of-linux-nvme.h.patch b/system/boot/efivar/files/0001-Workaround-rename-of-linux-nvme.h.patch new file mode 100644 index 0000000000..52cd424613 --- /dev/null +++ b/system/boot/efivar/files/0001-Workaround-rename-of-linux-nvme.h.patch @@ -0,0 +1,29 @@ +From 3a0ae7189fe96355d64dc2daf91cf85282773c66 Mon Sep 17 00:00:00 2001 +From: Mike Gilbert +Date: Thu, 14 Jan 2016 17:02:31 -0500 +Subject: [PATCH] Workaround rename of linux/nvme.h + +Bug: https://bugs.gentoo.org/571548 +--- + src/linux.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/src/linux.c b/src/linux.c +index b618cfd..9388cd3 100644 +--- a/src/linux.c ++++ b/src/linux.c +@@ -22,7 +22,12 @@ + #include + #include + #include ++#include ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0) ++#include ++#else + #include ++#endif + #include + #include + #include +-- +2.7.2 diff --git a/system/boot/efivar/files/efivar-no-static.patch b/system/boot/efivar/files/efivar-no-static.patch new file mode 100644 index 0000000000..6685225477 --- /dev/null +++ b/system/boot/efivar/files/efivar-no-static.patch @@ -0,0 +1,25 @@ +From d084645fdc9bf805b39b0fb3ff7ec315661884be Mon Sep 17 00:00:00 2001 +From: Gary Lin +Date: Wed, 9 Mar 2016 12:19:26 +0800 +Subject: [PATCH] Remove efivar-static since it requires static libs + +Signed-off-by: Gary Lin +--- + src/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/Makefile b/src/Makefile +index 5fc7887..e1c1ccd 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -8,7 +8,7 @@ include $(TOPDIR)/Make.defaults + + LIBTARGETS=libefivar.so libefiboot.so + STATICLIBTARGETS=libefivar.a libefiboot.a +-BINTARGETS=efivar efivar-static ++BINTARGETS=efivar + PCTARGETS=efivar.pc efiboot.pc + TARGETS=$(LIBTARGETS) $(STATICLIBTARGETS) $(BINTARGETS) $(PCTARGETS) + +-- +2.7.2 diff --git a/system/boot/efivar/pspec.xml b/system/boot/efivar/pspec.xml index a343e1c484..980572d378 100644 --- a/system/boot/efivar/pspec.xml +++ b/system/boot/efivar/pspec.xml @@ -1,4 +1,3 @@ - @@ -13,14 +12,21 @@ app:console Tools and library to manipulate EFI variables Tools and library to manipulate EFI variables. - https://github.com/rhinstaller/efivar/releases/download/0.15/efivar-0.15.tar.bz2 + https://github.com/rhinstaller/efivar/releases/download/0.23/efivar-0.23.tar.bz2 popt-devel + + 0001-Workaround-rename-of-linux-nvme.h.patch + efivar-no-static.patch + efivar + + popt + /usr/lib /usr/share/man @@ -37,8 +43,8 @@ - 2015-02-21 - 0.15 + 2016-03-29 + 0.23 First release Osman Erkan osman.erkan@pisilinux.org