From 3670d000dd4277d41865dbf536ebd066fd31dc5f Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Fri, 28 Dec 2018 15:24:55 +0100 Subject: [PATCH] asciinema: remove failing nl_langinfo check Fixes #3172 --- packages/asciinema/build.sh | 2 +- packages/asciinema/no_langinfo.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 packages/asciinema/no_langinfo.patch diff --git a/packages/asciinema/build.sh b/packages/asciinema/build.sh index 112b4f4e7..118878087 100644 --- a/packages/asciinema/build.sh +++ b/packages/asciinema/build.sh @@ -1,7 +1,7 @@ TERMUX_PKG_HOMEPAGE=https://asciinema.org/ TERMUX_PKG_DESCRIPTION="Record and share your terminal sessions, the right way" TERMUX_PKG_VERSION=2.0.1 -TERMUX_PKG_REVISION=1 +TERMUX_PKG_REVISION=2 TERMUX_PKG_SHA256=7087b247dae36d04821197bc14ebd4248049592b299c9878d8953c025ac802e4 TERMUX_PKG_SRCURL=https://github.com/asciinema/asciinema/archive/v${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_BUILD_IN_SRC=yes diff --git a/packages/asciinema/no_langinfo.patch b/packages/asciinema/no_langinfo.patch new file mode 100644 index 000000000..ce23dbfe6 --- /dev/null +++ b/packages/asciinema/no_langinfo.patch @@ -0,0 +1,13 @@ +--- ../__main__.py.orig 2018-12-28 15:18:49.567468833 +0100 ++++ ./asciinema/__main__.py 2018-12-28 15:19:17.550800251 +0100 +@@ -50,10 +50,6 @@ + + + def main(): +- if locale.nl_langinfo(locale.CODESET).upper() != 'UTF-8': +- print("asciinema needs a UTF-8 native locale to run. Check the output of `locale` command.") +- sys.exit(1) +- + try: + cfg = config.load() + except config.ConfigError as e: