commit:     23f4cffb98b5e0f3fdd35c93f4e3307de8fbb701
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Fri Jun  3 18:33:37 2022 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Fri Jun  3 18:43:55 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23f4cffb

net-libs/nodejs: add 14.19.3, 16.15.1, 18.3.0, sync live

Closes: https://bugs.gentoo.org/848777
Bug: https://bugs.gentoo.org/845261
Closes: https://bugs.gentoo.org/843296
Closes: https://github.com/gentoo/gentoo/pulls/25418
Bug: https://bugs.gentoo.org/787158
Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 net-libs/nodejs/Manifest                           |  3 ++
 ...odejs-99999999.ebuild => nodejs-14.19.3.ebuild} | 41 +++++++++++-----------
 ...odejs-99999999.ebuild => nodejs-16.15.1.ebuild} | 33 +++++++----------
 ...nodejs-99999999.ebuild => nodejs-18.3.0.ebuild} | 33 +++++++----------
 net-libs/nodejs/nodejs-99999999.ebuild             | 13 +------
 5 files changed, 48 insertions(+), 75 deletions(-)

diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest
index 0c6c3c7600cc..87522eb70862 100644
--- a/net-libs/nodejs/Manifest
+++ b/net-libs/nodejs/Manifest
@@ -1,5 +1,8 @@
 DIST node-v14.17.5.tar.xz 33585724 BLAKE2B 
cf79397caad8c81e4096f344f9fdb88d8ecea44b97fe208256dfd4afb750ecdf52142a2dc0430285b9d5117bdd43fa5ce42b4418926eec4d2c7f0a5f5d1a1539
 SHA512 
9d62c8946d05862d96a13a71b241a097b9f592a9e5f7362c81d8f3c74e7c5546a308b4c74bef34a66cafeef5d1a87d9d3e5ae8bb87d470c1ecf5abb8de0dedb5
 DIST node-v14.17.6.tar.xz 33606464 BLAKE2B 
c2c449e5eaf8214d7ed4bfab8db0208034cee1d08ef0e1fca478c30fc5cf95be037eb141080dbcfbe4fc58ef734457747dcbd0fe585a0536f9c0bec495435f25
 SHA512 
581c5698112426042fbf54fa793e56a30cae0c54ce8f23af6ac20d73c69a4f1166c5410f357c5a7b0409a773f99e3b9291e4afffd53b3c0e00569725dc4c47d3
 DIST node-v14.19.0.tar.xz 34486868 BLAKE2B 
12e571a366c1d4b2475ef258e338f516bb81e9c08f7e6b7f951decbf371028cdcf32c72181d8504d0890496eaecce0d6b23437b8dad6c6e498d30bf6636bd1e7
 SHA512 
80573fa3a0882c1f2a40b991f187f49714748ca4c56c78133e2d2be0322f201816eb059a1a7d38ea8a925229c1b1324d0ffc28ff4002d0115bfae44fe87efe97
+DIST node-v14.19.3.tar.xz 34483792 BLAKE2B 
24b598b4c613ad63f8a2ffa15b2ad5663eef68e75842fac4ef988b43f8e6f9c1a242c9b352c411661dc7d1c9f6800426e12934fc4e7788061a8b9f918491a9b7
 SHA512 
0d03d9efee23664faf368a6ab42fa7d653033aebda1f2730c80692577825e31ff5522f1a940933245050a6f9af4ee64b6d65fc890e3d2ecfced327a909b63b6f
 DIST node-v16.14.2.tar.xz 34332624 BLAKE2B 
756895f81ecabbacf30b1e513890d100192c367443a5d041cd3e383985acb6fae189213f44b7a533b43d1b759d5a2677a5ee787c72d3abdb480879d6d24cc95e
 SHA512 
