# cogito Mac OS X compatibility

5 messages from 2005-07-08 to 2005-07-10. Participants: Bryan Larsen, Martin Langhoff, Sven Verdoolaege, Petr Baudis.
Thread: https://gitlist.dev/t/1178

## Bryan Larsen, 2005-07-08 23:34

Subject: cogito Mac OS X compatibility
Message-ID: <42CF0D9F.8040909@gmail.com>
URL: https://gitlist.dev/e/42CF0D9F.8040909%40gmail.com

```
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, 2005-07-09 13:40

Subject: Re: cogito Mac OS X compatibility
Message-ID: <46a038f905070906402c6b543e@mail.gmail.com>
URL: https://gitlist.dev/e/46a038f905070906402c6b543e%40mail.gmail.com
In-Reply-To: <42CF0D9F.8040909@gmail.com>

```
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, 2005-07-09 16:50

Subject: Re: cogito Mac OS X compatibility
Message-ID: <20050709165028.GY18608MdfPADPa@garage.linux.student.kuleuven.ac.be>
URL: https://gitlist.dev/e/20050709165028.GY18608MdfPADPa%40garage.linux.student.kuleuven.ac.be
In-Reply-To: <42CF0D9F.8040909@gmail.com>

```
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, 2005-07-09 18:38

Subject: Re: cogito Mac OS X compatibility
Message-ID: <42D019BE.5050000@gmail.com>
URL: https://gitlist.dev/e/42D019BE.5050000%40gmail.com
In-Reply-To: <20050709165028.GY18608MdfPADPa@garage.linux.student.kuleuven.ac.be>

```

> 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, 2005-07-10 14:29

Subject: Re: cogito Mac OS X compatibility
Message-ID: <20050710142916.GA24249@pasky.ji.cz>
URL: https://gitlist.dev/e/20050710142916.GA24249%40pasky.ji.cz
In-Reply-To: <42CF0D9F.8040909@gmail.com>

```
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...
> 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..

```
