kdesvn-build git bug possibly fixed?
January 26th 2010 09:57 pm
So if you’ve used kdesvn-build to build some of the modules that are hosted on Gitorious then you are probably familiar with an error that always comes up when doing the initial checkout. This error is so famous that every “how to build using kdesvn-build” guide I’ve seen over the past couple of months have mentioned that the clone step for qt-copy would need to be done manually.
A Konversation developer, argonel, noticed the issue the other day and got in touch with me, so I had him strace the output of the (successful) manual run and the (unsuccessful) kdesvn-build run. It wasn’t initially super helpful although it clarified what was going on (the gitorious.org end of the connect was closed on their end for some reason).
That was the conclusion of that, but then I get an email the next day from argonel saying that he’d done more digging, and that it was a known issue which could be worked around by adding the -v flag to git, which forces progress output to be displayed even if the output is redirected. (The issue has something to do with kdesvn-build redirecting the git output, if you run the git command manually but redirect its stdout to a file then you’ll see the clone fail after about 30 seconds as well).
This progress output makes the logged output look really bad, however, so the workaround I ended up implementing in kdesvn-build is to show the progress output on the terminal and redirect the rest (you may actually prefer this as it’s possible to see the progress of the checkout now).
In short, the Great kdesvn-build Git Clone Bug should be fixed. Please test the trunk version of kdesvn-build for me to make sure I got it though!

Uh, this is a bug in Gitorious.
We ran into it almost 2 years ago inside Qt, when we started deploying our test farm (which downloaded Qt from Gitorious without progress bars).
I think we never reported the issue to the Gitorious/Shortcut developers.
Oops :-)
I’m really sorry to say it’s not. I took kdesvn-build from svn this night and today qt-copy was still hung after counting objects. =(
Oh, btw, sure, I was taking a fresh download of everything and I forgot to mention that copying the same git clone that kdesvn-build was still running this morning (hung) and running it directly still works, too.
Also, a little time ago I tried to make a script that would run the same git clone (without -v then) before kdesvn-build and the result was the same as with kdesvn-build. =/
Well I’d figured out it was probably a gitorious bug but that doesn’t help the hojillion users who will only be downloading from gitorious. :-/
Hmm. I’ll try -v and see if it helps. Doesn’t sound promising, though, if others are still experiencing issues.
Thanks for the tip, though!