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.
This commit is contained in:
Juan RP 2020-03-31 16:56:56 +02:00
parent b0734e2a32
commit 9cd29dcf7e
No known key found for this signature in database
GPG key ID: AF19F6CB482F9368

View file

@ -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.