Skip to content

Commit b3350bd

Browse files
committed
upgpatch: nodejs 21.1.0-1
- Fix v8 compilation errors, upstreamed to nodejs: nodejs/node#50552 - Remove the `-fno-strict-aliasing` flag addition. The relevant error no longer occurs. Actually, we never do this to nodejs-lts-hydrogen after nodejs 18 is packaged as nodejs-lts-hydrogen.
1 parent 094ca37 commit b3350bd

1 file changed

Lines changed: 15 additions & 14 deletions

File tree

nodejs/riscv64.patch

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
--- PKGBUILD
22
+++ PKGBUILD
3-
@@ -40,12 +40,13 @@ build() {
4-
# --shared-v8
5-
# --shared-http-parser
3+
@@ -19,8 +19,14 @@ options=(!lto)
4+
depends=('brotli' 'openssl' 'zlib' 'icu' 'libuv' 'libnghttp2' 'c-ares') # 'http-parser' 'v8')
5+
makedepends=('git' 'python' 'procps-ng')
6+
optdepends=('npm: nodejs package manager')
7+
-source=("git+https://github.com/nodejs/node.git#commit=$_commit")
8+
-sha512sums=('SKIP')
9+
+source=("git+https://github.com/nodejs/node.git#commit=$_commit"
10+
+ "node21-fix-v8.patch::https://github.com/nodejs/node/pull/50551.diff")
11+
+sha512sums=('SKIP'
12+
+ '97b47d493b3364695c150c5ba8e5991f5009260cc8c4931da7fd324bb0129b0f04b6fad73ffe156150a76a621b6f13d13dab8640fc4aa9499d19db2ac66411e0')
13+
+
14+
+prepare() {
15+
+ patch -Np1 -d node < node21-fix-v8.patch
16+
+}
617

7-
- make
8-
+ # -fno-strict-aliasing for gcc>=10: https://github.com/nodejs/node/issues/33899
9-
+ make CFLAGS="-fno-strict-aliasing $CFLAGS" CXXFLAGS="-fno-strict-aliasing $CXXFLAGS"
10-
}
11-
12-
check() {
18+
build() {
1319
cd node
14-
- make test || :
15-
+ make CFLAGS="-fno-strict-aliasing $CFLAGS" CXXFLAGS="-fno-strict-aliasing $CXXFLAGS" test || :
16-
}
17-
18-
package() {

0 commit comments

Comments
 (0)