luasocket: update to 3.0.0
authorW. Michael Petullo <mike@flyn.org>
Tue, 10 May 2022 19:43:19 +0000 (14:43 -0500)
committerRosen Penev <rosenp@gmail.com>
Wed, 11 May 2022 21:49:59 +0000 (17:49 -0400)
Signed-off-by: W. Michael Petullo <mike@flyn.org>
lang/luasocket/Makefile
lang/luasocket/patches/0001-Add-interface-support.patch
lang/luasocket/patches/040-remove-fpic-and-warnings.patch [deleted file]

index b44636e47b9d9b81aff71e59b3dd9af25042c894..c0b07e3cb5fd78c8da2825d70fb517e9a8dea30e 100644 (file)
@@ -8,13 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=luasocket
-PKG_SOURCE_DATE:=2019-04-21
-PKG_SOURCE_VERSION:=733af884f1aa18ff469bf3c4d18810e815853211
-PKG_RELEASE:=1
+PKG_VERSION:=3.0.0
+PKG_RELEASE:=$(AUTORELEASE)
 
-PKG_SOURCE_PROTO:=git
-PKG_SOURCE_URL:=https://github.com/diegonehab/luasocket
-PKG_MIRROR_HASH:=60aef7544426cae3e6c7560a6e4ad556a04b879ca0ad0311645b2c513c872128
+PKG_SOURCE:=v$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://github.com/lunarmodules/luasocket/archive/refs/tags
+PKG_HASH:=04d98e40edcee7c7c5f83f0e8ba5503d14b56280e20daceee9e34ed7cf8f1b15
 
 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
 PKG_LICENSE:=MIT
index 293951d4e415e86db340c00e9eeb970fcf5066e7..43c74e9f5f34ebdfcc4d3d7c446f41301303e4ac 100644 (file)
@@ -213,7 +213,7 @@ Subject: [PATCH] Add interface resolving
  /*=========================================================================*\
  * Internal functions prototypes
  \*=========================================================================*/
-@@ -388,6 +391,12 @@ static int opt_ip6_setmembership(lua_Sta
+@@ -389,6 +392,12 @@ static int opt_ip6_setmembership(lua_Sta
      if (!lua_isnil(L, -1)) {
          if (lua_isnumber(L, -1)) {
              val.ipv6mr_interface = (unsigned int) lua_tonumber(L, -1);
diff --git a/lang/luasocket/patches/040-remove-fpic-and-warnings.patch b/lang/luasocket/patches/040-remove-fpic-and-warnings.patch
deleted file mode 100644 (file)
index 647997a..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
---- a/src/makefile
-+++ b/src/makefile
-@@ -174,9 +174,8 @@ SO_linux=so
- O_linux=o
- CC_linux=gcc
- DEF_linux=-DLUASOCKET_$(DEBUG)
--CFLAGS_linux=$(LUAINC:%=-I%) $(DEF) -Wall -Wshadow -Wextra \
--      -Wimplicit -O2 -ggdb3 -fpic
--LDFLAGS_linux=-O -shared -fpic -o 
-+CFLAGS_linux=$(LUAINC:%=-I%) $(DEF) -O2
-+LDFLAGS_linux=-O -shared -o
- LD_linux=gcc
- SOCKET_linux=usocket.o