Created attachment 914358 [details] Proposed patch Currently, attempting to emerge nodejs-22.12.0 on a pax-enabled kernel will result in a build failure: node_mksnapshot is killed upon attempting an RWX memory mapping without the proper markings. There's already a patch to enable building under such a setup, but it needs to be updated, as the related paxmarking in node.gyp is currently being applied to the wrong conditional block. Attached a proposed patch based on the existing work from William Hubbs.
Created attachment 914359 [details] portion of build.log demonstrating the build failure
Created attachment 914360 [details] dmesg output giving context to the build failure
Created attachment 914361 [details] emerge --info
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e565147a654479c47d5254366182c94f9bef681e commit e565147a654479c47d5254366182c94f9bef681e Author: William Hubbs <williamh@gentoo.org> AuthorDate: 2024-12-26 03:24:35 +0000 Commit: William Hubbs <williamh@gentoo.org> CommitDate: 2024-12-26 03:25:45 +0000 net-libs/nodejs: 22.12.0-r1 revbump to update pax-marking patch Closes: https://bugs.gentoo.org/946669 Signed-off-by: William Hubbs <williamh@gentoo.org> .../nodejs/files/nodejs-22.12.0-paxmarking.patch | 102 +++++++ net-libs/nodejs/nodejs-22.12.0-r1.ebuild | 293 +++++++++++++++++++++ 2 files changed, 395 insertions(+)
I don't think that requires a revbump (it's build-time-only and nodejs really takes ages to build)