Bug 279276

Summary: sysutils/tmux: Fix crash when text selection using mouse
Product: Ports & Packages Reporter: Koichiro Iwao <meta>
Component: Individual Port(s)Assignee: Mathieu Arnold <mat>
Status: Closed FIXED    
Severity: Affects Some People CC: diizzy, meta, mew14930xvi, yasu
Priority: --- Flags: bugzilla: maintainer-feedback? (mat)
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://github.com/microsoft/azurelinux/issues/6598
Attachments:
Description Flags
0001-sysutils-tmux-Fix-crash-when-text-selection-using-mo.patch none

Description Koichiro Iwao freebsd_committer freebsd_triage 2024-05-24 18:33:44 UTC
Created attachment 250928 [details]
0001-sysutils-tmux-Fix-crash-when-text-selection-using-mo.patch

Since tmux 3.4 is hold off at bug 277041, please consider to apply this patch to fix crash.
Comment 1 Koichiro Iwao freebsd_committer freebsd_triage 2024-05-24 18:41:30 UTC
It doesn't crash on 14.0-RELEASE but crashes on 14.1-STABLE FreeBSD 14.1-STABLE stable/14-n267784-e85f2ed0950 GENERIC amd64 for me.
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-06-14 08:33:10 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5a77b3ff4c0e9fed2b3dab55023735008cff1e73

commit 5a77b3ff4c0e9fed2b3dab55023735008cff1e73
Author:     Koichiro Iwao <meta@FreeBSD.org>
AuthorDate: 2024-05-24 18:15:51 +0000
Commit:     Koichiro Iwao <meta@FreeBSD.org>
CommitDate: 2024-06-14 08:31:54 +0000

    sysutils/tmux: Fix crash when text selection using mouse

    I re-ported a patch originally ported to 3.2a by Tobias Brick, a
    Microsoft employee to 3.3a. The patch depends on ncurses 6.4-20230423 or
    later so I bind this port to ncurses:port.

    See commit message of the patch for detail [1]

    [1] https://github.com/microsoft/azurelinux/blob/a1f78f2/SPECS/tmux/manual-patch-to-fix-crash-due-to-change-to-ncurses.patch

    PR:             279276
    Approved by:    maintainer timeout
    Obtained from:  https://github.com/microsoft/azurelinux/issues/6598
    Obtained from:  https://github.com/microsoft/azurelinux/pull/6766

 sysutils/tmux/Makefile                             |  4 +-
 ...-fix-crash-due-to-change-to-ncurses.patch (new) | 63 ++++++++++++++++++++++
 2 files changed, 65 insertions(+), 2 deletions(-)
Comment 3 Koichiro Iwao freebsd_committer freebsd_triage 2024-06-14 08:35:55 UTC
Committed due to maintainer timeout.