findutils: fix musl builds by applying changes from chroot-findutils.
This commit is contained in:
parent
26befcfa92
commit
c2fd3fac2b
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue