Index: Makefile =================================================================== --- Makefile (revision 543504) +++ Makefile (working copy) @@ -2,18 +2,17 @@ # $FreeBSD$ PORTNAME= lua -DISTVERSION= 5.3.5 -PORTREVISION= 3 +DISTVERSION= 5.4.0 CATEGORIES= lang MASTER_SITES= https://www.lua.org/ftp/ -PKGNAMESUFFIX= 53 +PKGNAMESUFFIX= 54 -MAINTAINER= russ.haley@gmail.com +MAINTAINER= se@freebsd.org COMMENT= Powerful, efficient, lightweight, embeddable scripting language LICENSE= MIT -USES= lua:core,53 +USES= lua:core,54 USE_LDCONFIG= yes # Overriding __MAKE_CONF makes sure that we don't re-parse @@ -97,7 +96,7 @@ CFLAGS+= -fPIC # 2019-01-25: -pthread in LIBS is a work around for the following bug: # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235211 -LIBS+= -pthread +LIBS+= -pthread WITHOUT_NO_STRICT_ALIASING=yes Index: distinfo =================================================================== --- distinfo (revision 543504) +++ distinfo (working copy) @@ -1,3 +1,3 @@ -TIMESTAMP = 1531618645 -SHA256 (lua-5.3.5.tar.gz) = 0c2eed3f960446e1a3e4b9a1ca2f3ff893b6ce41942cf54d5dd59ab4b3b058ac -SIZE (lua-5.3.5.tar.gz) = 303543 +TIMESTAMP = 1593984456 +SHA256 (lua-5.4.0.tar.gz) = eac0836eb7219e421a96b7ee3692b93f0629e4cdb0c788432e3d10ce9ed47e28 +SIZE (lua-5.4.0.tar.gz) = 349308 Index: files/extra-patch-assert =================================================================== Index: files/lua-5.4.pc.in =================================================================== Index: files/patch-src__Makefile =================================================================== --- files/patch-src__Makefile (revision 543504) +++ files/patch-src__Makefile (working copy) @@ -1,13 +1,16 @@ ---- src/Makefile.orig 2018-06-25 17:46:36 UTC +--- src/Makefile.orig 2020-04-15 13:00:29 UTC +++ src/Makefile -@@ -6,12 +6,13 @@ +@@ -4,14 +4,15 @@ + # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT ======================= + # Your platform. See PLATS for possible values. - PLAT= none +-PLAT= guess ++PLAT= none -CC= gcc -std=gnu99 --CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS) +-CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_3 $(SYSCFLAGS) $(MYCFLAGS) +CC?= gcc -std=gnu99 -+CFLAGS= -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS) ++CFLAGS= -Wall -Wextra -DLUA_COMPAT_5_3 $(SYSCFLAGS) $(MYCFLAGS) LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS) LIBS= -lm $(SYSLIBS) $(MYLIBS) +SOLIBS= -lm @@ -16,8 +19,8 @@ +AR= ar RANLIB= ranlib RM= rm -f - -@@ -19,8 +20,8 @@ SYSCFLAGS= + UNAME= uname +@@ -20,8 +21,8 @@ SYSCFLAGS= SYSLDFLAGS= SYSLIBS= @@ -28,7 +31,7 @@ MYLIBS= MYOBJS= -@@ -38,12 +39,13 @@ BASE_O= $(CORE_O) $(LIB_O) $(MYOBJS) +@@ -39,12 +40,13 @@ BASE_O= $(CORE_O) $(LIB_O) $(MYOBJS) LUA_T= lua LUA_O= lua.o @@ -43,7 +46,7 @@ ALL_A= $(LUA_A) # Targets start here. -@@ -55,8 +57,11 @@ o: $(ALL_O) +@@ -56,8 +58,11 @@ o: $(ALL_O) a: $(ALL_A) Index: files/patch-src_lua.c =================================================================== --- files/patch-src_lua.c (revision 543504) +++ files/patch-src_lua.c (working copy) @@ -1,12 +1,12 @@ ---- src/lua.c.orig 2017-04-19 17:29:57 UTC +--- src/lua.c.orig 2020-06-18 14:25:54 UTC +++ src/lua.c -@@ -77,16 +77,66 @@ +@@ -392,11 +392,59 @@ static int handle_luainit (lua_State *L) { */ #if !defined(lua_readline) /* { */ -#if defined(LUA_USE_READLINE) /* { */ +#if defined(LUA_USE_READLINE_DL)/* { */ -+ + +#include + +#ifndef LUA_READLINE_LIBPATH @@ -53,26 +53,12 @@ + do { (void)L; if (lua_readline_p) free(b); } while(0) + +#elif defined(LUA_USE_READLINE) /* { */ - ++ #include #include +-#define lua_initreadline(L) ((void)L, rl_readline_name="lua") +#define lua_initreadline(L) \ + ((void)L, rl_readline_name="lua", rl_inhibit_completion=1) #define lua_readline(L,b,p) ((void)L, ((b)=readline(p)) != NULL) #define lua_saveline(L,line) ((void)L, add_history(line)) #define lua_freeline(L,b) ((void)L, free(b)) - - #else /* }{ */ - -+#define lua_initreadline(L) ((void) L) - #define lua_readline(L,b,p) \ - ((void)L, fputs(p, stdout), fflush(stdout), /* show prompt */ \ - fgets(b, LUA_MAXINPUT, stdin) != NULL) /* get line */ -@@ -406,6 +456,7 @@ static void doREPL (lua_State *L) { - int status; - const char *oldprogname = progname; - progname = NULL; /* no 'progname' on errors in interactive mode */ -+ lua_initreadline(L); - while ((status = loadline(L)) != -1) { - if (status == LUA_OK) - status = docall(L, 0, LUA_MULTRET); Index: pkg-descr =================================================================== Index: pkg-plist =================================================================== --- pkg-plist (revision 543504) +++ pkg-plist (working copy) @@ -1,14 +1,14 @@ -bin/lua53 -bin/luac53 -include/lua53/lauxlib.h -include/lua53/lua.h -include/lua53/lua.hpp -include/lua53/luaconf.h -include/lua53/lualib.h -lib/liblua-5.3.a -lib/liblua-5.3.so -libdata/pkgconfig/lua-5.3.pc -man/man1/lua53.1.gz -man/man1/luac53.1.gz -@dir lib/lua/5.3 -@dir %%DATADIR%%/5.3 +bin/lua54 +bin/luac54 +%%LUA_INCDIR%%/lauxlib.h +%%LUA_INCDIR%%/lua.h +%%LUA_INCDIR%%/lua.hpp +%%LUA_INCDIR%%/luaconf.h +%%LUA_INCDIR%%/lualib.h +%%LUA_LIBDIR%%/liblua-%%LUA_VER%%.a +%%LUA_LIBDIR%%/liblua-%%LUA_VER%%.so +%%LUA_LIBDIR%%data/pkgconfig/lua-%%LUA_VER%%.pc +man/man1/lua54.1.gz +man/man1/luac54.1.gz +@dir %%LUA_MODLIBDIR%% +@dir %%LUA_MODSHAREDIR%%