Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/nodejs/
Date: Fri, 03 Jun 2022 18:44:13
Message-Id: 1654281835.23f4cffb98b5e0f3fdd35c93f4e3307de8fbb701.williamh@gentoo
1 commit: 23f4cffb98b5e0f3fdd35c93f4e3307de8fbb701
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 3 18:33:37 2022 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 3 18:43:55 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23f4cffb
7
8 net-libs/nodejs: add 14.19.3, 16.15.1, 18.3.0, sync live
9
10 Closes: https://bugs.gentoo.org/848777
11 Bug: https://bugs.gentoo.org/845261
12 Closes: https://bugs.gentoo.org/843296
13 Closes: https://github.com/gentoo/gentoo/pulls/25418
14 Bug: https://bugs.gentoo.org/787158
15 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
16
17 net-libs/nodejs/Manifest | 3 ++
18 ...odejs-99999999.ebuild => nodejs-14.19.3.ebuild} | 41 +++++++++++-----------
19 ...odejs-99999999.ebuild => nodejs-16.15.1.ebuild} | 33 +++++++----------
20 ...nodejs-99999999.ebuild => nodejs-18.3.0.ebuild} | 33 +++++++----------
21 net-libs/nodejs/nodejs-99999999.ebuild | 13 +------
22 5 files changed, 48 insertions(+), 75 deletions(-)
23
24 diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest
25 index 0c6c3c7600cc..87522eb70862 100644
26 --- a/net-libs/nodejs/Manifest
27 +++ b/net-libs/nodejs/Manifest
28 @@ -1,5 +1,8 @@
29 DIST node-v14.17.5.tar.xz 33585724 BLAKE2B cf79397caad8c81e4096f344f9fdb88d8ecea44b97fe208256dfd4afb750ecdf52142a2dc0430285b9d5117bdd43fa5ce42b4418926eec4d2c7f0a5f5d1a1539 SHA512 9d62c8946d05862d96a13a71b241a097b9f592a9e5f7362c81d8f3c74e7c5546a308b4c74bef34a66cafeef5d1a87d9d3e5ae8bb87d470c1ecf5abb8de0dedb5
30 DIST node-v14.17.6.tar.xz 33606464 BLAKE2B c2c449e5eaf8214d7ed4bfab8db0208034cee1d08ef0e1fca478c30fc5cf95be037eb141080dbcfbe4fc58ef734457747dcbd0fe585a0536f9c0bec495435f25 SHA512 581c5698112426042fbf54fa793e56a30cae0c54ce8f23af6ac20d73c69a4f1166c5410f357c5a7b0409a773f99e3b9291e4afffd53b3c0e00569725dc4c47d3
31 DIST node-v14.19.0.tar.xz 34486868 BLAKE2B 12e571a366c1d4b2475ef258e338f516bb81e9c08f7e6b7f951decbf371028cdcf32c72181d8504d0890496eaecce0d6b23437b8dad6c6e498d30bf6636bd1e7 SHA512 80573fa3a0882c1f2a40b991f187f49714748ca4c56c78133e2d2be0322f201816eb059a1a7d38ea8a925229c1b1324d0ffc28ff4002d0115bfae44fe87efe97
32 +DIST node-v14.19.3.tar.xz 34483792 BLAKE2B 24b598b4c613ad63f8a2ffa15b2ad5663eef68e75842fac4ef988b43f8e6f9c1a242c9b352c411661dc7d1c9f6800426e12934fc4e7788061a8b9f918491a9b7 SHA512 0d03d9efee23664faf368a6ab42fa7d653033aebda1f2730c80692577825e31ff5522f1a940933245050a6f9af4ee64b6d65fc890e3d2ecfced327a909b63b6f
33 DIST node-v16.14.2.tar.xz 34332624 BLAKE2B 756895f81ecabbacf30b1e513890d100192c367443a5d041cd3e383985acb6fae189213f44b7a533b43d1b759d5a2677a5ee787c72d3abdb480879d6d24cc95e SHA512 b97274f6e0d63f19e01497c43af36e6561f019e7b0b5b4f6ea19d0fbe2cb4d3c514c06f49e237d1e327936db03c3f437ae0d0b2f830a35f1b7c3a723fbe2a1be
34 +DIST node-v16.15.1.tar.xz 34618208 BLAKE2B 6bba1dcc01cf18710e75b998d90b2b1f75476052c85e730a1309a6fecf2994530ce65b45e53ff0cee17bfe07728d4f3eb166f460337cc74f3c7975aee858a6cf SHA512 18c05876f0afe6fd402a11824d1987ddadcb103d3ac16d5b500371536a5d53632c9cbf651b6f4a8d69b69e8bda2575beb7b68675c67fd6cd53e205acfba11038
35 DIST node-v18.1.0.tar.xz 36841136 BLAKE2B 77cc028f61391c483cf9bdff09a2101790119257ceee5b6702347aee771c7ed9656458f482bceb89d9921a598b9e2134ef6c424e6c879934dce9bcc85fbb3552 SHA512 edaf830b90b74ff7e8d1098f7f09cff91dc60738bfc612f6847bd7ac283ca76453f624057f64ba3ddcc86804bfbd652eaf8eae1398118220fd54fbf9c0a0e49c
36 +DIST node-v18.3.0.tar.xz 36941104 BLAKE2B 947d38aa8637f01421fcf5261832b2fd3f53a5f38868fd03b6c9213c2ba3bdff214be12585a60c4cf88dd9390673e068eb08da07d7da28443a9c56cd024186fc SHA512 c793459c38d72d65d5caaa7fbab37269fe6031766609ab2fd7c921b205d314b1ddebc40738b292669bbbaf166a97328f64af7a0a1aaac111903a42cf98057afd
37
38 diff --git a/net-libs/nodejs/nodejs-99999999.ebuild b/net-libs/nodejs/nodejs-14.19.3.ebuild
39 similarity index 84%
40 copy from net-libs/nodejs/nodejs-99999999.ebuild
41 copy to net-libs/nodejs/nodejs-14.19.3.ebuild
42 index d9745115c19f..d0c878b44f6f 100644
43 --- a/net-libs/nodejs/nodejs-99999999.ebuild
44 +++ b/net-libs/nodejs/nodejs-14.19.3.ebuild
45 @@ -1,4 +1,4 @@
46 -# Copyright 1999-2021 Gentoo Authors
47 +# Copyright 1999-2022 Gentoo Authors
48 # Distributed under the terms of the GNU General Public License v2
49
50 EAPI=7
51 @@ -19,11 +19,11 @@ if [[ ${PV} == *9999 ]]; then
52 else
53 SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
54 SLOT="0/$(ver_cut 1)"
55 - KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x64-macos"
56 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 -riscv ~x86 ~amd64-linux ~x64-macos"
57 S="${WORKDIR}/node-v${PV}"
58 fi
59
60 -IUSE="cpu_flags_x86_sse2 debug doc +icu inspector lto +npm pax-kernel +snapshot +ssl system-icu +system-ssl systemtap test"
61 +IUSE="cpu_flags_x86_sse2 debug doc +icu inspector lto +npm pax-kernel +snapshot +ssl +system-icu +system-ssl systemtap test"
62 REQUIRED_USE="inspector? ( icu ssl )
63 npm? ( ssl )
64 system-icu? ( icu )
65 @@ -33,11 +33,14 @@ RESTRICT="!test? ( test )"
66
67 RDEPEND=">=app-arch/brotli-1.0.9:=
68 >=dev-libs/libuv-1.40.0:=
69 - >=net-dns/c-ares-1.17.0:=
70 + >=net-dns/c-ares-1.17.2:=
71 >=net-libs/nghttp2-1.41.0:=
72 sys-libs/zlib
73 system-icu? ( >=dev-libs/icu-67:= )
74 - system-ssl? ( >=dev-libs/openssl-1.1.1:0= )"
75 + system-ssl? (
76 + >=dev-libs/openssl-1.1.1:0=
77 + <dev-libs/openssl-3.0.0_beta1:0=
78 + )"
79 BDEPEND="${PYTHON_DEPS}
80 sys-apps/coreutils
81 virtual/pkgconfig
82 @@ -47,23 +50,14 @@ BDEPEND="${PYTHON_DEPS}
83 DEPEND="${RDEPEND}"
84
85 PATCHES=(
86 - "${FILESDIR}"/${PN}-12.22.1-jinja_collections_abc.patch # still needed as of 2021-06-04
87 + "${FILESDIR}"/${PN}-12.22.5-shared_c-ares_nameser_h.patch
88 + "${FILESDIR}"/${PN}-14.15.0-fix_ppc64_crashes.patch
89 + "${FILESDIR}"/${PN}-14.19.0-global-npm-config.patch
90 )
91
92 pkg_pretend() {
93 (use x86 && ! use cpu_flags_x86_sse2) && \
94 die "Your CPU doesn't support the required SSE2 instruction."
95 -
96 - if [[ ${MERGE_TYPE} != "binary" ]]; then
97 - if use lto; then
98 - if tc-is-gcc; then
99 - if [[ $(gcc-major-version) -ge 11 ]]; then
100 - # Bug #787158
101 - die "LTO builds of ${PN} using gcc-11+ currently fail tests and produce runtime errors. Either switch to gcc-10 or unset USE=lto for this ebuild"
102 - fi
103 - fi
104 - fi
105 - fi
106 }
107
108 src_prepare() {
109 @@ -182,12 +176,17 @@ src_install() {
110 fi
111
112 if use npm; then
113 - keepdir /etc/npm
114 + dodir /etc/npm
115
116 # Install bash completion for `npm`
117 + # We need to temporarily replace default config path since
118 + # npm otherwise tries to write outside of the sandbox
119 + local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
120 + sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
121 local tmp_npm_completion_file="$(TMPDIR="${T}" mktemp -t npm.XXXXXXXXXX)"
122 "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
123 newbashcomp "${tmp_npm_completion_file}" npm
124 + sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
125
126 # Move man pages
127 doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
128 @@ -217,10 +216,10 @@ src_install() {
129 }
130
131 src_test() {
132 - # parallel/test-fs-mkdir is known to fail with FEATURES=usersandbox
133 if has usersandbox ${FEATURES}; then
134 - ewarn "You are emerging ${P} with 'usersandbox' enabled." \
135 - "Expect some test failures or emerge with 'FEATURES=-usersandbox'!"
136 + rm -f "${S}"/test/parallel/test-fs-mkdir.js
137 + ewarn "You are emerging ${PN} with 'usersandbox' enabled. Excluding tests known to fail in this mode." \
138 + "For full test coverage, emerge =${CATEGORY}/${PF} with 'FEATURES=-usersandbox'."
139 fi
140
141 out/${BUILDTYPE}/cctest || die
142
143 diff --git a/net-libs/nodejs/nodejs-99999999.ebuild b/net-libs/nodejs/nodejs-16.15.1.ebuild
144 similarity index 86%
145 copy from net-libs/nodejs/nodejs-99999999.ebuild
146 copy to net-libs/nodejs/nodejs-16.15.1.ebuild
147 index d9745115c19f..63db8db8719d 100644
148 --- a/net-libs/nodejs/nodejs-99999999.ebuild
149 +++ b/net-libs/nodejs/nodejs-16.15.1.ebuild
150 @@ -1,7 +1,7 @@
151 -# Copyright 1999-2021 Gentoo Authors
152 +# Copyright 1999-2022 Gentoo Authors
153 # Distributed under the terms of the GNU General Public License v2
154
155 -EAPI=7
156 +EAPI=8
157
158 PYTHON_COMPAT=( python3_{8..10} )
159 PYTHON_REQ_USE="threads(+)"
160 @@ -19,11 +19,11 @@ if [[ ${PV} == *9999 ]]; then
161 else
162 SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
163 SLOT="0/$(ver_cut 1)"
164 - KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x64-macos"
165 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x64-macos"
166 S="${WORKDIR}/node-v${PV}"
167 fi
168
169 -IUSE="cpu_flags_x86_sse2 debug doc +icu inspector lto +npm pax-kernel +snapshot +ssl system-icu +system-ssl systemtap test"
170 +IUSE="cpu_flags_x86_sse2 debug doc +icu inspector lto +npm pax-kernel +snapshot +ssl +system-icu +system-ssl systemtap test"
171 REQUIRED_USE="inspector? ( icu ssl )
172 npm? ( ssl )
173 system-icu? ( icu )
174 @@ -33,7 +33,7 @@ RESTRICT="!test? ( test )"
175
176 RDEPEND=">=app-arch/brotli-1.0.9:=
177 >=dev-libs/libuv-1.40.0:=
178 - >=net-dns/c-ares-1.17.0:=
179 + >=net-dns/c-ares-1.17.2:=
180 >=net-libs/nghttp2-1.41.0:=
181 sys-libs/zlib
182 system-icu? ( >=dev-libs/icu-67:= )
183 @@ -47,23 +47,13 @@ BDEPEND="${PYTHON_DEPS}
184 DEPEND="${RDEPEND}"
185
186 PATCHES=(
187 - "${FILESDIR}"/${PN}-12.22.1-jinja_collections_abc.patch # still needed as of 2021-06-04
188 + "${FILESDIR}"/${PN}-12.22.5-shared_c-ares_nameser_h.patch
189 + "${FILESDIR}"/${PN}-15.2.0-global-npm-config.patch
190 )
191
192 pkg_pretend() {
193 (use x86 && ! use cpu_flags_x86_sse2) && \
194 die "Your CPU doesn't support the required SSE2 instruction."
195 -
196 - if [[ ${MERGE_TYPE} != "binary" ]]; then
197 - if use lto; then
198 - if tc-is-gcc; then
199 - if [[ $(gcc-major-version) -ge 11 ]]; then
200 - # Bug #787158
201 - die "LTO builds of ${PN} using gcc-11+ currently fail tests and produce runtime errors. Either switch to gcc-10 or unset USE=lto for this ebuild"
202 - fi
203 - fi
204 - fi
205 - fi
206 }
207
208 src_prepare() {
209 @@ -95,7 +85,7 @@ src_prepare() {
210 fi
211
212 # We need to disable mprotect on two files when it builds Bug 694100.
213 - use pax-kernel && PATCHES+=( "${FILESDIR}"/${PN}-13.8.0-paxmarking.patch )
214 + use pax-kernel && PATCHES+=( "${FILESDIR}"/${PN}-16.4.2-paxmarking.patch )
215
216 # All this test does is check if the npm CLI produces warnings of any sort,
217 # failing if it does. Overkill, much? Especially given one possible warning
218 @@ -143,6 +133,7 @@ src_configure() {
219 amd64) myarch="x64";;
220 arm) myarch="arm";;
221 arm64) myarch="arm64";;
222 + lp64*) myarch="riscv64";;
223 ppc64) myarch="ppc64";;
224 x32) myarch="x32";;
225 x86) myarch="ia32";;
226 @@ -217,10 +208,10 @@ src_install() {
227 }
228
229 src_test() {
230 - # parallel/test-fs-mkdir is known to fail with FEATURES=usersandbox
231 if has usersandbox ${FEATURES}; then
232 - ewarn "You are emerging ${P} with 'usersandbox' enabled." \
233 - "Expect some test failures or emerge with 'FEATURES=-usersandbox'!"
234 + rm -f "${S}"/test/parallel/test-fs-mkdir.js
235 + ewarn "You are emerging ${PN} with 'usersandbox' enabled. Excluding tests known to fail in this mode." \
236 + "For full test coverage, emerge =${CATEGORY}/${PF} with 'FEATURES=-usersandbox'."
237 fi
238
239 out/${BUILDTYPE}/cctest || die
240
241 diff --git a/net-libs/nodejs/nodejs-99999999.ebuild b/net-libs/nodejs/nodejs-18.3.0.ebuild
242 similarity index 86%
243 copy from net-libs/nodejs/nodejs-99999999.ebuild
244 copy to net-libs/nodejs/nodejs-18.3.0.ebuild
245 index d9745115c19f..ca608fd9201a 100644
246 --- a/net-libs/nodejs/nodejs-99999999.ebuild
247 +++ b/net-libs/nodejs/nodejs-18.3.0.ebuild
248 @@ -1,7 +1,7 @@
249 -# Copyright 1999-2021 Gentoo Authors
250 +# Copyright 1999-2022 Gentoo Authors
251 # Distributed under the terms of the GNU General Public License v2
252
253 -EAPI=7
254 +EAPI=8
255
256 PYTHON_COMPAT=( python3_{8..10} )
257 PYTHON_REQ_USE="threads(+)"
258 @@ -19,11 +19,11 @@ if [[ ${PV} == *9999 ]]; then
259 else
260 SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
261 SLOT="0/$(ver_cut 1)"
262 - KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x64-macos"
263 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x64-macos"
264 S="${WORKDIR}/node-v${PV}"
265 fi
266
267 -IUSE="cpu_flags_x86_sse2 debug doc +icu inspector lto +npm pax-kernel +snapshot +ssl system-icu +system-ssl systemtap test"
268 +IUSE="cpu_flags_x86_sse2 debug doc +icu inspector lto +npm pax-kernel +snapshot +ssl +system-icu +system-ssl systemtap test"
269 REQUIRED_USE="inspector? ( icu ssl )
270 npm? ( ssl )
271 system-icu? ( icu )
272 @@ -33,7 +33,7 @@ RESTRICT="!test? ( test )"
273
274 RDEPEND=">=app-arch/brotli-1.0.9:=
275 >=dev-libs/libuv-1.40.0:=
276 - >=net-dns/c-ares-1.17.0:=
277 + >=net-dns/c-ares-1.17.2:=
278 >=net-libs/nghttp2-1.41.0:=
279 sys-libs/zlib
280 system-icu? ( >=dev-libs/icu-67:= )
281 @@ -47,23 +47,13 @@ BDEPEND="${PYTHON_DEPS}
282 DEPEND="${RDEPEND}"
283
284 PATCHES=(
285 - "${FILESDIR}"/${PN}-12.22.1-jinja_collections_abc.patch # still needed as of 2021-06-04
286 + "${FILESDIR}"/${PN}-12.22.5-shared_c-ares_nameser_h.patch
287 + "${FILESDIR}"/${PN}-15.2.0-global-npm-config.patch
288 )
289
290 pkg_pretend() {
291 (use x86 && ! use cpu_flags_x86_sse2) && \
292 die "Your CPU doesn't support the required SSE2 instruction."
293 -
294 - if [[ ${MERGE_TYPE} != "binary" ]]; then
295 - if use lto; then
296 - if tc-is-gcc; then
297 - if [[ $(gcc-major-version) -ge 11 ]]; then
298 - # Bug #787158
299 - die "LTO builds of ${PN} using gcc-11+ currently fail tests and produce runtime errors. Either switch to gcc-10 or unset USE=lto for this ebuild"
300 - fi
301 - fi
302 - fi
303 - fi
304 }
305
306 src_prepare() {
307 @@ -95,7 +85,7 @@ src_prepare() {
308 fi
309
310 # We need to disable mprotect on two files when it builds Bug 694100.
311 - use pax-kernel && PATCHES+=( "${FILESDIR}"/${PN}-13.8.0-paxmarking.patch )
312 + use pax-kernel && PATCHES+=( "${FILESDIR}"/${PN}-18.0.0-paxmarking.patch )
313
314 # All this test does is check if the npm CLI produces warnings of any sort,
315 # failing if it does. Overkill, much? Especially given one possible warning
316 @@ -143,6 +133,7 @@ src_configure() {
317 amd64) myarch="x64";;
318 arm) myarch="arm";;
319 arm64) myarch="arm64";;
320 + lp64*) myarch="riscv64";;
321 ppc64) myarch="ppc64";;
322 x32) myarch="x32";;
323 x86) myarch="ia32";;
324 @@ -217,10 +208,10 @@ src_install() {
325 }
326
327 src_test() {
328 - # parallel/test-fs-mkdir is known to fail with FEATURES=usersandbox
329 if has usersandbox ${FEATURES}; then
330 - ewarn "You are emerging ${P} with 'usersandbox' enabled." \
331 - "Expect some test failures or emerge with 'FEATURES=-usersandbox'!"
332 + rm -f "${S}"/test/parallel/test-fs-mkdir.js
333 + ewarn "You are emerging ${PN} with 'usersandbox' enabled. Excluding tests known to fail in this mode." \
334 + "For full test coverage, emerge =${CATEGORY}/${PF} with 'FEATURES=-usersandbox'."
335 fi
336
337 out/${BUILDTYPE}/cctest || die
338
339 diff --git a/net-libs/nodejs/nodejs-99999999.ebuild b/net-libs/nodejs/nodejs-99999999.ebuild
340 index d9745115c19f..27f6e1677949 100644
341 --- a/net-libs/nodejs/nodejs-99999999.ebuild
342 +++ b/net-libs/nodejs/nodejs-99999999.ebuild
343 @@ -1,4 +1,4 @@
344 -# Copyright 1999-2021 Gentoo Authors
345 +# Copyright 1999-2022 Gentoo Authors
346 # Distributed under the terms of the GNU General Public License v2
347
348 EAPI=7
349 @@ -53,17 +53,6 @@ PATCHES=(
350 pkg_pretend() {
351 (use x86 && ! use cpu_flags_x86_sse2) && \
352 die "Your CPU doesn't support the required SSE2 instruction."
353 -
354 - if [[ ${MERGE_TYPE} != "binary" ]]; then
355 - if use lto; then
356 - if tc-is-gcc; then
357 - if [[ $(gcc-major-version) -ge 11 ]]; then
358 - # Bug #787158
359 - die "LTO builds of ${PN} using gcc-11+ currently fail tests and produce runtime errors. Either switch to gcc-10 or unset USE=lto for this ebuild"
360 - fi
361 - fi
362 - fi
363 - fi
364 }
365
366 src_prepare() {