lang/node: Unbreak i386

Patch from an ongoing discussion on the issue on github, hopefully to be
implemented upstream for the next release.

While here, switch to DIST_TUPLE to fetch qbit's node-pledge (proposed by
sthen@)

fix also tested by tb@, ok sthen@
This commit is contained in:
volker
2025-06-10 06:51:36 +00:00
parent 7bbd5215c3
commit 2d34b9422e
3 changed files with 19 additions and 13 deletions
+3 -11
View File
@@ -1,5 +1,3 @@
BROKEN-i386 = hangs in make fake in a tight loop using all of 1 core
ONLY_FOR_ARCHS = amd64 aarch64 i386 powerpc64 riscv64
DPB_PROPERTIES = parallel
@@ -8,16 +6,14 @@ USE_WXNEEDED = Yes
COMMENT = JavaScript runtime built on Chrome's V8 JavaScript engine
NODE_VERSION = v22.16.0
PLEDGE_VER = 1.1.3
DISTFILES = ${DISTNAME}-headers.tar.gz \
${DISTNAME}.tar.xz
DISTFILES.pledge = node-pledge-{}${PLEDGE_VER}.tar.gz
DIST_TUPLE = github qbit node-pledge 1.1.3 \
deps/npm/node_modules/node-pledge
DISTNAME = node-${NODE_VERSION}
PKGNAME = ${DISTNAME:S/v//g}
EPOCH = 0
SITES.pledge = https://github.com/qbit/node-pledge/archive/
REVISION = 0
CATEGORIES = lang devel
@@ -84,10 +80,6 @@ EOPENSSL_INC = ${LOCALBASE}/include/${EOPENSSL_VSN}
DEBUG_PACKAGES = ${BUILD_PACKAGES}
post-extract:
mv ${WRKDIR}/node-pledge-${PLEDGE_VER} \
${WRKSRC}/deps/npm/node_modules/node-pledge
pre-configure:
${SUBST_CMD} ${WRKDIST}/common.gypi \
${WRKDIST}/deps/npm/node_modules/node-gyp/lib/install.js \
+2 -2
View File
@@ -1,6 +1,6 @@
SHA256 (node-pledge-1.1.3.tar.gz) = fEaXvLg6hYEJ69K+mgQFizf8DiJY2/DtyFJB/pEanVU=
SHA256 (node-v22.16.0-headers.tar.gz) = pg5aVD+rXlEFUllIxZbUl0xhfzlgbO9265TDvx35oGw=
SHA256 (node-v22.16.0.tar.xz) = cgiU8yPlwawklo6yZ2ZgyQcw1xXLfwkL5xpmhmKhfDc=
SIZE (node-pledge-1.1.3.tar.gz) = 3167
SHA256 (qbit-node-pledge-1.1.3.tar.gz) = fEaXvLg6hYEJ69K+mgQFizf8DiJY2/DtyFJB/pEanVU=
SIZE (node-v22.16.0-headers.tar.gz) = 8732195
SIZE (node-v22.16.0.tar.xz) = 48547612
SIZE (qbit-node-pledge-1.1.3.tar.gz) = 3167
@@ -0,0 +1,14 @@
https://github.com/nodejs/node/issues/58569#issuecomment-2956492437
Index: tools/v8_gypfiles/abseil.gyp
--- tools/v8_gypfiles/abseil.gyp.orig
+++ tools/v8_gypfiles/abseil.gyp
@@ -1,4 +1,8 @@
{
+ 'variables': {
+ 'V8_ROOT': '../../deps/v8',
+ },
+ 'includes': ['toolchain.gypi', 'features.gypi'],
'targets': [
{
'target_name': 'abseil',