diff --git a/srcpkgs/ranger/patches/ncurse-202311.patch b/srcpkgs/ranger/patches/ncurse-202311.patch new file mode 100644 index 00000000000..c5f5aa91841 --- /dev/null +++ b/srcpkgs/ranger/patches/ncurse-202311.patch @@ -0,0 +1,13 @@ +| 20231111 +| + modify endwin() to return an error if it is called again without an +| intervening screen update (report by Rajeev Pillai, NetBSD #57592). +--- a/ranger/gui/ui.py ++++ b/ranger/gui/ui.py +@@ -147,6 +147,7 @@ class UI( # pylint: disable=too-many-in + pass + if self.settings.mouse_enabled: + _setup_mouse(dict(value=False)) ++ self.win.refresh() + curses.endwin() + self.is_on = False + diff --git a/srcpkgs/ranger/template b/srcpkgs/ranger/template index b868e07748d..3f3aff73501 100644 --- a/srcpkgs/ranger/template +++ b/srcpkgs/ranger/template @@ -1,7 +1,7 @@ # Template file for 'ranger' pkgname=ranger version=1.9.4 -revision=2 +revision=3 build_style=python3-module hostmakedepends="python3 python3-setuptools" makedepends="python3-devel"