Date: Mon, 6 Oct 2025 19:30:55 GMT From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org Subject: git: 6e487f328a53 - 2025Q4 - lang/p5-JavaScript-QuickJS: Fix build after ce0601fbfa5fce9d43ef0ca9231ebfd82a166895 Message-ID: <202510061930.596JUteh012430@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch 2025Q4 has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=6e487f328a53aa0ccaee14058300d5707eaff3c2 commit 6e487f328a53aa0ccaee14058300d5707eaff3c2 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2025-10-06 10:13:33 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2025-10-06 19:30:43 +0000 lang/p5-JavaScript-QuickJS: Fix build after ce0601fbfa5fce9d43ef0ca9231ebfd82a166895 - Add BUILD_DEPENDS check Reference: https://github.com/bellard/quickjs/commit/f10ef299a6ab4c36c4162cc5840f128f74ec197c (cherry picked from commit 7ac9784f929d2dadc6798ad81ad1638206fb1a48) --- lang/p5-JavaScript-QuickJS/Makefile | 3 +- lang/p5-JavaScript-QuickJS/files/patch-QuickJS.xs | 45 +++++++++++++++++++++++ 2 files changed, 47 insertions(+), 1 deletion(-) diff --git a/lang/p5-JavaScript-QuickJS/Makefile b/lang/p5-JavaScript-QuickJS/Makefile index 121deca7bce4..1ccda1b456e1 100644 --- a/lang/p5-JavaScript-QuickJS/Makefile +++ b/lang/p5-JavaScript-QuickJS/Makefile @@ -14,7 +14,8 @@ LICENSE_COMB= dual BUILD_DEPENDS= p5-ExtUtils-MakeMaker-CPANfile>=0:devel/p5-ExtUtils-MakeMaker-CPANfile \ p5-File-Slurper>=0:devel/p5-File-Slurper \ - p5-File-Which>=0:sysutils/p5-File-Which + p5-File-Which>=0:sysutils/p5-File-Which \ + quickjs>=2025.04.26.20250709:lang/quickjs LIB_DEPENDS= libquickjs.so:lang/quickjs TEST_DEPENDS= p5-Test-Deep>=0:devel/p5-Test-Deep \ p5-Test-FailWarnings>=0:devel/p5-Test-FailWarnings \ diff --git a/lang/p5-JavaScript-QuickJS/files/patch-QuickJS.xs b/lang/p5-JavaScript-QuickJS/files/patch-QuickJS.xs index 546d51021497..75e224aabb8d 100644 --- a/lang/p5-JavaScript-QuickJS/files/patch-QuickJS.xs +++ b/lang/p5-JavaScript-QuickJS/files/patch-QuickJS.xs @@ -1,5 +1,6 @@ Obtained from: https://github.com/FGasper/p5-JavaScript-QuickJS/issues/13 https://github.com/FGasper/p5-JavaScript-QuickJS/tree/quickjs_2025_04 +Reference: https://github.com/bellard/quickjs/commit/f10ef299a6ab4c36c4162cc5840f128f74ec197c --- QuickJS.xs.orig 2024-02-12 14:21:20 UTC +++ QuickJS.xs @@ -14,3 +15,47 @@ Obtained from: https://github.com/FGasper/p5-JavaScript-QuickJS/issues/13 [JS_TAG_SYMBOL - JS_TAG_FIRST] = "symbol", [JS_TAG_MODULE - JS_TAG_FIRST] = "module", [JS_TAG_OBJECT - JS_TAG_FIRST] = "object", +@@ -649,7 +648,7 @@ static JSModuleDef *pqjs_module_loader(JSContext *ctx, + } + + static JSModuleDef *pqjs_module_loader(JSContext *ctx, +- const char *module_name, void *opaque) { ++ const char *module_name, void *opaque, JSValueConst attributes) { + char** module_base_path_p = (char**) opaque; + + char* module_base_path = *module_base_path_p; +@@ -666,10 +665,10 @@ static JSModuleDef *pqjs_module_loader(JSContext *ctx, + memcpy(real_path + base_path_len, module_name, module_name_len); + real_path[base_path_len + module_name_len] = 0; + +- moduledef = js_module_loader(ctx, real_path, NULL); ++ moduledef = js_module_loader(ctx, real_path, NULL, attributes); + } + else { +- moduledef = js_module_loader(ctx, module_name, NULL); ++ moduledef = js_module_loader(ctx, module_name, NULL, attributes); + } + + return moduledef; +@@ -751,7 +750,7 @@ _new (SV* classname_sv) + CODE: + JSRuntime *rt = JS_NewRuntime(); + JS_SetHostPromiseRejectionTracker(rt, js_std_promise_rejection_tracker, NULL); +- JS_SetModuleLoaderFunc(rt, NULL, js_module_loader, NULL); ++ JS_SetModuleLoaderFunc2(rt, NULL, js_module_loader, js_module_check_attributes, NULL); + + JSContext *ctx = _create_new_jsctx(aTHX_ rt); + +@@ -763,10 +762,11 @@ _new (SV* classname_sv) + .pid = getpid(), + }; + +- JS_SetModuleLoaderFunc( ++ JS_SetModuleLoaderFunc2( + rt, + NULL, + pqjs_module_loader, ++ js_module_check_attributes, + &pqjs->module_base_path + ); +home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510061930.596JUteh012430>
