From 84a254b38e5eb66a52df31ad051641cf500e2c27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 9 Jan 2020 21:20:10 +0700 Subject: [PATCH] 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. --- srcpkgs/git/template | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/srcpkgs/git/template b/srcpkgs/git/template index 7844b4b30ab..b413bacbbb7 100644 --- a/srcpkgs/git/template +++ b/srcpkgs/git/template @@ -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 " +maintainer="Đoàn Trần Công Danh " 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() {