depot_tools fails in a fresh docker container
Reported by
grayl...@gmail.com,
Nov 15 2016
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36 Steps to reproduce the problem: 1. docker run -it ubuntu:14.04 /bin/bash 2. apt-get update && apt-get install git 3. git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git 4. export PATH=$PATH:/path/to/depot_tools 5. mkdir chromium && cd chromium 6. fetch --no-history chromium What is the expected behavior? $ fetch --no-history chromium Running: gclient root Running: gclient config --spec 'solutions = [ { "managed": False, "name": "src", "url": "https://chromium.googlesource.com/chromium/src.git", "custom_deps": {}, "deps_file": ".DEPS.git", "safesync_url": "", }, ] ' Running: gclient sync --no-history Running: git submodule foreach 'git config -f $toplevel/.git/config submodule.$name.ignore all' Running: git config --add remote.origin.fetch '+refs/tags/*:refs/tags/*' Running: git config diff.ignoreSubmodules all What went wrong? $ fetch --no-history chromium Running: gclient root Running: gclient config --spec 'solutions = [ { "managed": False, "name": "src", "url": "https://chromium.googlesource.com/chromium/src.git", "custom_deps": {}, "deps_file": ".DEPS.git", "safesync_url": "", }, ] ' Running: gclient sync --no-history Error: Command '/usr/bin/python src/build/linux/sysroot_scripts/install-sysroot.py --running-as-hook' returned non-zero exit status 1 in /shared/chromium Traceback (most recent call last): File "/shared/depot_tools/fetch.py", line 300, in <module> sys.exit(main()) File "/shared/depot_tools/fetch.py", line 295, in main return run(options, spec, root) File "/shared/depot_tools/fetch.py", line 289, in run return checkout.init() File "/shared/depot_tools/fetch.py", line 132, in init self.run_gclient(*sync_cmd) File "/shared/depot_tools/fetch.py", line 76, in run_gclient return self.run(cmd_prefix + cmd, **kwargs) File "/shared/depot_tools/fetch.py", line 66, in run return subprocess.check_output(cmd, **kwargs) File "/usr/lib/python2.7/subprocess.py", line 573, in check_output raise CalledProcessError(retcode, cmd, output=output) subprocess.CalledProcessError: Command '('gclient', 'sync', '--no-history')' returned non-zero exit status 2 Did this work before? N/A Chrome version: Channel: canary OS Version: Ubuntu 14.04.5 LTS Flash Version: In short, it seems as if there is no DEPS for wget in "install-build-deps.sh" and also I guess it's strongly related to the Issue 650482 . https://bugs.chromium.org/p/chromium/issues/detail?id=650482 Since there is no wget installed in a fresh docker container, the error occurs in executing "gclient sync" command. Finally the error has gone after installing wget. (It may be applied to other linux systems without wget) ________ running '/usr/bin/python src/build/linux/sysroot_scripts/install-sysroot.py --running-as-hook' in '/shared/chromium' Installing Debian Wheezy amd64 root image: /shared/chromium/src/build/linux/debian_wheezy_amd64-sysroot Downloading https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/7d200a1ddfeb50dbf9f7e2c1c4ff1080679edf02/debian_wheezy_amd64_sysroot.tgz Traceback (most recent call last): File "src/build/linux/sysroot_scripts/install-sysroot.py", line 263, in <module> sys.exit(main(sys.argv[1:])) File "src/build/linux/sysroot_scripts/install-sysroot.py", line 192, in main InstallDefaultSysroots(host_arch) File "src/build/linux/sysroot_scripts/install-sysroot.py", line 156, in InstallDefaultSysroots InstallDefaultSysrootForArch(host_arch) File "src/build/linux/sysroot_scripts/install-sysroot.py", line 203, in InstallDefaultSysrootForArch InstallSysroot('Wheezy', 'amd64') File "src/build/linux/sysroot_scripts/install-sysroot.py", line 249, in InstallSysroot ['wget', '--quiet', '-t', '3', '-O', tarball, url]) File "/usr/lib/python2.7/subprocess.py", line 535, in check_call retcode = call(*popenargs, **kwargs) File "/usr/lib/python2.7/subprocess.py", line 522, in call return Popen(*popenargs, **kwargs).wait() File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory Error: Command '/usr/bin/python src/build/linux/sysroot_scripts/install-sysroot.py --running-as-hook' returned non-zero exit status 1 in /shared/chromium docker@e784087414cd:/shared/chromium/src$ wget -su: wget: command not found
,
Nov 23 2016
,
Nov 23 2017
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot |
|||
►
Sign in to add a comment |
|||
Comment 1 by manoranj...@chromium.org
, Nov 16 2016