pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Update to quickjs version 2019-07-28:
Module Name: pkgsrc-wip
Committed By: Havard Eidnes <he%NetBSD.org@localhost>
Pushed By: he
Date: Fri Aug 2 15:38:02 2019 +0200
Changeset: 504134e116ae1eaf5cc4282164df6a993117c639
Modified Files:
quickjs/Makefile
quickjs/distinfo
quickjs/patches/patch-quickjs.c
Log Message:
Update to quickjs version 2019-07-28:
Pkgsrc changes:
* On NetBSD, turn off atomics if we don't support 64-bit atomics,
as the new code now assumes that works (doesn't on many 32-bit CPUs
NetBSD runs on). This may be fixed in a later release upstream.
Upstream changes:
* added dynamic import
* added Promise.allSettled
* added String.prototype.matchAll
* added Object.fromEntries
* reduced number of ticks in await
* added BigInt support in Atomics
* exported JS_NewPromiseCapability()
* misc async function and async generator fixes
* enabled hashbang support by default
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=504134e116ae1eaf5cc4282164df6a993117c639
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
quickjs/Makefile | 2 +-
quickjs/distinfo | 10 +++++-----
quickjs/patches/patch-quickjs.c | 21 ++++++++++++++++++---
3 files changed, 24 insertions(+), 9 deletions(-)
diffs:
diff --git a/quickjs/Makefile b/quickjs/Makefile
index 232155752c..d2f02d6569 100644
--- a/quickjs/Makefile
+++ b/quickjs/Makefile
@@ -1,7 +1,7 @@
# $NetBSD$
#
-DISTNAME= quickjs-2019-07-21
+DISTNAME= quickjs-2019-07-28
CATEGORIES= lang
MASTER_SITES= https://bellard.org/quickjs/
EXTRACT_SUFX= .tar.xz
diff --git a/quickjs/distinfo b/quickjs/distinfo
index 39f8410539..0f5400b68b 100644
--- a/quickjs/distinfo
+++ b/quickjs/distinfo
@@ -1,12 +1,12 @@
$NetBSD$
-SHA1 (quickjs-2019-07-21.tar.xz) = d021612ace5c35bc0a93d004991c6b577dffc846
-RMD160 (quickjs-2019-07-21.tar.xz) = 1537d855157c905dcd3f17ab4c2ca64600e0bd9a
-SHA512 (quickjs-2019-07-21.tar.xz) = 09c625b43051a4919f5acabe498b5ba41101592cfb42b4bc677d949a438d1fac5cead17b335bf7adf5b270a35fb289bc5345895e3ebf69ee6c10b4af61ee21c6
-Size (quickjs-2019-07-21.tar.xz) = 738032 bytes
+SHA1 (quickjs-2019-07-28.tar.xz) = b9ee09293e2a5cb14e8bccd1a583a62665d50555
+RMD160 (quickjs-2019-07-28.tar.xz) = 70672f5eba9d0ebfd6a7bbee029fdc243027abfb
+SHA512 (quickjs-2019-07-28.tar.xz) = f975aee2a54454eeda922130010bdcf2daf4889080e4c1b90fa15b66275bc6cb5b6321af6a14ce3432ddea53eca7ed2a733152690e20b9cb8f6707c6029c5fc7
+Size (quickjs-2019-07-28.tar.xz) = 739740 bytes
SHA1 (patch-Makefile) = d96c2a797bb9bc7becc7f1217fc3d3457527d55f
SHA1 (patch-cutils.h) = 9719a77add566ce6443af1ac2ba1d1ea61e5c248
SHA1 (patch-qjs.c) = d26b8ac0f7bf84bdb17fb4784f637dcb012cbd93
SHA1 (patch-qjsc.c) = 58733721d4e4647737d111e8835b4c1016ea2889
SHA1 (patch-quickjs-libc.c) = 2257ad069d9a9232d6a3e1c5ae0530d08a1b1010
-SHA1 (patch-quickjs.c) = 99dafd75d0a9e5fc131cf9c81da3f26a7d7e5d38
+SHA1 (patch-quickjs.c) = 39e06961e016765af4f703b59c0c9e65c9d45ec3
diff --git a/quickjs/patches/patch-quickjs.c b/quickjs/patches/patch-quickjs.c
index 7dd89d941b..e33d003f35 100644
--- a/quickjs/patches/patch-quickjs.c
+++ b/quickjs/patches/patch-quickjs.c
@@ -2,9 +2,24 @@ $NetBSD$
Adapt to NetBSD.
---- quickjs.c.orig 2019-07-09 17:49:47.000000000 +0000
+--- quickjs.c.orig 2019-07-28 15:03:03.000000000 +0000
+++ quickjs.c
-@@ -1277,6 +1277,8 @@ static inline size_t js_def_malloc_usabl
+@@ -106,6 +106,14 @@
+ #include <pthread.h>
+ #include <stdatomic.h>
+ #include <errno.h>
++
++#if defined(__NetBSD__)
++#if ATOMIC_LLONG_LOCK_FREE != 2
++/* The code currently assumes the presence of 64-bit atomics */
++/* ...but the current platform doesn't support it */
++#undef CONFIG_ATOMICS
++#endif
++#endif
+ #endif
+
+ enum {
+@@ -1293,6 +1301,8 @@ static inline size_t js_def_malloc_usabl
return 0;
#elif defined(__linux__)
return malloc_usable_size(ptr);
@@ -13,7 +28,7 @@ Adapt to NetBSD.
#else
/* change this to `return 0;` if compilation fails */
return malloc_usable_size(ptr);
-@@ -1351,6 +1353,8 @@ static const JSMallocFunctions def_mallo
+@@ -1367,6 +1377,8 @@ static const JSMallocFunctions def_mallo
NULL,
#elif defined(__linux__)
(size_t (*)(const void *))malloc_usable_size,
Home |
Main Index |
Thread Index |
Old Index