nodejs-lts: Avoid statx syscall (fixes #3915)
This commit is contained in:
parent
832855a724
commit
af0c1a6f66
@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://nodejs.org/
|
||||
TERMUX_PKG_DESCRIPTION="Platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications"
|
||||
TERMUX_PKG_LICENSE="MIT"
|
||||
TERMUX_PKG_VERSION=10.16.0
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_SHA256=18e37f891d10ea7fbc8f6410c444c2b1d9cc3cbbb1d35aa9c41f761816956608
|
||||
TERMUX_PKG_SRCURL=https://nodejs.org/dist/v${TERMUX_PKG_VERSION}/node-v${TERMUX_PKG_VERSION}.tar.xz
|
||||
# Note that we do not use a shared libuv to avoid an issue with the Android
|
||||
|
20
packages/nodejs-lts/deps-uv-src-unix-linux-syscalls.c.patch
Normal file
20
packages/nodejs-lts/deps-uv-src-unix-linux-syscalls.c.patch
Normal file
@ -0,0 +1,20 @@
|
||||
--- ../linux-syscalls.c.orig 2019-04-01 12:59:57.770124746 +0000
|
||||
+++ ./deps/uv/src/unix/linux-syscalls.c 2019-04-01 13:00:38.703457159 +0000
|
||||
@@ -187,7 +187,7 @@
|
||||
# endif
|
||||
#endif /* __NR_pwritev */
|
||||
|
||||
-#ifndef __NR_statx
|
||||
+#if !defined(__NR_statx) && !defined(__ANDROID__)
|
||||
# if defined(__x86_64__)
|
||||
# define __NR_statx 332
|
||||
# elif defined(__i386__)
|
||||
@@ -358,7 +358,7 @@
|
||||
int flags,
|
||||
unsigned int mask,
|
||||
struct uv__statx* statxbuf) {
|
||||
-#if defined(__NR_statx)
|
||||
+#if defined(__NR_statx) && !defined(__ANDROID__)
|
||||
return syscall(__NR_statx, dirfd, path, flags, mask, statxbuf);
|
||||
#else
|
||||
return errno = ENOSYS, -1;
|
Loading…
Reference in New Issue
Block a user