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

Re: Reducing git size by building libgit.so

From
Paul Smith <paul@mad-scientist.net>
Date
Jun 13, 2019, 17:28 UTC
Message-ID
<13c40b4b819f702a52f7039177579f87fa90aa50.camel@mad-scientist.net>
In-Reply-To
<nycvar.QRO.7.76.6.1906130914250.42@tvgsbejvaqbjf.bet>
On Thu, 2019-06-13 at 09:51 +0200, Johannes Schindelin wrote:
> Hassles aside, you mentioned Linux and macOS. What about literally
> *all* the other platforms we support? Like AIX, NonStop, HP/UX, etc?

I assumed that we were discussing providing an _option_ of building with shared libraries, rather than removing support for static libraries and only supporting shared libraries. The former is the typical model in portable projects.

So, the answer to most of the (important) issues you and Brian raise is, "if it doesn't work, can't be made to work, is too slow, or is annoying for ANY other reason, then don't do it".

Regarding things like publish-ability of the API, I don't know what else to say. It's FOSS, after all: anyone can do whatever they want (with respect to building and using the code) regardless of the desires of the development team. All you can do is make clear that the intent is that the API is not stable, and if they don't listen and their stuff breaks, well, as the saying goes, they get to keep both halves. Not adding any header files to the installation rules and packages is also helpful :).

There's a certain amount of cold, hard reality that every FOSS project, regardless of how friendly and welcoming they aspire to be, simply can't avoid while still making progress (and staying sane).

I certainly don't want to minimize the amount of work involved here, nor do I want to in any way volunteer myself to undertake any of it: as I said, I don't have strong feelings about it.

I'm just saying, there's no technical reason it can't be done while maintaining the same features (such as relocatability) as the static library installs, at least on the major platforms.

Cheers!
Previous: Johannes SchindelinNext: Junio C Hamano
Message 6 of 12 in “Reducing git size by building libgit.so”
  1. Elmar PruesseJun 11, 2019
  2. brian m. carlsonJun 11, 2019
  3. Duy NguyenJun 12, 2019
  4. Paul SmithJun 12, 2019
  5. Johannes SchindelinJun 13, 2019
  6. Paul SmithJun 13, 2019
  7. Junio C HamanoJun 13, 2019
  8. brian m. carlsonJun 12, 2019
  9. Johannes SixtJun 13, 2019
  10. Ævar Arnfjörð BjarmasonJun 12, 2019
  11. Duy NguyenJun 12, 2019
  12. SZEDER GáborJun 12, 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.