Browse Source

asciinema: Update from 2.0.1 to 2.0.2

android-5
Fredrik Fornwall 6 years ago
parent
commit
def4c6b8e7
  1. 14
      packages/asciinema/asciinema-__main__.py.patch
  2. 23
      packages/asciinema/asciinema-asciicast-v2.py.patch
  3. 5
      packages/asciinema/build.sh
  4. 13
      packages/asciinema/no_langinfo.patch

14
packages/asciinema/asciinema-__main__.py.patch

@ -0,0 +1,14 @@
diff -u -r ../asciinema-2.0.2/asciinema/__main__.py ./asciinema/__main__.py
--- ../asciinema-2.0.2/asciinema/__main__.py 2019-01-12 18:58:29.000000000 +0000
+++ ./asciinema/__main__.py 2019-01-16 21:07:50.834574609 +0000
@@ -50,10 +50,6 @@
def main():
- if locale.nl_langinfo(locale.CODESET).upper() not in ['US-ASCII', 'UTF-8']:
- print("asciinema needs an ASCII or UTF-8 character encoding to run. Check the output of `locale` command.")
- sys.exit(1)
-
try:
cfg = config.load()
except config.ConfigError as e:

23
packages/asciinema/asciinema-asciicast-v2.py.patch

@ -1,23 +0,0 @@
See https://github.com/asciinema/asciinema/issues/271
diff -u -r ../asciinema-2.0.1/asciinema/asciicast/v2.py ./asciinema/asciicast/v2.py
--- ../asciinema-2.0.1/asciinema/asciicast/v2.py 2018-04-04 09:05:41.000000000 +0200
+++ ./asciinema/asciicast/v2.py 2018-04-06 23:24:44.432657505 +0200
@@ -4,7 +4,16 @@
import json.decoder
import time
import codecs
-from multiprocessing import Process, Queue
+
+try:
+ # Importing synchronize is to detect platforms where
+ # multiprocessing does not work (python issue 3770)
+ # and cause an ImportError. Otherwise it will happen
+ # later when trying to use Queue().
+ from multiprocessing import synchronize, Process, Queue
+except ImportError:
+ from threading import Thread as Process
+ from queue import Queue
from asciinema.pty_recorder import PtyRecorder

5
packages/asciinema/build.sh

@ -1,8 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://asciinema.org/ TERMUX_PKG_HOMEPAGE=https://asciinema.org/
TERMUX_PKG_DESCRIPTION="Record and share your terminal sessions, the right way" TERMUX_PKG_DESCRIPTION="Record and share your terminal sessions, the right way"
TERMUX_PKG_VERSION=2.0.1 TERMUX_PKG_VERSION=2.0.2
TERMUX_PKG_REVISION=2 TERMUX_PKG_SHA256=2578a1b5611e5375771ef6582a6533ef8d40cdbed1ba1c87786fd23af625ab68
TERMUX_PKG_SHA256=7087b247dae36d04821197bc14ebd4248049592b299c9878d8953c025ac802e4
TERMUX_PKG_SRCURL=https://github.com/asciinema/asciinema/archive/v${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SRCURL=https://github.com/asciinema/asciinema/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_BUILD_IN_SRC=yes TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_PLATFORM_INDEPENDENT=yes TERMUX_PKG_PLATFORM_INDEPENDENT=yes

13
packages/asciinema/no_langinfo.patch

@ -1,13 +0,0 @@
--- ../__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:
Loading…
Cancel
Save