pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/nodejs



Module Name:    pkgsrc
Committed By:   maya
Date:           Sun Nov 16 15:41:15 UTC 2025

Modified Files:
        pkgsrc/lang/nodejs: distinfo
Added Files:
        pkgsrc/lang/nodejs/patches: patch-deps_v8_src_strings_string-hasher.cc

Log Message:
nodejs: fix build on (netbsd, but probably other too) i386

_mm_cvtsi128_si64 is only available on x86_64, so limit it that way, not
based on SSE2.


To generate a diff of this commit:
cvs rdiff -u -r1.305 -r1.306 pkgsrc/lang/nodejs/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/lang/nodejs/patches/patch-deps_v8_src_strings_string-hasher.cc

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

Modified files:

Index: pkgsrc/lang/nodejs/distinfo
diff -u pkgsrc/lang/nodejs/distinfo:1.305 pkgsrc/lang/nodejs/distinfo:1.306
--- pkgsrc/lang/nodejs/distinfo:1.305   Fri Nov 14 13:47:00 2025
+++ pkgsrc/lang/nodejs/distinfo Sun Nov 16 15:41:15 2025
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.305 2025/11/14 13:47:00 wiz Exp $
+$NetBSD: distinfo,v 1.306 2025/11/16 15:41:15 maya Exp $
 
 BLAKE2s (node-v25.2.0.tar.xz) = 4b26063c45c59ee04c0c055d221a3d44736b023512efbabf7019d5a01d1a37e6
 SHA512 (node-v25.2.0.tar.xz) = 3cd5f2e69af4e6abc799494fe1044e50ba205d8f4b822a19a293a5cfa64407308af52821c30bec3d9d0a5fbfd28aa747156f2fd77410ef629cc5605e1f3767a5
@@ -15,6 +15,7 @@ SHA1 (patch-deps_v8_src_base_platform_se
 SHA1 (patch-deps_v8_src_base_strings.h) = 4d2b37491f2f74f1a573f8c1942790204e23a8bb
 SHA1 (patch-deps_v8_src_codegen_arm_cpu-arm.cc) = 84c75d61bc99c2ff9adeac3152f5b11ebb0e582b
 SHA1 (patch-deps_v8_src_common_globals.h) = 86637724864389f2b24251904de41669a2f00fbc
+SHA1 (patch-deps_v8_src_strings_string-hasher.cc) = 655d497ba45c073b79527b3733ecff4e6aab8ddf
 SHA1 (patch-deps_v8_third__party_abseil-cpp_absl_debugging_internal_elf__mem__image.cc) = 7ae7e0f012eb2c9e83a8fa60748ccf94af91189b
 SHA1 (patch-deps_v8_tools_profiling_run-llprof.sh) = b19994d3195cc97424a3cc2ffd3ae02eacc6ffa8
 SHA1 (patch-node.gypi) = 4a104dba6c22702211009bc60a6be6f87554e2fa

Added files:

Index: pkgsrc/lang/nodejs/patches/patch-deps_v8_src_strings_string-hasher.cc
diff -u /dev/null pkgsrc/lang/nodejs/patches/patch-deps_v8_src_strings_string-hasher.cc:1.1
--- /dev/null   Sun Nov 16 15:41:15 2025
+++ pkgsrc/lang/nodejs/patches/patch-deps_v8_src_strings_string-hasher.cc       Sun Nov 16 15:41:15 2025
@@ -0,0 +1,27 @@
+$NetBSD: patch-deps_v8_src_strings_string-hasher.cc,v 1.1 2025/11/16 15:41:15 maya Exp $
+
+Use the same conditional that compilers use to guard the definition of
+_mm_cvtsi128_si64
+
+Fixes build on i386.
+
+--- deps/v8/src/strings/string-hasher.cc.orig  2025-11-16 13:13:35.855946341 +0000
++++ deps/v8/src/strings/string-hasher.cc
+@@ -23,7 +23,7 @@ struct ConvertTo8BitHashReader {
+     DCHECK_LE(p[5], 0xff);
+     DCHECK_LE(p[6], 0xff);
+     DCHECK_LE(p[7], 0xff);
+-#ifdef __SSE2__
++#ifdef __x86_64__
+     __m128i x = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
+     return _mm_cvtsi128_si64(_mm_packus_epi16(x, x));
+ #elif defined(__ARM_NEON__)
+@@ -44,7 +44,7 @@ struct ConvertTo8BitHashReader {
+     DCHECK_LE(p[1], 0xff);
+     DCHECK_LE(p[2], 0xff);
+     DCHECK_LE(p[3], 0xff);
+-#ifdef __SSE2__
++#ifdef __x86_64__
+     __m128i x = _mm_loadu_si64(reinterpret_cast<const __m128i*>(p));
+     return _mm_cvtsi128_si64(_mm_packus_epi16(x, x));
+ #elif defined(__ARM_NEON__)



Home | Main Index | Thread Index | Old Index