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

[pull] master from coolsnowwolf:master #10

Open
wants to merge 108 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
660c43b
Update Makefile
xcf13363175 Oct 2, 2024
9ff1461
Merge pull request #858 from xcf13363175/master
coolsnowwolf Oct 4, 2024
d3f6a44
Revert "zerotier: referesh patches and merge other upstream changes"
coolsnowwolf Oct 4, 2024
f335904
update lxc
Potterli20 Oct 7, 2024
328bd0f
mosdns: bump version
coolsnowwolf Oct 9, 2024
1be790c
haveged: Update to 1.9.19 (#862)
BROBIRD Oct 11, 2024
c03cdcb
v2raya: add package
coolsnowwolf Oct 18, 2024
07ee398
sing-box: add package
coolsnowwolf Oct 18, 2024
5e161cb
dns2tcp: add package
coolsnowwolf Oct 18, 2024
4bdec02
ddns-go: add package
coolsnowwolf Oct 18, 2024
741eb43
rust: update to 1.80.1
coolsnowwolf Oct 19, 2024
d170536
minieap: add package
coolsnowwolf Oct 19, 2024
fff9266
daed: add package
coolsnowwolf Oct 19, 2024
a504021
xray-core: revert to 1.8.24
coolsnowwolf Oct 20, 2024
c4eec2a
tailscale: bump to v1.76.1
coolsnowwolf Oct 22, 2024
982dbed
xray-core: update to 24.10.16
coolsnowwolf Oct 26, 2024
b99b66a
frpc: add anonymous proxy config support
coolsnowwolf Oct 26, 2024
058f961
ddns-scripts: bump version
coolsnowwolf Oct 28, 2024
7714206
dmx_usb_module: fix kernel 6.6 build
coolsnowwolf Oct 29, 2024
b784740
gl-mifi-mcu: remove package
coolsnowwolf Oct 30, 2024
afd1758
haproxy: revert to v2.8.5
coolsnowwolf Oct 31, 2024
0fa76a3
ddns-go: update to v6.7.6
coolsnowwolf Nov 6, 2024
00fb8ee
cloudflared: bump to latest
coolsnowwolf Nov 5, 2024
98b47a0
ddns-scripts: fix cloudflare v4 script
coolsnowwolf Nov 9, 2024
1c38018
uugamebooster: update version
coolsnowwolf Nov 12, 2024
7b5a8f4
jool: add hotplug script to disable fraglist GRO
coolsnowwolf Nov 14, 2024
cf62b54
libpfring: bump version
coolsnowwolf Nov 14, 2024
d58e68a
ddns-scripts: fix cloudflare.com-v4 for lua luci
coolsnowwolf Nov 15, 2024
3c01d86
swanmon: add package
coolsnowwolf Nov 15, 2024
5d26376
davici: add package
coolsnowwolf Nov 15, 2024
3c2b3bd
forked-daapd: add package
coolsnowwolf Nov 15, 2024
4832dc4
oscam: add package
coolsnowwolf Nov 16, 2024
0ad6c23
ffmpeg: update to 5.1.4
coolsnowwolf Nov 17, 2024
af8cff2
lxc: update to 6.0.2
coolsnowwolf Nov 20, 2024
d822390
xtables-addons: fix kernel 6.12 support
coolsnowwolf Nov 22, 2024
2263fd5
mdio-tools: add package
coolsnowwolf Nov 22, 2024
95fa4ae
speedtest-go: update to 1.7.9 (#869)
teleostnacl Nov 28, 2024
97ab90b
rblibtorrent: update to v1.2.19
coolsnowwolf Nov 28, 2024
8fee5c5
socat: update to 1.8.0.0
coolsnowwolf Nov 29, 2024
dd09edd
xray-core: update to 24.11.30
coolsnowwolf Nov 30, 2024
33b43c2
libs/glib2: update to 2.82.0
coolsnowwolf Dec 3, 2024
5c4514c
zmq: update to 4.3.5
coolsnowwolf Dec 4, 2024
45df3be
Revert "libs/glib2: update to 2.82.0"
coolsnowwolf Dec 4, 2024
d2a8028
xupnpd: ignore init script install
coolsnowwolf Dec 4, 2024
d2dcd55
libtins: update to 4.5
coolsnowwolf Dec 4, 2024
eac3fc6
php7: drop package
coolsnowwolf Dec 4, 2024
fa0c2be
liburing: update to 2.7
coolsnowwolf Dec 4, 2024
69a0490
ksmbd-tools: bump version
coolsnowwolf Dec 6, 2024
5cc3192
xfrpc: bump to 3.05.661
coolsnowwolf Dec 7, 2024
b35738e
node: bump to v22.x
coolsnowwolf Dec 7, 2024
833fc95
node: add v22.x openssl dependence
coolsnowwolf Dec 7, 2024
a8ec879
vlmcsd: fixes build with gcc 13
aiamadeus Nov 30, 2024
ab98ad3
ddns-go: update to 6.7.7 (#872)
Internet1235 Dec 10, 2024
9c97054
screen: update to 4.9.1 (#874)
Miko-5 Dec 10, 2024
e24ff4d
screen: remove outdate patch (#877)
Miko-5 Dec 10, 2024
7af03ce
alist: update to 3.39.2 (#875)
Internet1235 Dec 11, 2024
06c4e87
bind: bump to 9.20.0 (#873)
Miko-5 Dec 11, 2024
d6a6587
ariang: update to v1.3.8
Internet1235 Dec 12, 2024
9ddc28b
Merge pull request #881 from Internet1235/ariang
coolsnowwolf Dec 12, 2024
b0637eb
bind: update to v9.20.4
coolsnowwolf Dec 12, 2024
cbcfb5e
cloudflared: update to 2024.12.1
Internet1235 Dec 12, 2024
f0f2274
alist: update to 3.41.0 (#883)
Internet1235 Dec 15, 2024
10f7be2
Merge pull request #882 from Internet1235/cloudflared
coolsnowwolf Dec 20, 2024
01e5467
zerotier: update to 1.14.2
coolsnowwolf Dec 20, 2024
0860b02
xr_usb_serial_common: fix build with linux 6.12
coolsnowwolf Dec 23, 2024
c7ede5d
cloudflared: Update to 2024.12.2
Internet1235 Dec 27, 2024
078205a
golang: Update to 1.23.4
Internet1235 Dec 29, 2024
2e5f59a
iperf: bump to 2.2.1
Internet1235 Jan 7, 2025
d94f63d
curl: update to 8.11.1
lwb1978 Jan 9, 2025
7af34f4
golang: Optimized values to suit golang 1.23
Internet1235 Jan 11, 2025
76995ab
ctop: Drop unused variable
Internet1235 Jan 12, 2025
79599d8
apcupsd: fix gcc 13 compliation error
Internet1235 Jan 18, 2025
38bc476
Merge pull request #889 from Internet1235/apcupsd
coolsnowwolf Jan 19, 2025
663fe53
Merge pull request #888 from Internet1235/golang
coolsnowwolf Jan 19, 2025
9e282d1
Merge pull request #887 from lwb1978/master
coolsnowwolf Jan 19, 2025
7e5f020
Merge pull request #884 from Internet1235/cloudflared
coolsnowwolf Jan 19, 2025
066f927
Merge pull request #885 from Internet1235/iperf-2.2.1
coolsnowwolf Jan 19, 2025
b8546f7
irqbalance: update to version 1.9.4
coolsnowwolf Jan 19, 2025
c31d696
rust: update to 1.84.0
Internet1235 Jan 24, 2025
ac5ec89
Merge pull request #890 from Internet1235/rust
coolsnowwolf Jan 24, 2025
2084f08
ddns-go: update to 6.8.1
Internet1235 Jan 25, 2025
e78250b
utils/lrzsz: fix PKG_CPE_ID
ffontaine Feb 1, 2024
7ff0488
lrzsz: fix random build failures by really disabling autofoo
ynezz Dec 12, 2024
32114c0
miniupnpd: compatible with js luci
coolsnowwolf Jan 27, 2025
59a9ef2
alist: update to v3.42.0
Internet1235 Jan 29, 2025
0a4a0a3
Merge pull request #892 from cuiyf5516/master
coolsnowwolf Jan 31, 2025
6c9d97f
Merge pull request #894 from Internet1235/alist-3.42.0
coolsnowwolf Feb 2, 2025
1a79669
Merge pull request #893 from Internet1235/ddns-go-6.8.1
coolsnowwolf Feb 2, 2025
b4aa5e7
iperf: update to 3.18
Internet1235 Feb 3, 2025
aa040ad
speedtest-go: update to 1.7.10
Internet1235 Feb 3, 2025
b7c4407
In kernel version 6.8 and above, nfsd has deprecated the CONFIG_NFSD_…
unifreq Feb 4, 2025
ffae403
golang: update to 1.23.6
Internet1235 Feb 5, 2025
092966d
cloudflared: bump to 2025.2.0
Internet1235 Feb 4, 2025
1c8c65b
rclone: bump to 1.69.0
Internet1235 Feb 4, 2025
47b3bcf
Merge pull request #898 from Internet1235/golang
coolsnowwolf Feb 6, 2025
fd122a9
Merge pull request #900 from Internet1235/rclone
coolsnowwolf Feb 6, 2025
b725c6b
Merge pull request #899 from Internet1235/cloudflared
coolsnowwolf Feb 6, 2025
71f5453
Merge pull request #897 from unifreq/master
coolsnowwolf Feb 6, 2025
41def5a
Merge pull request #896 from Internet1235/iperf3
coolsnowwolf Feb 6, 2025
05702ed
Merge pull request #895 from Internet1235/speedtest-go
coolsnowwolf Feb 6, 2025
a25e98f
node: bump v20 to 20.18.2
coolsnowwolf Feb 6, 2025
8069d99
c-ares: update to 1.33.1
coolsnowwolf Feb 6, 2025
5d275f5
dockerd: refactoring uciadd and ucidel handling
coolsnowwolf Feb 6, 2025
74abe2d
openssh: update to 9.9p1
unifreq Feb 7, 2025
778fe73
libgpiod: update to 1.6.5
unifreq Feb 7, 2025
6a69eb1
Revert "In kernel version 6.8 and above, nfsd has deprecated the CONF…
coolsnowwolf Feb 8, 2025
da8a3b6
Merge pull request #901 from unifreq/master
coolsnowwolf Feb 8, 2025
db36de0
geoview: add package
coolsnowwolf Feb 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
39 changes: 39 additions & 0 deletions kernel/mdio-netlink/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk

PKG_NAME:=mdio-netlink
PKG_VERSION:=1.3.1
PKG_RELEASE:=2

PKG_SOURCE_URL:=https://github.com/wkz/mdio-tools
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=f74eaf38dbda441df4fcaeb21ca4465957953a2f
PKG_MIRROR_HASH:=97dfd25d8cdf5994eeb8cb0a5862c993b8aef373b280bca567d41d4113f494a9

PKG_LICENSE:=GPL-2.0-only
PKG_LICENSE_FILES:=COPYING

PKG_MAINTAINER:=Damien Mascord <[email protected]>

include $(INCLUDE_DIR)/package.mk

define KernelPackage/mdio-netlink
SECTION:=kernel
CATEGORY:=Kernel modules
SUBMENU:=Network Support
TITLE:=mdio-netlink Linux MDIO netlink kernel module
KCONFIG:=CONFIG_PHYLIB=y CONFIG_MDIO_BUS=y
URL:=https://github.com/wkz/mdio-tools.git
FILES:=$(PKG_BUILD_DIR)/kernel/mdio-netlink.ko
AUTOLOAD:=$(call AutoProbe,mdio-netlink)
endef

define KernelPackage/mdio-netlink/description
mdio-netlink Linux MDIO netlink kernel module
endef

define Build/Compile
$(KERNEL_MAKE) M=$(PKG_BUILD_DIR)/kernel modules
endef

$(eval $(call KernelPackage,mdio-netlink))
2 changes: 1 addition & 1 deletion lang/golang/golang-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ build() {
if [ "$GO_GO_GENERATE" = 1 ]; then
log "Calling go generate"
# shellcheck disable=SC2086
GOOS='' GOARCH='' GO386='' GOARM='' GOMIPS='' GOMIPS64='' \
GOOS='' GOARCH='' GO386='' GOARM='' GOARM64='' GOMIPS='' GOMIPS64='' GORISCV64='' \
go generate -v $targets
log
fi
Expand Down
9 changes: 3 additions & 6 deletions lang/golang/golang-compiler.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,11 @@ define GoCompiler/Default/CheckHost
endef

# $(1) source go root
# $(2) destination prefix
# $(3) go version id
# $(4) additional environment variables (optional)
# $(2) additional environment variables (optional)
define GoCompiler/Default/Make
( \
cd "$(1)/src" ; \
$(if $(2),GOROOT_FINAL="$(2)/lib/go-$(3)") \
$(4) \
$(2) \
$(BASH) make.bash \
$(if $(findstring s,$(OPENWRT_VERBOSE)),-v) \
--no-banner \
Expand Down Expand Up @@ -156,7 +153,7 @@ define GoCompiler/AddProfile

# $$(1) additional environment variables (optional)
define GoCompiler/$(1)/Make
$$(call GoCompiler/Default/Make,$(2),$(3),$(4),$$(1))
$$(call GoCompiler/Default/Make,$(2),$$(1))
endef

# $$(1) override install prefix (optional)
Expand Down
2 changes: 2 additions & 0 deletions lang/golang/golang-values.mk
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@ unexport \
# Architecture-specific environment variables:
unexport \
GOARM \
GOARM64 \
GO386 \
GOAMD64 \
GOMIPS \
GOMIPS64 \
GOPPC64 \
GORISCV64 \
GOWASM

# Environment variables for use with code coverage:
Expand Down
9 changes: 4 additions & 5 deletions lang/golang/golang/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

include $(TOPDIR)/rules.mk

GO_VERSION_MAJOR_MINOR:=1.22
GO_VERSION_PATCH:=7
GO_VERSION_MAJOR_MINOR:=1.23
GO_VERSION_PATCH:=6

PKG_NAME:=golang
PKG_VERSION:=$(GO_VERSION_MAJOR_MINOR)$(if $(GO_VERSION_PATCH),.$(GO_VERSION_PATCH))
Expand All @@ -20,7 +20,7 @@ GO_SOURCE_URLS:=https://dl.google.com/go/ \

PKG_SOURCE:=go$(PKG_VERSION).src.tar.gz
PKG_SOURCE_URL:=$(GO_SOURCE_URLS)
PKG_HASH:=66432d87d85e0cfac3edffe637d5930fc4ddf5793313fe11e4a0f333023c879f
PKG_HASH:=039c5b04e65279daceee8a6f71e70bd05cf5b801782b6f77c6e19e2ed0511222

PKG_MAINTAINER:=Jeffery To <[email protected]>
PKG_LICENSE:=BSD-3-Clause
Expand All @@ -35,7 +35,6 @@ PKG_BUILD_FLAGS:=no-mips16

PKG_GO_PREFIX:=/usr
PKG_GO_VERSION_ID:=$(GO_VERSION_MAJOR_MINOR)
PKG_GO_ROOT:=$(PKG_GO_PREFIX)/lib/go-$(PKG_GO_VERSION_ID)

HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/go-$(PKG_VERSION)
HOST_BUILD_PARALLEL:=1
Expand Down Expand Up @@ -66,6 +65,7 @@ HOST_GO_VALID_OS_ARCH:= \
wasip1_wasm \
\
freebsd_riscv64 \
openbsd_riscv64 \
\
linux_ppc64 linux_ppc64le \
linux_mips linux_mipsle linux_mips64 linux_mips64le \
Expand Down Expand Up @@ -395,7 +395,6 @@ define Build/Compile
cd "$(PKG_BUILD_DIR)/bin" ; \
export $(GO_PKG_TARGET_VARS) ; \
$(CP) go go-host ; \
GOROOT_FINAL="$(PKG_GO_ROOT)" \
GO_GCC_HELPER_CC="$(TARGET_CC)" \
GO_GCC_HELPER_CXX="$(TARGET_CXX)" \
$(PKG_GO_VARS) \
Expand Down
21 changes: 16 additions & 5 deletions lang/node/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=node

ifeq ($(CONFIG_NODEJS_22),y)
PKG_VERSION:=v22.13.1
PKG_RELEASE:=1
PKG_HASH:=cfce282119390f7e0c2220410924428e90dadcb2df1744c0c4a0e7baae387cc2
PATCH_DIR:=./patches/v22.x
else
ifeq ($(CONFIG_NODEJS_20),y)
PKG_VERSION:=v20.12.2
PKG_VERSION:=v20.18.2
PKG_RELEASE:=1
PKG_HASH:=d7cbcc5fbfb31e9001f3f0150bbeda59abe5dd7137aaa6273958cd59ce35ced7
PKG_HASH:=69bf81b70f3a95ae0763459f02860c282d7e3a47567c8afaf126cc778176a882
PATCH_DIR:=./patches/v20.x
else
ifeq ($(CONFIG_NODEJS_18),y)
Expand Down Expand Up @@ -38,6 +44,7 @@ endif
endif
endif
endif
endif

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://nodejs.org/dist/$(PKG_VERSION)
Expand Down Expand Up @@ -66,7 +73,7 @@ define Package/node
TITLE:=Node.js is a platform built on Chrome's JavaScript runtime
URL:=https://nodejs.org/
DEPENDS:=@(HAS_FPU||KERNEL_MIPS_FPU_EMULATOR||SOFT_FLOAT) @!arc @!armeb @!powerpc \
+libstdcpp +(NODEJS_18||NODEJS_20):libopenssl +zlib +libnghttp2 +libuv \
+libstdcpp +(NODEJS_18||NODEJS_20||NODEJS_22):libopenssl +zlib +libnghttp2 +libuv \
+libcares +libatomic +NODEJS_ICU_SYSTEM:icu +NODEJS_ICU_SYSTEM:icu-full-data
endef

Expand Down Expand Up @@ -101,7 +108,7 @@ define Package/node/config
choice
prompt "Version Selection"
default NODEJS_12 if mips||mipsel||mips64||mips64el
default NODEJS_18
default NODEJS_20
help
Select node.js version.
The host package version is also the same.
Expand All @@ -124,6 +131,10 @@ define Package/node/config
config NODEJS_20
depends on !(mips||mipsel||mips64||mips64el)
bool "20.x Active LTS"

config NODEJS_22
depends on !(mips||mipsel||mips64||mips64el)
bool "22.x Active LTS"
endchoice

if PACKAGE_node
Expand Down Expand Up @@ -178,7 +189,7 @@ CONFIGURE_ARGS:= \
--dest-os=linux \
--cross-compiling \
--shared-zlib \
$(if $(CONFIG_NODEJS_18),--shared-openssl) \
--shared-openssl \
--shared-nghttp2 \
--shared-cares \
--with-intl=$(if $(CONFIG_NODEJS_ICU_SMALL),small-icu,$(if $(CONFIG_NODEJS_ICU_SYSTEM),system-icu,none)) \
Expand Down
2 changes: 1 addition & 1 deletion lang/node/patches/v20.x/003-path.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/lib/internal/modules/cjs/loader.js
+++ b/lib/internal/modules/cjs/loader.js
@@ -1529,7 +1529,8 @@ Module._initPaths = function() {
@@ -1650,7 +1650,8 @@ Module._initPaths = function() {
path.resolve(process.execPath, '..') :
path.resolve(process.execPath, '..', '..');

Expand Down
20 changes: 0 additions & 20 deletions lang/node/patches/v20.x/012-changing-default-npm-settings.patch

This file was deleted.

4 changes: 2 additions & 2 deletions lang/node/patches/v20.x/201-zlib_gyp.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
--- a/deps/zlib/zlib.gyp
+++ b/deps/zlib/zlib.gyp
@@ -9,6 +9,7 @@
@@ -8,6 +8,7 @@
'use_system_zlib%': 0,
'arm_fpu%': '',
'llvm_version%': '0.0',
},
+ 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
'conditions': [
Expand Down
2 changes: 1 addition & 1 deletion lang/node/patches/v20.x/202-node_gyp.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/node.gyp
+++ b/node.gyp
@@ -1197,6 +1197,7 @@
@@ -1305,6 +1305,7 @@
'dependencies': [
'deps/simdutf/simdutf.gyp:simdutf#host',
],
Expand Down
6 changes: 3 additions & 3 deletions lang/node/patches/v20.x/204-v8_gyp.patch
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@
'include_dirs': [
'<(V8_ROOT)/include',
],
@@ -1988,15 +2009,19 @@
'WARNING_CFLAGS!': ['-Wno-invalid-offsetof']
},
@@ -1982,15 +2003,19 @@
}],
],
'direct_dependent_settings': {
+ 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
'include_dirs': [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Forwarded: https://github.com/nodejs/node/issues/33816
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
@@ -1337,13 +1338,6 @@ function lookupAndConnect(self, options)
@@ -1343,13 +1344,6 @@ function lookupAndConnect(self, options)
hints: options.hints || 0,
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
--- a/configure.py
+++ b/configure.py
@@ -1282,7 +1282,6 @@ def configure_node(o):

# Enable branch protection for arm64
if target_arch == 'arm64':
- o['cflags']+=['-msign-return-address=all']
o['variables']['arm_fpu'] = options.arm_fpu or 'neon'

if options.node_snapshot_main is not None:
--- a/node.gyp
+++ b/node.gyp
@@ -1306,6 +1306,7 @@
'deps/simdutf/simdutf.gyp:simdutf#host',
],
'libraries!':[ '-licui18n', '-licuuc', '-licudata', '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
+ 'cflags!': ['-mbranch-protection=standard'],
'include_dirs': [
'tools',
'src',
12 changes: 12 additions & 0 deletions lang/node/patches/v22.x/003-path.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- a/lib/internal/modules/cjs/loader.js
+++ b/lib/internal/modules/cjs/loader.js
@@ -1789,7 +1789,8 @@ Module._initPaths = function() {
path.resolve(process.execPath, '..') :
path.resolve(process.execPath, '..', '..');

- const paths = [path.resolve(prefixDir, 'lib', 'node')];
+ const paths = [path.resolve(prefixDir, 'lib', 'node'),
+ path.resolve(prefixDir, 'lib', 'node_modules')];

if (homeDir) {
ArrayPrototypeUnshift(paths, path.resolve(homeDir, '.node_libraries'));
42 changes: 42 additions & 0 deletions lang/node/patches/v22.x/004-musl_support.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
--- a/deps/v8/src/base/platform/condition-variable.cc
+++ b/deps/v8/src/base/platform/condition-variable.cc
@@ -20,7 +20,7 @@ namespace base {

ConditionVariable::ConditionVariable() {
#if (V8_OS_FREEBSD || V8_OS_NETBSD || V8_OS_OPENBSD || \
- (V8_OS_LINUX && V8_LIBC_GLIBC))
+ V8_OS_LINUX)
// On Free/Net/OpenBSD and Linux with glibc we can change the time
// source for pthread_cond_timedwait() to use the monotonic clock.
pthread_condattr_t attr;
@@ -96,7 +96,7 @@ bool ConditionVariable::WaitFor(Mutex* m
&native_handle_, &mutex->native_handle(), &ts);
#else
#if (V8_OS_FREEBSD || V8_OS_NETBSD || V8_OS_OPENBSD || \
- (V8_OS_LINUX && V8_LIBC_GLIBC))
+ V8_OS_LINUX)
// On Free/Net/OpenBSD and Linux with glibc we can change the time
// source for pthread_cond_timedwait() to use the monotonic clock.
result = clock_gettime(CLOCK_MONOTONIC, &ts);
--- a/deps/v8/src/base/platform/platform-posix.cc
+++ b/deps/v8/src/base/platform/platform-posix.cc
@@ -1207,7 +1207,7 @@ bool Thread::Start() {
#if V8_OS_DARWIN
// Default on Mac OS X is 512kB -- bump up to 1MB
stack_size = 1 * 1024 * 1024;
-#elif V8_OS_AIX
+#elif V8_OS_AIX || !defined(__GLIBC__)
// Default on AIX is 96kB -- bump up to 2MB
stack_size = 2 * 1024 * 1024;
#endif
--- a/deps/v8/src/codegen/external-reference-table.cc
+++ b/deps/v8/src/codegen/external-reference-table.cc
@@ -10,7 +10,7 @@
#include "src/ic/stub-cache.h"
#include "src/logging/counters.h"

-#if defined(DEBUG) && defined(V8_OS_LINUX) && !defined(V8_OS_ANDROID)
+#if defined(DEBUG) && defined(V8_OS_LINUX) && !defined(V8_OS_ANDROID) && defined(V8_LIBC_GLIBC)
#define SYMBOLIZE_FUNCTION
#include <execinfo.h>

11 changes: 11 additions & 0 deletions lang/node/patches/v22.x/007-fix_host_build_on_macos.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/tools/gyp/pylib/gyp/generator/make.py
+++ b/tools/gyp/pylib/gyp/generator/make.py
@@ -208,7 +208,7 @@ cmd_solink_module = $(LINK.$(TOOLSET)) -

LINK_COMMANDS_MAC = """\
quiet_cmd_alink = LIBTOOL-STATIC $@
-cmd_alink = rm -f $@ && %(python)s gyp-mac-tool filter-libtool libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %%.o,$^)
+cmd_alink = rm -f $@ && %(python)s gyp-mac-tool filter-libtool /usr/bin/libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %%.o,$^)

quiet_cmd_link = LINK($(TOOLSET)) $@
cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o "$@" $(LD_INPUTS) $(LIBS)
10 changes: 10 additions & 0 deletions lang/node/patches/v22.x/200-uv_gyp.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- a/deps/uv/uv.gyp
+++ b/deps/uv/uv.gyp
@@ -156,6 +156,7 @@
'target_name': 'libuv',
'toolsets': ['host', 'target'],
'type': '<(uv_library)',
+ 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
'include_dirs': [
'include',
'src/',
10 changes: 10 additions & 0 deletions lang/node/patches/v22.x/201-zlib_gyp.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- a/deps/zlib/zlib.gyp
+++ b/deps/zlib/zlib.gyp
@@ -8,6 +8,7 @@
'use_system_zlib%': 0,
'arm_fpu%': '',
},
+ 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
'conditions': [
['use_system_zlib==0', {
'targets': [
18 changes: 18 additions & 0 deletions lang/node/patches/v22.x/202-node_gyp.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
--- a/node.gyp
+++ b/node.gyp
@@ -1138,6 +1138,7 @@
'includes': [
'node.gypi'
],
+ 'libraries!':[ '-licui18n', '-licuuc', '-licudata', '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
'include_dirs': [
'src',
'tools/msvs/genfiles',
@@ -1354,6 +1355,7 @@
'tools',
'src',
],
+ 'libraries!':[ '-licui18n', '-licuuc', '-licudata', '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
'sources': [
'tools/js2c.cc',
'tools/executable_wrapper.h',
Loading