From 2abbd3c3459e5dfe89068c2260507e89b7a4fc97 Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Sun, 20 Nov 2022 19:43:20 +0100 Subject: [PATCH] nodejs: update to 16.18.1. --- srcpkgs/nodejs/patches/cross-aarch64.patch | 29 ++++++++++++++++++++++ srcpkgs/nodejs/template | 6 ++--- 2 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/nodejs/patches/cross-aarch64.patch diff --git a/srcpkgs/nodejs/patches/cross-aarch64.patch b/srcpkgs/nodejs/patches/cross-aarch64.patch new file mode 100644 index 000000000000..3b96c87f2fdb --- /dev/null +++ b/srcpkgs/nodejs/patches/cross-aarch64.patch @@ -0,0 +1,29 @@ +From 4ac90c41065d338c4305cf6dc39e3084b21a7f79 Mon Sep 17 00:00:00 2001 +From: Michal Vasilek +Date: Sun, 20 Nov 2022 19:22:03 +0100 +Subject: [PATCH] Revert "build: enable pointer authentication for branch + protection on arm64" + +This reverts commit 938212f3e74a74d0b436941aa24e71425ff666c5. +--- + configure.py | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/configure.py b/configure.py +index d3192ca04c..2d049eb938 100755 +--- a/configure.py ++++ b/configure.py +@@ -1241,10 +1241,6 @@ def configure_node(o): + + o['variables']['want_separate_host_toolset'] = int(cross_compiling) + +- # Enable branch protection for arm64 +- if target_arch == 'arm64': +- o['cflags']+=['-msign-return-address=all'] +- + if options.node_snapshot_main is not None: + if options.shared: + # This should be possible to fix, but we will need to refactor the +-- +2.38.1 + diff --git a/srcpkgs/nodejs/template b/srcpkgs/nodejs/template index c2f4d4eb340f..64dde02a76fa 100644 --- a/srcpkgs/nodejs/template +++ b/srcpkgs/nodejs/template @@ -1,7 +1,7 @@ # Template file for 'nodejs' pkgname=nodejs -version=16.15.1 -revision=2 +version=16.18.1 +revision=1 # Need these for host v8 for torque, see https://github.com/nodejs/node/pull/21079 hostmakedepends="which pkg-config python3 libatomic-devel zlib-devel $(vopt_if icu icu-devel) $(vopt_if ssl openssl-devel) $(vopt_if libuv libuv-devel) @@ -15,7 +15,7 @@ maintainer="Enno Boland " license="MIT" homepage="https://nodejs.org/" distfiles="https://nodejs.org/dist/v${version}/node-v${version}.tar.gz" -checksum=308aee7149c4092a53c87c28ef49e23a8d1606119e79ae68333062e2a1f94208 +checksum=3d24c9c3a953afee43edc44569045eda56cd45cd58b0539922d17da62736189c python_version=3 build_options="ssl libuv icu nghttp2 cares"