Merge ~mitchdz/ubuntu/+source/tmux:mitch/mantic-clipboard-fix into ubuntu/+source/tmux:ubuntu/mantic-devel

Proposed by Mitchell Dzurick
Status: Merged
Merge reported by: Mitchell Dzurick
Merged at revision: 497c42d89107a9a4161d9431961e788d5ffcc5ee
Proposed branch: ~mitchdz/ubuntu/+source/tmux:mitch/mantic-clipboard-fix
Merge into: ubuntu/+source/tmux:ubuntu/mantic-devel
Diff against target: 72 lines (+38/-1)
4 files modified
debian/changelog (+7/-0)
debian/control (+2/-1)
debian/patches/lp2040080-fix-upstream-bf636d9575-OSC52-clipboard.patch (+28/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
Sergio Durigan Junior (community) Approve
Canonical Server Reporter Pending
git-ubuntu import Pending
Review via email: mp+454437@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Mitchell Dzurick (mitchdz) wrote :

Keeping as WIP until Noble syncs with the fix.

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote (last edit ):

Thanks, Mitchell.

Noble now has the latest tmux with the fix, so I'm going to review this MP.

I reproduced the issue (thanks for the nice reproducer) and verified that the patch fixes the problem. The SRU text also looks good; this is a very simple fix and I couldn't find much more to comment on the Regression Potential section.

My personal preference is to always list the files that are being change in the changelog entry. This makes it easier to search for specific changes in the future. But as I said, it's a personal preference so I'm fine with keeping the changelog entry as is.

I have a question about the way you backported the patch. Why did you choose to modify an existing patch instead of adding another one on top? This way, you could have added more descriptive headers explaining what the patch is about. If you think it's better to modify the existing patch, then I'd ask you to at least write a comment at the top explaining that you've applied another change on top of it.

Otherwise, this LGTM and is ready to be sponsored as soon as we're clear on the patch situation. Thanks.

review: Needs Information
Revision history for this message
Mitchell Dzurick (mitchdz) wrote :

Thanks Sergio! The only reason I directly modified the diff file is to make the change/commit identical to Debian. I supposed I still had my -devel mindset on so it'd be more obvious to drop for NN, but since NN is being synced, that's not needed.

If there's a preference to add another patch file to add a proper DEP3 header I'd be glad to do that.

Revision history for this message
Mitchell Dzurick (mitchdz) wrote :

Per conversation with Sergio, I'm going to convert this into a new, separate patch file.

Revision history for this message
Mitchell Dzurick (mitchdz) wrote :

Tested new change. Good to review now.

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thanks, Mitchell.

This is great now. I've made tiny adjustments to the SRU text, and uploaded the package:

  479 Trying to upload package to ubuntu
  480 Checking signature on .changes
  481 gpg: /home/sergio/work/tmux/tmux_3.3a-4ubuntu1_source.changes: Valid signature from 106DA1C8C3CBBF14
  482 Checking signature on .dsc
  483 gpg: /home/sergio/work/tmux/tmux_3.3a-4ubuntu1.dsc: Valid signature from 106DA1C8C3CBBF14
  484 Uploading to ubuntu (via ftp to upload.ubuntu.com):
  485 Uploading tmux_3.3a-4ubuntu1.dsc: done.
  486 Uploading tmux_3.3a-4ubuntu1.debian.tar.xz: done.
  487 Uploading tmux_3.3a-4ubuntu1_source.buildinfo: done.
  488 Uploading tmux_3.3a-4ubuntu1_source.changes: done.
  489 Successfully uploaded packages.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 9f490dd..2277ddf 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+tmux (3.3a-4ubuntu1) mantic; urgency=medium
7+
8+ * d/p/lp2040080-fix-upstream-bf636d9575-OSC52-clipboard.patch:
9+ fix upstream patch to allow OSC52 clipboard access (LP: #2040080).
10+
11+ -- Mitchell Dzurick <mitchell.dzurick@canonical.com> Tue, 07 Nov 2023 15:49:10 -0700
12+
13 tmux (3.3a-4) unstable; urgency=medium
14
15 * Backport upstream changes related to ncurses tparm handling (closes: #1038269).
16diff --git a/debian/control b/debian/control
17index a85c340..621bbdc 100644
18--- a/debian/control
19+++ b/debian/control
20@@ -1,7 +1,8 @@
21 Source: tmux
22 Section: admin
23 Priority: optional
24-Maintainer: Romain Francoise <rfrancoise@debian.org>
25+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
26+XSBC-Original-Maintainer: Romain Francoise <rfrancoise@debian.org>
27 Build-Depends: bison,
28 debhelper-compat (= 13),
29 dpkg-dev (>= 1.16.1~),
30diff --git a/debian/patches/lp2040080-fix-upstream-bf636d9575-OSC52-clipboard.patch b/debian/patches/lp2040080-fix-upstream-bf636d9575-OSC52-clipboard.patch
31new file mode 100644
32index 0000000..7e3cf35
33--- /dev/null
34+++ b/debian/patches/lp2040080-fix-upstream-bf636d9575-OSC52-clipboard.patch
35@@ -0,0 +1,28 @@
36+Description: Fix OSC52 clipboard access
37+A debian patch used tparm when it should not have been used. This patch fixes
38+that by removing these extraneous tparm calls.
39+This patch comes from https://salsa.debian.org/rfrancoise/tmux/-/commit/acb94347d2601965b4e46ccc48616dfb6ef6f691
40+Author: Romain Francoise <rfrancoise@debian.org>
41+Reviewed-By: Mitchell Dzurick <mitchell.dzurick@canonical.com>
42+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/tmux/+bug/2040080
43+Last-Update: 2023-11-07
44+---
45+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
46+--- a/tty-term.c
47++++ b/tty-term.c
48+@@ -771,7 +771,6 @@
49+ #else
50+ s = tparm((char *)x, a, 0, 0, 0, 0, 0, 0, 0, 0);
51+ #endif
52+- s = tparm((char *)x, a);
53+ if (s == NULL) {
54+ log_debug("could not expand %s", tty_term_codes[code].name);
55+ return ("");
56+@@ -811,7 +810,6 @@
57+ #else
58+ s = tparm((char *)x, a, b, c, 0, 0, 0, 0, 0, 0);
59+ #endif
60+- s = tparm((char *)x, a, b, c);
61+ if (s == NULL) {
62+ log_debug("could not expand %s", tty_term_codes[code].name);
63+ return ("");
64diff --git a/debian/patches/series b/debian/patches/series
65index ab389df..4b0cbec 100644
66--- a/debian/patches/series
67+++ b/debian/patches/series
68@@ -5,3 +5,4 @@ upstream-8f34504736.diff
69 upstream-39d41d0810.diff
70 upstream-168eab11a7.diff
71 upstream-bf636d9575.diff
72+lp2040080-fix-upstream-bf636d9575-OSC52-clipboard.patch

Subscribers

People subscribed via source and target branches