unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 0f358870124de441f07a2e72b2af4fd23efd997d 1068 bytes (raw)
name: gnu/packages/patches/lua-5.4-liblua-so.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
--- a/src/Makefile	2021-02-09 18:47:17.000000000 +0000
+++ b/src/Makefile	2022-01-03 11:30:36.964501941 +0000
@@ -33,6 +33,7 @@
 PLATS= guess aix bsd c89 freebsd generic linux linux-readline macosx mingw posix solaris
 
 LUA_A=	liblua.a
+LUA_SO= liblua.so
 CORE_O=	lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o
 LIB_O=	lauxlib.o lbaselib.o lcorolib.o ldblib.o liolib.o lmathlib.o loadlib.o loslib.o lstrlib.o ltablib.o lutf8lib.o linit.o
 BASE_O= $(CORE_O) $(LIB_O) $(MYOBJS)
@@ -44,7 +45,7 @@
 LUAC_O=	luac.o
 
 ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O)
-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
+ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
 ALL_A= $(LUA_A)
 
 # Targets start here.
@@ -56,6 +57,11 @@
 
 a:	$(ALL_A)
 
+$(LUA_SO): $(CORE_O) $(LIB_O)
+	$(CC) -shared -ldl -Wl,-soname,$(LUA_SO).$(V) -o $@.$(R) $? -lm $(MYLDFLAGS)
+	ln -sf $(LUA_SO).$(R) $(LUA_SO).$(V)
+	ln -sf $(LUA_SO).$(R) $(LUA_SO)
+
 $(LUA_A): $(BASE_O)
 	$(AR) $@ $(BASE_O)
 	$(RANLIB) $@

debug log:

solving 0f35887012 ...
found 0f35887012 in https://yhetil.org/guix-patches/87h7aapii6.fsf@gmail.com/

applying [1/1] https://yhetil.org/guix-patches/87h7aapii6.fsf@gmail.com/
diff --git a/gnu/packages/patches/lua-5.4-liblua-so.patch b/gnu/packages/patches/lua-5.4-liblua-so.patch
new file mode 100644
index 0000000000..0f35887012

1:11: trailing whitespace.
 
1:19: trailing whitespace.
 
1:24: trailing whitespace.
 
1:27: trailing whitespace.
 
1:29: trailing whitespace.
 
Checking patch gnu/packages/patches/lua-5.4-liblua-so.patch...
Applied patch gnu/packages/patches/lua-5.4-liblua-so.patch cleanly.
warning: squelched 2 whitespace errors
warning: 7 lines add whitespace errors.

index at:
100644 0f358870124de441f07a2e72b2af4fd23efd997d	gnu/packages/patches/lua-5.4-liblua-so.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).