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

Re: Can't build first git commit

From
Jeff King <peff@peff.net>
Date
Mar 6, 2019, 21:54 UTC
Message-ID
<20190306215419.GB32630@sigill.intra.peff.net>
In-Reply-To
<20190306203910.xr2bwpqb3zrxnm63@LykOS.localdomain>
On Wed, Mar 06, 2019 at 03:39:11PM -0500, Santiago Torres wrote:
> I still find it somewhat astounding that it compiles with a modern
> toolchain after 15+ years. Many projects fail to do so (it's an
> understandably high bar to have).

I think the key thing is that Git has very few external dependencies. You'll note that I had to turn off OpenSSL support to get it to compile. The only other library from back then is libz, which is extremely stable.

Other than, it just depends on a reasonable C compiler and a POSIX libc, both of which have been standardized for decades.

I suspect that today's Git will also compile pretty well in 15 years, but you'll probably to say NO_GETTEXT and turn a few other knobs. Libcurl might eventually be a problem, though I've been pretty impressed with its stability and backwards-compatibility so far (and of course it's optional if disabling http support is OK).

-Peff
Previous: Santiago TorresNext: Fabio Aiuto
Message 14 of 18 in “Can't build first git commit”
  1. Fabio AiutoMar 4, 2019
  2. Santiago TorresMar 4, 2019
  3. Fabio AiutoMar 4, 2019
  4. Santiago TorresMar 4, 2019
  5. asymptosisMar 4, 2019
  6. Jonathan NiederMar 4, 2019
  7. Jeff KingMar 4, 2019
  8. Fabio AiutoMar 5, 2019
  9. Jeff KingMar 5, 2019
  10. Fabio AiutoMar 6, 2019
  11. Jeff KingMar 6, 2019
  12. Fabio AiutoMar 6, 2019
  13. Santiago TorresMar 6, 2019
  14. Jeff KingMar 6, 2019
  15. Fabio AiutoMar 6, 2019
  16. Jeff KingMar 6, 2019
  17. Jeff KingMar 7, 2019
  18. Fabio AiutoMar 7, 2019

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.