* lua: bump

* Solution-proposal
This commit is contained in:
extrowerk
2022-05-26 08:30:26 +02:00
committed by GitHub
parent 3aeac54a25
commit d003d58fee
6 changed files with 23 additions and 31 deletions

View File

@@ -10,7 +10,7 @@ Figueiredo"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://www.lua.org/ftp/lua-$portVersion.tar.gz"
CHECKSUM_SHA256="0c2eed3f960446e1a3e4b9a1ca2f3ff893b6ce41942cf54d5dd59ab4b3b058ac"
CHECKSUM_SHA256="fc5fd69bb8736323f026672b1b7235da613d7177e72558893a0bdcd320466d60"
PATCHES="lua-$portVersion.patchset"
if [ $effectiveTargetArchitecture = x86_gcc2 ]; then
PATCHES+="

View File

@@ -10,7 +10,7 @@ COPYRIGHT="1994-2020 Lua.org, PUC-Rio"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="http://www.lua.org/ftp/lua-$portVersion.tar.gz"
CHECKSUM_SHA256="4ba786c3705eb9db6567af29c91a01b81f1c0ac3124fdbf6cd94bdd9e53cca7d"
CHECKSUM_SHA256="164c7849653b80ae67bec4b7473b884bf5cc8d2dca05653475ec2ed27b9ebf61"
SOURCE_DIR="lua-$portVersion"
PATCHES="lua54-$portVersion.patchset"
if [ $effectiveTargetArchitecture = x86_gcc2 ]; then
@@ -19,8 +19,8 @@ if [ $effectiveTargetArchitecture = x86_gcc2 ]; then
"
fi
ARCHITECTURES="?all"
SECONDARY_ARCHITECTURES="?x86_gcc2 ?x86"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
libVersion="${portVersion%.*}"
libVersionCompat="$libVersion compat >= $libVersion"
@@ -60,8 +60,13 @@ BUILD_PREREQUIRES="
BUILD()
{
make haiku MYCFLAGS="-DLUA_ROOT='\"$prefix/\"' -DLUA_LDIR='\"$dataDir/lua/$libVersion/\"'" \
LUA_T="lua$libVersion" LUAC_T="luac$libVersion" LUA_SO="liblua.so.$libVersion"
if [ $effectiveTargetArchitecture = x86_gcc2 ]; then
GCC2_CFLAG="-DLUA_NOBUILTIN=1"
fi
make haiku MYCFLAGS="-DLUA_ROOT='\"$prefix/\"' -DLUA_LDIR='\"$dataDir/lua/$libVersion/\"' \
$GCC2_CFLAG" LUA_T="lua$libVersion" LUAC_T="luac$libVersion" \
LUA_SO="liblua.so.$libVersion"
}
INSTALL()

View File

@@ -5,7 +5,7 @@ Subject: gcc2 patch
diff --git a/src/Makefile b/src/Makefile
index 5f25dd1..d030639 100644
index 113ccf3..23eba9d 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -6,8 +6,8 @@
@@ -19,19 +19,6 @@ index 5f25dd1..d030639 100644
LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
LIBS= -lm $(SYSLIBS) $(MYLIBS)
diff --git a/src/llimits.h b/src/llimits.h
index 48c97f9..419f426 100644
--- a/src/llimits.h
+++ b/src/llimits.h
@@ -154,7 +154,7 @@ typedef LUAI_UACINT l_uacInt;
*/
#if !defined(likely)
-#if defined(__GNUC__)
+#if defined(__GNUC__) > 3
#define likely(x) (__builtin_expect(((x) != 0), 1))
#define unlikely(x) (__builtin_expect(((x) != 0), 0))
#else
--
2.28.0
2.30.2

View File

@@ -5,7 +5,7 @@ Subject: import patch from 5.2.1
diff --git a/Makefile b/Makefile
index 1797df9..d93b0bc 100644
index fef1af4..b1a567e 100644
--- a/Makefile
+++ b/Makefile
@@ -36,12 +36,12 @@ RM= rm -f
@@ -23,7 +23,7 @@ index 1797df9..d93b0bc 100644
TO_MAN= lua.1 luac.1
# Lua version and release.
@@ -52,7 +52,7 @@ R= $V.1
@@ -52,7 +52,7 @@ R= $V.4
all: $(PLAT)
$(PLATS) help test clean:
@@ -33,10 +33,10 @@ index 1797df9..d93b0bc 100644
install: dummy
cd src && $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_MAN) $(INSTALL_LMOD) $(INSTALL_CMOD)
diff --git a/src/Makefile b/src/Makefile
index 514593d..5f25dd1 100644
index 1907381..113ccf3 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -30,9 +30,10 @@ CMCFLAGS= -Os
@@ -30,9 +30,10 @@ CMCFLAGS=
# == END OF USER SETTINGS -- NO NEED TO CHANGE ANYTHING BELOW THIS LINE =======
@@ -65,9 +65,9 @@ index 514593d..5f25dd1 100644
+ $(CC) -o $@ -shared -fPIC -Wl,-soname=liblua.so.$(V) $(LDFLAGS) $? $(LIBS)
+
test:
./lua -v
./$(LUA_T) -v
@@ -115,6 +119,9 @@ FreeBSD NetBSD OpenBSD freebsd:
@@ -117,6 +121,9 @@ FreeBSD NetBSD OpenBSD freebsd:
generic: $(ALL)
@@ -78,10 +78,10 @@ index 514593d..5f25dd1 100644
linux-noreadline:
diff --git a/src/luaconf.h b/src/luaconf.h
index bdf927e..f583e1d 100644
index d42d14b..c388109 100644
--- a/src/luaconf.h
+++ b/src/luaconf.h
@@ -84,6 +84,12 @@
@@ -69,6 +69,12 @@
#define LUA_USE_DLOPEN /* MacOS does not need -ldl */
#endif
@@ -94,7 +94,7 @@ index bdf927e..f583e1d 100644
/*
@@ LUAI_IS32INT is true iff 'int' has (at least) 32 bits.
@@ -227,8 +233,12 @@
@@ -217,8 +223,12 @@
#else /* }{ */
@@ -108,5 +108,5 @@ index bdf927e..f583e1d 100644
#if !defined(LUA_PATH_DEFAULT)
--
2.28.0
2.30.2