public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Lars Wendler" <polynomial-c@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/less/files/, sys-apps/less/
Date: Sat, 16 Feb 2019 19:11:26 +0000 (UTC)	[thread overview]
Message-ID: <1550344153.f78dc4749aa8c49ea035be184b705477939899c8.polynomial-c@gentoo> (raw)

commit:     f78dc4749aa8c49ea035be184b705477939899c8
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 16 19:07:05 2019 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Sat Feb 16 19:09:13 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f78dc474

sys-apps/less: Revbump to fix mouse issue.

Bug: https://bugs.gentoo.org/678102
Package-Manager: Portage-2.3.60, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 sys-apps/less/files/less-549-mouse_fix.patch       | 51 ++++++++++++++++++++++
 .../less/{less-549.ebuild => less-549-r1.ebuild}   |  4 ++
 2 files changed, 55 insertions(+)

diff --git a/sys-apps/less/files/less-549-mouse_fix.patch b/sys-apps/less/files/less-549-mouse_fix.patch
new file mode 100644
index 00000000000..495073a32a4
--- /dev/null
+++ b/sys-apps/less/files/less-549-mouse_fix.patch
@@ -0,0 +1,51 @@
+From d5015d29f79e70fb70489616c0f2d0ff32e52898 Mon Sep 17 00:00:00 2001
+From: Mark Nudelman <markn@greenwoodsoftware.com>
+Date: Sat, 16 Feb 2019 07:20:42 -0800
+Subject: [PATCH] Don't emit mouse controls if --mouse is not set.
+
+---
+ screen.c | 10 ++++++----
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+diff --git a/screen.c b/screen.c
+index 9a32685..b58fe26 100644
+--- a/screen.c
++++ b/screen.c
+@@ -1549,6 +1549,8 @@ win32_deinit_term(VOID_PARAM)
+ 	public void
+ init_mouse(VOID_PARAM)
+ {
++	if (!mousecap)
++		return;
+ #if !MSDOS_COMPILER
+ 	tputs(sc_s_mousecap, sc_height, putchr);
+ #else
+@@ -1565,6 +1567,8 @@ init_mouse(VOID_PARAM)
+ 	public void
+ deinit_mouse(VOID_PARAM)
+ {
++	if (!mousecap)
++		return;
+ #if !MSDOS_COMPILER
+ 	tputs(sc_e_mousecap, sc_height, putchr);
+ #else
+@@ -1587,8 +1591,7 @@ init(VOID_PARAM)
+ 			tputs(sc_init, sc_height, putchr);
+ 		if (!no_keypad)
+ 			tputs(sc_s_keypad, sc_height, putchr);
+-		if (mousecap)
+-			init_mouse();
++		init_mouse();
+ 	}
+ 	if (top_scroll) 
+ 	{
+@@ -1626,8 +1629,7 @@ deinit(VOID_PARAM)
+ #if !MSDOS_COMPILER
+ 	if (!(quit_if_one_screen && one_screen))
+ 	{
+-		if (mousecap)
+-			deinit_mouse();
++		deinit_mouse();
+ 		if (!no_keypad)
+ 			tputs(sc_e_keypad, sc_height, putchr);
+ 		if (!no_init)

diff --git a/sys-apps/less/less-549.ebuild b/sys-apps/less/less-549-r1.ebuild
similarity index 96%
rename from sys-apps/less/less-549.ebuild
rename to sys-apps/less/less-549-r1.ebuild
index f04887b62ff..8eff7a5d6ea 100644
--- a/sys-apps/less/less-549.ebuild
+++ b/sys-apps/less/less-549-r1.ebuild
@@ -17,6 +17,10 @@ DEPEND=">=app-misc/editor-wrapper-3
 	pcre? ( dev-libs/libpcre2 )"
 RDEPEND="${DEPEND}"
 
+PATCHES=(
+	"${FILESDIR}"/${P}-mouse_fix.patch #678102
+)
+
 src_configure() {
 	export ac_cv_lib_ncursesw_initscr=$(usex unicode)
 	export ac_cv_lib_ncurses_initscr=$(usex !unicode)


             reply	other threads:[~2019-02-16 19:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-16 19:11 Lars Wendler [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-11-18  8:15 [gentoo-commits] repo/gentoo:master commit in: sys-apps/less/files/, sys-apps/less/ Lars Wendler
2022-11-24 16:53 Mike Gilbert
2023-02-09  3:54 Sam James
2023-06-23 21:59 Sam James
2023-07-17 22:04 Sam James
2023-12-04  8:37 Sam James
2024-04-14  0:49 Sam James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1550344153.f78dc4749aa8c49ea035be184b705477939899c8.polynomial-c@gentoo \
    --to=polynomial-c@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox