git: 7223af8a5b2b - main - sysutils/tmux: Update to 3.5a

From: Yasuhiro Kimura <yasu_at_FreeBSD.org>
Date: Sat, 19 Oct 2024 08:27:43 UTC
The branch main has been updated by yasu:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7223af8a5b2b3be705e1f481e45cd38d20082e69

commit 7223af8a5b2b3be705e1f481e45cd38d20082e69
Author:     Yasuhiro Kimura <yasu@FreeBSD.org>
AuthorDate: 2024-02-14 00:31:47 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2024-10-19 08:26:45 +0000

    sysutils/tmux: Update to 3.5a
    
    Update bash completion to its latest snapshot.
    
    ChangeLog:      https://raw.githubusercontent.com/tmux/tmux/3.5a/CHANGES
    PR:             277041
    Approved by:    maintainer timeout
---
 sysutils/tmux/Makefile                             |  5 +-
 sysutils/tmux/distinfo                             | 10 ++--
 sysutils/tmux/files/patch-e86752820993a0           | 54 -------------------
 ...tch-to-fix-crash-due-to-change-to-ncurses.patch | 63 ----------------------
 4 files changed, 7 insertions(+), 125 deletions(-)

diff --git a/sysutils/tmux/Makefile b/sysutils/tmux/Makefile
index 4ae211a218d3..9592aef810b5 100644
--- a/sysutils/tmux/Makefile
+++ b/sysutils/tmux/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	tmux
-PORTVERSION=	3.3a
-PORTREVISION=	3
+PORTVERSION=	3.5a
 CATEGORIES=	sysutils
 MASTER_SITES=	https://github.com/tmux/tmux/releases/download/${PORTVERSION}/
 DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
@@ -21,7 +20,7 @@ USES=		cpe ncurses:port pkgconfig
 CPE_VENDOR=	tmux_project
 
 USE_GITHUB=	nodefault
-GH_TUPLE=	imomaliev:tmux-bash-completion:f5d5323:bash
+GH_TUPLE=	imomaliev:tmux-bash-completion:8da7f79:bash
 
 GNU_CONFIGURE=	yes
 GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
