threads / discuss / 1178

cogito Mac OS X compatibility

Subject: cogito Mac OS X compatibility

## tl;dr

5 messages between Jul 8, 2005 and Jul 10, 2005.

replies: 4people: 4as markdown or json

Bryan Larsen· Jul 8, 2005, 23:34 UTC · lore
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
Martin Langhoff· Jul 9, 2005, 13:40 UTC · re: Bryan Larsen · lore

Re: cogito Mac OS X compatibility

On 7/9/05, Bryan Larsen <bryan.larsen@gmail.com> wrote:
> 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
Sven Verdoolaege· Jul 9, 2005, 16:50 UTC · re: Bryan Larsen · lore

Re: cogito Mac OS X compatibility

On Fri, Jul 08, 2005 at 07:34:55PM -0400, Bryan Larsen wrote:
> 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
Bryan Larsen· Jul 9, 2005, 18:38 UTC · re: Sven Verdoolaege · lore

Re: cogito Mac OS X compatibility

> 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
Petr Baudis· Jul 10, 2005, 14:29 UTC · re: Bryan Larsen · lore

Re: cogito Mac OS X compatibility

Dear diary, on Sat, Jul 09, 2005 at 01:34:55AM CEST, I got a letter where Bryan Larsen <bryan.larsen@gmail.com> told me that...

Show 11 quoted 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.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
<Espy> be careful, some twit might quote you out of context..

← back to recent threads