git: correct ac_cv_fread_reads_directories on all platforms
From commit bf8bba61b8
, (git: correct ac_cv_fread_reads_directories on
musl, 2018-11-14), we've correctly set ac_cv_fread_reads_directories for
git linked with musl-libc variant.
Unfortunately, glibc also allows fopen on directory. But, I was obsessed
with musl-libc at the time, hence forgot to run the test for glibc.
Correct it.
This commit is contained in:
parent
4274455e13
commit
84a254b38e
1 changed files with 4 additions and 8 deletions
|
@ -1,17 +1,17 @@
|
|||
# Template file for 'git'
|
||||
pkgname=git
|
||||
version=2.24.1
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-configure
|
||||
configure_args="--with-curl --with-expat --with-tcltk --with-libpcre2
|
||||
ac_cv_snprintf_returns_bogus=no"
|
||||
ac_cv_snprintf_returns_bogus=no ac_cv_fread_reads_directories=yes"
|
||||
make_check_target=test
|
||||
hostmakedepends="asciidoc gettext perl pkg-config tar tk xmlto"
|
||||
makedepends="libglib-devel libcurl-devel libsecret-devel pcre2-devel tk-devel"
|
||||
# Required by https://
|
||||
depends="ca-certificates perl-Authen-SASL perl-MIME-tools perl-Net-SMTP-SSL"
|
||||
short_desc="Git Tree History Storage Tool"
|
||||
maintainer="Doan Tran Cong Danh <congdanhqx@gmail.com>"
|
||||
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
||||
license="GPL-2.0-only"
|
||||
homepage="https://git-scm.com/"
|
||||
changelog="https://raw.githubusercontent.com/git/git/master/Documentation/RelNotes/${version}.txt"
|
||||
|
@ -23,11 +23,7 @@ register_shell=/usr/bin/git-shell
|
|||
subpackages="git-cvs git-svn gitk git-gui git-all git-libsecret git-netrc"
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
*-musl)
|
||||
configure_args+=" ac_cv_fread_reads_directories=yes"
|
||||
export GIT_SKIP_TESTS='t3900'
|
||||
;;
|
||||
*) configure_args+=" ac_cv_fread_reads_directories=no" ;;
|
||||
*-musl) export GIT_SKIP_TESTS='t3900' ;;
|
||||
esac
|
||||
|
||||
post_configure() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue