community/nodejs: v6 fix

This commit is contained in:
Kevin Mihelich 2018-08-16 23:15:23 +00:00
parent 9d8d44fe8a
commit 162cbd50d8
2 changed files with 24 additions and 2 deletions

View file

@ -10,6 +10,7 @@
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org> # ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - set config and gyp flags # - set config and gyp flags
# - patch to link libatomic for v6
buildarch=28 buildarch=28
@ -23,8 +24,10 @@ license=('MIT')
depends=('openssl' 'zlib' 'icu' 'libuv' 'http-parser' 'c-ares' 'libnghttp2') # 'v8') depends=('openssl' 'zlib' 'icu' 'libuv' 'http-parser' 'c-ares' 'libnghttp2') # 'v8')
makedepends=('python2' 'procps-ng') makedepends=('python2' 'procps-ng')
optdepends=('npm: nodejs package manager') optdepends=('npm: nodejs package manager')
source=("nodejs-$pkgver.tar.gz::https://github.com/nodejs/node/archive/v$pkgver.tar.gz") source=("nodejs-$pkgver.tar.gz::https://github.com/nodejs/node/archive/v$pkgver.tar.gz"
sha512sums=('43eae2d23eb9326ce9f248dcf136151dcbd1ccdf557ab8bce7b96cb2b330a4817eddeadb0460bdd8d468e67d480a2ef781a96c0e8e0e35a8900764484e55f0a1') 'atomic.patch')
sha512sums=('43eae2d23eb9326ce9f248dcf136151dcbd1ccdf557ab8bce7b96cb2b330a4817eddeadb0460bdd8d468e67d480a2ef781a96c0e8e0e35a8900764484e55f0a1'
'fa6d8a03f397b170353cdf2ca6578b5173d1cbc1f588e404e5aab1e34c05d99ad4fe2f1cf28cbbeb3bf8b7563960f37f9469c312484bdbe41c20d6fe05121c95')
prepare() { prepare() {
cd node-$pkgver cd node-$pkgver
@ -38,6 +41,10 @@ prepare() {
-e 's_^\(.*\)python\( \+-c \+.*\)$_\1python2\2_'\ -e 's_^\(.*\)python\( \+-c \+.*\)$_\1python2\2_'\
-e "s_'python'_'python2'_" -i {} \; -e "s_'python'_'python2'_" -i {} \;
find test/ -type f -exec sed 's_python _python2 _' -i {} \; find test/ -type f -exec sed 's_python _python2 _' -i {} \;
if [[ $CARCH == "armv6h" ]]; then
patch -p0 -i ../atomic.patch
fi
} }
build() { build() {

View file

@ -0,0 +1,15 @@
--- node.gyp.orig 2018-08-16 12:34:32.110341767 -0600
+++ node.gyp 2018-08-16 12:35:47.914941800 -0600
@@ -320,6 +320,12 @@
'<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
],
+ 'link_settings': {
+ 'libraries': [
+ '-latomic',
+ ],
+ },
+
'sources': [
'src/async_wrap.cc',
'src/bootstrapper.cc',