Skip to content

dietlibc compatibility

Eric Wong git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4git.c: extra #include for dietlibc (and possibly other C libraries)git.c+1 -01 reply
2/4short circuit out of a few places where we would allocate zero bytescommit.c diffcore-rename.c+4 -15 replies
3/4add xmktime() function that always accounts for the TZ envcache.h convert-objects.c date.c+30 -64 replies
4/4git-compat-util.h: dietlibc-friendly x{malloc,realloc,calloc}git-compat-util.h+20 -39 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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