coreutils: rebuild with syncfs() support for musl.

musl-1.1.11 has corrected the return value of syncfs() which was void
in previous releases and now returns an int as specified by the spec.
This commit is contained in:
Juan RP 2015-08-30 08:35:14 +02:00
parent e9f837ba0c
commit 016163fe1a
1 changed files with 2 additions and 7 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'coreutils'
pkgname=coreutils
version=8.24
revision=2
revision=3
build_pie=yes
bootstrap=yes
makedepends="gmp-devel acl-devel libcap-devel"
@ -18,16 +18,11 @@ if [ "$CHROOT_READY" ]; then
fi
pre_configure() {
local args
case "$XBPS_TARGET_MACHINE" in
# XXX syncfs() in src/sync.c expects a return value.
*-musl) args=" ac_cv_func_syncfs=no";;
esac
# Build natively all utils for the host, we need this to generate
# the manpages via help2man.
if [ "$CROSS_BUILD" ]; then
CC=cc LD=ld AR=ar RANLIB=ranlib CFLAGS=-Os CXXFLAGS=-Os LDFLAGS= \
./configure --prefix=${wrksrc}/coreutils-${XBPS_MACHINE} ${args}
./configure --prefix=${wrksrc}/coreutils-${XBPS_MACHINE}
make ${makejobs}
make install
make distclean