[augeas-devel] Augeas on OSX

James Antill james.antill at redhat.com
Fri May 23 15:40:56 UTC 2008


On Thu, 2008-05-22 at 21:19 -0700, Rizwan Kassim wrote:
> >> It's not a tough
> >> task, just some script changes and some sussing out of different OSX
> >> library methods that I'm not familiar with. Right now I'm hung up on
> >> errors requiring argz.h, will try to look at those later this week.
> >
> > Yeah, I have a few glibc'isms throughout the code; is argz the only one
> > that's biting you ? Does OS X's C library e.g. support open_memstream ?
> 
> Afaik, yes. The initial issues seem to be things that are GNU
> extensions that BSD/OSX don't like. Support for "strndup" for
> instance.
> 
> (Ideally, i'd like to get this working out of the box, without
> resorting to using Fink/MacPorts to make them 'compatible'. Those
> packages can provide the libraries as needed, but might as well make
> the trunk work on OSX directly =).
> 
> Fixed the strndup issue with some code from the gentoo project. It
> appears to be safe to use, license wise.
> (http://bugs.gentoo.org/show_bug.cgi?id=105858)
[...]

> diff -r 38c46290bfc5 src/strutils.c
> --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
> +++ b/src/strutils.c	Thu May 22 21:18:48 2008 -0700
> @@ -0,0 +1,29 @@
> +/*
> +   Copyright (C) 2005 Gentoo Foundation
> +
> +   This program is free software; you can redistribute it and/or modify
> +   it under the terms of the GNU General Public License as published by
> +   the Free Software Foundation; either version 2 of the License, or
> +   (at your option) any later version.

 GPL != LGPL

 Although I have a hard time thinking that the obvious strndup() is
worthy of Copyright (in that any half decent C programmer wouldn't write
basically the same thing).

-- 
James Antill <james.antill at redhat.com>
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20080523/84a89dcd/attachment.sig>


More information about the augeas-devel mailing list