net-libs/nodejs: use eninja for jobserver support

Switch back to using eninja directly, not emake->ninja. Calling ninja
indirectly has a few disadvantages, as we have to both pass -Onone to
bypass Portage's default for output synchronisation, it means we have
to hack around not having options passed down to ninja, and it breaks
jobserver support (because ninja won't act as a client if -jN is passed).

We started using emake in 9825cd3d791456cd0265d0c82611c4ceffd4ff22 to avoid
ninja-utils (not clear to me why) but since 305e66472660ee50117267b499f23d3883340deb
we already use ninja-utils again, so the indirection gains us nothing.

With this, nodejs + the steve jobserver doesn't bomb my machine with
jobs anymore.

Closes: https://bugs.gentoo.org/966651
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2025-12-04 01:41:54 +00:00
parent 23e0f39f78
commit fa5ca61883
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
14 changed files with 14 additions and 28 deletions

View File

@ -169,8 +169,7 @@ src_configure() {
}
src_compile() {
export NINJA_ARGS=" $(get_NINJAOPTS) "
emake -Onone
eninja -C out/Release
}
src_install() {

View File

@ -169,8 +169,7 @@ src_configure() {
}
src_compile() {
export NINJA_ARGS=" $(get_NINJAOPTS) "
emake -Onone
eninja -C out/Release
}
src_install() {

View File

@ -169,8 +169,7 @@ src_configure() {
}
src_compile() {
export NINJA_ARGS=" $(get_NINJAOPTS) "
emake -Onone
eninja -C out/Release
}
src_install() {

View File

@ -188,8 +188,7 @@ src_configure() {
}
src_compile() {
export NINJA_ARGS=" $(get_NINJAOPTS)"
emake -Onone
eninja -C out/Release
}
src_install() {

View File

@ -188,8 +188,7 @@ src_configure() {
}
src_compile() {
export NINJA_ARGS=" $(get_NINJAOPTS)"
emake -Onone
eninja -C out/Release
}
src_install() {

View File

@ -188,8 +188,7 @@ src_configure() {
}
src_compile() {
export NINJA_ARGS=" $(get_NINJAOPTS)"
emake -Onone
eninja -C out/Release
}
src_install() {

View File

@ -188,8 +188,7 @@ src_configure() {
}
src_compile() {
export NINJA_ARGS=" $(get_NINJAOPTS)"
emake -Onone
eninja -C out/Release
}
src_install() {

View File

@ -189,8 +189,7 @@ src_configure() {
}
src_compile() {
export NINJA_ARGS=" $(get_NINJAOPTS)"
emake -Onone
eninja -C out/Release
}
src_install() {

View File

@ -185,8 +185,7 @@ src_configure() {
}
src_compile() {
export NINJA_ARGS=" $(get_NINJAOPTS)"
emake -Onone
eninja -C out/Release
}
src_install() {

View File

@ -187,8 +187,7 @@ src_configure() {
}
src_compile() {
export NINJA_ARGS=" $(get_NINJAOPTS)"
emake -Onone
eninja -C out/Release
}
src_install() {

View File

@ -185,8 +185,7 @@ src_configure() {
}
src_compile() {
export NINJA_ARGS=" $(get_NINJAOPTS)"
emake -Onone
eninja -C out/Release
}
src_install() {

View File

@ -185,8 +185,7 @@ src_configure() {
}
src_compile() {
export NINJA_ARGS=" $(get_NINJAOPTS)"
emake -Onone
eninja -C out/Release
}
src_install() {

View File

@ -186,8 +186,7 @@ src_configure() {
}
src_compile() {
export NINJA_ARGS=" $(get_NINJAOPTS)"
emake -Onone
eninja -C out/Release
}
src_install() {

View File

@ -185,8 +185,7 @@ src_configure() {
}
src_compile() {
export NINJA_ARGS=" $(get_NINJAOPTS)"
emake -Onone
eninja -C out/Release
}
src_install() {