pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/lua-language-server



Module Name:    pkgsrc
Committed By:   riastradh
Date:           Sat Jul  6 10:57:00 UTC 2024

Modified Files:
        pkgsrc/devel/lua-language-server: Makefile distinfo
Added Files:
        pkgsrc/devel/lua-language-server/patches:
            patch-3rd_bee.lua_bee_thread_atomic__sync.cpp

Log Message:
devel/lua-language-server: Fix futex timespec misuse on NetBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/devel/lua-language-server/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/devel/lua-language-server/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/devel/lua-language-server/patches/patch-3rd_bee.lua_bee_thread_atomic__sync.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/lua-language-server/Makefile
diff -u pkgsrc/devel/lua-language-server/Makefile:1.13 pkgsrc/devel/lua-language-server/Makefile:1.14
--- pkgsrc/devel/lua-language-server/Makefile:1.13      Mon May 27 09:08:22 2024
+++ pkgsrc/devel/lua-language-server/Makefile   Sat Jul  6 10:57:00 2024
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.13 2024/05/27 09:08:22 nia Exp $
+# $NetBSD: Makefile,v 1.14 2024/07/06 10:57:00 riastradh Exp $
 
 DISTNAME=              lua-language-server-3.8.3
 PKGNAME=               ${DISTNAME:S/lua/${LUA_PKGPREFIX}/}
+PKGREVISION=           1
 CATEGORIES=            devel lua
 MASTER_SITES=          ${MASTER_SITE_GITHUB:=luals/}
 GITHUB_PROJECT=                lua-language-server

Index: pkgsrc/devel/lua-language-server/distinfo
diff -u pkgsrc/devel/lua-language-server/distinfo:1.5 pkgsrc/devel/lua-language-server/distinfo:1.6
--- pkgsrc/devel/lua-language-server/distinfo:1.5       Tue Apr 30 22:01:33 2024
+++ pkgsrc/devel/lua-language-server/distinfo   Sat Jul  6 10:57:00 2024
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2024/04/30 22:01:33 nikita Exp $
+$NetBSD: distinfo,v 1.6 2024/07/06 10:57:00 riastradh Exp $
 
 BLAKE2s (CppCXY-EmmyLuaCodeStyle-660a26085ff2c1275392a291063404d54fdd32b9.tar.gz) = 00126b42aac3f95c6b64eab5e66c64ec00e87e9b435710667f8343e0916234cc
 SHA512 (CppCXY-EmmyLuaCodeStyle-660a26085ff2c1275392a291063404d54fdd32b9.tar.gz) = 
1ff267021d9c9daf53197cec1d5256dbd336ca19a17ef49ec7a2ac9ca34bff95ccf7da871dead34d7d270822b4f16f2b5e9066cbc7307c2c3f2092f5ff304503
@@ -27,4 +27,5 @@ Size (lua-language-server-3.8.3.tar.gz) 
 BLAKE2s (sqmedeiros-lpeglabel-912b0b9e8641074408ffc2259e069b188e0c717b.tar.gz) = 86a1e3cd622c2e6578a3d29dcce25bd7a9177b9d5d780d2de81d4c1a92355a61
 SHA512 (sqmedeiros-lpeglabel-912b0b9e8641074408ffc2259e069b188e0c717b.tar.gz) = 
ab84dad276f57092eee338ed00dc3656cc9a4a31f0ca4198ef3d1c169873af2f91756c4c4f92a0595d6fc109c2a07aae7495a4fdd658784f2420ad37bc3bf55c
 Size (sqmedeiros-lpeglabel-912b0b9e8641074408ffc2259e069b188e0c717b.tar.gz) = 83171 bytes
+SHA1 (patch-3rd_bee.lua_bee_thread_atomic__sync.cpp) = 7cc0b0fc4d157e842754c912a5129afb63c37560
 SHA1 (patch-make.lua) = fba3453dbeecebc87e48b55bbefb580331cc5a5c

Added files:

Index: pkgsrc/devel/lua-language-server/patches/patch-3rd_bee.lua_bee_thread_atomic__sync.cpp
diff -u /dev/null pkgsrc/devel/lua-language-server/patches/patch-3rd_bee.lua_bee_thread_atomic__sync.cpp:1.1
--- /dev/null   Sat Jul  6 10:57:00 2024
+++ pkgsrc/devel/lua-language-server/patches/patch-3rd_bee.lua_bee_thread_atomic__sync.cpp      Sat Jul  6 10:57:00 2024
@@ -0,0 +1,19 @@
+$NetBSD: patch-3rd_bee.lua_bee_thread_atomic__sync.cpp,v 1.1 2024/07/06 10:57:00 riastradh Exp $
+
+https://github.com/actboy168/bee.lua/pull/50
+
+--- 3rd/bee.lua/bee/thread/atomic_sync.cpp.orig        2024-04-23 08:56:20.000000000 +0000
++++ 3rd/bee.lua/bee/thread/atomic_sync.cpp
+@@ -50,7 +50,11 @@ static void futex_wait(const int* ptr, i
+ #    if defined(__linux__)
+     ::syscall(SYS_futex, ptr, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, val, timeout, 0, 0);
+ #    elif defined(__NetBSD__)
+-    ::syscall(SYS___futex, ptr, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, val, timeout, 0, 0, 0);
++    struct timespec ts = {
++        .tv_sec = timeout.tv_sec,
++        .tv_nsec = timeout.tv,
++    };
++    ::syscall(SYS___futex, ptr, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, val, &ts, 0, 0, 0);
+ #    elif defined(__OpenBSD__)
+     static_assert(sizeof(FutexTimespec) == sizeof(timespec));
+     ::futex((uint32_t*)const_cast<int*>(ptr), FUTEX_WAIT | FUTEX_PRIVATE_FLAG, val, (const timespec*)timeout, 0);



Home | Main Index | Thread Index | Old Index