pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/58291: avoid deprecated lua api symbols in games/love0{9,10}
>Number: 58291
>Category: pkg
>Synopsis: avoid deprecated lua api symbols in games/love0{9,10}
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon May 27 23:00:00 +0000 2024
>Originator: Malte Dehling
>Release: NetBSD 10.0
>Organization:
>Environment:
NetBSD 10.0 (GENERIC) #4: Wed Apr 24 12:21:26 PDT 2024
mdehling@nb-base-dev:/scratch/obj/sys/arch/amd64/compile/GENERIC amd64
>Description:
games/love0{9,10} use deprecated (in Lua 5.1) symbols.
This needs to be fixed before updating LuaJIT to v2.1.
>How-To-Repeat:
>Fix:
Index: games/love09/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/games/love09/Makefile,v
retrieving revision 1.23
diff -u -r1.23 Makefile
--- games/love09/Makefile 6 Apr 2024 08:05:33 -0000 1.23
+++ games/love09/Makefile 24 May 2024 18:00:05 -0000
@@ -23,6 +23,17 @@
BUILDLINK_PASSTHRU_DIRS+= ${PREFIX}/love0.9/lib
BUILDLINK_PASSTHRU_RPATHDIRS+= ${PREFIX}/love0.9/lib
+SUBST_CLASSES+= lj
+.for f in auxiliar.c auxiliar.h buffer.c except.c inet.c luasocket.c \
+ mime.c options.c select.c tcp.c timeout.c udp.c unix.c
+SUBST_FILES.lj+= src/libraries/luasocket/libluasocket/${f}
+.endfor
+SUBST_MESSAGE.lj= Substituting deprecated symbols.
+SUBST_STAGE.lj= pre-configure
+SUBST_SED.lj= -e 's/luaL_reg/luaL_Reg/g'
+SUBST_SED.lj+= -e 's/luaL_putchar/luaL_addchar/g'
+SUBST_SED.lj+= -e 's/luaL_typerror/luax_typerror/g'
+
INSTALLATION_DIRS+= bin
post-install:
${LN} -sf ../love0.9/bin/love ${DESTDIR}${PREFIX}/bin/love0.9
Index: games/love010/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/games/love010/Makefile,v
retrieving revision 1.23
diff -u -r1.23 Makefile
--- games/love010/Makefile 6 Apr 2024 08:05:33 -0000 1.23
+++ games/love010/Makefile 24 May 2024 18:00:16 -0000
@@ -23,6 +23,17 @@
BUILDLINK_PASSTHRU_DIRS+= ${PREFIX}/love0.10/lib
BUILDLINK_PASSTHRU_RPATHDIRS+= ${PREFIX}/love0.10/lib
+SUBST_CLASSES+= lj
+.for f in auxiliar.c auxiliar.h buffer.c except.c inet.c luasocket.c \
+ mime.c options.c select.c tcp.c timeout.c udp.c unix.c
+SUBST_FILES.lj+= src/libraries/luasocket/libluasocket/${f}
+.endfor
+SUBST_MESSAGE.lj= Substituting deprecated symbols.
+SUBST_STAGE.lj= pre-configure
+SUBST_SED.lj= -e 's/luaL_reg/luaL_Reg/g'
+SUBST_SED.lj+= -e 's/luaL_putchar/luaL_addchar/g'
+SUBST_SED.lj+= -e 's/luaL_typerror/luax_typerror/g'
+
INSTALLATION_DIRS+= bin
post-install:
${LN} -sf ../love0.10/bin/love ${DESTDIR}${PREFIX}/bin/love0.10
--
Malte Dehling
Home |
Main Index |
Thread Index |
Old Index