On Fri, Oct 31, 2008 at 11:14:44PM +0000, Junio C Hamano wrote: > Nicolas Pitre <nico@xxxxxxx> writes: > > > My favorite license for a library is the GPL with the gcc exception, > > i.e. what libraries coming with gcc are using. They're GPL but with an > > exception allowing them to be linked with anything. > > Although I'd be Ok with either GPL + gcc exception on whatever core-ish > (i.e. what will be necessary for libgit2; "blame" would not count) pieces > I have in C-git codebase, "can be linked with anything" allows a gaping > hole to the library, which I'm a bit hesitant to swallow without thinking. Well I wasn't thinking about anything else than what is needed for the libgit2. I love BSDish for libraries, though like GPL for the actual _tools_ I write with it. > E.g. our read_object() may look like this: > > void *read_object(const object_name_t sha1, > enum object_type *type, > size_t *size) > { > ... > } > > > but an extension a closed-source person may sell you back may do: > > +typedef void *read_object_fn(const object_name_t, > + enum object_type *, > + size_t *); > +read_object_fn read_object_custom = NULL; > void *read_object(const object_name_t sha1, > enum object_type *type, > size_t *size) > { > + if (read_object_custom != NULL) > + return read_object_custom(sha1, type, size); > ... > } > > I.e. use the supplied custom function to do proprietary magic, such as > reading the object lazily from elsewhere over the network. And we will > never get that magic bit back. Well, for one "we're" not supposed to accept any patch that does that, and I don't expect that the people who end up maintaining libgit2 will become rogue. Though if such bits of APIs do exist one day, then well, I see no license except the GPL that can prevent you from that. My idea of trying to be able to reuse git.git code is not a necessity, a new implementation from scratch is likely to be possible. Though we all know that if the core git contributors don't contribute and eventually use libgit2 this will not fly. That's why we must think about it. I assume given your answer that if libgit2 is BSD you may not be as motivated to contribute code to it as you are to git.git, and this IMHO would be a big no-go, like shawn said in another mail. -- ·O· Pierre Habouzit ··O madcoder@xxxxxxxxxx OOO http://www.madism.org
Attachment:
pgprdSygLCw3t.pgp
Description: PGP signature