[arch-commits] Commit in nodejs/trunk (2 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Wed Oct 20 22:53:35 UTC 2021


    Date: Wednesday, October 20, 2021 @ 22:53:35
  Author: foutrelis
Revision: 1031571

upgpkg: nodejs 17.0.0-2: include missing v8 headers

Added:
  nodejs/trunk/build-include-missing-V8-headers.patch
Modified:
  nodejs/trunk/PKGBUILD

----------------------------------------+
 PKGBUILD                               |   10 +++++-
 build-include-missing-V8-headers.patch |   46 +++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-10-20 22:52:46 UTC (rev 1031570)
+++ PKGBUILD	2021-10-20 22:53:35 UTC (rev 1031571)
@@ -9,7 +9,7 @@
 
 pkgname=nodejs
 pkgver=17.0.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Evented I/O for V8 javascript'
 arch=('x86_64')
 url='https://nodejs.org/'
@@ -18,12 +18,18 @@
 makedepends=('python' 'procps-ng')
 optdepends=('npm: nodejs package manager')
 source=("https://github.com/nodejs/node/archive/v$pkgver/nodejs-$pkgver.tar.gz"
+        build-include-missing-V8-headers.patch
         system-c-ares.patch)
 sha512sums=('d58b208e4e0be182aaa18278fd3696b7a59288bd26d8c7413fa39af974d3446319087d0ea134b5bb10308a3901b93d4814483d8b64e84599ce23be0c774ead7d'
+            'a15b67f594e082c8d2c1048d5f2859da9c5aa37a259c8020bb0db092822852f0cf28810c99e372fd7dbfdd812b9983f92be59279813acbd77d966b4ac5ee5e93'
             'bca85b5a4622b38f20f3787bdb2784db76cd4b213fadf8a5813a375080e7481c4aff7556712d59df3e19849a7eb6b2f048a69b4e2162cb717ab1b3a791d2558e')
 
 prepare() {
-  patch -d node-$pkgver -Rp1 < system-c-ares.patch
+  cd node-$pkgver
+  patch -Rp1 -i ../system-c-ares.patch
+
+  # https://github.com/nodejs/node/issues/40529
+  patch -Np1 -i ../build-include-missing-V8-headers.patch
 }
 
 build() {

Added: build-include-missing-V8-headers.patch
===================================================================
--- build-include-missing-V8-headers.patch	                        (rev 0)
+++ build-include-missing-V8-headers.patch	2021-10-20 22:53:35 UTC (rev 1031571)
@@ -0,0 +1,46 @@
+From 3f033556c39933464c960459aadc97e4d777eb4e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= <targos at protonmail.com>
+Date: Tue, 19 Oct 2021 22:50:35 +0200
+Subject: [PATCH] build: include missing V8 headers in distribution
+
+Fixes: https://github.com/nodejs/Release/issues/704
+
+PR-URL: https://github.com/nodejs/node/pull/40526
+Fixes: https://github.com/nodejs/node/issues/40529
+Reviewed-By: Richard Lau <rlau at redhat.com>
+Reviewed-By: Michael Dawson <midawson at redhat.com>
+---
+ tools/install.py | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/tools/install.py b/tools/install.py
+index 0c3ca355f9b9..12512a983ecb 100755
+--- a/tools/install.py
++++ b/tools/install.py
+@@ -176,14 +176,18 @@ def wanted_v8_headers(files_arg, dest):
+       'deps/v8/include/libplatform/v8-tracing.h',
+       'deps/v8/include/v8.h',
+       'deps/v8/include/v8-array-buffer.h',
++      'deps/v8/include/v8-callbacks.h',
+       'deps/v8/include/v8-container.h',
+       'deps/v8/include/v8-context.h',
+       'deps/v8/include/v8-data.h',
+       'deps/v8/include/v8-date.h',
+       'deps/v8/include/v8-debug.h',
++      'deps/v8/include/v8-embedder-heap.h',
+       'deps/v8/include/v8-exception.h',
+       'deps/v8/include/v8-extension.h',
+       'deps/v8/include/v8-external.h',
++      'deps/v8/include/v8-forward.h',
++      'deps/v8/include/v8-function-callback.h',
+       'deps/v8/include/v8-function.h',
+       'deps/v8/include/v8-initialization.h',
+       'deps/v8/include/v8-internal.h',
+@@ -216,6 +220,7 @@ def wanted_v8_headers(files_arg, dest):
+       'deps/v8/include/v8-value.h',
+       'deps/v8/include/v8-version.h',
+       'deps/v8/include/v8-wasm.h',
++      'deps/v8/include/v8-weak-callback-info.h',
+       'deps/v8/include/v8config.h',
+     ]
+     files_arg = [name for name in files_arg if name in v8_headers]



More information about the arch-commits mailing list