git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Apple violating git LGPL?

From
Jeff King <peff@peff.net>
Date
Aug 6, 2014, 18:43 UTC
Message-ID
<20140806184304.GB21254@peff.net>
In-Reply-To
<CAC_jL3wO9jkE4HapvJjn-4uW4RtSxubFthrxzQJ87EQ4Gq-9Ug@mail.gmail.com>
On Wed, Aug 06, 2014 at 02:10:08PM -0400, Robert P Fischer wrote:
Show 12 quoted lines
> I ran git on my newly-set-up OS X Mavericks machine, and get:
> 
>         $ git
>          Agreeing to the Xcode/iOS license requires admin privileges,
> please re-run as root via sudo.
> 
> Running 'git --verision' gives the same result.  This seems
> problematic in a few ways, and I am wondering if the git community is
> interested in addressing it:
> 
> 1. Why do I have to agree to Apple's licensing terms to use an LGPL
> program?  Is this appropriate?  Is it allowed under the LGPL?

You are not running the real "git" at all here; Apple ships stubs for several commands, including git, that are distributed with XCode. When you run the program, it prompts you to install XCode, which then actually downloads and installs git, replacing the stub.

You can download XCode separately, of course, but you would still need to agree to the license. You can download git separately and not need to bother (though I do not know offhand how to download Apple's git, or whether they provide a script to replace the stubs).

Also, minor nit, but git is GPL, not LGPL.
> 2. This is a significant problem for me, because I'm using a work
> machine and do not have admin access.

You can always download and install git yourself. There's no need to use the XCode version. However, XCode is the simplest way to get a compiler on the machine, AFAIK (I do not use OS X myself).

> 3. The version of git I ran is clearly NOT a plain vanilla "official"
> git, it is a derivative work.  Has Apple provided the source code of
> the special version that I just ran?  If not, that would seem to be a
> violation of the LGPL.
You didn't run a derivative git. You ran their stub.

As it happens, though, they _do_ modify the git that they distribute. I know at least that they bake-in the osxkeychain helper config in away that the user cannot turn off. There may be more changes, but I haven't done a full diff. And they do provide the source:

  https://www.opensource.apple.com/source/Git/
-Peff
Previous: Charles BaileyNext: Bruce Ferrell
Message 3 of 7 in “Apple violating git LGPL?”
  1. Robert P FischerAug 6, 2014
  2. Charles BaileyAug 6, 2014
  3. Jeff KingAug 6, 2014
  4. Bruce FerrellAug 6, 2014
  5. Jeff KingAug 6, 2014
  6. TonyAug 6, 2014
  7. Jeff KingAug 6, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.