summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2020-11-12 03:31:35 -0800
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2020-11-12 03:33:18 -0800
commit8ebba02fcf0950fbf37ee25e8dda5454f2bf500e (patch)
tree500f256a508c8a53a2b15f3269f62cbdab0d53ee /net-irc
parentpackage.mask: Revert last rite of sys-cluster/cluster-glue & revdeps (diff)
downloadgentoo-8ebba02fcf0950fbf37ee25e8dda5454f2bf500e.tar.gz
gentoo-8ebba02fcf0950fbf37ee25e8dda5454f2bf500e.tar.bz2
gentoo-8ebba02fcf0950fbf37ee25e8dda5454f2bf500e.zip
net-irc/weechat: die in tests if en_US.UTF-8 locale not found
Closes: https://bugs.gentoo.org/754117 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'net-irc')
-rw-r--r--net-irc/weechat/weechat-3.0.ebuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/net-irc/weechat/weechat-3.0.ebuild b/net-irc/weechat/weechat-3.0.ebuild
index 2f3c0bd601d8..b33c433ae6d2 100644
--- a/net-irc/weechat/weechat-3.0.ebuild
+++ b/net-irc/weechat/weechat-3.0.ebuild
@@ -142,7 +142,12 @@ src_configure() {
}
src_test() {
+ if $(locale -a | grep -iq "en_US\.utf.*8"); then
cmake_src_test -V
+ else
+ eerror "en_US.UTF-8 locale is required to run ${PN}'s ${FUNCNAME}"
+ die "required locale missing"
+ fi
}
pkg_postinst() {