From 06984d906a23b3a0e4965ae802b810331bd4b562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Mon, 21 Feb 2022 10:52:16 -0300 Subject: [PATCH] python3-prompt_toolkit: don't handle sigint Fixes #35712 See also: https://github.com/prompt-toolkit/python-prompt-toolkit/issues/1576 --- .../patches/dont-handle-sigint.patch | 27 +++++++++++++++++++ srcpkgs/python3-prompt_toolkit/template | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/python3-prompt_toolkit/patches/dont-handle-sigint.patch diff --git a/srcpkgs/python3-prompt_toolkit/patches/dont-handle-sigint.patch b/srcpkgs/python3-prompt_toolkit/patches/dont-handle-sigint.patch new file mode 100644 index 00000000000..60ce287a63d --- /dev/null +++ b/srcpkgs/python3-prompt_toolkit/patches/dont-handle-sigint.patch @@ -0,0 +1,27 @@ +This makes handle_sigint default to False + +See: + - https://github.com/void-linux/void-packages/issues/35712 + - https://github.com/prompt-toolkit/python-prompt-toolkit/issues/1576 + - https://trac.sagemath.org/ticket/33360#comment:3 + +--- a/prompt_toolkit/application/application.py 2022-02-11 05:06:37.000000000 -0300 ++++ b/prompt_toolkit/application/application.py 2022-02-21 10:43:13.828058001 -0300 +@@ -634,7 +634,7 @@ + self, + pre_run: Optional[Callable[[], None]] = None, + set_exception_handler: bool = True, +- handle_sigint: bool = True, ++ handle_sigint: bool = False, + slow_callback_duration: float = 0.5, + ) -> _AppResult: + """ +@@ -859,7 +859,7 @@ + self, + pre_run: Optional[Callable[[], None]] = None, + set_exception_handler: bool = True, +- handle_sigint: bool = True, ++ handle_sigint: bool = False, + in_thread: bool = False, + ) -> _AppResult: + """ diff --git a/srcpkgs/python3-prompt_toolkit/template b/srcpkgs/python3-prompt_toolkit/template index 0d625dc249f..26bcb33e82b 100644 --- a/srcpkgs/python3-prompt_toolkit/template +++ b/srcpkgs/python3-prompt_toolkit/template @@ -1,7 +1,7 @@ # Template file for 'python3-prompt_toolkit' pkgname=python3-prompt_toolkit version=3.0.28 -revision=1 +revision=2 wrksrc="prompt_toolkit-${version}" build_style=python3-module hostmakedepends="python3-setuptools"