From 4f498dad65d0829f38b38eb0cd7bb2df5d2250e9 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 8 Jan 2014 09:53:05 +0100 Subject: [PATCH] chroot-findutils: make this build with musl. --- srcpkgs/chroot-findutils/template | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/srcpkgs/chroot-findutils/template b/srcpkgs/chroot-findutils/template index 33b38401d1f..c22876f303c 100644 --- a/srcpkgs/chroot-findutils/template +++ b/srcpkgs/chroot-findutils/template @@ -1,11 +1,16 @@ # Template file for 'chroot-findutils' pkgname=chroot-findutils version=4.4.2 -revision=1 +revision=2 wrksrc="findutils-${version}" +bootstrap=yes +conflicts="findutils>=0" +provides="findutils-${version}_${revision}" build_style=gnu-configure 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 ac_cv_func_fnmatch_gnu=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" maintainer="Juan RP " license="GPL-3" @@ -13,9 +18,16 @@ homepage="http://www.gnu.org/software/findutils" distfiles="http://ftp.gnu.org/gnu/findutils/findutils-$version.tar.gz" checksum=434f32d171cbc0a5e72cfc5372c6fc4cb0e681f8dce566a0de5b6fccd702b62a -bootstrap=yes -conflicts="findutils>=0" -provides="findutils-${version}" +pre_configure() { + case "$XBPS_TARGET_MACHINE" in + *-musl) + # Special case for musl libc; "fix" issues with gnulib. + cp -f ${XBPS_CROSSPFDIR}/musl-gnulibfix . + chmod 755 musl-gnulibfix + ./musl-gnulibfix gnulib/lib + ;; + esac +} post_install() { for f in locate oldfind updatedb; do