[packages/lua-lpeg] move DLLFLAGS to an end to fix linking with --as-needed; rel 2

atler atler at pld-linux.org
Tue May 21 11:25:39 CEST 2024


commit 097082ecd836af18d8d3f30bcaa589fbfc34ad6b
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue May 21 10:19:19 2024 +0200

    move DLLFLAGS to an end to fix linking with --as-needed; rel 2

 link.patch    | 11 +++++++++++
 lua-lpeg.spec |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/lua-lpeg.spec b/lua-lpeg.spec
index 341803e..c7c25e8 100644
--- a/lua-lpeg.spec
+++ b/lua-lpeg.spec
@@ -19,11 +19,12 @@
 Summary:	Parsing Expression Grammars for Lua
 Name:		lua-lpeg
 Version:	1.1.0
-Release:	1
+Release:	2
 License:	MIT
 Group:		Development/Libraries
 Source0:	https://www.inf.puc-rio.br/~roberto/lpeg/lpeg-%{version}.tar.gz
 # Source0-md5:	842a538b403b5639510c9b6fffd2c75b
+Patch0:		link.patch
 URL:		https://www.inf.puc-rio.br/~roberto/lpeg/
 BuildRequires:	lua51 >= %{luaver}
 BuildRequires:	lua51-devel >= %{luaver}
@@ -48,6 +49,7 @@ Expression Grammars (PEGs).
 
 %prep
 %setup -q -n lpeg-%{version}
+%patch0 -p1
 # strict module not part of our Lua 5.1.4
 %{__sed} -i -e 's|require"strict"|-- require"strict"|' test.lua
 %{__chmod} -x test.lua
diff --git a/link.patch b/link.patch
new file mode 100644
index 0000000..31b74b5
--- /dev/null
+++ b/link.patch
@@ -0,0 +1,11 @@
+--- lpeg-1.1.0/makefile.orig	2023-06-26 18:30:55.000000000 +0200
++++ lpeg-1.1.0/makefile	2024-05-21 10:16:27.139816734 +0200
+@@ -39,7 +39,7 @@
+ 	$(MAKE) lpeg.so "DLLFLAGS = -bundle -undefined dynamic_lookup"
+ 
+ lpeg.so: $(FILES)
+-	env $(CC) $(DLLFLAGS) $(FILES) -o lpeg.so
++	env $(CC) $(FILES) -o lpeg.so $(DLLFLAGS)
+ 
+ $(FILES): makefile
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lua-lpeg.git/commitdiff/097082ecd836af18d8d3f30bcaa589fbfc34ad6b



More information about the pld-cvs-commit mailing list