]> granicus.if.org Git - nethack/commitdiff
support for build with current Lua version 5.4.2
authornhmall <nhmall@nethack.org>
Fri, 11 Dec 2020 14:20:26 +0000 (09:20 -0500)
committernhmall <nhmall@nethack.org>
Fri, 11 Dec 2020 14:20:26 +0000 (09:20 -0500)
This may require
     make spotless
     make fetch-lua
for some platforms.

12 files changed:
Porting
sys/msdos/Makefile.GCC
sys/msdos/fetch-cross-compiler.sh
sys/unix/Makefile.top
sys/unix/NetHack.xcodeproj/project.pbxproj
sys/unix/hints/include/cross-pre.2020
sys/winnt/Install.nt
sys/winnt/Makefile.gcc
sys/winnt/Makefile.msc
sys/winnt/travis-gcc.sh
win/win32/vs/NetHack.vcxproj
win/win32/vs/travisci.sh

diff --git a/Porting b/Porting
index 6a57e1aaed809c967e168ab8528620f776f336ad..120292d2e52bd0de6ccdf02452ddef464a9ff081 100644 (file)
--- a/Porting
+++ b/Porting
@@ -207,7 +207,7 @@ need to be included in the packaging of the game.
      4.3. Lua
 
        Compile and link into a library, or obtain a prebuilt Lua library for
-your platform. Place the Lua source into lib/lua-5.4.1 (or other folder
+your platform. Place the Lua source into lib/lua-5.4.2 (or other folder
 representing an appropriate Lua version); place the compiled Lua library into
 lib.
 
index abe5611804ab53bad72b8a6bb327c592da39a680..6ffb918d0617fbbd90ed111e960e0e1a969f05ed 100644 (file)
@@ -42,13 +42,13 @@ PDCURSES_TOP=../../pdcurses
 ifeq "$(LUA_VERSION)" "5.3.5"
 LUAVER=5.3.5
 else
-LUAVER=5.4.1
+LUAVER=5.4.2
 endif
 #---------------------------------------------------------------
 # Location of LUA
 #
 # Original source needs to be obtained from: 
-#    http://www.lua.org/ftp/lua-5.4.1.tar.gz
+#    http://www.lua.org/ftp/lua-5.4.2.tar.gz
 #
 #    This build assumes that the LUA sources are located
 #    at the specified location. If they are actually elsewhere
@@ -305,7 +305,7 @@ ALLOBJ = $(VOBJ) $(SOBJ) $(TILOBJ) $(TILOBJ2) $(VVOBJ)
 
 #===============-=================================================
 # LUA library
-# Source from http://www.lua.org/ftp/lua-5.4.1.tar.gz
+# Source from http://www.lua.org/ftp/lua-5.4.2.tar.gz
 #=================================================================
 
 LUASRC   = $(LUATOP)/src
index b5267b59068db64ee31b07d835b023bf72a3ab86..fc78feae76ab314c59037410e9271bbcb73b16d7 100644 (file)
@@ -12,7 +12,7 @@ if [ -z "$GCCVER" ]; then
 fi
 
 if [ -z "$LUA_VERSION" ]; then
-       export LUA_VERSION=5.4.1
+       export LUA_VERSION=5.4.2
 fi
 
 if [ ! -d "$(pwd)/lib" ]; then
index 6c1363aebdbeae39a463320129ebfb9544308ec1..a0824a1553d905844636653d60356af77bf70f65 100644 (file)
@@ -75,7 +75,7 @@ VARDAT = $(VARDATD) $(VARDATND)
 #CHGRP = chgrp
 
 # Lua version
-LUA_VERSION = 5.4.1
+LUA_VERSION = 5.4.2
 
 #
 # end of configuration
index a22cb1e3192d4b212755d2384d9a73110bf6e942..807c7231ebc6cf64b29425757cd77faf9ba106ae 100644 (file)
                        );
                        runOnlyForDeploymentPostprocessing = 0;
                        shellPath = /bin/sh;
