pkgsrc-Bugs archive

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

pkg/56675: lang/quickjs: Update to 2021-03-27



>Number:         56675
>Category:       pkg
>Synopsis:       lang/quickjs: Update to 2021-03-27
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 28 13:55:00 +0000 2022
>Originator:     Kimihiro Nonaka
>Release:        pkgsrc-current 2022-01-28
>Organization:
>Environment:
NetBSD koharu 9.99.93 NetBSD 9.99.93 (GENERIC) #2: Sat Jan 15 19:44:56 JST 2022  nonaka@koharu:/home/snapshot/NetBSD/HEAD-20220108/obj.NetBSD-amd64/amd64/sys/arch/amd64/compile/GENERIC amd64
>Description:
Update lang/quickjs to 2021-03-27.

Changelog from https://bellard.org/quickjs/Changelog
===

2021-03-27:

- faster Array.prototype.push and Array.prototype.unshift
- added JS_UpdateStackTop()
- fixed Windows console
- misc bug fixes

2020-11-08:

- improved function parameter initializers
- added std.setenv(), std.unsetenv() and std.getenviron()
- added JS_EvalThis()
- misc bug fixes

2020-09-06:

- added logical assignment operators
- added IsHTMLDDA support
- faster for-of loops
- os.Worker now takes a module filename as parameter
- qjsc: added -D option to compile dynamically loaded modules or workers
- misc bug fixes

2020-07-05:

- modified JS_GetPrototype() to return a live value
- REPL: support unicode characters larger than 16 bits
- added os.Worker
- improved object serialization
- added std.parseExtJSON
- misc bug fixes
>How-To-Repeat:

>Fix:
Apply the following patch.

Index: lang/quickjs/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/quickjs/Makefile,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile
--- lang/quickjs/Makefile	13 Dec 2021 13:14:32 -0000	1.8
+++ lang/quickjs/Makefile	28 Jan 2022 13:43:05 -0000
@@ -1,7 +1,7 @@
 # $NetBSD: Makefile,v 1.8 2021/12/13 13:14:32 nia Exp $
 
 NAME=		quickjs