b97274f6e0d63f19e01497c43af36e6561f019e7b0b5b4f6ea19d0fbe2cb4d3c514c06f49e237d1e327936db03c3f437ae0d0b2f830a35f1b7c3a723fbe2a1be
+DIST node-v16.15.1.tar.xz 34618208 BLAKE2B 
6bba1dcc01cf18710e75b998d90b2b1f75476052c85e730a1309a6fecf2994530ce65b45e53ff0cee17bfe07728d4f3eb166f460337cc74f3c7975aee858a6cf
 SHA512 
18c05876f0afe6fd402a11824d1987ddadcb103d3ac16d5b500371536a5d53632c9cbf651b6f4a8d69b69e8bda2575beb7b68675c67fd6cd53e205acfba11038
 DIST node-v18.1.0.tar.xz 36841136 BLAKE2B 
77cc028f61391c483cf9bdff09a2101790119257ceee5b6702347aee771c7ed9656458f482bceb89d9921a598b9e2134ef6c424e6c879934dce9bcc85fbb3552
 SHA512 
edaf830b90b74ff7e8d1098f7f09cff91dc60738bfc612f6847bd7ac283ca76453f624057f64ba3ddcc86804bfbd652eaf8eae1398118220fd54fbf9c0a0e49c
+DIST node-v18.3.0.tar.xz 36941104 BLAKE2B 
947d38aa8637f01421fcf5261832b2fd3f53a5f38868fd03b6c9213c2ba3bdff214be12585a60c4cf88dd9390673e068eb08da07d7da28443a9c56cd024186fc
 SHA512 
c793459c38d72d65d5caaa7fbab37269fe6031766609ab2fd7c921b205d314b1ddebc40738b292669bbbaf166a97328f64af7a0a1aaac111903a42cf98057afd

diff --git a/net-libs/nodejs/nodejs-99999999.ebuild 
b/net-libs/nodejs/nodejs-14.19.3.ebuild
similarity index 84%
copy from net-libs/nodejs/nodejs-99999999.ebuild
copy to net-libs/nodejs/nodejs-14.19.3.ebuild
index d9745115c19f..d0c878b44f6f 100644
--- a/net-libs/nodejs/nodejs-99999999.ebuild
+++ b/net-libs/nodejs/nodejs-14.19.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -19,11 +19,11 @@ if [[ ${PV} == *9999 ]]; then
 else
        SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz";
        SLOT="0/$(ver_cut 1)"
-       KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x64-macos"
+       KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 -riscv ~x86 ~amd64-linux ~x64-macos"
        S="${WORKDIR}/node-v${PV}"
 fi
 
-IUSE="cpu_flags_x86_sse2 debug doc +icu inspector lto +npm pax-kernel 
+snapshot +ssl system-icu +system-ssl systemtap test"
+IUSE="cpu_flags_x86_sse2 debug doc +icu inspector lto +npm pax-kernel 
+snapshot +ssl +system-icu +system-ssl systemtap test"
 REQUIRED_USE="inspector? ( icu ssl )
        npm? ( ssl )
        system-icu? ( icu )
@@ -33,11 +33,14 @@ RESTRICT="!test? ( test )"
 
 RDEPEND=">=app-arch/brotli-1.0.9:=
        >=dev-libs/libuv-1.40.0:=
-       >=net-dns/c-ares-1.17.0:=
+       >=net-dns/c-ares-1.17.2:=
        >=net-libs/nghttp2-1.41.0:=
        sys-libs/zlib
        system-icu? ( >=dev-libs/icu-67:= )
-       system-ssl? ( >=dev-libs/openssl-1.1.1:0= )"
+       system-ssl? (
+               >=dev-libs/openssl-1.1.1:0=
+               <dev-libs/openssl-3.0.0_beta1:0=
+       )"
 BDEPEND="${PYTHON_DEPS}
        sys-apps/coreutils
        virtual/pkgconfig
@@ -47,23 +50,14 @@ BDEPEND="${PYTHON_DEPS}
 DEPEND="${RDEPEND}"
 
 PATCHES=(
-       "${FILESDIR}"/${PN}-12.22.1-jinja_collections_abc.patch  # still needed 
as of 2021-06-04
+       "${FILESDIR}"/${PN}-12.22.5-shared_c-ares_nameser_h.patch
+       "${FILESDIR}"/${PN}-14.15.0-fix_ppc64_crashes.patch
+       "${FILESDIR}"/${PN}-14.19.0-global-npm-config.patch
 )
 
 pkg_pretend() {
        (use x86 && ! use cpu_flags_x86_sse2) && \
                die "Your CPU doesn't support the required SSE2 instruction."
-
-       if [[ ${MERGE_TYPE} != "binary" ]]; then
-               if use lto; then
-                       if tc-is-gcc; then
-                               if [[ $(gcc-major-version) -ge 11 ]]; then
-                                       # Bug #787158
-                                       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"
-                               fi
-                       fi
-               fi
-       fi
 }
 
 src_prepare() {
@@ -182,12 +176,17 @@ src_install() {
        fi
 
        if use npm; then
-               keepdir /etc/npm
+               dodir /etc/npm
 
                # Install bash completion for `npm`
+               # We need to temporarily replace default config path since
+               # npm otherwise tries to write outside of the sandbox
+               local 
npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
+               sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
                local tmp_npm_completion_file="$(TMPDIR="${T}" mktemp -t 
npm.XXXXXXXXXX)"
                "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
                newbashcomp "${tmp_npm_completion_file}" npm
+               sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
 
                # Move man pages
                doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
@@ -217,10 +216,10 @@ src_install() {
 }
 
 src_test() {
-       # parallel/test-fs-mkdir is known to fail with FEATURES=usersandbox
        if has usersandbox ${FEATURES}; then
-               ewarn "You are emerging ${P} with 'usersandbox' enabled." \
-                       "Expect some test failures or emerge with 
'FEATURES=-usersandbox'!"
+               rm -f "${S}"/test/parallel/test-fs-mkdir.js
+               ewarn "You are emerging ${PN} with 'usersandbox' enabled. 
Excluding tests known to fail in this mode." \
+                       "For full test coverage, emerge =${CATEGORY}/${PF} with 
'FEATURES=-usersandbox'."
        fi
 
        out/${BUILDTYPE}/cctest || die

diff --git a/net-libs/nodejs/nodejs-99999999.ebuild 
b/net-libs/nodejs/nodejs-16.15.1.ebuild
similarity index 86%
copy from net-libs/nodejs/nodejs-99999999.ebuild
copy to net-libs/nodejs/nodejs-16.15.1.ebuild
index d9745115c19f..63db8db8719d 100644
--- a/net-libs/nodejs/nodejs-99999999.ebuild
+++ b/net-libs/nodejs/nodejs-16.15.1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 PYTHON_COMPAT=( python3_{8..10} )
 PYTHON_REQ_USE="threads(+)"
@@ -19,11 +19,11 @@ if [[ ${PV} == *9999 ]]; then
 else
        SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz";
        SLOT="0/$(ver_cut 1)"
-       KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x64-macos"
+       KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x64-macos"
        S="${WORKDIR}/node-v${PV}"
 fi
 
-IUSE="cpu_flags_x86_sse2 debug doc +icu inspector lto +npm pax-kernel 
+snapshot +ssl system-icu +system-ssl systemtap test"
+IUSE="cpu_flags_x86_sse2 debug doc +icu inspector lto +npm pax-kernel 
+snapshot +ssl +system-icu +system-ssl systemtap test"
 REQUIRED_USE="inspector? ( icu ssl )
        npm? ( ssl )
        system-icu? ( icu )
@@ -33,7 +33,7 @@ RESTRICT="!test? ( test )"
 
 RDEPEND=">=app-arch/brotli-1.0.9:=
        >=dev-libs/libuv-1.40.0:=
-       >=net-dns/c-ares-1.17.0:=
+       >=net-dns/c-ares-1.17.2:=
        >=net-libs/nghttp2-1.41.0:=
        sys-libs/zlib
        system-icu? ( >=dev-libs/icu-67:= )
@@ -47,23 +47,13 @@ BDEPEND="${PYTHON_DEPS}
 DEPEND="${RDEPEND}"
 
 PATCHES=(
-       "${FILESDIR}"/${PN}-12.22.1-jinja_collections_abc.patch  # still needed 
as of 2021-06-04
+       "${FILESDIR}"/${PN}-12.22.5-shared_c-ares_nameser_h.patch
+       "${FILESDIR}"/${PN}-15.2.0-global-npm-config.patch
 )
 
 pkg_pretend() {
        (use x86 && ! use cpu_flags_x86_sse2) && \
                die "Your CPU doesn't support the required SSE2 instruction."
-
-       if [[ ${MERGE_TYPE} != "binary" ]]; then
-               if use lto; then
-                       if tc-is-gcc; then
-                               if [[ $(gcc-major-version) -ge 11 ]]; then
-                                       # Bug #787158
-                                       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"
-                               fi
-                       fi
-               fi
-       fi
 }
 
 src_prepare() {
@@ -95,7 +85,7 @@ src_prepare() {
        fi
 
        # We need to disable mprotect on two files when it builds Bug 694100.
-       use pax-kernel && PATCHES+=( 
"${FILESDIR}"/${PN}-13.8.0-paxmarking.patch )
+       use pax-kernel && PATCHES+=( 
"${FILESDIR}"/${PN}-16.4.2-paxmarking.patch )
 
        # All this test does is check if the npm CLI produces warnings of any 
sort,
        # failing if it does. Overkill, much? Especially given one possible 
warning
@@ -143,6 +133,7 @@ src_configure() {
                amd64) myarch="x64";;
                arm) myarch="arm";;
                arm64) myarch="arm64";;
+               lp64*) myarch="riscv64";;
                ppc64) myarch="ppc64";;
                x32) myarch="x32";;
                x86) myarch="ia32";;