-                       shellScript = "# Type a script or drag a script file from your workspace to insert its path.\ncd ${NH_INC_DIR}\necho '/* nhlua.h - generated by Xcode script */' > nhlua.h\necho '#include \"../lib/lua-5.4.1/src/lua.h\"' >> nhlua.h\nsed -e '/(lua_error)/!d' -e '/(lua_error)/s/;/ NORETURN;/1' < ${NH_LIB_DIR}/lua-5.4.1/src/lua.h >> nhlua.h\necho '#include \"../lib/lua-5.4.1/src/lualib.h\"' >> nhlua.h\necho '#include \"../lib/lua-5.4.1/src/lauxlib.h\"' >> nhlua.h\necho '/*nhlua.h*/' >> nhlua.h\n";
+                       shellScript = "# Type a script or drag a script file from your workspace to insert its path.\ncd ${NH_INC_DIR}\necho '/* nhlua.h - generated by Xcode script */' > nhlua.h\necho '#include \"../lib/lua-5.4.2/src/lua.h\"' >> nhlua.h\nsed -e '/(lua_error)/!d' -e '/(lua_error)/s/;/ NORETURN;/1' < ${NH_LIB_DIR}/lua-5.4.2/src/lua.h >> nhlua.h\necho '#include \"../lib/lua-5.4.2/src/lualib.h\"' >> nhlua.h\necho '#include \"../lib/lua-5.4.2/src/lauxlib.h\"' >> nhlua.h\necho '/*nhlua.h*/' >> nhlua.h\n";
                };
                544768B8239954B9004B9739 /* Build Lua library */ = {
                        isa = PBXShellScriptBuildPhase;
                        );
                        runOnlyForDeploymentPostprocessing = 0;
                        shellPath = /bin/sh;
-                       shellScript = "# Type a script or drag a script file from your workspace to insert its path.\ncd ${NH_LIB_DIR}\nmkdir -p lua\ncd ${NH_LIB_DIR}/lua-5.4.1/src\nmake a\ncp liblua.a ../../lua\ncd ../../..\n\n";
+                       shellScript = "# Type a script or drag a script file from your workspace to insert its path.\ncd ${NH_LIB_DIR}\nmkdir -p lua\ncd ${NH_LIB_DIR}/lua-5.4.2/src\nmake a\ncp liblua.a ../../lua\ncd ../../..\n\n";
                };
 /* End PBXShellScriptBuildPhase section */
 
index d3cb72a501ef831a4b63638336d91de4d3c0fd3f..99de7f559a97d469ba935c6bacfafcc19d60dd08 100644 (file)
@@ -47,9 +47,9 @@ endif
 ifdef BUILD_TARGET_LUA
 #===============-=================================================
 # LUA library
-# Source from http://www.lua.org/ftp/lua-5.4.1.tar.gz
+# Source from http://www.lua.org/ftp/lua-5.4.2.tar.gz
 #=================================================================
-LUA_VERSION ?=5.4.1
+LUA_VERSION ?=5.4.2
 LUATOP ?= ../lib/lua-$(LUA_VERSION)
 LUASRCDIR ?= $(LUATOP)/src
 LUAOBJFILES1 =  $(TARGETPFX)lapi.o $(TARGETPFX)lauxlib.o \
@@ -148,7 +148,7 @@ ifdef CROSS_TO_MSDOS
 # 2. Then
 #     make CROSS_TO_MSDOS=1 WANT_WIN_TTY=1 WANT_WIN_CURSES=1 all
 #
-# Source from http://www.lua.org/ftp/lua-5.4.1.tar.gz
+# Source from http://www.lua.org/ftp/lua-5.4.2.tar.gz
 #=================================================================
 
 CFLAGS += -DCROSSCOMPILE
