m4: fix musl checks.

Closes #9358.
This commit is contained in:
maxice8 2017-11-20 05:21:15 -02:00 committed by Enno Boland
parent b88c82f71a
commit 1268670c65
1 changed files with 12 additions and 0 deletions

View File

@ -13,3 +13,15 @@ maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.xz"
checksum=f2c1e86ca0a404ff281631bdc8377638992744b175afb806e25871a24a934e07
pre_check() {
case "$XBPS_TARGET_MACHINE" in
*-musl* )
# Disable locale tests that fail on musl
sed -i '/test-localename$(EXEEXT)/d' tests/Makefile
sed -i '/test-mbrtowc5.sh/d' tests/Makefile
# Fails because test-localename doesn't work on musl
sed -i '/test-localeconv$(EXEEXT)/d' tests/Makefile
;;
esac
}