Сравнение nodejs-20.18.2 с nodejs-99999999

/usr/portage/net-libs/nodejs/nodejs-99999999.ebuild 2026-03-11 11:46:08.963084933 +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 BSD BSD-2 MIT npm? ( Artistic-2 )"
16 16

  
17 17
if [[ ${PV} == *9999 ]]; then
18 18
	inherit git-r3
......
21 21
else
22 22
	SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
23 23
	SLOT="0/$(ver_cut 1)"
24
	KEYWORDS="amd64 arm arm64 ~loong ppc64 ~riscv x86 ~x64-macos"
24
	KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86 ~x64-macos"
25 25
	S="${WORKDIR}/node-v${PV}"
26 26
fi
27 27

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

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

  
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:=
37
RDEPEND=">=app-arch/brotli-1.1.0:=
38
	>=dev-cpp/ada-3.3.0:=
39
	>=dev-cpp/simdutf-7.3.4:=
40
	dev-db/sqlite:3
41
	>=dev-libs/libuv-1.51.0:=
42
	>=dev-libs/simdjson-3.10.1:=
43
	>=net-dns/c-ares-1.34.4:=
44
	>=net-libs/nghttp2-1.64.0:=
45
	>=net-libs/nghttp3-1.7.0:=
42 46
	virtual/zlib:=
43 47
	corepack? ( !sys-apps/yarn )
44 48
	system-icu? ( >=dev-libs/icu-73:= )
45
	system-ssl? ( >=dev-libs/openssl-1.1.1:0= )
46
	sys-devel/gcc:*"
49
	system-ssl? (
50
		>=net-libs/ngtcp2-1.9.1:=
51
		>=dev-libs/openssl-1.1.1:0=
52
	)
53
	!system-ssl? ( >=net-libs/ngtcp2-1.9.1:=[-gnutls] )
54
	|| (
55
		sys-devel/gcc:*
56
		llvm-runtimes/libatomic-stub
57
	)"
47 58
BDEPEND="${PYTHON_DEPS}
48 59
	app-alternatives/ninja
49 60
	sys-apps/coreutils
......
102 113
	fi
103 114

  
104 115
	# 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 )
116
	use pax-kernel && PATCHES+=( "${FILESDIR}"/${PN}-24.1.0-paxmarking.patch )
106 117

  
107 118
	default
108 119
}
......
112 123

  
113 124
	# LTO compiler flags are handled by configure.py itself
114 125
	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"
126
	# The warnings are *so* noisy and make build.logs massive
127
	append-cxxflags $(test-flags-CXX -Wno-template-id-cdtor)
128
	# https://bugs.gentoo.org/931514
129
	use arm64 && append-flags $(test-flags-CXX -mbranch-protection=none)
121 130

  
122 131
	local myconf=(
123 132
		--ninja
133
		--shared-ada
124 134
		--shared-brotli
125 135
		--shared-cares
126 136
		--shared-libuv
127 137
		--shared-nghttp2
138
		--shared-nghttp3
128 139
		--shared-ngtcp2
140
		--shared-simdjson
141
		--shared-simdutf
142
		--shared-sqlite
129 143
		--shared-zlib
130 144
	)
131 145
	use debug && myconf+=( --debug )
......
206 220

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

  
211 224
		local find_exp="-or -name"
212 225
		local find_name=()
213 226
		for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
214 227
			".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
215
			"*.md" "*.markdown" "*.bat" "*.cmd"; do
228
			"*.bat" "*.cmd"; do
216 229
			find_name+=( ${find_exp} "${match}" )
217 230
		done
218 231

  
......
236 249
		test/parallel/test-dns.js
237 250
		test/parallel/test-dns-resolveany-bad-ancount.js
238 251
		test/parallel/test-dns-setserver-when-querying.js
252
		test/parallel/test-dotenv.js
239 253
		test/parallel/test-fs-mkdir.js
240 254
		test/parallel/test-fs-read-stream.js
241 255
		test/parallel/test-fs-utimes-y2K38.js
242 256
		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
257
		test/parallel/test-http2-client-set-priority.js
258
		test/parallel/test-http2-priority-event.js
245 259
		test/parallel/test-process-euid-egid.js
246 260
		test/parallel/test-process-get-builtin.mjs
247 261
		test/parallel/test-process-initgroups.js
......
250 264
		test/parallel/test-release-npm.js
251 265
		test/parallel/test-socket-write-after-fin-error.js
252 266
		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
267
		test/sequential/test-tls-session-timeout.js
259 268
		test/sequential/test-util-debug.js
260 269
	)
261
	use inspector || drop_tests+=( test/sequential/test-watch-mode.mjs )
270
	use inspector ||
271
		drop_tests+=(
272
			test/parallel/test-inspector-emit-protocol-event.js
273
			test/parallel/test-inspector-network-arbitrary-data.js
274
			test/parallel/test-inspector-network-domain.js
275
			test/parallel/test-inspector-network-fetch.js
276
			test/parallel/test-inspector-network-http.js
277
			test/sequential/test-watch-mode.mjs
278
		)
262 279
	rm -f "${drop_tests[@]}" || die "disabling tests failed"
263 280

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