lualanes: bump to version 3.17.2 and backport CMake >= 4.0 support
authorChristian Marangi <[email protected]>
Sun, 23 Nov 2025 14:16:25 +0000 (15:16 +0100)
committerChristian Marangi <[email protected]>
Sun, 23 Nov 2025 14:16:25 +0000 (15:16 +0100)
Bump lualanes to version 3.17.2 and backport upstream patch for CMake >=
4.0 support.

Apply minor modification to the backport patch as the project moved to
C++ but the 3.17.2 version is still C based.

Signed-off-by: Christian Marangi <[email protected]>
lang/lua/lualanes/Makefile
lang/lua/lualanes/patches/001-cmake-for-c-20-in-master-branch.patch [new file with mode: 0644]

index 764b8ddd0e7c0e3660e3a38db288ef9d82a7b9f7..a8e9744491e57a476a96b2c2825dc52c7fde6583 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=lualanes
-PKG_VERSION:=3.16.3
+PKG_VERSION:=3.17.2
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/LuaLanes/lanes/tar.gz/v$(PKG_VERSION)?
-PKG_HASH:=22cfa836de4be14fe588b9cd34e936d6f61ec6f4096d8ae30d4ec35855d9608f
+PKG_HASH:=854c1379cde584dd544a3cf098e0ec130248f3a102f65f1064974872e5b4821a
 PKG_BUILD_DIR:=$(BUILD_DIR)/lanes-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Vladimir Malyutin <[email protected]>
diff --git a/lang/lua/lualanes/patches/001-cmake-for-c-20-in-master-branch.patch b/lang/lua/lualanes/patches/001-cmake-for-c-20-in-master-branch.patch
new file mode 100644 (file)
index 0000000..c5275ca
--- /dev/null
@@ -0,0 +1,24 @@
+From c5ac7e90cfd0596bb443c41fbaa296ab6cd5eaff Mon Sep 17 00:00:00 2001
+From: sonoro1234 <[email protected]>
+Date: Sun, 20 Jul 2025 19:01:55 +0200
+Subject: [PATCH] cmake for c++20 in master branch
+
+---
+ CMakeLists.txt | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -3,9 +3,10 @@
+ # Redistribution and use of this file is allowed according to the terms of the MIT license.
+ # For details see the COPYRIGHT file distributed with LuaDist.
+ # Please note that the package source code is licensed under its own license.
+-
++CMAKE_MINIMUM_REQUIRED(VERSION 3.18)
+ PROJECT(lanes C)
+-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
++set(C_STANDARD 20)
++
+ FIND_PACKAGE(Lua51 REQUIRED)