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:
parent
119e3be8c9
commit
bf8bba61b8
|
@ -1,10 +1,10 @@
|
||||||
# Template file for 'git'
|
# Template file for 'git'
|
||||||
pkgname=git
|
pkgname=git
|
||||||
version=2.19.1
|
version=2.19.1
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-curl --with-expat --with-tcltk --with-libpcre2
|
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
|
make_install_args="NO_INSTALL_HARDLINKS=1 INSTALLDIRS=vendor
|
||||||
perllibdir=/usr/share/perl5/vendor_perl"
|
perllibdir=/usr/share/perl5/vendor_perl"
|
||||||
hostmakedepends="asciidoc perl tk xmlto"
|
hostmakedepends="asciidoc perl tk xmlto"
|
||||||
|
@ -23,6 +23,11 @@ make_check_target=test
|
||||||
|
|
||||||
subpackages="git-cvs git-svn gitk git-gui git-all"
|
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() {
|
post_build() {
|
||||||
make ${makejobs} -C Documentation man
|
make ${makejobs} -C Documentation man
|
||||||
make ${makejobs} -C contrib/subtree all git-subtree.1
|
make ${makejobs} -C contrib/subtree all git-subtree.1
|
||||||
|
|
Loading…
Reference in New Issue