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

Re: [PATCHv2] add Android support

From
Junio C Hamano <gitster@pobox.com>
Date
May 19, 2011, 06:18 UTC
Message-ID
<7vaaej9pt3.fsf@alter.siamese.dyndns.org>
In-Reply-To
<B22B44EF-0AFB-44E3-93E3-61FA730431B9@gieschke.de>
Rafael Gieschke <rafael@gieschke.de> writes:
> Currently, it is not possible to compile git for Android as the C library (Bionic)
> is neither providing getpass nor pw_gecos in struct passwd. Therefore,
Whoa, whoa, wait. That's doing too many things in one patch.

I am still debating myself if this rather huge patch is justifiable, or an elaborate joke/hoax. Does anybody seriously want to run git on his phone, tablet or set-top box?

I'd suggest splitting it into three patch series, and justify them separately.

 (1) Support NO_GECOS_IN_PWENT (Makefile, ident.c);
 (2) Support NO_GETPASS (Makefile, compat/getpass.c, git-compat-util.h); and
 (3) Add uname_S = Android (Makefile).

The first two would become much easier to justify if presented that way. At least you won't hear from anybody "we don't want that much code to not to run git on a phone!", as it is not entirely implausible to imagine environments without support for one or both of these two facilities.

I wonder if you want to emply the rename trick similar to the one used for hstrerror/githstrerror you can see in the git-compat-util.h header file in the second step, though.

Thanks.
Previous: Rafael GieschkeNext: Rafael Gieschke
Message 2 of 13 in “[PATCHv2] add Android support”
  1. Rafael GieschkeMay 16, 2011
  2. Junio C HamanoMay 19, 2011
  3. Rafael GieschkeMay 19, 2011
  4. Jeff KingMay 19, 2011
  5. Rafael GieschkeMay 19, 2011
  6. Jeff KingMay 19, 2011
  7. Rafael GieschkeMay 19, 2011
  8. Cross-compiling git (was: [PATCHv2] add Android support)Jakub Narebski, May 23, 2011
  9. Jeff KingMay 23, 2011
  10. Jakub NarebskiMay 25, 2011
  11. Jeff KingMay 25, 2011
  12. Junio C HamanoMay 19, 2011
  13. Tor ArntsenMay 23, 2011

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.