python automate-git.py --download-dir=/home/thesheeep/git/cef --branch=2840
This is the error I get (last part of the output):
--> successfully patched ../content/browser/streams/stream_context.h
--> successfully patched ../content/public/browser/browser_context.h
--> successfully patched ../content/public/browser/storage_partition.h
Generating CEF project files...
Creating /home/thesheeep/git/cef/chromium/src/out/Debug_GN_x64 directory.
________ running 'gn gen out/Debug_GN_x64' in '/home/thesheeep/git/cef/chromium/src'
ERROR at //printing/BUILD.gn:135:22: Script returned non-zero exit code.
cups_version = exec_script("cups_config_helper.py",
^----------
Current dir: /home/thesheeep/git/cef/chromium/src/out/Debug_GN_x64/
Command: python -- /home/thesheeep/git/cef/chromium/src/printing/cups_config_helper.py --api-version
Returned 1.
stderr:
Traceback (most recent call last):
File "/home/thesheeep/git/cef/chromium/src/printing/cups_config_helper.py", line 106, in <module>
sys.exit(main())
File "/home/thesheeep/git/cef/chromium/src/printing/cups_config_helper.py", line 76, in main
subprocess.call([cups_config, '--api-version'])
File "/usr/lib/python2.7/subprocess.py", line 523, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
See //BUILD.gn:250:7: which caused the file to be included.
"//printing:printing_unittests",
^------------------------------
Traceback (most recent call last):
File "tools/gclient_hook.py", line 134, in <module>
RunAction(src_dir, cmd)
File "/home/thesheeep/git/cef/chromium/src/cef/tools/gclient_util.py", line 39, in RunAction
command, cwd=dir, always=True)
File "/home/thesheeep/git/cef/depot_tools/gclient_utils.py", line 293, in CheckCallAndFilterAndHeader
return CheckCallAndFilter(args, **kwargs)
File "/home/thesheeep/git/cef/depot_tools/gclient_utils.py", line 538, in CheckCallAndFilter
rv, args, kwargs.get('cwd', None), None, None)
subprocess2.CalledProcessError: Command 'gn gen out/Debug_GN_x64' returned non-zero exit status 1 in /home/thesheeep/git/cef/chromium/src
Traceback (most recent call last):
File "automate-git.py", line 942, in <module>
run(path, cef_src_dir, depot_tools_dir)
File "automate-git.py", line 55, in run
shell=(sys.platform == 'win32'))
File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/thesheeep/git/cef/chromium/src/cef/cef_create_projects.sh']' returned non-zero exit status 1
re-running the script yields:
--> Download Directory: /home/thesheeep/git/cef
--> Depot Tools Directory: /home/thesheeep/git/cef/depot_tools
--> Updating depot_tools
-------- Running "update_depot_tools" in "/home/thesheeep/git/cef/depot_tools"...
-------- Running "git config --get remote.origin.url" in "/home/thesheeep/git/cef/cef"...
--> CEF Branch: 2840
--> CEF URL: https://bitbucket.org/chromiumembedded/cef.git
--> CEF Source Directory: /home/thesheeep/git/cef/cef
-------- Running "git rev-parse HEAD" in "/home/thesheeep/git/cef/cef"...
-------- Running "git fetch" in "/home/thesheeep/git/cef/cef"...
-------- Running "git rev-parse origin/2840" in "/home/thesheeep/git/cef/cef"...
--> CEF Current Checkout: 2be7dee3faee11e17dfb2a5fa111a0f5ea2b3647
--> CEF Desired Checkout: 2be7dee3faee11e17dfb2a5fa111a0f5ea2b3647 (origin/2840)
--> CEF Output Directory: /home/thesheeep/git/cef/out_2840
-------- Running "git config --get remote.origin.url" in "/home/thesheeep/git/cef/chromium/src"...
--> Chromium URL: https://chromium.googlesource.com/chromium/src.git
-------- Running "git rev-parse HEAD" in "/home/thesheeep/git/cef/chromium/src"...
-------- Running "git rev-parse refs/tags/54.0.2840.16" in "/home/thesheeep/git/cef/chromium/src"...
--> Chromium Current Checkout: e7e4267731b076112ee68352dce77808de507811
--> Chromium Desired Checkout: e7e4267731b076112ee68352dce77808de507811 (refs/tags/54.0.2840.16)
--> Not building. The source hashes have not changed and the output folder "/home/thesheeep/git/cef/chromium/src/out" already exists