From 572e90f869ca6c7bacedb6af2f7672f4bcd3e145 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Mon, 20 Nov 2017 14:26:08 -0200 Subject: [PATCH] diffutils: fix musl do_check. Closes #9371. --- srcpkgs/diffutils/template | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/srcpkgs/diffutils/template b/srcpkgs/diffutils/template index ed2400ce4c..3c76a17246 100644 --- a/srcpkgs/diffutils/template +++ b/srcpkgs/diffutils/template @@ -17,3 +17,10 @@ if [ -n "$CROSS_BUILD" ]; then configure_args+=" gl_cv_func_getopt_gnu=yes" fi +pre_check() { + case "$XBPS_TARGET_MACHINE" in + *-musl* ) + # Disable locale tests that fail on musl + sed -i '/test-mbrtowc5.sh/d' gnulib-tests/Makefile ;; + esac +}