chroot-findutils: misc fixes for musl.

This commit is contained in:
Juan RP 2014-01-08 17:21:16 +01:00
parent 21623df128
commit 6d70cb67cc
1 changed files with 9 additions and 7 deletions

View File

@ -1,16 +1,15 @@
# Template file for 'chroot-findutils' # Template file for 'chroot-findutils'
pkgname=chroot-findutils pkgname=chroot-findutils
version=4.4.2 version=4.4.2
revision=2 revision=3
wrksrc="findutils-${version}" wrksrc="findutils-${version}"
bootstrap=yes bootstrap=yes
conflicts="findutils>=0" conflicts="findutils>=0"
provides="findutils-${version}_${revision}" provides="findutils-${version}_${revision}"
build_style=gnu-configure build_style=gnu-configure
configure_args="--disable-nls gl_cv_func_wcwidth_works=yes configure_args="--disable-nls gl_cv_func_wcwidth_works=yes
gl_cv_header_working_fcntl_h=yes ac_cv_func_fnmatch_gnu=yes gl_cv_header_working_fcntl_h=yes am_cv_func_working_getline=yes
gl_cv_func_gettimeofday_clobber=no ac_cv_func_working_mktime=yes gl_cv_func_gettimeofday_clobber=no ac_cv_func_working_mktime=yes"
am_cv_func_working_getline=yes"
short_desc="The GNU Find Utilities -- for xbps-src use" short_desc="The GNU Find Utilities -- for xbps-src use"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3" license="GPL-3"
@ -22,9 +21,9 @@ pre_configure() {
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
*-musl) *-musl)
# Special case for musl libc; "fix" issues with gnulib. # Special case for musl libc; "fix" issues with gnulib.
cp -f ${XBPS_CROSSPFDIR}/musl-gnulibfix . : > gnulib/lib/freadahead.c
chmod 755 musl-gnulibfix : > gnulib/lib/fseeko.c
./musl-gnulibfix gnulib/lib echo "void close_stdin(void) {}" > gnulib/lib/closein.c
;; ;;
esac esac
} }
@ -34,4 +33,7 @@ post_install() {
rm -f ${DESTDIR}/usr/bin/${f} rm -f ${DESTDIR}/usr/bin/${f}
done done
rm -rf ${DESTDIR}/usr/share ${DESTDIR}/usr/libexec rm -rf ${DESTDIR}/usr/share ${DESTDIR}/usr/libexec
if [ -f ${DESTDIR}/usr/lib/charset.alias ]; then
rm -f ${DESTDIR}/usr/lib/charset.alias
fi
} }