Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 633720 - dev-util/electron-1.6.11-r1 fails to build - /usr/bin/env: ‘node’: No such file or directory
Summary: dev-util/electron-1.6.11-r1 fails to build - /usr/bin/env: ‘node’: No such fi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Elvis Pranskevichus
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-07 19:26 UTC by Michele Alzetta
Modified: 2017-12-08 22:22 UTC (History)
2 users (show)

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


Attachments
build.log (build.log.tar.gz,782.74 KB, application/gzip)
2017-10-07 19:26 UTC, Michele Alzetta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michele Alzetta 2017-10-07 19:26:56 UTC
Created attachment 498056 [details]
build.log

This happened the first time with ccache, so I disactivated ccache and tried emerging electron again, the process failed in the same way.

At the end of the compilation step the process fails as follows:

[74/75] AR obj/chromiumcontent/libchromiumcontent.a
[75/75] STAMP obj/chromiumcontent/libs.stamp
[14397/14397] touch obj/chromiumcontent/chromiumcontent.stamp
/var/tmp/portage/dev-util/electron-1.6.11-r1/work/electron-1.6.11/chromium/build/gyp_chromium --depth=. -Duse_cups=1 -Duse_gconf=0 -Duse_gnome_keyring=0 -Dlinux_link_gnome_keyring=0 -Duse_lto=0 -Dclang=0 -Dclang_use_chrome_plugins=0 -Dhost_clang=0 -Dlinux_use_bundled_binutils=0 -Dlinux_use_bundled_gold=0 -Dlinux_use_gold_flags=0 -Dsysroot= -Dtarget_arch=x64 -Dwerror= -Ddisable_fatal_linker_warnings=1 -Dicu_use_data_file_flag=0 -Dgenerate_character_data=0 -Dlibchromiumcontent_component=0 -Dcomponent=static_library -Dlibrary=static_library -Ivendor/node/config.gypi -Icommon.gypi electron.gyp
Updating projects from gyp files...
/usr/bin/env: ‘node’: No such file or directory
Traceback (most recent call last):
  File "tools/list-browserify-deps.py", line 12, in <module>
    deps = subprocess.check_output([BROWSERIFY, '--list'] + sys.argv[1:])
  File "/usr/lib64/python2.7/subprocess.py", line 219, in check_output
    raise CalledProcessError(retcode, cmd, output=output)                                                                                                                                                  
subprocess.CalledProcessError: Command '['node_modules/.bin/browserify', '--list', './lib/sandboxed_renderer/init.js', '-r', './lib/sandboxed_renderer/api/exports/electron.js:electron', '-r', './lib/sandboxed_renderer/api/exports/fs.js:fs', '-r', './lib/sandboxed_renderer/api/exports/os.js:os', '-r', './lib/sandboxed_renderer/api/exports/path.js:path', '-r', './lib/sandboxed_renderer/api/exports/child_process.js:child_process']' returned non-zero exit status 127                                                                                                                                               
gyp: Call to 'python tools/list-browserify-deps.py ./lib/sandboxed_renderer/init.js -r ./lib/sandboxed_renderer/api/exports/electron.js:electron -r ./lib/sandboxed_renderer/api/exports/fs.js:fs -r ./lib/sandboxed_renderer/api/exports/os.js:os -r ./lib/sandboxed_renderer/api/exports/path.js:path -r ./lib/sandboxed_renderer/api/exports/child_process.js:child_process' returned exit status 1 while in electron.gyp.                                                                                                                                                                                                    
 * ERROR: dev-util/electron-1.6.11-r1::gentoo failed (compile phase):                                                                                                                                      
 *   (no error message)                                                                                                                                                                                    
 *                                                                                                                                                                                                         
 * Call stack:                                                                                                                                                                                             
 *     ebuild.sh, line 124:  Called src_compile                                                                                                                                                            
 *   environment, line 5352:  Called die                                                                                                                                                                   
 * The specific snippet of code:
 *       EGYP_CHROMIUM_COMMAND="${CHROMIUM_S}/build/gyp_chromium" egyp_chromium ${myconf_gyp} || die;
Comment 1 Michele Alzetta 2017-10-08 06:37:38 UTC
It seems the ebuild has a missing dependency on node.js

Emerge node folowed by emerge electron works.
Comment 2 Larry the Git Cow gentoo-dev 2017-12-08 22:22:53 UTC
The bug has been closed via the following commit(s):

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

commit 08f69fe500076c4ecd3291a4297eb6b392f69985
Author:     Elvis Pranskevichus <elvis@magic.io>
AuthorDate: 2017-12-04 16:51:54 +0000
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: 2017-12-08 22:22:06 +0000

    dev-util/electron: version bump to 1.6.15.
    
    Closes: https://bugs.gentoo.org/633720
    Closes: https://bugs.gentoo.org/635276
    Closes: https://bugs.gentoo.org/638270
    Closes: https://bugs.gentoo.org/638992
    Closes: https://bugs.gentoo.org/640140
    Closes: https://github.com/gentoo/gentoo/pull/6478
    
    Signed-off-by: Elvis Pranskevichus <elvis@magic.io>
    Package-Manager: Portage-2.3.13, Repoman-2.3.3

 dev-util/electron/Manifest                         |  49 +-
 ...ron-1.6.11-r1.ebuild => electron-1.6.15.ebuild} |  90 +++-
 dev-util/electron/files/chromium-gcc-7-r0.patch    | 114 ++++
 dev-util/electron/files/chromium-icu-59-r0.patch   | 582 +++++++++++++++++++++
 dev-util/electron/files/chromium-icu-60-r0.patch   |  66 +++
 .../files/chromium-python3-compat-r0.patch         |  34 ++
 .../electron/files/chromium-shared-v8-r2.patch     |  94 +---
 .../electron/files/chromium-system-icu-r0.patch    | 140 +++++
 .../electron/files/chromium-v8-icu-59-r0.patch     |  83 +++
 ...electron-1.6.11-vendor-libchromiumcontent.patch |  86 ---
 .../files/electron-1.6.15-vendor-breakpad.patch    | 223 ++++++++
 ...atch => electron-1.6.15-vendor-brightray.patch} |  74 ++-
 ...electron-1.6.15-vendor-libchromiumcontent.patch | 202 +++++++
 ...ode.patch => electron-1.6.15-vendor-node.patch} |  44 +-
 ...electron-1.6.11.patch => electron-1.6.15.patch} | 124 +++--
 .../electron/files/electron-system-icu-r0.patch    |  34 ++
 16 files changed, 1744 insertions(+), 295 deletions(-)