$ cd ~/wdmc-build/64k-wheezy
#https://packages.debian.org
$ su
$ cd build/root
$ mkdir git
$ cd git
$ wget http://http.debian.net/debian/pool/main/g/git/git_2.19.1+next.20181026.orig.tar.gz
$ wget http://http.debian.net/debian/pool/main/g/git/git_2.19.1+next.20181026-1.debian.tar.xz
$ cd ../../../
$ chroot build
$ mount -t proc none /proc
$ mount -t devtmpfs none /dev
$ mount -t devpts none /dev/pts
$ export DEBIAN_FRONTEND=noninteractive
$ export DEBCONF_NONINTERACTIVE_SEEN=true
$ export LC_ALL=C
$ export LANGUAGE=C
$ export LANG=C
$ export DEB_CFLAGS_APPEND='-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE'
$ export DEB_BUILD_OPTIONS=nocheck
$ cd root/git
# 当前的压缩文件,解压缩出的文件目录是”0250525e“
$ tar xvf *.orig.tar.gz
$ tar xvf *.debian.tar.xz -C 0250525e/
$ cd 0250525e
# 解决不能正确编译的问题
$ sed -i "s/dh \$\@ --with apache2/dh \$\@/g" debian/rules
# 交叉编译的程序,测试用例不能完全通过,我们关闭测试用例这部分
$ sed -i "s/^TEST[ \t]*=[ \t]*test/TEST=/g" debian/rules
# 安装依赖
$ apt-get update
$ apt-get upgrade
$ apt-get install asciidoc
# 此版本git默认不使用openssl,因此安装 libcurl4-gnutls-dev 而不是 ibcurl4-openssl-dev
$ apt-get install libcurl4-gnutls-dev
$ apt-get install libpcre2-dev
# DEB_BUILD_OPTIONS="nocheck nodoc" 不需要测试用例,不需要帮助文档, 目前如果设置了"nodoc",最后打包的时候会缺少文件
$ DEB_BUILD_OPTIONS="nocheck" dpkg-buildpackage -d -b -uc