Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 615434 - www-client/chromium-58.0.3029.19: compilation failure on RAP: ../../third_party/node/linux/node-linux-x64/bin/node: No such file or directory
Summary: www-client/chromium-58.0.3029.19: compilation failure on RAP: ../../third_par...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-13 12:33 UTC by Gábor VIDA
Modified: 2017-04-13 15:28 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge.info.txt,5.46 KB, text/plain)
2017-04-13 12:33 UTC, Gábor VIDA
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gábor VIDA 2017-04-13 12:33:27 UTC
Created attachment 469950 [details]
emerge --info

In the ebuild's src_prepare() function it creates a symlink to /usr/bin/node:

  ln -s /usr/bin/node third_party/node/linux/node-linux-x64/bin/node || die

In an EPREFIXed environment /usr/bin/node belongs to the the host OS's node binary.
If not installed then the compilation fails:

[...]
../../third_party/node/linux/node-linux-x64/bin/node ../../third_party/node/node_modules/vulcanize/bin/vulcanize --exclude chrome://resources/html/polymer.html --exclude web-animations-next-lite.min.js --exclude load_time_data.js --exclude strings.js --exclude text_defaults.css --exclude text_defaults_md.css --inline-css --inline-scripts --strip-comments --redirect "chrome://resources/cr_elements/|../../ui/webui/resources/cr_elements" --redirect "chrome://resources/css/|../../ui/webui/resources/css" --redirect "chrome://resources/html/|../../ui/webui/resources/html" --redirect "chrome://resources/js/|../../ui/webui/resources/js" --redirect "chrome://resources/polymer/v1_0/|../../third_party/polymer/v1_0/components-chromium" --exclude chrome://resources/html/util.html --exclude chrome://history/constants.html --out-request-list /home/evidgbo/usr/roots/gentoo/var/tmp/portage/www-client/chromium-58.0.3029.19/work/chromium-58.0.3029.19/out/Release/gen/chrome/browser/resources/md_history/app.vulcanized.unbuilt.html_requestlist.txt --redirect "/|/home/evidgbo/usr/roots/gentoo/var/tmp/portage/www-client/chromium-58.0.3029.19/work/chromium-58.0.3029.19/chrome/browser/resources/md_history" --redirect "chrome://history/|/home/evidgbo/usr/roots/gentoo/var/tmp/portage/www-client/chromium-58.0.3029.19/work/chromium-58.0.3029.19/chrome/browser/resources/md_history" /app.html failed: /bin/sh: ../../third_party/node/linux/node-linux-x64/bin/node: No such file or directory
[...]

I corrected the ebuild locally:

  ln -s ${EPREFIX}/usr/bin/node third_party/node/linux/node-linux-x64/bin/node || die

Which then helped to successfully pass this compilation stage on my Gentoo RAP.
According to "man 5 ebuild", EPREFIX is empty string in case there's no path offset
is used (ie. no EPREFIXed env.), so I think this change is safe for everyone.
Comment 1 Mike Gilbert gentoo-dev 2017-04-13 15:28:11 UTC
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d70a7a4eed33090d88793598760e2cab47740ed7

commit d70a7a4eed33090d88793598760e2cab47740ed7
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Thu Apr 13 11:26:35 2017 -0400

    www-client/chromium: fix /usr/bin/node symlink on prefix
    
    Bug: https://bugs.gentoo.org/615434
    Package-Manager: Portage-2.3.5_p19, Repoman-2.3.2_p49

 www-client/chromium/chromium-58.0.3029.19.ebuild | 2 +-
 www-client/chromium/chromium-59.0.3063.4.ebuild  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)