Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 893246 - net-libs/nodejs-18.13: fails to compile due to old libuv
Summary: net-libs/nodejs-18.13: fails to compile due to old libuv
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-04 21:10 UTC by NRK
Modified: 2023-02-04 22:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description NRK 2023-02-04 21:10:54 UTC
Trying to compile nodejs 18.13 with libuv v1.43 fails with the following error:

../src/node_platform.cc: In function 'int node::{anonymous}::GetActualThreadPoolSize(int)':
../src/node_platform.cc:50:24: error: 'uv_available_parallelism' was not declared in this scope
   50 |     thread_pool_size = uv_available_parallelism() - 1;
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~

Looking at the libuv docs [0], it says uv_available_parallelism is "new in version 1.44" while the current ebuild seems to require only 1.40. I believe this should be bumped to v1.44.

[0]: https://docs.libuv.org/en/v1.x/misc.html#c.uv_available_parallelism
Comment 1 Larry the Git Cow gentoo-dev 2023-02-04 22:15:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=204fd0fac63cd554f528c82dbb222ebed9a4efaf

commit 204fd0fac63cd554f528c82dbb222ebed9a4efaf
Author:     William Hubbs <williamh@gentoo.org>
AuthorDate: 2023-02-04 22:14:02 +0000
Commit:     William Hubbs <williamh@gentoo.org>
CommitDate: 2023-02-04 22:14:59 +0000

    net-libs/nodejs:  fix libuv dependency
    
    Closes: https://bugs.gentoo.org/893246
    Signed-off-by: William Hubbs <williamh@gentoo.org>

 net-libs/nodejs/nodejs-18.13.0.ebuild | 2 +-
 net-libs/nodejs/nodejs-18.14.0.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)