findutils: fix musl builds by applying changes from chroot-findutils.

This commit is contained in:
Juan RP 2014-06-26 10:50:06 +02:00
parent 26befcfa92
commit c2fd3fac2b

View file

@ -17,6 +17,17 @@ make_dirs="/var/lib/locate 0755 root root"
conf_files="/etc/updatedb.conf" conf_files="/etc/updatedb.conf"
conflicts="chroot-findutils>=0" 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() { post_install() {
# Install the cron daily job. # Install the cron daily job.
vinstall ${FILESDIR}/updatedb.cron-daily 744 etc/cron.daily updatedb vinstall ${FILESDIR}/updatedb.cron-daily 744 etc/cron.daily updatedb