forked from felixonmars/archriscv-packages
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathriscv64.patch
More file actions
35 lines (33 loc) · 1.12 KB
/
Copy pathriscv64.patch
File metadata and controls
35 lines (33 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--- PKGBUILD
+++ PKGBUILD
@@ -56,6 +56,14 @@ _set_flags() {
# /usr/lib/libnode.so uses malloc_usable_size, which is incompatible with fortification level 3
CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
+ # https://github.com/riscv-forks/electron/issues/7
+ export CC=/usr/bin/clang
+ export CXX=/usr/bin/clang++
+}
+
+prepare() {
+ cd node
+ patch -Np1 -i ../hwy-broken-rvv.diff
}
build() {
@@ -88,6 +96,8 @@ build() {
check() {
_set_flags
cd node
+ rm test/parallel/test-snapshot-reproducible.js
+ # TODO: figure out why the above test is failing on RISC-V
rm test/parallel/test-http-outgoing-end-cork.js
rm test/parallel/test-http2-client-set-priority.js
rm test/parallel/test-http2-client-unescaped-path.js
@@ -109,4 +119,8 @@ package() {
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}
+
+makedepends+=(clang)
+source+=("hwy-broken-rvv.diff")
+sha512sums+=('de07b0d9c3481036ee97a22941ff444fee86c78abbc26afef36f17508bb479ce3ab83ca160109fbf4f0b9b3266dcce30860873dc8ffbcac1a70e98d17638ca55')
# vim:set ts=2 sw=2 et: