Сравнение nodejs-20.18.2 с nodejs-24.16.0-r1

/usr/portage/net-libs/nodejs/nodejs-24.16.0-r1.ebuild 2026-06-15 19:17:06.462176082 +0300
4 4
EAPI=8
5 5

  
6 6
CONFIG_CHECK="~ADVISE_SYSCALLS"
7
PYTHON_COMPAT=( python3_{11..12} )
7
PYTHON_COMPAT=( python3_{11..14} )
8 8
PYTHON_REQ_USE="threads(+)"
9 9

  
10 10
inherit bash-completion-r1 check-reqs flag-o-matic linux-info
......
12 12

  
13 13
DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
14 14
HOMEPAGE="https://nodejs.org/"
15
LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
15
LICENSE="Apache-1.1 Apache-2.0 BlueOak-1.0.0 BSD BSD-2 MIT npm? ( Artistic-2 )"
16 16

  
17 17
if [[ ${PV} == *9999 ]]; then
18 18
	inherit git-r3
19 19
	EGIT_REPO_URI="https://github.com/nodejs/node"
20 20
	SLOT="0"
21 21
else
22
	SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
22
	SRC_URI="
23
		https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz
24
		https://deps.gentoo.zip/net-libs/nodejs/${P}-nghttp2-1.69.0.patch
25
	"
23 26
	SLOT="0/$(ver_cut 1)"
24
	KEYWORDS="amd64 arm arm64 ~loong ppc64 ~riscv x86 ~x64-macos"
27
	KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86 ~x64-macos"
25 28
	S="${WORKDIR}/node-v${PV}"
26 29
fi
27 30

  
28
IUSE="corepack cpu_flags_x86_sse2 debug doc +icu inspector lto npm pax-kernel +snapshot +ssl +system-icu +system-ssl test"
31
IUSE="corepack cpu_flags_x86_sse2 debug doc +icu +inspector lto +npm pax-kernel +snapshot +ssl +system-icu +system-ssl test"
29 32
REQUIRED_USE="inspector? ( icu ssl )
30 33
	npm? ( ssl )
31 34
	system-icu? ( icu )
......
34 37

  
35 38
RESTRICT="!test? ( test )"
36 39

  
37
RDEPEND=">=app-arch/brotli-1.0.9:=
38
	>=dev-libs/libuv-1.46.0:=
39
	>=net-dns/c-ares-1.18.1:=
40
	>=net-libs/nghttp2-1.41.0:=
41
	>=net-libs/ngtcp2-1.1.0:=
40
COMMON_DEPEND=">=app-arch/brotli-1.1.0:=
41
	dev-db/sqlite:3
42
	>=dev-cpp/ada-3.3.0:=
43
	>=dev-cpp/simdutf-7.3.4:=
44
	>=dev-libs/libuv-1.52.1:=
45
	>=dev-libs/simdjson-4.6.1:=
46
	>=net-dns/c-ares-1.34.5:=
47
	>=net-libs/nghttp2-1.69.0:=
48
	>=net-libs/nghttp3-1.14.0:=
42 49
	virtual/zlib:=
43 50
	corepack? ( !sys-apps/yarn )
44 51
	system-icu? ( >=dev-libs/icu-73:= )
45
	system-ssl? ( >=dev-libs/openssl-1.1.1:0= )
46
	sys-devel/gcc:*"
52
	system-ssl? (
53
		>=net-libs/ngtcp2-1.14.0:=
54
		>=dev-libs/openssl-3.5.6:0=
55
	)
56
	!system-ssl? ( >=net-libs/ngtcp2-1.14.0:=[-gnutls] )
57
	|| (
58
		sys-devel/gcc:*
59
		llvm-runtimes/libatomic-stub
60
	)"
47 61
BDEPEND="${PYTHON_DEPS}
48 62
	app-alternatives/ninja
49 63
	sys-apps/coreutils
50 64
	virtual/pkgconfig
51 65
	test? ( net-misc/curl )
52 66
	pax-kernel? ( sys-apps/elfix )"
53
DEPEND="${RDEPEND}"
67
DEPEND="${COMMON_DEPEND}"
68
RDEPEND="${COMMON_DEPEND}"
54 69

  
55 70
# These are measured on a loong machine with -ggdb on, and only checked
56 71
# if debugging flags are present in CFLAGS.
......
62 77
CHECKREQS_MEMORY="8G"
63 78
CHECKREQS_DISK_BUILD="22G"
64 79

  
80
PATCHES=(
81
	"${FILESDIR}"/${PN}-24.14.0-32-bit.patch
82
	"${DISTDIR}"/${P}-nghttp2-1.69.0.patch
83
)
84

  
65 85
pkg_pretend() {
66 86
	if [[ ${MERGE_TYPE} != "binary" ]]; then
67 87
		if is-flagq "-g*" && ! is-flagq "-g*0" ; then
......
102 122
	fi
103 123

  
104 124
	# We need to disable mprotect on two files when it builds Bug 694100.
105
	use pax-kernel && PATCHES+=( "${FILESDIR}"/${PN}-20.6.0-paxmarking.patch )
125
	use pax-kernel &&
126
		PATCHES+=( "${FILESDIR}"/${PN}-24.1.0-paxmarking.patch )
127

  
128
	use ppc64 &&
129
		PATCHES+=(	"${FILESDIR}/${PN}-24.11.1-restore-ppc64be.patch" )
106 130

  
107 131
	default
108 132
}
......
112 136

  
113 137
	# LTO compiler flags are handled by configure.py itself
114 138
	filter-lto
115
	# nodejs unconditionally links to libatomic #869992
116
	# specifically it requires __atomic_is_lock_free which
117
	# is not yet implemented by llvm-runtimes/compiler-rt (see
118
	# https://reviews.llvm.org/D85044?id=287068), therefore
119
	# we depend on gcc and force using libgcc as the support lib
120
	tc-is-clang && append-ldflags "--rtlib=libgcc --unwindlib=libgcc"
139
	# The warnings are *so* noisy and make build.logs massive
140
	append-cxxflags $(test-flags-CXX -Wno-template-id-cdtor)
141
	# https://bugs.gentoo.org/931514
142
	use arm64 && append-flags $(test-flags-CXX -mbranch-protection=none)
121 143

  
122 144
	local myconf=(
123 145
		--ninja
146
		--shared-ada
124 147
		--shared-brotli
125 148
		--shared-cares
126 149
		--shared-libuv
127 150
		--shared-nghttp2
151
		--shared-nghttp3
128 152
		--shared-ngtcp2
153
		--shared-simdjson
154
		--shared-simdutf
155
		--shared-sqlite
129 156
		--shared-zlib
130 157
	)
131 158
	use debug && myconf+=( --debug )
......
179 206

  
180 207
	pax-mark -m "${ED}"/usr/bin/node
181 208

  
182
	# set up a symlink structure that node-gyp expects..
183
	dodir /usr/include/node/deps/{v8,uv}
184
	dosym . /usr/include/node/src
185
	for var in deps/{uv,v8}/include; do
186
		dosym ../.. /usr/include/node/${var}
187
	done
188

  
189 209
	if use doc; then
190 210
		docinto html
191 211
		dodoc -r "${S}"/doc/*
......
206 226

  
207 227
		# Clean up
208 228
		rm -f "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile}
209
		rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man}
210 229

  
211 230
		local find_exp="-or -name"
212 231
		local find_name=()
213 232
		for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
214 233
			".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
215
			"*.md" "*.markdown" "*.bat" "*.cmd"; do
234
			"*.bat" "*.cmd"; do
216 235
			find_name+=( ${find_exp} "${match}" )
217 236
		done
218 237

  
......
236 255
		test/parallel/test-dns.js
237 256
		test/parallel/test-dns-resolveany-bad-ancount.js
238 257
		test/parallel/test-dns-setserver-when-querying.js
258
		test/parallel/test-dotenv.js
239 259
		test/parallel/test-fs-mkdir.js
240 260
		test/parallel/test-fs-read-stream.js
241 261
		test/parallel/test-fs-utimes-y2K38.js
242 262
		test/parallel/test-fs-watch-recursive-add-file.js
243
		test/parallel/test-inspector-emit-protocol-event.js
244
		test/parallel/test-inspector-network-domain.js
263
		test/parallel/test-http2-client-set-priority.js
264
		test/parallel/test-http2-priority-event.js
245 265
		test/parallel/test-process-euid-egid.js
246 266
		test/parallel/test-process-get-builtin.mjs
247 267
		test/parallel/test-process-initgroups.js
......
250 270
		test/parallel/test-release-npm.js
251 271
		test/parallel/test-socket-write-after-fin-error.js
252 272
		test/parallel/test-strace-openat-openssl.js
253
		test/parallel/test-tls-cert-regression.js
254
		test/parallel/test-tls-client-getephemeralkeyinfo.js
255
		test/parallel/test-tls-getcipher.js
256
		test/parallel/test-tls-set-ciphers.js
257
		test/parallel/test-tls-junk-closes-server.js
258
		test/parallel/test-util-styletext.js
273
		test/sequential/test-tls-session-timeout.js
259 274
		test/sequential/test-util-debug.js
260 275
	)
261
	use inspector || drop_tests+=( test/sequential/test-watch-mode.mjs )
276
	use inspector ||
277
		drop_tests+=(
278
			test/parallel/test-inspector-emit-protocol-event.js
279
			test/parallel/test-inspector-network-arbitrary-data.js
280
			test/parallel/test-inspector-network-domain.js
281
			test/parallel/test-inspector-network-fetch.js
282
			test/parallel/test-inspector-network-http.js
283
			test/sequential/test-watch-mode.mjs
284
		)
262 285
	rm -f "${drop_tests[@]}" || die "disabling tests failed"
263 286

  
264 287
	out/${BUILDTYPE}/cctest || die
......
268 291
pkg_postinst() {
269 292
	if use npm; then
270 293
		ewarn "remember to run: source /etc/profile if you plan to use nodejs"
271
		ewarn "	in your current shell"
294
		ewarn " in your current shell"
272 295
	fi
273 296
}
Спасибо!