git: correct ac_cv_fread_reads_directories on musl

git build system relies on FREAD_READS_DIRECTORIES flag to check
if we're on a system which succeeds when attempting to fopen a directory
or read from an fopen-ed directory.

System with musl libc is one of such systems.
The current template lies git build system on this matter.
Effectively, t1308 is failing on musl system.

Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
This commit is contained in:
Đoàn Trần Công Danh 2018-11-14 12:41:34 +07:00 committed by Enno Boland
parent 119e3be8c9
commit bf8bba61b8
1 changed files with 7 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# Template file for 'git'
pkgname=git
version=2.19.1
revision=2
revision=3
build_style=gnu-configure
configure_args="--with-curl --with-expat --with-tcltk --with-libpcre2
ac_cv_fread_reads_directories=no ac_cv_snprintf_returns_bogus=no"
ac_cv_snprintf_returns_bogus=no"
make_install_args="NO_INSTALL_HARDLINKS=1 INSTALLDIRS=vendor
perllibdir=/usr/share/perl5/vendor_perl"
hostmakedepends="asciidoc perl tk xmlto"
@ -23,6 +23,11 @@ make_check_target=test
subpackages="git-cvs git-svn gitk git-gui git-all"
case "$XBPS_TARGET_MACHINE" in
*-musl) configure_args+=" ac_cv_fread_reads_directories=yes" ;;
*) configure_args+=" ac_cv_fread_reads_directories=no" ;;
esac
post_build() {
make ${makejobs} -C Documentation man
make ${makejobs} -C contrib/subtree all git-subtree.1