diff --git a/sysutils/tmux/distinfo b/sysutils/tmux/distinfo
index 37cd29fb5bdc..f3395690b524 100644
--- a/sysutils/tmux/distinfo
+++ b/sysutils/tmux/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1657892731
-SHA256 (tmux-3.3a.tar.gz) = e4fd347843bd0772c4f48d6dde625b0b109b7a380ff15db21e97c11a4dcdf93f
-SIZE (tmux-3.3a.tar.gz) = 677448
-SHA256 (imomaliev-tmux-bash-completion-f5d5323_GH0.tar.gz) = 4e4f791c446e3cab1a02d39a30fbfd4cec6c7e3119365860a04c9de205eaa626
-SIZE (imomaliev-tmux-bash-completion-f5d5323_GH0.tar.gz) = 8726
+TIMESTAMP = 1728112504
+SHA256 (tmux-3.5a.tar.gz) = 16216bd0877170dfcc64157085ba9013610b12b082548c7c9542cc0103198951
+SIZE (tmux-3.5a.tar.gz) = 715619
+SHA256 (imomaliev-tmux-bash-completion-8da7f79_GH0.tar.gz) = 2ba28d9a0f0b419184229f234fcb20ed6d6f456b4ef592e4cd2eec79142e7502
+SIZE (imomaliev-tmux-bash-completion-8da7f79_GH0.tar.gz) = 9438
diff --git a/sysutils/tmux/files/patch-e86752820993a0 b/sysutils/tmux/files/patch-e86752820993a0
deleted file mode 100644
index e487fb42fada..000000000000
--- a/sysutils/tmux/files/patch-e86752820993a0
+++ /dev/null
@@ -1,54 +0,0 @@
-Index: control.c
-===================================================================
---- control.c.orig	2022-04-25 08:25:13 UTC
-+++ control.c
-@@ -775,6 +775,9 @@ control_start(struct client *c)
- 
- 	cs->read_event = bufferevent_new(c->fd, control_read_callback,
- 	    control_write_callback, control_error_callback, c);
-+	if (cs->read_event == NULL)
-+		fatalx("out of memory");
-+
- 	bufferevent_enable(cs->read_event, EV_READ);
- 
- 	if (c->flags & CLIENT_CONTROLCONTROL)
-@@ -782,6 +785,8 @@ control_start(struct client *c)
- 	else {
- 		cs->write_event = bufferevent_new(c->out_fd, NULL,
- 		    control_write_callback, control_error_callback, c);
-+		if (cs->write_event == NULL)
-+			fatalx("out of memory");
- 	}
- 	bufferevent_setwatermark(cs->write_event, EV_WRITE, CONTROL_BUFFER_LOW,
- 	    0);
---- file.c.orig	2022-04-25 08:25:13 UTC
-+++ file.c
-@@ -585,6 +585,8 @@ file_write_open(struct client_files *files, struct tmu
- 
- 	cf->event = bufferevent_new(cf->fd, NULL, file_write_callback,
- 	    file_write_error_callback, cf);
-+	if (cf->event == NULL)
-+		fatalx("out of memory");
- 	bufferevent_enable(cf->event, EV_WRITE);
- 	goto reply;
- 
-@@ -744,6 +746,8 @@ file_read_open(struct client_files *files, struct tmux
- 
- 	cf->event = bufferevent_new(cf->fd, file_read_callback, NULL,
- 	    file_read_error_callback, cf);
-+	if (cf->event == NULL)
-+		fatalx("out of memory");
- 	bufferevent_enable(cf->event, EV_READ);
- 	return;
- 
---- window.c.orig	2022-04-25 08:25:14 UTC
-+++ window.c
-@@ -1042,6 +1042,8 @@ window_pane_set_event(struct window_pane *wp)
- 
- 	wp->event = bufferevent_new(wp->fd, window_pane_read_callback,
- 	    NULL, window_pane_error_callback, wp);
-+	if (wp->event == NULL)
-+		fatalx("out of memory");
- 	wp->ictx = input_init(wp, wp->event, &wp->palette);
- 
- 	bufferevent_enable(wp->event, EV_READ|EV_WRITE);
diff --git a/sysutils/tmux/files/patch-to-fix-crash-due-to-change-to-ncurses.patch b/sysutils/tmux/files/patch-to-fix-crash-due-to-change-to-ncurses.patch
deleted file mode 100644
index 00922273763c..000000000000
--- a/sysutils/tmux/files/patch-to-fix-crash-due-to-change-to-ncurses.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-diff --git tty-term.c tty-term.c
-index fdf0c4fa..873e1ce2 100644
---- tty-term.c
-+++ tty-term.c
-@@ -762,33 +762,53 @@ tty_term_string(struct tty_term *term, enum tty_code_code code)
- const char *
- tty_term_string1(struct tty_term *term, enum tty_code_code code, int a)
- {
--	return (tparm((char *) tty_term_string(term, code), a, 0, 0, 0, 0, 0, 0, 0, 0));
-+	const char	*x = tty_term_string(term, code), *s;
-+	s = tiparm_s(1, 0, x, a);
-+	if (s == NULL)
-+		fatalx("could not expand %s", tty_term_codes[code].name);
-+	return (s);
- }
- 
- const char *
- tty_term_string2(struct tty_term *term, enum tty_code_code code, int a, int b)
- {
--	return (tparm((char *) tty_term_string(term, code), a, b, 0, 0, 0, 0, 0, 0, 0));
-+	const char	*x = tty_term_string(term, code), *s;
-+	s = tiparm_s(2, 0, x, a, b);
-+	if (s == NULL)
-+		fatalx("could not expand %s", tty_term_codes[code].name);
-+	return (s);
- }
- 
- const char *
- tty_term_string3(struct tty_term *term, enum tty_code_code code, int a, int b,
-     int c)
- {
--	return (tparm((char *) tty_term_string(term, code), a, b, c, 0, 0, 0, 0, 0, 0));
-+	const char	*x = tty_term_string(term, code), *s;
-+	s = tiparm_s(3, 0, x, a, b, c);
-+	if (s == NULL)
-+		fatalx("could not expand %s", tty_term_codes[code].name);
-+	return (s);
- }
- 
- const char *
- tty_term_ptr1(struct tty_term *term, enum tty_code_code code, const void *a)
- {
--	return (tparm((char *) tty_term_string(term, code), (long)a, 0, 0, 0, 0, 0, 0, 0, 0));
-+	const char	*x = tty_term_string(term, code), *s;
-+	s = tiparm_s(1, 1, x, a);
-+	if (s == NULL)
-+		fatalx("could not expand %s", tty_term_codes[code].name);
-+	return (s);
- }
- 
- const char *
- tty_term_ptr2(struct tty_term *term, enum tty_code_code code, const void *a,
-     const void *b)
- {
--	return (tparm((char *) tty_term_string(term, code), (long)a, (long)b, 0, 0, 0, 0, 0, 0, 0));
-+	const char	*x = tty_term_string(term, code), *s;
-+	s = tiparm_s(2, 3, x, a, b);
-+	if (s == NULL)
-+		fatalx("could not expand %s", tty_term_codes[code].name);
-+	return (s);
- }
- 
- int