1DOLLY 82PACKAGE git3REQUIRES HOST runtime@04REQUIRES HOST threads@056# Git, and Dolly's diff and patch, which run it; its HTTP helpers are the7# git-http package. Git links zlib, which serves the build and is not8# installed with it. Git runs its asyncs, a side band's reader among them, as9# threads; without threads it would fork them.10FROM /Dollyfile-system-build 0c72e09eba84571d4f8634cf6e7507eb1be1b9b8aa1fae61f6b0ec884b26b6fb11USE /Dollyfile-zlib acf8f8daaba24468b5b521bbb4d4ba3e034fe28d7a2d92fc680d2e39a1cea97112# The editor of git commit, rebase -i and tag -a: Git's default, vi.13INSTALL /Dollyfile-vi 2f8c69304867695f8384da828df57d7271e5f92ac95024877aef1a20675cb6ff14REQUIRES HEADER libc15REQUIRES HEADER runtime16REQUIRES HEADER zlib17REQUIRES LIB    z18REQUIRES TOOL   ar19REQUIRES TOOL   cc20REQUIRES TOOL   make21REQUIRES TOOL   mkdir22REQUIRES TOOL   rm23REQUIRES TOOL   tar2425SOURCE /dist/static/default/git.tar 5c190c2a9301f54afab080b85341a8cd683bee1995b2d911e0bdea93f5eb845a /tmp/git.tar26SLOP tar \27  -xf /tmp/git.tar \28  -C /2930# Automatic maintenance forks; the system configuration turns it off.31FILE /etc/gitconfig32    [maintenance]33        auto = false34FILE /home/dolly/.gitconfig35    [user]36        name = Dolly37        email = dolly@example.invalid38FILE /tmp/git/Makefile39    .RECIPEPREFIX := >40    SOURCES := $(file </usr/src/git/dolly-sources.txt)41    OBJECTS := $(addprefix /tmp/git/objects/,$(SOURCES:.c=.o))42    # NO_REGEX takes Git's regex, with GAWK and NO_MBSUPPORT as its Makefile43    # sets them: the sysroot's regex.h has no REG_STARTEND. NO_CURL: the HTTP44    # helpers, which link libcurl, are the git-http package's.45    # Git ends with status 128 when its pager cannot start, so the default one46    # is a command for Slop: less when it is installed, cat otherwise.47    CPPFLAGS := \48      -O2 \49      -std=gnu99 \50      -Wno-ignored-attributes \51      -D_DEFAULT_SOURCE \52      -DNO_GETTEXT \53      -DNO_ICONV \54      -DNO_EXPAT \55      -DNO_CURL \56      -pthread \57      -DNO_UNIX_SOCKETS \58      -DNO_OPENSSL \59      -DNO_PERL \60      -DNO_PYTHON \61      -DNO_IPV6 \62      -DNO_MMAP \63      -DNO_REGEX \64      -DGAWK \65      -DNO_MBSUPPORT \66      -DNO_STRLCPY \67      -DSHA1_BLK \68      -DSHA256_BLK \69      -DHAVE_ALLOCA_H \70      -DHAVE_STRINGS_H \71      -DHAVE_CLOCK_GETTIME \72      -DHAVE_GETRANDOM \73      '-DGIT_VERSION_H="version-def.h"' \74      '-DBINDIR="/usr/bin"' \75      '-DGIT_EXEC_PATH="/usr/libexec/dolly"' \76      '-DDEFAULT_GIT_TEMPLATE_DIR="/usr/share/git-core/templates"' \77      '-DFALLBACK_RUNTIME_PREFIX="/usr"' \78      '-DGIT_HOST_CPU="wasm64"' \79      '-DGIT_LOCALE_PATH="/usr/share/locale"' \80      '-DSHELL_PATH="/bin/slop"' \81      '-DDEFAULT_PAGER="$$(command -v less || command -v cat)"' \82      '-DPAGER_ENV="LESS=FRX LV=-c"' \83      '-DETC_GITCONFIG="/etc/gitconfig"' \84      '-DETC_GITATTRIBUTES="/etc/gitattributes"' \85      '-DGIT_HTML_PATH="/usr/share/doc/git/html"' \86      '-DGIT_MAN_PATH="/usr/share/man"' \87      '-DGIT_INFO_PATH="/usr/share/info"' \88      -I /usr/src/git/compat/regex \89      -I /usr/src/git \90      -include dolly/runtime.h91    all: /usr/bin/git92    /tmp/git/objects/%.o: /usr/src/git/%.c93    >mkdir -p $(dir $@)94    >cc \95    >  $(CPPFLAGS) \96    >  -c $< \97    >  -o $@98    /usr/lib/libgit.a: $(OBJECTS)99    >ar rcs $@ $^100    /usr/bin/git: /usr/src/git/common-main.c /usr/src/git/git.c /usr/lib/libgit.a101    >cc \102    >  $(CPPFLAGS) \103    >  /usr/src/git/common-main.c \104    >  /usr/src/git/git.c \105    >  -lgit \106    >  -lz \107    >  -o $@108SLOP CWD /usr/src/git make \109  -f /tmp/git/Makefile110111EXPORTS TOOL git112113SLOP git \114  --version115# The builtins a local transport runs by their dashed names (git clone PATH116# runs git-upload-pack on its other side), as upstream installs them.117FILE /usr/libexec/dolly/git-upload-pack118    #!/bin/slop119    exec git upload-pack "$@"120FILE /usr/libexec/dolly/git-receive-pack121    #!/bin/slop122    exec git receive-pack "$@"123FILE /usr/libexec/dolly/git-upload-archive124    #!/bin/slop125    exec git upload-archive "$@"126SLOP git init -q /tmp/git-check/origin && git -C /tmp/git-check/origin commit -q --allow-empty -m one && \127  git clone -q /tmp/git-check/origin /tmp/git-check/clone && test "$(git -C /tmp/git-check/clone log --format=%s)" = one && \128  git -C /tmp/git-check/clone commit -q --allow-empty -m two && git -C /tmp/git-check/clone push -q origin HEAD:pushed && \129  test "$(git -C /tmp/git-check/origin log -1 --format=%s pushed)" = two130SLOP git --help > /usr/share/man/cat1/git.1131132FOLDER /usr/share/git-core/templates133FILE /usr/share/licenses/git/COPYING134FILE /usr/share/man/cat1/git.1135136# Dolly's diff and patch: git diff --no-index and git apply, for programs and137# build systems that run them.138SOURCE /dist/static/default/commands/run-program.h e73415ba149e8dcb9944313c36d8d2319202d699c810e02a26d5a94caa8f3a9f /tmp/git-tools/run-program.h139SOURCE /dist/static/default/commands/diff.c cda06a2a94c9d7c5f1ccab54f847011e35379f7cc452b7d4a0d7046ae61b7de9 /tmp/git-tools/diff.c140SOURCE /dist/static/default/commands/patch.c 7ba7566bff1486b706ff2d9d8863ddfeff4e17cdc0501c648dc41b96ff72dfb0 /tmp/git-tools/patch.c141SLOP cc -O2 /tmp/git-tools/diff.c -o /bin/diff142SLOP cc -O2 /tmp/git-tools/patch.c -o /bin/patch143EXPORTS TOOL diff144EXPORTS TOOL patch145SLOP diff --help > /usr/share/man/cat1/diff.1146SLOP patch --help > /usr/share/man/cat1/patch.1147FILE /usr/share/man/cat1/diff.1148FILE /usr/share/man/cat1/patch.1149150SLOP rm \151  -rf \152  /tmp/git \153  /tmp/git.tar \154  /tmp/git-tools \155  /usr/src/git156