-QJS_DATE=	2020-04-12
+QJS_DATE=	2021-03-27
 VERSION=	${QJS_DATE:S/-//g}
 DISTNAME=	${NAME}-${QJS_DATE}
 PKGNAME=	${NAME}-${VERSION}
Index: lang/quickjs/PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/lang/quickjs/PLIST,v
retrieving revision 1.4
diff -u -p -r1.4 PLIST
--- lang/quickjs/PLIST	10 May 2020 10:32:33 -0000	1.4
+++ lang/quickjs/PLIST	28 Jan 2022 13:43:05 -0000
@@ -26,8 +26,10 @@ share/doc/quickjs/tests/test_bignum.js
 share/doc/quickjs/tests/test_bjson.js
 share/doc/quickjs/tests/test_builtin.js
 share/doc/quickjs/tests/test_closure.js
+share/doc/quickjs/tests/test_language.js
 share/doc/quickjs/tests/test_loop.js
-share/doc/quickjs/tests/test_op.js
 share/doc/quickjs/tests/test_op_overloading.js
 share/doc/quickjs/tests/test_qjscalc.js
 share/doc/quickjs/tests/test_std.js
+share/doc/quickjs/tests/test_worker.js
+share/doc/quickjs/tests/test_worker_module.js
Index: lang/quickjs/distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/lang/quickjs/distinfo,v
retrieving revision 1.8
diff -u -p -r1.8 distinfo
--- lang/quickjs/distinfo	26 Oct 2021 10:51:52 -0000	1.8
+++ lang/quickjs/distinfo	28 Jan 2022 13:43:05 -0000
@@ -1,12 +1,12 @@
 $NetBSD: distinfo,v 1.8 2021/10/26 10:51:52 nia Exp $
 
-BLAKE2s (quickjs-2020-04-12.tar.xz) = f0eaa95481d04c2abddec3095b46ec77a8d3ca2011015adfc1bcbdfc3ebffb06
-SHA512 (quickjs-2020-04-12.tar.xz) = ed15bb159fa05a7c7749e34f346d426803adf34f1ee83eb23c1a9acce037402537fb52ff0c54135da13d7908a71043eb00b5688fe13488eca356a0713d4a65a3
-Size (quickjs-2020-04-12.tar.xz) = 741060 bytes
-SHA1 (patch-Makefile) = c31015842b53368344e07eb39873fa496e5f79f1
+BLAKE2s (quickjs-2021-03-27.tar.xz) = 840b2a3cb55944981b3c8c5e1797f59a25bc4199a6539173ffb49a31bb10a2bd
+SHA512 (quickjs-2021-03-27.tar.xz) = eeb810083484df213bc658a8703ca3ef094b7789c2b49eed86cb4068c9f9da401ad0300261d61a163c6ea82306f3ef50bf8e29a64920f704fd8958ef08a7286c
+Size (quickjs-2021-03-27.tar.xz) = 753556 bytes
+SHA1 (patch-Makefile) = 73a8d42694d9d3bb068bb414b21b408866308951
 SHA1 (patch-cutils.h) = db3fad2bd422d2886538819ef778d13a391d6935
 SHA1 (patch-qjs.c) = 2a2d778bb43540dc5289f84cd9df43162c1ce291
-SHA1 (patch-qjsc.c) = 9a70bde5e19b65942d9f23c10d0b7b3e2741bfaa
-SHA1 (patch-quickjs-libc.c) = d07010eb2c572d8e2de8e212ab8ac34a8bcdf3bd
-SHA1 (patch-quickjs.c) = 7337eaac4ac5336db5205fa06d6cefd22a78cbf6
+SHA1 (patch-qjsc.c) = b67cd008e9f9081c7d1afdc5c286522e5854a511
+SHA1 (patch-quickjs-libc.c) = 39c2b553ef04b308e7c477590edd345b62acc528
+SHA1 (patch-quickjs.c) = b15501f438968d6fb9aefa28f246e141cf8bd950
 SHA1 (patch-tests_test__builtin.js) = 762d201adfe15e7ab63dc0146040a7679229b10c
Index: lang/quickjs/patches/patch-Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/quickjs/patches/patch-Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 patch-Makefile
--- lang/quickjs/patches/patch-Makefile	10 Feb 2020 13:06:08 -0000	1.3
+++ lang/quickjs/patches/patch-Makefile	28 Jan 2022 13:43:05 -0000
@@ -2,7 +2,7 @@ $NetBSD: patch-Makefile,v 1.3 2020/02/10
 
 Portability patch for NetBSD.
 
---- Makefile.orig	2020-01-19 10:12:01.000000000 +0000
+--- Makefile.orig	2021-03-27 10:00:32.000000000 +0000
 +++ Makefile
 @@ -22,13 +22,19 @@
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
@@ -48,18 +48,27 @@ Portability patch for NetBSD.
  
  OBJDIR=.obj
  
-@@ -168,8 +180,10 @@ endif
+@@ -174,10 +186,17 @@ QJS_LIB_OBJS+=$(OBJDIR)/libbf.o 
+ QJS_OBJS+=$(OBJDIR)/qjscalc.o
+ endif
  
+-HOST_LIBS=-lm -ldl -lpthread
++HOST_LIBS=-lm
++ifndef CONFIG_NETBSD
++HOST_LIBS+=-ldl
++endif
++HOST_LIBS+=-lpthread
  LIBS=-lm
  ifndef CONFIG_WIN32
+-LIBS+=-ldl -lpthread
 +ifndef CONFIG_NETBSD
- LIBS+=-ldl
- endif
++LIBS+=-ldl
 +endif
++LIBS+=-lpthread
+ endif
+ LIBS+=$(EXTRA_LIBS)
  
- $(OBJDIR):
- 	mkdir -p $(OBJDIR) $(OBJDIR)/examples $(OBJDIR)/tests
-@@ -195,6 +209,9 @@ QJSC_DEFINES:=-DCONFIG_CC=\"$(QJSC_CC)\"
+@@ -205,6 +224,9 @@ QJSC_DEFINES:=-DCONFIG_CC=\"$(QJSC_CC)\"
  ifdef CONFIG_LTO
  QJSC_DEFINES+=-DCONFIG_LTO
  endif
Index: lang/quickjs/patches/patch-qjsc.c
===================================================================
RCS file: /cvsroot/pkgsrc/lang/quickjs/patches/patch-qjsc.c,v
retrieving revision 1.1
diff -u -p -r1.1 patch-qjsc.c
--- lang/quickjs/patches/patch-qjsc.c	14 Nov 2019 21:20:04 -0000	1.1
+++ lang/quickjs/patches/patch-qjsc.c	28 Jan 2022 13:43:05 -0000
@@ -2,7 +2,7 @@ $NetBSD: patch-qjsc.c,v 1.1 2019/11/14 2
 
 Portability patch for NetBSD.
 
---- qjsc.c.orig	2019-11-14 20:58:23.645680708 +0000
+--- qjsc.c.orig	2021-03-27 10:00:32.000000000 +0000
 +++ qjsc.c
 @@ -450,7 +450,9 @@ static int output_executable(const char 
               lib_dir, bn_suffix, lto_suffix);
@@ -11,6 +11,6 @@ Portability patch for NetBSD.
 +#ifdef CONFIG_LDL
      *arg++ = "-ldl";
 +#endif
+     *arg++ = "-lpthread";
      *arg = NULL;
      
-     if (verbose) {
Index: lang/quickjs/patches/patch-quickjs-libc.c
===================================================================
RCS file: /cvsroot/pkgsrc/lang/quickjs/patches/patch-quickjs-libc.c,v
retrieving revision 1.2
diff -u -p -r1.2 patch-quickjs-libc.c
--- lang/quickjs/patches/patch-quickjs-libc.c	10 May 2020 10:17:06 -0000	1.2
+++ lang/quickjs/patches/patch-quickjs-libc.c	28 Jan 2022 13:43:05 -0000
@@ -2,9 +2,18 @@ $NetBSD: patch-quickjs-libc.c,v 1.2 2020
 
 Portability patch for NetBSD.
 
---- quickjs-libc.c.orig	2020-04-12 13:18:13.000000000 +0000
+--- quickjs-libc.c.orig	2021-03-27 10:00:32.000000000 +0000
 +++ quickjs-libc.c
-@@ -1712,7 +1712,7 @@ static void os_signal_handler(int sig_nu
+@@ -675,6 +675,8 @@ static JSValue js_std_unsetenv(JSContext
+     return JS_UNDEFINED;
+ }
+ 
++extern char **environ; /* Needed at least for NetBSD-8.0-x86_64. */
++
+ /* return an object containing the list of the available environment
+    variables. */
+ static JSValue js_std_getenviron(JSContext *ctx, JSValueConst this_val,
+@@ -1912,7 +1914,7 @@ static void os_signal_handler(int sig_nu
      os_pending_signals |= ((uint64_t)1 << sig_num);
  }
  
@@ -13,12 +22,3 @@ Portability patch for NetBSD.
  typedef void (*sighandler_t)(int sig_num);
  #endif
  
-@@ -2442,6 +2442,8 @@ static int my_execvpe(const char *filena
-     return -1;
- }
- 
-+extern char **environ; /* Needed at least for NetBSD-8.0-x86_64. */
-+
- /* exec(args[, options]) -> exitcode */
- static JSValue js_os_exec(JSContext *ctx, JSValueConst this_val,
-                           int argc, JSValueConst *argv)
Index: lang/quickjs/patches/patch-quickjs.c
===================================================================
RCS file: /cvsroot/pkgsrc/lang/quickjs/patches/patch-quickjs.c,v
retrieving revision 1.2
diff -u -p -r1.2 patch-quickjs.c
--- lang/quickjs/patches/patch-quickjs.c	26 Jan 2020 18:37:49 -0000	1.2
+++ lang/quickjs/patches/patch-quickjs.c	28 Jan 2022 13:43:05 -0000
@@ -2,9 +2,9 @@ $NetBSD: patch-quickjs.c,v 1.2 2020/01/2
 
 Portability patch for NetBSD.
 
---- quickjs.c.orig	2020-01-19 10:12:01.000000000 +0000
+--- quickjs.c.orig	2021-03-27 10:00:32.000000000 +0000
 +++ quickjs.c
-@@ -68,7 +68,15 @@
+@@ -70,7 +70,15 @@
  /* define to include Atomics.* operations which depend on the OS
     threads */
  #if !defined(EMSCRIPTEN)
@@ -19,8 +19,8 @@ Portability patch for NetBSD.
 +#endif /* __NetBSD__ */
  #endif
  
- /* dump object free */
-@@ -1544,7 +1552,7 @@ static inline size_t js_def_malloc_usabl
+ #if !defined(EMSCRIPTEN)
+@@ -1680,7 +1688,7 @@ static inline size_t js_def_malloc_usabl
      return malloc_size(ptr);
  #elif defined(_WIN32)
      return _msize(ptr);
@@ -29,7 +29,7 @@ Portability patch for NetBSD.
      return 0;
  #elif defined(__linux__)
      return malloc_usable_size(ptr);
-@@ -1618,7 +1626,7 @@ static const JSMallocFunctions def_mallo
+@@ -1754,7 +1762,7 @@ static const JSMallocFunctions def_mallo
      malloc_size,
  #elif defined(_WIN32)
      (size_t (*)(const void *))_msize,



Home | Main Index | Thread Index | Old Index