cogito Mac OS X compatibility
On Mac OS X
$ cg-clone http://www.kernel.org/pub/scm/cogito/cogito.git defaulting to local storage area 19:11:10 URL:http://www.kernel.org/pub/scm/cogito/cogito.git/refs/heads/master [41/41] -> "refs/heads/origin" [1] /Users/blarsen/bin/cg-pull: line 82: 0 + : syntax error: operand expected (error token is " ") cg-pull: objects pull failed cg-init: pull failed
This appears to be some sort of weird shell thing. I've got bash 3.0 compiling in the background to see if that fixes the problem.
Cogito also appears to rely on the gnu tools. For instance, I've seen the "-a" flag used with cp. OS X's default installation of cp doesn't support -a. darwinports coreutils installs gnu cp as "gcp".
Myself, I can't live without cp -a, so have linked gcp to cp, but I presume we want to be portable, at least to a certain degree.
Bryan
Quoted 3 lines · Bryan Larsen
This appears to be some sort of weird shell thing. I've got bash 3.0 compiling in the background to see if that fixes the problem.
Sounds like you're missing "stat" from coreutils.
skimo
Quoted 5 lines
Sounds like you're missing "stat" from coreutils.
skimo
Thanks. I've got it working to the point where it passes "make test" now. All I had to do was install coreutils and findutils from darwinports, and then make gcp, gstat and gnuxargs available under their standard names.
Do the BSD's or Solaris have the same problem? Last time I used them they didn't have the gnu options available on their standard utils, but that was ages ago. If current BSD's have the problem, it might be worth expending some effort to make cogito more portable. If it's only OS X...
Bryan
Dear diary, on Sat, Jul 09, 2005 at 01:34:55AM CEST, I got a letter where Bryan Larsen <[email protected]> told me that...
Quoted 11 lines
On Mac OS X
$ cg-clone http://www.kernel.org/pub/scm/cogito/cogito.git defaulting to local storage area 19:11:10 URL:http://www.kernel.org/pub/scm/cogito/cogito.git/refs/heads/master [41/41] -> "refs/heads/origin" [1] /Users/blarsen/bin/cg-pull: line 82: 0 + : syntax error: operand expected (error token is " ") cg-pull: objects pull failed cg-init: pull failed
That's strange. I assume you don't have the stat utility, but that shouldn't matter - Cogito has own stat stub to use in those cases. Could you please put some debugging stuff into stat() in cg-Xlib to see what's going on? (Beware, cg-pull calls it with 2>/dev/null.) Thanks.
Signature · 3 lines
Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ <Espy> be careful, some twit might quote you out of context..
Quoted 1 line · Bryan Larsen
On Mac OS X
It also uses on GNU xargs, and the xargs options aren't compatible between GNU and BSD xargs.
Sad thing is, some of the dependencies, like xargs, aren't available in fink, so you can build your toolchaing or boot into GNU/LinuxPPC. Debian actually has git (cogito?) experimental packages.
cheers,
martin