gclient sync fail - can't open file 'trunk/sync_chromium.py': [Errno 2] No such file or directory
Closed this issue · 3 comments
GoogleCodeExporter commented
libyuv moved to git on june 9
getting started will need an update, once the procedure is known.
https://code.google.com/p/libyuv/wiki/GettingStarted
first step is create an empty folder and run
gclient config https://chromium.googlesource.com/libyuv/libyuv
which creates a .gclient with the following content
solutions = [
{ "name" : "libyuv",
"url" : "https://chromium.googlesource.com/libyuv/libyuv",
"deps_file" : "DEPS",
"managed" : True,
"custom_deps" : {
},
"safesync_url": "",
},
]
cache_dir = None
Then run gclient sync
expected to work. The source itself syncs, but chromium does not
d:\src\libyuv\libyuv>gclient sync
.gclient file in parent directory d:\src\libyuv might not be the file you want
to use
Syncing projects: 100% (1/1), done.
________ running 'c:\src\depot_tools\python276_bin\python.exe -u
trunk/sync_chromium.py --target-revision
3dba19a90208ee9c5890cffda0490c517cbdf43e' in 'd:\src\l
ibyuv'
c:\src\depot_tools\python276_bin\python.exe: can't open file
'trunk/sync_chromium.py': [Errno 2] No such file or directory
Error: Command 'c:\\src\\depot_tools\\python276_bin\\python.exe -u
trunk/sync_chromium.py --target-revision
3dba19a90208ee9c5890cffda0490c517cbdf43e' returned n
on-zero exit status 2 in d:\src\libyuv
libyuv used to live in 'trunk' subfolder. any dependencies on this need to
change to libyuv. As a work around
change trunk to libyuv running this:
c:\src\depot_tools\python276_bin\python.exe -u libyuv/sync_chromium.py
--target-revision 3dba19a90208ee9c5890cffda0490c517cbdf43e
possible changes needed here:
d:\src\libyuv\libyuv>findstr sync_chromium *
.gitignore:chromium/.last_sync_chromium
DEPS: "action": ["python", "-u", Var("root_dir") + "/sync_chromium.py",
sync_chromium.py:After a successful sync has completed, a .last_sync_chromium
file is written to
sync_chromium.py:# ignoring the .last_sync_chromium file
sync_chromium.py: flag_file = os.path.join(opts.chromium_dir,
'.last_sync_chromium')
d:\src\libyuv\libyuv>findstr trunk *
DEPS: "root_dir": "trunk",
drover.properties:TRUNK_URL = BASE_URL + "/trunk"
drover.properties:FILE_PATTERN = file_pattern_ = r"[ ]+([MADUC])[
]+/((?:trunk|branches/.*?)(.*)/(.*))"
Original issue reported on code.google.com by fbarch...@chromium.org
on 9 Jun 2015 at 10:07
GoogleCodeExporter commented
CL: https://webrtc-codereview.appspot.com/52109004/
Original comment by no...@chromium.org
on 9 Jun 2015 at 11:12
GoogleCodeExporter commented
This is fixed by https://webrtc-codereview.appspot.com/52109004/ combined with
the changes to .gclient.
Original comment by kjellan...@google.com
on 10 Jun 2015 at 9:33
- Changed state: Fixed
GoogleCodeExporter commented
I also updated https://code.google.com/p/libyuv/wiki/GettingStarted
Original comment by kjellan...@google.com
on 10 Jun 2015 at 9:37