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

/usr/portage/net-libs/nodejs/nodejs-99999999.ebuild 2025-12-26 10:18:09.576175223 +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 ninja-utils pax-utils python-any-r1 toolchain-funcs xdg-utils
11 11

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

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

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

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

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

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

  
106 117
	default
107 118
}
......
111 122

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

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

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

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

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

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