diff --git a/srcpkgs/diffutils/template b/srcpkgs/diffutils/template index ed2400ce4c6..3c76a17246c 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 +}