This is related to https://bugs.gentoo.org/show_bug.cgi?id=462703 I observe the exact opposite behaviour of the above bug on my prefix system using nodejs-0.12.0 or 0.11.5: the path to the python install script needs to be "${ED}", not "${D}" in order for nodejs to not install outside "${EPREFIX}" (instead of double prefix): --- nodejs-0.12.0.ebuild.orig 2015-02-28 14:13:41.741287868 +0000 +++ nodejs-0.12.0.ebuild 2015-02-28 13:26:43.759516513 +0000 @@ -79,7 +79,7 @@ src_compile() { } src_install() { - "${PYTHON}" tools/install.py install "${D}" /usr + "${PYTHON}" tools/install.py install "${ED}" /usr use npm && dohtml -r "${ED}"/usr/lib/node_modules/npm/html/* rm -rf "${ED}"/usr/lib/node_modules/npm/doc "${ED}"/usr/lib/node_modules/npm/html I tested versions <0.11 and >=0.11. In short: use "{D}" for <nodejs-0.11 and "${ED}" for >=nodejs-0.11.
To elaborate (should have put this better), I tested the following versions: 0.10.36 - success with ${D}, failure with ${ED} 0.11.12 - failure with ${D}, success with ${ED} 0.11.15 - failure with ${D}, success with ${ED} 0.12.0 - failure with ${D}, success with ${ED}
This is crazy :) Anyway, since I can't really verify I'll take your word for it. Patrick? Also; 0.11.x should be removed asap in favour of 0.12.
0.12.1 - failure with ${D}, success with ${ED} 0.12.2 - failure with ${D}, success with ${ED}
Please give this a go: https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/118
compiling works, installation gives the following error: >>> Install nodejs-0.12.2-r2 into /dev/shm/portage/net-libs/nodejs-0.12.2-r2/image/ category net-libs [...] ln -fs out/Release/node node ${prefix}/usr/bin/python2.7 tools/install.py install '/dev/shm/portage/net-libs/nodejs-0.12.2-r2/image/${prefix}' '${prefix}/usr' install: cannot stat '/dev/shm/portage/net-libs/nodejs-0.12.2-r2/image/${prefix}/usr/lib/node_modules/npm/html': No such file or directory The issue here is that usr/lib/node_modules/npm is installed into a double ${prefix}.
Michael, thanks for your feedback. Do you have any suggestions as how to remedy this since I don't have a prefix setup?
change line: emake install DESTDIR="${ED}" to: emake install DESTDIR="${ED}" PREFIX=/usr
This should be fixed since 0.12.2-r2.
Sorry, -r3 here.