From c2fd3fac2b1d3dd2f24b4da1921e58eb2bbe7b3c Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 26 Jun 2014 10:50:06 +0200 Subject: [PATCH] findutils: fix musl builds by applying changes from chroot-findutils. --- srcpkgs/findutils/template | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/srcpkgs/findutils/template b/srcpkgs/findutils/template index 26635547034..e47e504ede1 100644 --- a/srcpkgs/findutils/template +++ b/srcpkgs/findutils/template @@ -17,6 +17,17 @@ make_dirs="/var/lib/locate 0755 root root" conf_files="/etc/updatedb.conf" conflicts="chroot-findutils>=0" +pre_configure() { + case "$XBPS_TARGET_MACHINE" in + *-musl) + # Special case for musl libc; "fix" issues with gnulib. + : > gnulib/lib/freadahead.c + : > gnulib/lib/fseeko.c + echo "void close_stdin(void) {}" > gnulib/lib/closein.c + ;; + esac +} + post_install() { # Install the cron daily job. vinstall ${FILESDIR}/updatedb.cron-daily 744 etc/cron.daily updatedb