index 101fb965ab27edc5c1c254000e3bc2649a0e74d1..a5ebaca2b632df3ffa111f3a778d0ff818d2dfee 100644 (file)
@@ -47,7 +47,7 @@ version.  You can use one of the following build environments:
                                     |          |                 |
                                  +----+    +------+        +-----------+
                                  |    |    |      |        |           |
-                             share  winnt tty   win32  Lua-5.4.1    pdcurses
+                             share  winnt tty   win32  Lua-5.4.2    pdcurses
                                                   |
                                                  vs
 
@@ -55,11 +55,11 @@ version.  You can use one of the following build environments:
 | Building And Running Using Visual Studio 2017 or 2019  |
 \--------------------------------------------------------/
 
-Before proceeding, please obtain the lua-5.4.1 sources and copy them to
-the new directory lib\lua-5.4.1\src.  This source can be obtain either from
-http://www.lua.org/ftp/lua-5.4.1.tar.gz or from the git hub mirror
-https://github.com/lua/lua.git using the tag 'v5.4.1'.  The build expects
-to find lua files such as 'lua.h' at 'lib\lua-5.4.1\src\lua.h'.
+Before proceeding, please obtain the lua-5.4.2 sources and copy them to
+the new directory lib\lua-5.4.2\src.  This source can be obtain either from
+http://www.lua.org/ftp/lua-5.4.2.tar.gz or from the git hub mirror
+https://github.com/lua/lua.git using the tag 'v5.4.2'.  The build expects
+to find lua files such as 'lua.h' at 'lib\lua-5.4.2\src\lua.h'.
 
 If you are NOT using Visual Studio 2017 or 2019 IDE, or you prefer to build
 using a Make utility and a Makefile proceed to "Building Using Make".
index 2df3b9eb68302354a3c2a0ba749aef2ebdffe3c3..c2b2d1c16f5062a1f5a0877aa07ed5c60ac8e7e2 100644 (file)
@@ -127,7 +127,7 @@ TARGET_CPU=x86
 #
 #---------------------------------------------------------------
 ifndef LUA_VERSION
-LUAVER=5.4.1
+LUAVER=5.4.2
 else
 LUAVER=$(LUA_VERSION)
 endif
@@ -135,7 +135,7 @@ endif
 # Location of LUA
 #
 # Original source needs to be obtained from:
-#    http://www.lua.org/ftp/lua-5.4.1.tar.gz
+#    http://www.lua.org/ftp/lua-5.4.2.tar.gz
 #
 #    This build assumes that the LUA sources are located
 #    at the specified location. If they are actually elsewhere
@@ -416,11 +416,11 @@ OPTIONS_FILE = $(DAT)\options
 
 #===============-=================================================
 # LUA library
-# Source from http://www.lua.org/ftp/lua-5.4.1.tar.gz
+# Source from http://www.lua.org/ftp/lua-5.4.2.tar.gz
 #=================================================================
 
 ifndef LUAVER
-LUAVER   = 5.4.1
+LUAVER   = 5.4.2
 endif
 LUASRC   = $(LUATOP)/src
 LUALIB   = $(O)lua-$(LUAVER).static.a
index 3a2d0749a5e45524597c5efa0fd75212d4bf42d3..c793dd87844794371f8ac2abcc0e9ce75ed4ed15 100644 (file)
@@ -131,7 +131,7 @@ DEBUGINFO = Y
 # This marks the end of the BUILD DECISIONS section.
 #==============================================================================
 !IFNDEF LUA_VERSION
-LUAVER=5.4.1
+LUAVER=5.4.2
 !ELSE
 LUAVER=$(LUA_VERSION)
 !ENDIF
@@ -140,7 +140,7 @@ LUAVER=$(LUA_VERSION)
 # Location of LUA
 #
 # Original source needs to be obtained from:
