mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
lua-language-server: update to 3.6.24.
This commit is contained in:
parent
8c9074c47f
commit
3f417d1151
3 changed files with 42 additions and 14 deletions
22
srcpkgs/lua-language-server/patches/fix-musl.patch
Normal file
22
srcpkgs/lua-language-server/patches/fix-musl.patch
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
--- a/3rd/bee.lua/bee/net/endpoint.cpp
|
||||||
|
+++ b/3rd/bee.lua/bee/net/endpoint.cpp
|
||||||
|
@@ -17,6 +17,7 @@
|
||||||
|
|
||||||
|
#include <array>
|
||||||
|
#include <limits>
|
||||||
|
+#include <cstring>
|
||||||
|
|
||||||
|
// see the https://blogs.msdn.microsoft.com/commandline/2017/12/19/af_unix-comes-to-windows/
|
||||||
|
#if defined(_WIN32)
|
||||||
|
|
||||||
|
--- a/3rd/luamake/bee.lua/bee/net/endpoint.cpp
|
||||||
|
+++ b/3rd/luamake/bee.lua/bee/net/endpoint.cpp
|
||||||
|
@@ -17,6 +17,7 @@
|
||||||
|
|
||||||
|
#include <array>
|
||||||
|
#include <limits>
|
||||||
|
+#include <cstring>
|
||||||
|
|
||||||
|
// see the https://blogs.msdn.microsoft.com/commandline/2017/12/19/af_unix-comes-to-windows/
|
||||||
|
#if defined(_WIN32)
|
||||||
|
|
|
@ -12,16 +12,18 @@ diff --git a/3rd/bee.lua/test/test_lua.lua b/3rd/bee.lua/test/test_lua.lua
|
||||||
index 5b85af7..cf653c0 100644
|
index 5b85af7..cf653c0 100644
|
||||||
--- a/3rd/bee.lua/test/test_lua.lua
|
--- a/3rd/bee.lua/test/test_lua.lua
|
||||||
+++ b/3rd/bee.lua/test/test_lua.lua
|
+++ b/3rd/bee.lua/test/test_lua.lua
|
||||||
@@ -21,19 +21,4 @@ function test_lua:test_stack_overflow_2()
|
@@ -21,21 +21,3 @@
|
||||||
|
print(t[1])
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
|
-
|
||||||
function test_lua:test_next()
|
-function test_lua:test_next()
|
||||||
- local t = {}
|
- local t = {}
|
||||||
- for i = 1, 26 do
|
- for i = 1, 26 do
|
||||||
- t[string.char(0x40+i)] = true
|
- t[string.char(0x40 + i)] = true
|
||||||
- end
|
- end
|
||||||
- local expected = {
|
- local expected = {
|
||||||
- 'Z', 'Y', 'V', 'U', 'X', 'W', 'R', 'Q', 'T', 'S', 'N', 'M', 'P', 'O', 'J', 'I', 'L', 'K', 'F', 'E', 'H', 'G', 'B', 'A', 'D', 'C'
|
- "Z", "Y", "V", "U", "X", "W", "R", "Q", "T", "S", "N", "M", "P", "O", "J", "I", "L", "K", "F", "E", "H", "G", "B", "A", "D", "C"
|
||||||
- }
|
- }
|
||||||
- local function checkOK()
|
- local function checkOK()
|
||||||
- local key
|
- local key
|
||||||
|
@ -31,21 +33,24 @@ index 5b85af7..cf653c0 100644
|
||||||
- end
|
- end
|
||||||
- end
|
- end
|
||||||
- checkOK()
|
- checkOK()
|
||||||
end
|
-end
|
||||||
|
|
||||||
diff --git a/3rd/luamake/bee.lua/test/test_lua.lua b/3rd/luamake/bee.lua/test/test_lua.lua
|
diff --git a/3rd/luamake/bee.lua/test/test_lua.lua b/3rd/luamake/bee.lua/test/test_lua.lua
|
||||||
index 5b85af7..cf653c0 100644
|
index 5b85af7..cf653c0 100644
|
||||||
--- a/3rd/luamake/bee.lua/test/test_lua.lua
|
--- a/3rd/luamake/bee.lua/test/test_lua.lua
|
||||||
+++ b/3rd/luamake/bee.lua/test/test_lua.lua
|
+++ b/3rd/luamake/bee.lua/test/test_lua.lua
|
||||||
@@ -21,19 +21,4 @@ function test_lua:test_stack_overflow_2()
|
@@ -21,21 +21,3 @@
|
||||||
|
print(t[1])
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
|
-
|
||||||
function test_lua:test_next()
|
-function test_lua:test_next()
|
||||||
- local t = {}
|
- local t = {}
|
||||||
- for i = 1, 26 do
|
- for i = 1, 26 do
|
||||||
- t[string.char(0x40+i)] = true
|
- t[string.char(0x40 + i)] = true
|
||||||
- end
|
- end
|
||||||
- local expected = {
|
- local expected = {
|
||||||
- 'Z', 'Y', 'V', 'U', 'X', 'W', 'R', 'Q', 'T', 'S', 'N', 'M', 'P', 'O', 'J', 'I', 'L', 'K', 'F', 'E', 'H', 'G', 'B', 'A', 'D', 'C'
|
- "Z", "Y", "V", "U", "X", "W", "R", "Q", "T", "S", "N", "M", "P", "O", "J", "I", "L", "K", "F", "E", "H", "G", "B", "A", "D", "C"
|
||||||
- }
|
- }
|
||||||
- local function checkOK()
|
- local function checkOK()
|
||||||
- local key
|
- local key
|
||||||
|
@ -55,4 +60,5 @@ index 5b85af7..cf653c0 100644
|
||||||
- end
|
- end
|
||||||
- end
|
- end
|
||||||
- checkOK()
|
- checkOK()
|
||||||
end
|
-end
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'lua-language-server'
|
# Template file for 'lua-language-server'
|
||||||
pkgname=lua-language-server
|
pkgname=lua-language-server
|
||||||
version=3.6.23
|
version=3.6.24
|
||||||
revision=1
|
revision=1
|
||||||
hostmakedepends="ninja"
|
hostmakedepends="ninja"
|
||||||
short_desc="Lua LSP implementation written in Lua"
|
short_desc="Lua LSP implementation written in Lua"
|
||||||
|
@ -9,7 +9,7 @@ license="MIT"
|
||||||
homepage="https://github.com/LuaLS/lua-language-server"
|
homepage="https://github.com/LuaLS/lua-language-server"
|
||||||
changelog="https://raw.githubusercontent.com/LuaLS/lua-language-server/master/changelog.md"
|
changelog="https://raw.githubusercontent.com/LuaLS/lua-language-server/master/changelog.md"
|
||||||
distfiles="https://github.com/LuaLS/lua-language-server/releases/download/${version}/lua-language-server-${version}-submodules.zip"
|
distfiles="https://github.com/LuaLS/lua-language-server/releases/download/${version}/lua-language-server-${version}-submodules.zip"
|
||||||
checksum=039de8c34b8d9db0bc350e19391e4e437b362b7d2016fde9bc3ff3588e6787cb
|
checksum=c85ec17eab50007a367656e84b1ad0de517dd14b397c83b252e2e1b9acee05b4
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
ninja -C 3rd/luamake -f compile/ninja/linux.ninja
|
ninja -C 3rd/luamake -f compile/ninja/linux.ninja
|
||||||
|
|
Loading…
Add table
Reference in a new issue