Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 636586 - www-client/chromium-62.0.3202.75 does not compile with nodejs 4.6.1
Summary: www-client/chromium-62.0.3202.75 does not compile with nodejs 4.6.1
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-11-05 09:11 UTC by Hans de Graaff
Modified: 2017-11-05 15:07 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 Hans de Graaff gentoo-dev Security 2017-11-05 09:11:37 UTC
The ebuild lists 4.6.1 as the lowest allowed version, but the compile fails with node-related messages included below. Updating to node 6.9.4 fixed this and allowed the build to pass this point.

[451/28517] python ../../chrome/browser/resources/vulcanize_gn.py --host bookmarks --input ../../chrome/browser/resources/md_bookmarks --out_folder gen/chrome/browser/resources/md_bookmarks --depfile gen/chrome/browser/resources/md_bookmarks/build.d --html_in_files bookmarks.html --html_out_files vulcanized.html --js_out_files crisper.js
FAILED: gen/chrome/browser/resources/md_bookmarks/vulcanized.html gen/chrome/browser/resources/md_bookmarks/crisper.js 
python ../../chrome/browser/resources/vulcanize_gn.py --host bookmarks --input ../../chrome/browser/resources/md_bookmarks --out_folder gen/chrome/browser/resources/md_bookmarks --depfile gen/chrome/browser/resources/md_bookmarks/build.d --html_in_files bookmarks.html --html_out_files vulcanized.html --js_out_files crisper.js
../../third_party/node/linux/node-linux-x64/bin/node ../../third_party/node/node_modules/polymer-bundler/lib/bin/polymer-bundler --exclude chrome://resources/html/polymer.html --exclude chrome://resources/polymer/v1_0/polymer/polymer.html --exclude chrome://resources/polymer/v1_0/polymer/polymer-micro.html --exclude chrome://resources/polymer/v1_0/polymer/polymer-mini.html --exclude chrome://resources/polymer/v1_0/web-animations-js/web-animations-next-lite.min.js --exclude chrome://resources/css/roboto.css --exclude chrome://resources/css/text_defaults.css --exclude chrome://resources/css/text_defaults_md.css --exclude chrome://resources/js/load_time_data.js --inline-css --inline-scripts --rewrite-urls-in-templates --strip-comments --redirect "chrome://resources/cr_components/|../../ui/webui/resources/cr_components" --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 strings.js --exclude chrome://bookmarks/strings.js --manifest-out /var/tmp/portage/www-client/chromium-62.0.3202.75/work/chromium-62.0.3202.75/out/Release/gen/chrome/browser/resources/md_bookmarks/bookmarks_requestlist.txt --root /var/tmp/portage/www-client/chromium-62.0.3202.75/work/chromium-62.0.3202.75/chrome/browser/resources/md_bookmarks --redirect "chrome://bookmarks/|/var/tmp/portage/www-client/chromium-62.0.3202.75/work/chromium-62.0.3202.75/chrome/browser/resources/md_bookmarks" --out-dir gen/chrome/browser/resources/md_bookmarks/bundled --shell bookmarks.html --in-html bookmarks.html failed: /var/tmp/portage/www-client/chromium-62.0.3202.75/work/chromium-62.0.3202.75/third_party/node/node_modules/polymer-bundler/lib/bin/polymer-bundler.js:178
        const [prefix, path] = redirect.split('|');
              ^

SyntaxError: Unexpected token [
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:139:18)
    at node.js:974:3

Traceback (most recent call last):
  File "../../chrome/browser/resources/vulcanize_gn.py", line 252, in <module>
    main(sys.argv[1:])
  File "../../chrome/browser/resources/vulcanize_gn.py", line 235, in main
    manifest_out_path = _vulcanize(args.input, args)
  File "../../chrome/browser/resources/vulcanize_gn.py", line 159, in _vulcanize
    ] + in_html_args)
  File "../../third_party/node/node.py", line 28, in RunNode
    raise
TypeError: exceptions must be old-style classes or derived from BaseException, not NoneType
Comment 1 Larry the Git Cow gentoo-dev 2017-11-05 15:07:07 UTC
The bug has been closed via the following commit(s):

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

commit b41f593d037b245f4775ac2af7cbcbbdacfdf947
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2017-11-05 15:06:58 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2017-11-05 15:06:58 +0000

    www-client/chromium: depend on >=net-libs/nodejs-6.9.4
    
    Closes: https://bugs.gentoo.org/636586
    Package-Manager: Portage-2.3.13_p1, Repoman-2.3.3_p81

 www-client/chromium/chromium-62.0.3202.75.ebuild | 2 +-
 www-client/chromium/chromium-63.0.3239.30.ebuild | 2 +-
 www-client/chromium/chromium-64.0.3253.3.ebuild  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)