-#    http://www.lua.org/ftp/lua-5.4.1.tar.gz
+#    http://www.lua.org/ftp/lua-5.4.2.tar.gz
 #
 #    This build assumes that the LUA sources are located
 #    at the specified location. If they are actually elsewhere
@@ -384,7 +384,7 @@ OPTIONS_FILE = $(DAT)\options
 
 #===============-=================================================
 # LUA library
-# Source from http://www.lua.org/ftp/lua-5.4.1.tar.gz
+# Source from http://www.lua.org/ftp/lua-5.4.2.tar.gz
 #=================================================================
 
 !IFNDEF LUAVER
@@ -397,6 +397,9 @@ LUAVER   = 5.4.0
 !IF "$(LUATMP)" == "5.4.1"
 LUAVER   = 5.4.1
 !ENDIF
+!IF "$(LUATMP)" == "5.4.2"
+LUAVER   = 5.4.2
+!ENDIF
 !ELSE
 !ERROR NetHack 3.7 requires LUA so LUATOP must be defined
 !ENDIF
@@ -407,7 +410,7 @@ LUATMP   = $(LUATMP:-BETA=)         #strip suffix if exists "-BETA"
 !IF "$(LUATMP)" == "5.3.5"
 LUAVER   = 5.3.5
 !ELSE
-LUAVER   = 5.4.1
+LUAVER   = 5.4.2
 !ENDIF
 !ENDIF
 !ENDIF
index ecdb79a9edea0208da8a92576774460ff0596073..e1d5bf6b7fba05710de091c8a9e8e7fd960eeef4 100644 (file)
@@ -3,6 +3,6 @@ mkdir -p lib
 cd lib
 git clone --depth 1 https://github.com/wmcbrine/PDCurses.git pdcurses
 #git clone --depth 1 https://github.com/universal-ctags/ctags.git ctags
-curl -R -O http://www.lua.org/ftp/lua-5.4.1.tar.gz
-tar zxf lua-5.4.1.tar.gz
+curl -R -O http://www.lua.org/ftp/lua-5.4.2.tar.gz
+tar zxf lua-5.4.2.tar.gz
 cd ../
index 992ae95347e84e1c43132df5c89a95bc95886498..a3c2e0c267a6e44f5a6dcbd3bc6eef2e1d9de4a8 100644 (file)
@@ -57,8 +57,9 @@
     <ClCompile Include="$(LuaDir)lauxlib.c" />\r
     <ClCompile Include="$(LuaDir)lbaselib.c" />\r
     <ClCompile Include="$(LuaDir)lbitlib.c">\r
-        <ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.4.0'">true</ExcludedFromBuild>\r
+        <ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.4.2'">true</ExcludedFromBuild>\r
         <ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.4.1'">true</ExcludedFromBuild>\r
+        <ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.4.0'">true</ExcludedFromBuild>\r
         <ExcludedFromBuild Condition="'$(LUA_VERSION)'=='5.3.5'">false</ExcludedFromBuild>\r
     </ClCompile>\r
     <ClCompile Include="$(LuaDir)lcode.c" />\r
index 0a8f9a01c2b0a8eef72b10a099b37b18dcc358fc..d7d48e3f03cbd9864e38880e6a314945e41f6427 100644 (file)
@@ -24,7 +24,7 @@ export LIB=/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/$VSVER/$TOOLSVER
 export LIB=/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/$VSVER/$TOOLSVER/VC/Tools/MSVC/$MSVER/lib/x86:$LIB
 export LIB=/c/Program\ Files\ \(x86\)/Windows\ Kits/10/lib/$WKITVER/ucrt/x86:$LIB
 export LIB=/c/Program\ Files\ \(x86\)/Windows\ Kits/10/lib/$WKITVER/um/x86:$LIB
-export LUA_VERSION=5.4.1
+export LUA_VERSION=5.4.2
 mkdir -p lib
 cd lib
 git clone --depth 1 https://github.com/wmcbrine/PDCurses.git pdcurses