From c8b23329d72013022c587361f5de6accbe3b9dd8 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Mon, 20 Nov 2017 05:14:41 -0200 Subject: [PATCH] grep: fix musl tests. Closes #9357. --- srcpkgs/grep/template | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/srcpkgs/grep/template b/srcpkgs/grep/template index 542e6dd1e8..48ec7ac8c8 100644 --- a/srcpkgs/grep/template +++ b/srcpkgs/grep/template @@ -16,3 +16,10 @@ pre_configure() { autoreconf -fi } +pre_check() { + case "$XBPS_TARGET_MACHINE" in + *-musl) + # Disable locale tests that fail on musl + sed -i '/test-localename$(EXEEXT)/d' gnulib-tests/Makefile + esac +}