New comment by sgn on void-packages repository https://github.com/void-linux/void-packages/pull/21207#issuecomment-617878315 Comment: I tempted to include this patch (I haven't checked if setting CC, etc.. is required): ```diff diff --git a/srcpkgs/chroot-git/template b/srcpkgs/chroot-git/template index 4f471ad2b7..b0d5c6d9f1 100644 --- a/srcpkgs/chroot-git/template +++ b/srcpkgs/chroot-git/template @@ -5,9 +5,6 @@ revision=1 bootstrap=yes wrksrc="git-${version}" build_style=gnu-configure -configure_args="--without-curl --without-openssl - --without-python --without-expat --without-tcltk - ac_cv_lib_curl_curl_global_init=no ac_cv_lib_expat_XML_ParserCreate=no" makedepends="zlib-devel" short_desc="GIT Tree History Storage Tool -- for xbps-src use" maintainer="Enno Boland " @@ -17,17 +14,34 @@ distfiles="https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz" checksum=6d65132471df9e531807cb2746f8be317e22a343b9385bbe11c9ce7f0d2fc848 if [ "$CHROOT_READY" ]; then - hostmakedepends="perl gettext tar" -else - configure_args+=" --with-zlib=${XBPS_MASTERDIR}/usr" + hostmakedepends="perl tar" fi -post_configure() { +do_configure() { cat <<-EOF >config.mak + prefix=/usr + CC = $CC + CFLAGS = $CFLAGS + CPPFLAGS = $CPPFLAGS + LDFLAGS = $LDFLAGS CC_LD_DYNPATH=-L NO_INSTALL_HARDLINKS=Yes NO_GETTEXT=Yes + NO_CURL=Yes + NO_OPENSSL=Yes + NO_PYTHON=Yes + NO_EXPAT=Yes + NO_TCLTK=Yes + USE_LIBPCRE1 = + USE_LIBPCRE2 = EOF + + if [ "$XBPS_TARGET_LIBC" = musl ]; then + cat <<-EOF >>config.mak + ICONV_OMITS_BOM=Yes + NO_REGEX=NeedsStartEnd + EOF + fi } do_install() { ``` to get rid of configure stuff, since it's recommended by upstream https://lore.kernel.org/git/xmqqefxe33t5.fsf@gitster.mtv.corp.google.com/ https://lore.kernel.org/git/20200401221835.GH2224@szeder.dev/