dietlibc compatibility
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 12 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | git.c: extra #include for dietlibc (and possibly other C libraries)git.c | +1 | 1 reply | |
| 2/4 | short circuit out of a few places where we would allocate zero bytescommit.c diffcore-rename.c | +4 | 5 replies | |
| 3/4 | add xmktime() function that always accounts for the TZ envcache.h convert-objects.c date.c | +30 | 4 replies | |
| 4/4 | git-compat-util.h: dietlibc-friendly x{malloc,realloc,calloc}git-compat-util.h | +20 | 9 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] dietlibc compatibility
I've started statically-linking git binaries against dietlibc to avoid having to recompile it for every machine/distro and chroot (lots!) I would use it in.
For building git (on a Debian unstable system with dietlibc-dev), I used the following make vars:
CC=diet -v gcc
NO_STRCASESTR=YesPlease
NO_SETENV=YesPlease
The dietlibc setenv() doesn't seem very nice to **envp in git.c, resulting in $PATH being clobbered when it runs execve(). This caused tests to fail. Fortunately, gitsetenv() saved the day.
The following patches fix other issues I had with dietlibc.
Signature · 1 line
Eric Wong