pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/parallel/lua-lanes lua-lanes: update to 3.16.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b4d5e3f5d1fd
branches:  trunk
changeset: 375034:b4d5e3f5d1fd
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Mar 06 07:51:10 2022 +0000

description:
lua-lanes: update to 3.16.0

Changes:
- fix require() wrapper to return all values returned by original require()
- Lanes no longer relies on malloc/free for internal allocations, but uses the primary alloc function from the master Lua state (excepted for LuaJIT flavors, because the allocator seems to assume 
that it won't be used oustide the Lua state).
- __lanesclone is now called only once with 3 parameters dest, source, size -> BREAKS CUSTOM DEEP USERDATA API

diffstat:

 parallel/lua-lanes/Makefile                      |   4 +-
 parallel/lua-lanes/distinfo                      |  10 ++---
 parallel/lua-lanes/patches/patch-src_threading.c |  46 ------------------------
 parallel/lua-lanes/patches/patch-src_threading.h |  15 -------
 4 files changed, 6 insertions(+), 69 deletions(-)

diffs (97 lines):

diff -r 772ecd5e1e6b -r b4d5e3f5d1fd parallel/lua-lanes/Makefile
--- a/parallel/lua-lanes/Makefile       Sun Mar 06 07:46:19 2022 +0000
+++ b/parallel/lua-lanes/Makefile       Sun Mar 06 07:51:10 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.1 2020/07/11 16:15:08 nia Exp $
+# $NetBSD: Makefile,v 1.2 2022/03/06 07:51:10 nia Exp $
 
-DISTNAME=      lanes-3.13.0
+DISTNAME=      lanes-3.16.0
 PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME}
 CATEGORIES=    parallel lua
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=LuaLanes/}
diff -r 772ecd5e1e6b -r b4d5e3f5d1fd parallel/lua-lanes/distinfo
--- a/parallel/lua-lanes/distinfo       Sun Mar 06 07:46:19 2022 +0000
+++ b/parallel/lua-lanes/distinfo       Sun Mar 06 07:51:10 2022 +0000
@@ -1,8 +1,6 @@
-$NetBSD: distinfo,v 1.3 2021/10/26 11:10:36 nia Exp $
+$NetBSD: distinfo,v 1.4 2022/03/06 07:51:10 nia Exp $
 
-BLAKE2s (lanes-3.13.0.tar.gz) = 093ac7ea5ad7d0a72013d37100e95088980aa23804931690b2f842241ca0ab75
-SHA512 (lanes-3.13.0.tar.gz) = bb509181757fa2b4f07a55962015b35ca6bb867b18ec89dd655f333babe2e12f56479fa85bc98e0dacf5bec2a523265bbc3a978396dc332dc1fdda4df760b2e5
-Size (lanes-3.13.0.tar.gz) = 247978 bytes
+BLAKE2s (lanes-3.16.0.tar.gz) = 643de4ad0a839b1c98bdd0cb6a0b251a4f5d0d7190ac0f9365f9896dd1fa4241
+SHA512 (lanes-3.16.0.tar.gz) = ffd935baae8af752591251bbb1a7f936034ad281870d453e6e1b4291c175c91537ccae23ec25a616b45e8ab601222f323e05e938d7887091ba7e132b0cd5e449
+Size (lanes-3.16.0.tar.gz) = 257945 bytes
 SHA1 (patch-src_Makefile) = a9f40a821f086574d5debc2ecd434eee1aa93b18
-SHA1 (patch-src_threading.c) = 2daf9d772fbbcd7a04cd41a0b10060c7a97d8b38
-SHA1 (patch-src_threading.h) = 036129d1c9c5e7bf7b6535caff07fbb15f65e23d
diff -r 772ecd5e1e6b -r b4d5e3f5d1fd parallel/lua-lanes/patches/patch-src_threading.c
--- a/parallel/lua-lanes/patches/patch-src_threading.c  Sun Mar 06 07:46:19 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,46 +0,0 @@
-$NetBSD: patch-src_threading.c,v 1.1 2020/07/11 16:15:09 nia Exp $
-
-NetBSD support.
-
---- src/threading.c.orig       2018-11-30 12:28:50.000000000 +0000
-+++ src/threading.c
-@@ -886,9 +886,16 @@ void THREAD_SET_PRIORITY( int prio)
- 
- void THREAD_SET_AFFINITY( unsigned int aff)
- {
--      cpu_set_t cpuset;
-       int bit = 0;
-+#ifdef __NetBSD__
-+      cpuset_t *cpuset = cpuset_create();
-+      if( cpuset == NULL)
-+              _PT_FAIL( errno, "cpuset_create", __FILE__, __LINE__-2 );
-+#define CPU_SET(b, s) cpuset_set(b, *(s))
-+#else
-+      cpu_set_t cpuset;
-       CPU_ZERO( &cpuset);
-+#endif
-       while( aff != 0)
-       {
-               if( aff & 1)
-@@ -900,6 +907,9 @@ void THREAD_SET_AFFINITY( unsigned int a
-       }
- #ifdef __ANDROID__
-       PT_CALL( sched_setaffinity( pthread_self(), sizeof(cpu_set_t), &cpuset));
-+#elif defined(__NetBSD__)
-+      PT_CALL( pthread_setaffinity_np( pthread_self(), cpuset_size(cpuset), cpuset));
-+      cpuset_destroy( cpuset);
- #else
-       PT_CALL( pthread_setaffinity_np( pthread_self(), sizeof(cpu_set_t), &cpuset));
- #endif
-@@ -996,8 +1006,10 @@ bool_t THREAD_WAIT( THREAD_T *ref, doubl
-       {
-               // exact API to set the thread name is platform-dependant
-               // if you need to fix the build, or if you know how to fill a hole, tell me (bnt.germain%gmail.com@localhost) so that I can submit the fix in github.
--#if defined PLATFORM_BSD
-+#if defined PLATFORM_BSD && !defined __NetBSD__
-               pthread_set_name_np( pthread_self(), _name);
-+#elif defined PLATFORM_BSD && defined __NetBSD__
-+              pthread_setname_np( pthread_self(), "%s", (void *)_name);
- #elif defined PLATFORM_LINUX
-       #if LINUX_USE_PTHREAD_SETNAME_NP
-               pthread_setname_np( pthread_self(), _name);
diff -r 772ecd5e1e6b -r b4d5e3f5d1fd parallel/lua-lanes/patches/patch-src_threading.h
--- a/parallel/lua-lanes/patches/patch-src_threading.h  Sun Mar 06 07:46:19 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-src_threading.h,v 1.1 2020/07/11 16:15:09 nia Exp $
-
-NetBSD support.
-
---- src/threading.h.orig       2018-11-30 12:28:50.000000000 +0000
-+++ src/threading.h
-@@ -143,7 +143,7 @@ enum e_status { PENDING, RUNNING, WAITIN
-   //
-   #if defined( PLATFORM_OSX)
-     #define YIELD() pthread_yield_np()
--#elif defined( PLATFORM_WIN32) || defined( PLATFORM_POCKETPC) || defined(__ANDROID__) // no PTHREAD for PLATFORM_XBOX
-+#elif defined( PLATFORM_WIN32) || defined( PLATFORM_POCKETPC) || defined(__ANDROID__) || defined(__NetBSD__) // no PTHREAD for PLATFORM_XBOX
-     // for some reason win32-pthread doesn't have pthread_yield(), but sched_yield()
-     #define YIELD() sched_yield()
-   #else



Home | Main Index | Thread Index | Old Index