[packages/gnu-efi] - added make patch (don't recompile on install); release 2

qboosh qboosh at pld-linux.org
Sat Apr 1 20:50:27 CEST 2023


commit 74c30fa66d310a2ec902ffd4fe9b90245d90bc1a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Apr 1 20:52:57 2023 +0200

    - added make patch (don't recompile on install); release 2

 gnu-efi-make.patch | 20 ++++++++++++++++++++
 gnu-efi.spec       |  8 +++++---
 2 files changed, 25 insertions(+), 3 deletions(-)
---
diff --git a/gnu-efi.spec b/gnu-efi.spec
index 42dbd89..267034c 100644
--- a/gnu-efi.spec
+++ b/gnu-efi.spec
@@ -3,18 +3,19 @@ Summary(pl.UTF-8):	GNU-EFI - tworzenie aplikacji EFI przy użyciu narzędzi GNU
 Name:		gnu-efi
 # NOTE: don't use early 3.1, it doesn't support EFI x86_64
 Version:	3.0.15
-Release:	1
+Release:	2
 Epoch:		1
 # Intel and HP's BSD-like license, except setjmp code coming from GRUB
 License:	BSD-like
 Group:		Development/Libraries
 Source0:	https://downloads.sourceforge.net/gnu-efi/%{name}-%{version}.tar.bz2
 # Source0-md5:	192d94e995ddd4ebdce4903adfd06039
+Patch0:		%{name}-make.patch
 URL:		https://sourceforge.net/projects/gnu-efi/
 BuildRequires:	binutils >= 3:2.17.50.0.14
-BuildRequires:	gcc >= 6:4.1.1
+BuildRequires:	gcc >= 6:4.7
 Requires:	binutils >= 3:2.17.50.0.14
-Requires:	gcc >= 6:4.1.1
+Requires:	gcc >= 6:4.7
 ExclusiveArch:	%{ix86} %{x8664} x32 %{arm} aarch64 ia64 mips64el
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -33,6 +34,7 @@ dla platform IA-64, x86, ARM i MIPS przy użyciu narzędzi GNU.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 ARCHFLAGS=
diff --git a/gnu-efi-make.patch b/gnu-efi-make.patch
new file mode 100644
index 0000000..ac725c5
--- /dev/null
+++ b/gnu-efi-make.patch
@@ -0,0 +1,20 @@
+--- gnu-efi-3.0.15/lib/Makefile.orig	2023-04-01 20:48:36.167083944 +0200
++++ gnu-efi-3.0.15/lib/Makefile	2023-04-01 20:48:38.843766575 +0200
+@@ -68,13 +68,12 @@ SUBDIRS = ia32 x86_64 ia64 aarch64 arm m
+ 
+ LIBDIRINSTALL = $(INSTALLROOT)$(LIBDIR)
+ 
+-all: libsubdirs libefi.a
++all: .libsubdirs libefi.a
+ 
+-.PHONY: libsubdirs
+-libsubdirs:
+-	for sdir in $(SUBDIRS); do mkdir -p $$sdir; done
++.libsubdirs:
++	for sdir in $(SUBDIRS); do mkdir -p $$sdir; done && touch .libsubdirs
+ 
+-$(OBJS): libsubdirs
++$(OBJS): .libsubdirs
+ 
+ libefi.a: $(OBJS)
+ 	$(AR) $(ARFLAGS) $@ $^
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gnu-efi.git/commitdiff/74c30fa66d310a2ec902ffd4fe9b90245d90bc1a



More information about the pld-cvs-commit mailing list