mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-17 23:34:07 +00:00
community/nodejs: fix
This commit is contained in:
parent
20fca7b7e8
commit
350225651b
2 changed files with 2 additions and 39 deletions
|
@ -9,7 +9,6 @@
|
|||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - set config and gyp flags
|
||||
# - patch to link libatomic for v6
|
||||
|
||||
buildarch=28
|
||||
|
||||
|
@ -23,18 +22,8 @@ license=('MIT')
|
|||
depends=('openssl' 'zlib' 'icu' 'libuv' 'c-ares' 'libnghttp2') # 'http-parser' 'v8')
|
||||
makedepends=('python' 'procps-ng')
|
||||
optdepends=('npm: nodejs package manager')
|
||||
source=("nodejs-$pkgver.tar.gz::https://github.com/nodejs/node/archive/v$pkgver.tar.gz"
|
||||
'atomic.patch')
|
||||
sha512sums=('bee2ca82a4aa18cbeb0fbe1b798747a99ea9ee4d5376e06df54d7e0a7a2a98abef7db09dcfda69b8dbd1d2d8ec05af5233279cb57dcb31279aeb894dee0e1614'
|
||||
'3d7378b80a9729f5dd5c6c7446531244a67bd6021ccf6feb270af2b698d9bd2ff3c6bf84f8d0a6eb3671c59ea920de8ec081cac0b705236b474b61427f5c1e39')
|
||||
|
||||
prepare() {
|
||||
cd node-$pkgver
|
||||
|
||||
if [[ $CARCH == "armv6h" ]]; then
|
||||
patch -p0 -i ../atomic.patch
|
||||
fi
|
||||
}
|
||||
source=("nodejs-$pkgver.tar.gz::https://github.com/nodejs/node/archive/v$pkgver.tar.gz")
|
||||
sha512sums=('bee2ca82a4aa18cbeb0fbe1b798747a99ea9ee4d5376e06df54d7e0a7a2a98abef7db09dcfda69b8dbd1d2d8ec05af5233279cb57dcb31279aeb894dee0e1614')
|
||||
|
||||
build() {
|
||||
cd node-$pkgver
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
--- node.gyp.orig 2019-10-14 05:32:27.370777519 -0600
|
||||
+++ node.gyp 2019-10-14 05:39:18.842470025 -0600
|
||||
@@ -314,6 +314,12 @@
|
||||
'deps/v8/include'
|
||||
],
|
||||
|
||||
+ 'link_settings': {
|
||||
+ 'libraries': [
|
||||
+ '-latomic',
|
||||
+ ],
|
||||
+ },
|
||||
+
|
||||
'sources': [
|
||||
'src/node_main.cc'
|
||||
],
|
||||
--- tools/v8_gypfiles/v8.gyp.orig 2019-10-14 05:32:59.750753410 -0600
|
||||
+++ tools/v8_gypfiles/v8.gyp 2019-10-14 05:39:18.842470025 -0600
|
||||
@@ -795,7 +795,7 @@
|
||||
}],
|
||||
# Platforms that don't have Compare-And-Swap (CAS) support need to link atomic library
|
||||
# to implement atomic memory access
|
||||
- ['v8_current_cpu in ["mips", "mipsel", "mips64", "mips64el", "ppc"]', {
|
||||
+ ['v8_current_cpu in ["mips", "mipsel", "mips64", "mips64el", "ppc", "arm"]', {
|
||||
'link_settings': {
|
||||
'libraries': ['-latomic', ],
|
||||
},
|
Loading…
Reference in a new issue