Error with 'gclient sync'

342 views
Skip to first unread message

A S

unread,
Jan 3, 2014, 9:07:56 PM1/3/14
to chromi...@chromium.org
I'm trying to build an old version of Chromium (22.0.1195.0) as follows:

$ gclient sync

I got the following error:

Error: Command svn checkout http://jsoncpp.svn.sourceforge.net/svnroot/jsoncpp/trunk/jsoncpp/include@248 /home/ankit/WProf-1.0/chrome/src/third_party/jsoncpp/source/include --revision 248 --non-interactive --ignore-externals returned non-zero exit status 1 in /home/ankit/WProf-1.0/chrome

On searching around, I found this thread (https://groups.google.com/a/chromium.org/forum/#!msg/chromium-dev/rLXJlSplOic/BwEDch8G1dkJ) that noted that the jsoncpp repo had moved. I tried the fix suggested there (Try changing "sourceforge_url": "http://%(repo)s.svn.sourceforge.net/svnroot/%(repo)s" in your DEPS into "sourceforge_url": "http://svn.code.sf.net/p/%(repo)s/code") and re-run gclient sync, but still got the same error.

I've also tried following the instructions on the Chromium how-to-get-code page (http://www.chromium.org/developers/how-tos/get-the-code) wherein the section "Develop using a SVN dependency not in any of the available Git repos" seems relevant. But still no luck (same error message).

Any ideas on what I can try? Why is any svn command still being run with the old repo even after editing the DEPS file? In the first place it should be run with the new repo address, right? What am I missing?

Thanks.

A S

unread,
Jan 3, 2014, 9:09:32 PM1/3/14
to chromi...@chromium.org
Note: I also tried the svn switch with relocate as follows (inside the jsoncpp directory):


And then tried re-running sync, but still the same error.

Thanks.

Shezan Baig

unread,
Jan 3, 2014, 10:54:29 PM1/3/14
to iitb....@gmail.com, chromi...@chromium.org

Which DEPS file did you modify?  There's one in src and one in the "22.0.1195.0" folder.
Also, you might want to double check that "gclient sync" is not redownloading the DEPS and overwriting your changes (I'm not sure if that's what's happening for you, but worth checking that).
Worst case scenario, you could just svn checkout that repo manually.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.

Ankit Singla

unread,
Jan 4, 2014, 8:10:26 AM1/4/14
to chromi...@chromium.org
Thanks Shezan, I was indeed modifying the DEPS file you mention, and I
did check that it's not being overwritten. I have also tried to force
svn to fetch the correct jsoncpp folder manually and checked that 'svn
info' in the directories underneath it points to the new repository.
Still I get the same error.

Ankit Singla

unread,
Jan 4, 2014, 8:14:39 AM1/4/14
to chromium-dev
Actually, that was very helpful indeed. At least my sync is making
progress now. Shezan's suggestion to modify both DEPS files (I hadn't
edited the one in 22.0.1195.0) helped move things forward -- hopefully
this works!!

Thanks
Reply all
Reply to author
Forward
0 new messages