Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/tmux/, app-misc/tmux/files/
Date: Sun, 01 Dec 2019 19:18:10
Message-Id: 1575227882.34d624d1ab647bfec8d8f6e0b31bf7da54d745db.polynomial-c@gentoo
1 commit: 34d624d1ab647bfec8d8f6e0b31bf7da54d745db
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 1 19:17:33 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 1 19:18:02 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34d624d1
7
8 app-misc/tmux: Bump to version 3.0a. Removed old
9
10 Package-Manager: Portage-2.3.80, Repoman-2.3.19
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 app-misc/tmux/Manifest | 2 +-
14 app-misc/tmux/files/tmux-3.0-musl.patch | 60 ----------------------
15 .../tmux/{tmux-3.0.ebuild => tmux-3.0a.ebuild} | 3 +-
16 3 files changed, 2 insertions(+), 63 deletions(-)
17
18 diff --git a/app-misc/tmux/Manifest b/app-misc/tmux/Manifest
19 index 18f3ea23956..4562315a654 100644
20 --- a/app-misc/tmux/Manifest
21 +++ b/app-misc/tmux/Manifest
22 @@ -1,3 +1,3 @@
23 DIST tmux-2.9a.tar.gz 510915 BLAKE2B 6a3dcdb66419fdd40818c18c3a16adf83fa67b3f5d4cc60953b64d62d2e3e139cad0612eef4233d3d5fa76aaae93e437c8394aa118791c87cb0670f1ddc65eae SHA512 aca6882688727c10c5647443fdd18bbd6c0f80b7a3bf9667903d1b89d523e604cd715f176f33f2e5673258f00e626a6dc273f80fe97ae4f91621814d89985713
24 -DIST tmux-3.0.tar.gz 546099 BLAKE2B 11a61bb88d2658147ba675cb6e334b90b334125d0fa783dfb1bcd999d1dfc178f30c4bcfb6ad39e67bcdf524caa20b32cb1518f21aed66c0f038341318676a29 SHA512 50fc25f84f04486e9b5dc598b884419d95ef158e9b36d63805db97149811cdfa71f086eafa9610a6a9a3041d1e9eb6d6ccc9277d1926d0e936b0d6a8e1d1cbf8
25 +DIST tmux-3.0a.tar.gz 546377 BLAKE2B 1e784d98e1f18e7850e92d8d5f849ee1b8bcbf62b9323b6eb4007e038bd84480b3a171c93c88954701487ef228db8717bac886f51dd21efdf2766e676b0c16e3 SHA512 f326ee9c0e5e9a46ce9c99c76407b8cf35feea5f898c3c937fd8c5e488ff9a809272de19226d9d10f864e11051dcf633327820b7f8d86d85962da61174bbfb0b
26 DIST tmux-bash-completion-678a27616b70c649c6701cae9cd8c92b58cc051b 458 BLAKE2B 04143e6d1cfbbd467f1656f949363cb7a4a3e16e9b3cf56b8b0423babe56276abee2622964cb490005fc76d1cbe12201fb1a6446a6f860c2cc1ff3c9bd5fc496 SHA512 fe0aca7d03067af87e0788a2fa902c7ef5500ba72295cb63c5a1814534a008c224256d7f890ac1af6d17f3734b45148765e1632f075e284c453185df2927b979
27
28 diff --git a/app-misc/tmux/files/tmux-3.0-musl.patch b/app-misc/tmux/files/tmux-3.0-musl.patch
29 deleted file mode 100644
30 index 5369fdd78b0..00000000000
31 --- a/app-misc/tmux/files/tmux-3.0-musl.patch
32 +++ /dev/null
33 @@ -1,60 +0,0 @@
34 -From eb4d60b1ce0e2dc917bd47b10a3ce89de840448a Mon Sep 17 00:00:00 2001
35 -From: nicm <nicm>
36 -Date: Wed, 27 Nov 2019 20:54:30 +0000
37 -Subject: [PATCH] REG_STARTEND is not portable, but it turns out we don't
38 - actually need it. From Evan Green, GitHub issue 1982.
39 -
40 ----
41 - regsub.c | 24 ++++++++++++------------
42 - 1 file changed, 12 insertions(+), 12 deletions(-)
43 -
44 -diff --git a/regsub.c b/regsub.c
45 -index 199b21714..22e236dc7 100644
46 ---- a/regsub.c
47 -+++ b/regsub.c
48 -@@ -77,10 +77,7 @@ regsub(const char *pattern, const char *with, const char *text, int flags)
49 - end = strlen(text);
50 -
51 - while (start <= end) {
52 -- m[0].rm_so = start;
53 -- m[0].rm_eo = end;
54 --
55 -- if (regexec(&r, text, nitems(m), m, REG_STARTEND) != 0) {
56 -+ if (regexec(&r, text + start, nitems(m), m, 0) != 0) {
57 - regsub_copy(&buf, &len, text, start, end);
58 - break;
59 - }
60 -@@ -89,22 +86,25 @@ regsub(const char *pattern, const char *with, const char *text, int flags)
61 - * Append any text not part of this match (from the end of the
62 - * last match).
63 - */
64 -- regsub_copy(&buf, &len, text, last, m[0].rm_so);
65 -+ regsub_copy(&buf, &len, text, last, m[0].rm_so + start);
66 -
67 - /*
68 - * If the last match was empty and this one isn't (it is either
69 - * later or has matched text), expand this match. If it is
70 - * empty, move on one character and try again from there.
71 - */
72 -- if (empty || m[0].rm_so != last || m[0].rm_so != m[0].rm_eo) {
73 -- regsub_expand(&buf, &len, with, text, m, nitems(m));
74 --
75 -- last = m[0].rm_eo;
76 -- start = m[0].rm_eo;
77 -+ if (empty ||
78 -+ start + m[0].rm_so != last ||
79 -+ m[0].rm_so != m[0].rm_eo) {
80 -+ regsub_expand(&buf, &len, with, text + start, m,
81 -+ nitems(m));
82 -+
83 -+ last = start + m[0].rm_eo;
84 -+ start += m[0].rm_eo;
85 - empty = 0;
86 - } else {
87 -- last = m[0].rm_eo;
88 -- start = m[0].rm_eo + 1;
89 -+ last = start + m[0].rm_eo;
90 -+ start += m[0].rm_eo + 1;
91 - empty = 1;
92 - }
93 -
94
95 diff --git a/app-misc/tmux/tmux-3.0.ebuild b/app-misc/tmux/tmux-3.0a.ebuild
96 similarity index 94%
97 rename from app-misc/tmux/tmux-3.0.ebuild
98 rename to app-misc/tmux/tmux-3.0a.ebuild
99 index b0b4fb817a7..2d07251c2cd 100644
100 --- a/app-misc/tmux/tmux-3.0.ebuild
101 +++ b/app-misc/tmux/tmux-3.0a.ebuild
102 @@ -12,7 +12,7 @@ if [[ "${PV}" == 9999 ]] ; then
103 SRC_URI="https://raw.githubusercontent.com/przepompownia/tmux-bash-completion/678a27616b70c649c6701cae9cd8c92b58cc051b/completions/tmux -> tmux-bash-completion-678a27616b70c649c6701cae9cd8c92b58cc051b"
104 EGIT_REPO_URI="https://github.com/tmux/tmux.git"
105 else
106 - SRC_URI="https://github.com/tmux/tmux/releases/download/$(ver_cut 1-2)/${P/_/-}.tar.gz"
107 + SRC_URI="https://github.com/tmux/tmux/releases/download/${PV}/${P/_/-}.tar.gz"
108 [[ "${PV}" == *_rc* ]] || \
109 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
110 S="${WORKDIR}/${P/_/-}"
111 @@ -46,7 +46,6 @@ PATCHES=(
112 "${FILESDIR}/${PN}-2.4-flags.patch"
113
114 # upstream fixes (can be removed with next version bump)
115 - "${FILESDIR}/${P}-musl.patch"
116 )
117
118 src_prepare() {