From 9cd29dcf7e96c10993619023be55bb827df4000f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 31 Mar 2020 16:56:56 +0200 Subject: [PATCH] coreutils: disable statx() support on glibc. 8.32 switched stat(1) to use statx() if available, for file attributtes to optimize performance on linux. The issue is that statx() was added in glibc-2.28 and requires linux>=4.11. This makes stat(1) always fail on travis. Disable statx detection completely for now, to make glibc also use the same code path than musl. --- srcpkgs/coreutils/template | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/srcpkgs/coreutils/template b/srcpkgs/coreutils/template index 708fbf9196..16a2c9e1db 100644 --- a/srcpkgs/coreutils/template +++ b/srcpkgs/coreutils/template @@ -1,7 +1,7 @@ # Template file for 'coreutils' pkgname=coreutils version=8.32 -revision=2 +revision=3 bootstrap=yes makedepends="gmp-devel acl-devel libcap-devel" short_desc="GNU core utilities" @@ -51,6 +51,9 @@ do_configure() { case "$XBPS_TARGET_MACHINE" in # XXX syncfs() in src/sync.c expects a return value. *-musl) configure_args+=" ac_cv_func_syncfs=no";; + # XXX disable statx(), needs glibc>=2.28 and linux>=4.11 + # XXX seems to fail on travis always returning EACCES. + *) configure_args+=" ac_cv_func_statx=no";; esac # # Do not install kill: provided by util-linux.