Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updpatch: nodejs-lts-iron #3504

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions nodejs-lts-iron/riscv64.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- PKGBUILD
+++ PKGBUILD
@@ -11,7 +11,7 @@ license=(MIT)
@@ -11,16 +11,28 @@ license=(MIT)
# maybe revert back to openssl-1.1 or internal openssl
# https://github.com/nodejs/node/issues/47852
depends=(openssl zlib icu libuv c-ares brotli libnghttp2) # http-parser v8)
Expand All @@ -9,21 +9,30 @@
optdepends=('npm: nodejs package manager')
options=(!lto)
provides=("nodejs=$pkgver")
@@ -20,7 +20,13 @@ source=(${url}/dist/v${pkgver}/node-v${pkgver}.tar.xz)
conflicts=(nodejs)
-source=(${url}/dist/v${pkgver}/node-v${pkgver}.tar.xz)
+source=(${url}/dist/v${pkgver}/node-v${pkgver}.tar.xz
+ nodejs-51495.diff::https://github.com/nodejs/node/pull/51495.diff)
# https://nodejs.org/download/release/latest-iron/SHASUMS256.txt.asc
sha256sums=('32eb256eebd8cacd5574e6631e54b42be7ec8ebe25ad47a8ca685403bad15535')

-sha256sums=('31807ebeeeb049c53f1765e4a95aed69476a4b696dd100cb539ab668d7950b40')
+sha256sums=('31807ebeeeb049c53f1765e4a95aed69476a4b696dd100cb539ab668d7950b40'
+ '33e47be086c60f8937fb027f3f07582ac2e40b22bec03427f140244d415c1289')
+
+_set_compilation_env() {
+ export CC=/usr/bin/clang
+ export CXX=/usr/bin/clang++
+}
+
+prepare() {
+ patch -Np1 -d node-v$pkgver < nodejs-51495.diff
+}

build() {
+ _set_compilation_env
cd node-v${pkgver}

./configure \
@@ -46,6 +52,7 @@ check() {
@@ -46,6 +58,7 @@ check() {
}

package() {
Expand Down
Loading