@@ -217,10 +208,10 @@ src_install() {
 }
 
 src_test() {
-       # parallel/test-fs-mkdir is known to fail with FEATURES=usersandbox
        if has usersandbox ${FEATURES}; then
-               ewarn "You are emerging ${P} with 'usersandbox' enabled." \
-                       "Expect some test failures or emerge with 
'FEATURES=-usersandbox'!"
+               rm -f "${S}"/test/parallel/test-fs-mkdir.js
+               ewarn "You are emerging ${PN} with 'usersandbox' enabled. 
Excluding tests known to fail in this mode." \
+                       "For full test coverage, emerge =${CATEGORY}/${PF} with 
'FEATURES=-usersandbox'."
        fi
 
        out/${BUILDTYPE}/cctest || die

diff --git a/net-libs/nodejs/nodejs-99999999.ebuild 
b/net-libs/nodejs/nodejs-18.3.0.ebuild
similarity index 86%
copy from net-libs/nodejs/nodejs-99999999.ebuild
copy to net-libs/nodejs/nodejs-18.3.0.ebuild
index d9745115c19f..ca608fd9201a 100644
--- a/net-libs/nodejs/nodejs-99999999.ebuild
+++ b/net-libs/nodejs/nodejs-18.3.0.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 PYTHON_COMPAT=( python3_{8..10} )
 PYTHON_REQ_USE="threads(+)"
@@ -19,11 +19,11 @@ if [[ ${PV} == *9999 ]]; then
 else
        SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz";
        SLOT="0/$(ver_cut 1)"
-       KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x64-macos"
+       KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x64-macos"
        S="${WORKDIR}/node-v${PV}"
 fi
 
-IUSE="cpu_flags_x86_sse2 debug doc +icu inspector lto +npm pax-kernel 
+snapshot +ssl system-icu +system-ssl systemtap test"
+IUSE="cpu_flags_x86_sse2 debug doc +icu inspector lto +npm pax-kernel 
+snapshot +ssl +system-icu +system-ssl systemtap test"
 REQUIRED_USE="inspector? ( icu ssl )
        npm? ( ssl )
        system-icu? ( icu )
@@ -33,7 +33,7 @@ RESTRICT="!test? ( test )"
 
 RDEPEND=">=app-arch/brotli-1.0.9:=
        >=dev-libs/libuv-1.40.0:=
-       >=net-dns/c-ares-1.17.0:=
+       >=net-dns/c-ares-1.17.2:=
        >=net-libs/nghttp2-1.41.0:=
        sys-libs/zlib
        system-icu? ( >=dev-libs/icu-67:= )
@@ -47,23 +47,13 @@ BDEPEND="${PYTHON_DEPS}
 DEPEND="${RDEPEND}"
 
 PATCHES=(
-       "${FILESDIR}"/${PN}-12.22.1-jinja_collections_abc.patch  # still needed 
as of 2021-06-04
+       "${FILESDIR}"/${PN}-12.22.5-shared_c-ares_nameser_h.patch
+       "${FILESDIR}"/${PN}-15.2.0-global-npm-config.patch
 )
 
 pkg_pretend() {
        (use x86 && ! use cpu_flags_x86_sse2) && \
                die "Your CPU doesn't support the required SSE2 instruction."
-
-       if [[ ${MERGE_TYPE} != "binary" ]]; then
-               if use lto; then
-                       if tc-is-gcc; then
-                               if [[ $(gcc-major-version) -ge 11 ]]; then
-                                       # Bug #787158
-                                       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"
-                               fi
-                       fi
-               fi
-       fi
 }
 
 src_prepare() {
@@ -95,7 +85,7 @@ src_prepare() {
        fi
 
        # We need to disable mprotect on two files when it builds Bug 694100.
-       use pax-kernel && PATCHES+=( 
"${FILESDIR}"/${PN}-13.8.0-paxmarking.patch )
+       use pax-kernel && PATCHES+=( 
"${FILESDIR}"/${PN}-18.0.0-paxmarking.patch )
 
        # All this test does is check if the npm CLI produces warnings of any 
sort,
        # failing if it does. Overkill, much? Especially given one possible 
warning
@@ -143,6 +133,7 @@ src_configure() {
                amd64) myarch="x64";;
                arm) myarch="arm";;
                arm64) myarch="arm64";;
+               lp64*) myarch="riscv64";;
                ppc64) myarch="ppc64";;
                x32) myarch="x32";;
                x86) myarch="ia32";;
