Skip to contentSkip to conversation

re-licensing pkt-line.c code

DISCUSSION Scott Chacon 5 participants 5 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hey all,

I am writing a partial implementation of git in Objective-C so I can get a git server running on an iphone, and hopefully it could eventually be used in a mac desktop app that could be distributed without the git binary. If anyone is interested in the project, you can get it here:

http://github.com/schacon/objective-git

There are about 20-25 lines of code from pkt-line.c that I think were originally written back in 2005 that I would like to use so I don't have to re-implement them. It is pretty generic - it is just the code that converts an int into a 4 char hex and back that is placed at the beginning of several of the network protocol lines.

http://github.com/schacon/objective-git/tree/master/ObjGitServerHandler.m#L554

I have to relicense this, since I can't legally distribute my source code for the iphone app due to Apples f**king NDA. I would like to release my ObjectiveGit project under the MIT (or, alternately, LGPL).
Is Linus the right person to ask for this permission? What is the
best way to do so? I could come up with an alternate way to accomplish the same thing, but it seems like a waste of time to do so, and helpful to nobody.

Thanks,
Scott

#1 lore raw
Quoted 16 lines · Scott Chacon

Hey all,

I am writing a partial implementation of git in Objective-C so I can get a git server running on an iphone, and hopefully it could eventually be used in a mac desktop app that could be distributed without the git binary. If anyone is interested in the project, you can get it here:

http://github.com/schacon/objective-git

There are about 20-25 lines of code from pkt-line.c that I think were originally written back in 2005 that I would like to use so I don't have to re-implement them. It is pretty generic - it is just the code that converts an int into a 4 char hex and back that is placed at the beginning of several of the network protocol lines.

Quoted 7 lines

http://github.com/schacon/objective-git/tree/master/ObjGitServerHandler.m#L554

I have to relicense this, since I can't legally distribute my source code for the iphone app due to Apples f**king NDA. I would like to release my ObjectiveGit project under the MIT (or, alternately, LGPL).
Is Linus the right person to ask for this permission? What is the
best way to do so?

Linus wrote nearly all of pkt-line.c, so yes, he'd be the right person to ask. If the lines you need were co-authored by someone else, you'll need to ask that co-author too.

Quoted 4 lines

I could come up with an alternate way to
accomplish the same thing, but it seems like a waste of time to do so, and helpful to nobody.

Well, tracking down the original author(s) could turn out to be harder.

Signature · 3 lines
Andreas Ericsson                   [email protected]
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
#2 lore raw
Quoted 9 lines · Andreas Ericsson
Quoted 7 lines · Scott Chacon

There are about 20-25 lines of code from pkt-line.c that I think were originally written back in 2005 that I would like to use [...]

I have to relicense this, since I can't legally distribute my source code for the iphone app due to Apples f**king NDA. I would like to release my ObjectiveGit project under the MIT (or, alternately, LGPL).

Quoted 5 lines
Quoted 3 lines

I could come up with an alternate way to
accomplish the same thing, but it seems like a waste of time to do so, and helpful to nobody.

Well, tracking down the original author(s) could turn out to be harder.

Its already cost more time to ask for permission to reuse these 20-25 lines of code than it would take to figure out how to write it yourself, and code it. And Linus still hasn't had a chance to chime in on this thread.

My guess is you aren't going to get approval from him to relicense his code. But he doesn't hold a monopoly on int->hex conversion algorithms so you should be able to implement something that produces the same results, given the same inputs, and not have him sue you in some Utah court.

Signature · 1 line
Shawn.
#3 lore raw

Re: Implementations of Git (was: re-licensing pkt-line.c code)

In reply to Scott Chacon
Quoted 7 lines · Scott Chacon

I am writing a partial implementation of git in Objective-C so I can get a git server running on an iphone, and hopefully it could eventually be used in a mac desktop app that could be distributed without the git binary. If anyone is interested in the project, you can get it here:

http://github.com/schacon/objective-git

Could you add it to "Interfaces to other programming languages" section[1] at http://git.or.cz/gitwiki/InterfacesFrontendsAndTools
if you feel it is quite ready?

[1] Perhaps it should be renamed to "Interfaces to and implementations in other programming languages"...

P.S. Do you know what is the status of git#, implementation of Git in C#, which was one of this year Google Summer of Code projects?

Signature · 3 lines
Jakub Narebski
Poland
ShadeHawk on #git
#4 lore raw

git-sharp, was Re: Implementations of Git (was: re-licensing pkt-line.c code)

Hi,

Quoted 2 lines · Jakub Narebski

P.S. Do you know what is the status of git#, implementation of Git in C#, which was one of this year Google Summer of Code projects?

As I suspected (hoping I would be wrong), the lack of communication (this time with the Git community) did not help at all.

The latest commit is this:

http://code.google.com/p/mono-soc-2008/source/detail?r=471

implementing a diff algorithm.

Quoted 1 line

From what I can tell from the source (I do not have a working C#

environment), the implementation repeats a lot of what Shawn told us earlier were his lessons from his first stab at JGit. For example, I saw that the contents of blobs are read into memory when the blob is read. I haven't checked closely, but I did not have the impression that there were accessors making it easy to turn this into a lazy read.

Take-home message: if you think you should develop Open Source in a secretive manner, you are almost certainly wrong, and your project will almost certainly be slow or even fail (BTW I also see exactly this same problem with Govind's try last year, which had a cool name, and then another cool name, but not much to show for it).

Ciao,
Dscho