@@ -217,10 +208,10 @@ src_install() {
 }
 
 src_test() {
-       # parallel/test-fs-mkdir is known to fail with FEATURES=usersandbox
        if has usersandbox ${FEATURES}; then
-               ewarn "You are emerging ${P} with 'usersandbox' enabled." \
-                       "Expect some test failures or emerge with 
'FEATURES=-usersandbox'!"
+               rm -f "${S}"/test/parallel/test-fs-mkdir.js
+               ewarn "You are emerging ${PN} with 'usersandbox' enabled. 
Excluding tests known to fail in this mode." \
+                       "For full test coverage, emerge =${CATEGORY}/${PF} with 
'FEATURES=-usersandbox'."
        fi
 
        out/${BUILDTYPE}/cctest || die

diff --git a/net-libs/nodejs/nodejs-99999999.ebuild 
b/net-libs/nodejs/nodejs-99999999.ebuild
index d9745115c19f..27f6e1677949 100644
--- a/net-libs/nodejs/nodejs-99999999.ebuild
+++ b/net-libs/nodejs/nodejs-99999999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -53,17 +53,6 @@ PATCHES=(
 pkg_pretend() {
        (use x86 && ! use cpu_flags_x86_sse2) && \
                die "Your CPU doesn't support the required SSE2 instruction."
-
-       if [[ ${MERGE_TYPE} != "binary" ]]; then
-               if use lto; then
-                       if tc-is-gcc; then
-                               if [[ $(gcc-major-version) -ge 11 ]]; then
-                                       # Bug #787158
-                                       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"
-                               fi
-                       fi
-               fi
-       fi
 }
 
 src_prepare() {

Reply via email to