Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-terms/rxvt-unicode/, x11-terms/rxvt-unicode/files/
Date: Fri, 26 Nov 2021 13:41:04
Message-Id: 1637934049.85a4c8a6fc848d8eb7135c04e3c69dff9ea93def.marecki@gentoo
1 commit: 85a4c8a6fc848d8eb7135c04e3c69dff9ea93def
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 26 12:50:59 2021 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 26 13:40:49 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85a4c8a6
7
8 x11-terms/rxvt-unicode: drop 9.22-r9
9
10 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
11
12 x11-terms/rxvt-unicode/Manifest | 2 -
13 .../rxvt-unicode-9.22-perl-segfault-on-exit.patch | 36 -----
14 ...rxvt-unicode-9.22-query-graphics-insecure.patch | 11 --
15 .../rxvt-unicode-9.22-sgr-mouse-mode-flag.patch | 165 ---------------------
16 x11-terms/rxvt-unicode/metadata.xml | 3 -
17 x11-terms/rxvt-unicode/rxvt-unicode-9.22-r9.ebuild | 120 ---------------
18 6 files changed, 337 deletions(-)
19
20 diff --git a/x11-terms/rxvt-unicode/Manifest b/x11-terms/rxvt-unicode/Manifest
21 index 6f61f0985202..1cae105e7af0 100644
22 --- a/x11-terms/rxvt-unicode/Manifest
23 +++ b/x11-terms/rxvt-unicode/Manifest
24 @@ -1,4 +1,2 @@
25 -DIST rxvt-unicode-9.22.tar.bz2 931198 BLAKE2B ea9a12e4a8396ed6be12b4d50ae260a0376902dbd47b0628bb14ce0509c5d89f5a80370b413fdb9df9b8b81728ec26e115cbf0d88ab6e9cb2a87b03b5d79c432 SHA512 b39f1b2cbe6dd3fbd2a0ad6a9d391a2b6f49d7c5e67bc65fe44a9c86937f8db379572c67564c6e21ff6e09b447cdfd4e540544e486179e94da0e0db679c04dd9
26 -DIST rxvt-unicode-9.22_24-bit-color_cpixl-20201108.patch.xz 8116 BLAKE2B 27940ad42ee3f26c357a50b7fae1e1539acec71f5ff43e7ed16167d0adb175c4de20ba84880f25eec0817703d937d097fda228541d16511811efe5816109e71b SHA512 2b8bbb90c6bb223f622c1e99d62a70a812604d1f8e57cea37a8faf0af578588d3888ea8009568d623710cc03e020a69269770e23476fd9ff9e46dbd9ea23f540
27 DIST rxvt-unicode-9.26.tar.bz2 904950 BLAKE2B 1790d02eeadf630cc9bc718288af2f6bd19c3e320d3dbfa44c8cef516c8e790e0abfbfe4e557795749ddd3ec41b8358f6eac623c060240f091b3e84a549151ad SHA512 35560b57730e17c9542ea4a615fd86ce703c4e6421323e8fe1570007737a880fde90d17943e5af9e170be4111b9769f4aa7e57efca5428421fdc1c299112f8e0
28 DIST rxvt-unicode-9.26_24-bit-color_aur-20210516+eautoreconf.patch.xz 11716 BLAKE2B 7e18b0f884dbb9574515db8cfb4e1521e1e3287ac194750db288409c7e4d0bb120964e4559ce7e3b91e169935ded93f3af3045fc7c1737a5a6de2710ee2e107b SHA512 8cbcc1c04bdb83996ce08ece559ef9e7f5f530140a2a66291e0ffd049808da60787a68520b4a990dc12e1272de861a85b199ddd10ac8b245eafbfe16dc521199
29
30 diff --git a/x11-terms/rxvt-unicode/files/rxvt-unicode-9.22-perl-segfault-on-exit.patch b/x11-terms/rxvt-unicode/files/rxvt-unicode-9.22-perl-segfault-on-exit.patch
31 deleted file mode 100644
32 index 0a3cb1ec4cd5..000000000000
33 --- a/x11-terms/rxvt-unicode/files/rxvt-unicode-9.22-perl-segfault-on-exit.patch
34 +++ /dev/null
35 @@ -1,36 +0,0 @@
36 -Backported from the upstream CVS repository, see:
37 -http://cvs.schmorp.de/rxvt-unicode/src/rxvtperl.h?r1=1.28&r2=1.29
38 -http://cvs.schmorp.de/rxvt-unicode/src/rxvtperl.xs?r1=1.246&r2=1.247
39 -
40 ---- rxvt-unicode/src/rxvtperl.h 2012/06/12 10:45:53 1.28
41 -+++ rxvt-unicode/src/rxvtperl.h 2020/06/30 07:31:24 1.29
42 -@@ -51,7 +51,9 @@
43 - {
44 - char **perl_environ;
45 -
46 -+ #if 0 // see rxvtperl.xs
47 - ~rxvt_perl_interp ();
48 -+ #endif
49 -
50 - void init ();
51 - void init (rxvt_term *term);
52 ---- rxvt-unicode/src/rxvtperl.xs 2020/01/20 09:35:12 1.246
53 -+++ rxvt-unicode/src/rxvtperl.xs 2020/06/30 07:31:24 1.247
54 -@@ -372,6 +372,9 @@
55 -
56 - static PerlInterpreter *perl;
57 -
58 -+#if 0 /* we are not a library anymore, so doing this is just not worth it */
59 -+/*THINK/TODO: this has the side effect of, of course, not calling destructors. */
60 -+/* but therse are not guaranteed anyway... */
61 - rxvt_perl_interp::~rxvt_perl_interp ()
62 - {
63 - if (perl)
64 -@@ -381,6 +384,7 @@
65 - PERL_SYS_TERM ();
66 - }
67 - }
68 -+#endif
69 -
70 - void
71 - rxvt_perl_interp::init ()
72
73 diff --git a/x11-terms/rxvt-unicode/files/rxvt-unicode-9.22-query-graphics-insecure.patch b/x11-terms/rxvt-unicode/files/rxvt-unicode-9.22-query-graphics-insecure.patch
74 deleted file mode 100644
75 index 52a8c8297050..000000000000
76 --- a/x11-terms/rxvt-unicode/files/rxvt-unicode-9.22-query-graphics-insecure.patch
77 +++ /dev/null
78 @@ -1,11 +0,0 @@
79 ---- a/src/command.C
80 -+++ b/src/command.C
81 -@@ -2695,7 +2695,7 @@
82 - /* kidnapped escape sequence: Should be 8.3.48 */
83 - case C1_ESA: /* ESC G */
84 - // used by original rxvt for rob nations own graphics mode
85 -- if (cmd_getc () == 'Q')
86 -+ if (cmd_getc () == 'Q' && option (Opt_insecure))
87 - tt_printf ("\033G0\012"); /* query graphics - no graphics */
88 - break;
89 -
90
91 diff --git a/x11-terms/rxvt-unicode/files/rxvt-unicode-9.22-sgr-mouse-mode-flag.patch b/x11-terms/rxvt-unicode/files/rxvt-unicode-9.22-sgr-mouse-mode-flag.patch
92 deleted file mode 100644
93 index 3f6f5d90618e..000000000000
94 --- a/x11-terms/rxvt-unicode/files/rxvt-unicode-9.22-sgr-mouse-mode-flag.patch
95 +++ /dev/null
96 @@ -1,165 +0,0 @@
97 -diff --git a/config.h.in b/config.h.in
98 -index 914d606..b869bfb 100644
99 ---- a/config.h.in
100 -+++ b/config.h.in
101 -@@ -9,6 +9,9 @@
102 - /* Define if you want handling for rarely used but handy features */
103 - #undef ENABLE_FRILLS
104 -
105 -+/* Define if you want support for SGR mouse mode 1006 */
106 -+#undef ENABLE_SGRMOUSE
107 -+
108 - /* Define if you can embed a perl interpreter */
109 - #undef ENABLE_PERL
110 -
111 -diff --git a/configure.ac b/configure.ac
112 -index 0da3b59..c8b9c80 100644
113 ---- a/configure.ac
114 -+++ b/configure.ac
115 -@@ -76,6 +76,7 @@ AC_SEARCH_LIBS(gethostbyname, nsl)
116 - AC_SEARCH_LIBS(socket, socket)
117 -
118 - support_frills=yes
119 -+support_sgrmouse=yes
120 - support_inheritpixmap=yes
121 - support_fading=yes
122 - support_keepscrolling=yes
123 -@@ -109,6 +110,7 @@ AC_ARG_ENABLE(everything,
124 - [
125 - if test x$enableval = xno; then
126 - support_frills=no
127 -+ support_sgrmouse=no
128 - support_inheritpixmap=no
129 - support_fading=no
130 - support_keepscrolling=no
131 -@@ -137,6 +139,7 @@ AC_ARG_ENABLE(everything,
132 - fi
133 - if test x$enableval = xyes; then
134 - support_frills=yes
135 -+ support_sgrmouse=yes
136 - support_inheritpixmap=yes
137 - support_fading=yes
138 - support_keepscrolling=yes
139 -@@ -359,6 +362,12 @@ AC_ARG_ENABLE(frills,
140 - support_frills=$enableval
141 - fi])
142 -
143 -+AC_ARG_ENABLE(sgrmouse,
144 -+ [ --enable-sgrmouse enable support for SGR mouse mode 1006],
145 -+ [if test x$enableval = xyes -o x$enableval = xno; then
146 -+ support_sgrmouse=$enableval
147 -+ fi])
148 -+
149 - AC_ARG_ENABLE(keepscrolling,
150 - [ --enable-keepscrolling enable continual scrolling on scrollbar arrow press],
151 - [if test x$enableval = xyes -o x$enableval = xno; then
152 -@@ -666,6 +675,9 @@ fi
153 - if test x$support_frills = xyes; then
154 - AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features)
155 - fi
156 -+if test x$support_sgrmouse = xyes; then
157 -+ AC_DEFINE(ENABLE_SGRMOUSE, 1, Define if you want support for SGR mouse mode 1006)
158 -+fi
159 - if test x$support_mousewheel = xyes; then
160 - AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll)
161 - fi
162 -diff --git a/src/command.C b/src/command.C
163 -index 7b79f51..a62ef87 100644
164 ---- a/src/command.C
165 -+++ b/src/command.C
166 -@@ -1282,6 +1282,13 @@ rxvt_term::mouse_report (XButtonEvent &ev)
167 - int button_number, key_state = 0;
168 - int x, y;
169 - int code = 32;
170 -+ bool mode_sgr = false;
171 -+
172 -+#if ENABLE_SGRMOUSE
173 -+ if (priv_modes & PrivMode_ExtMouseSgr) mode_sgr = true;
174 -+#endif
175 -+
176 -+ if (mode_sgr) code = 0;
177 -
178 - x = Pixel2Col (ev.x) + 1;
179 - y = Pixel2Row (ev.y) + 1;
180 -@@ -1296,11 +1303,18 @@ rxvt_term::mouse_report (XButtonEvent &ev)
181 - code += 32;
182 - }
183 -
184 -- if (MEvent.button == AnyButton)
185 -+ if (!(mode_sgr) && MEvent.button == AnyButton)
186 - button_number = 3;
187 - else
188 - {
189 -- button_number = MEvent.button - Button1;
190 -+ if (ev.type == MotionNotify) {
191 -+ if (ev.state & Button1Mask) button_number = 0;
192 -+ else if (ev.state & Button2Mask) button_number = 1;
193 -+ else if (ev.state & Button3Mask) button_number = 2;
194 -+ else return;
195 -+ } else {
196 -+ button_number = ev.button - Button1;
197 -+ }
198 - /* add 0x3D for wheel events, like xterm does */
199 - if (button_number >= 3)
200 - button_number += 64 - 3;
201 -@@ -1361,6 +1375,15 @@ rxvt_term::mouse_report (XButtonEvent &ev)
202 - wint_t (32 + x),
203 - wint_t (32 + y));
204 - else
205 -+#endif
206 -+#if ENABLE_SGRMOUSE
207 -+ if (mode_sgr)
208 -+ tt_printf ("\033[<%d;%d;%d%c",
209 -+ code + button_number + key_state,
210 -+ x,
211 -+ y,
212 -+ (ev.type == ButtonRelease ? 'm' : 'M'));
213 -+ else
214 - #endif
215 - tt_printf ("\033[M%c%c%c",
216 - code + button_number + key_state,
217 -@@ -2904,7 +2927,7 @@ rxvt_term::process_csi_seq ()
218 - scr_soft_reset ();
219 -
220 - static const int pm_h[] = { 7, 25 };
221 -- static const int pm_l[] = { 1, 3, 4, 5, 6, 9, 66, 1000, 1001, 1005, 1015, 1049 };
222 -+ static const int pm_l[] = { 1, 3, 4, 5, 6, 9, 66, 1000, 1001, 1002, 1003, 1005, 1006, 1015, 1049 };
223 -
224 - process_terminal_mode ('h', 0, ecb_array_length (pm_h), pm_h);
225 - process_terminal_mode ('l', 0, ecb_array_length (pm_l), pm_l);
226 -@@ -3710,6 +3733,9 @@ rxvt_term::process_terminal_mode (int mode, int priv ecb_unused, unsigned int na
227 - { 1003, PrivMode_MouseAnyEvent },
228 - #if ENABLE_FRILLS
229 - { 1005, PrivMode_ExtModeMouse },
230 -+#endif
231 -+#if ENABLE_SGRMOUSE
232 -+ { 1006, PrivMode_ExtMouseSgr },
233 - #endif
234 - { 1010, PrivMode_TtyOutputInh }, // rxvt extension
235 - { 1011, PrivMode_Keypress }, // rxvt extension
236 -diff --git a/src/rxvt.h b/src/rxvt.h
237 -index 5c7cf66..2ffd3fb 100644
238 ---- a/src/rxvt.h
239 -+++ b/src/rxvt.h
240 -@@ -645,6 +645,7 @@ enum {
241 - #define PrivMode_ExtModeMouse (1UL<<23) // xterm pseudo-utf-8 hack
242 - #define PrivMode_ExtMouseRight (1UL<<24) // xterm pseudo-utf-8, but works in non-utf-8-locales
243 - #define PrivMode_BlinkingCursor (1UL<<25)
244 -+#define PrivMode_ExtMouseSgr (1UL<<27) // sgr mouse extension
245 -
246 - #define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11|PrivMode_MouseBtnEvent|PrivMode_MouseAnyEvent)
247 -
248 -diff --git a/src/xdefaults.C b/src/xdefaults.C
249 -index 894aa8d..e5952b7 100644
250 ---- a/src/xdefaults.C
251 -+++ b/src/xdefaults.C
252 -@@ -359,6 +359,9 @@ static const char optionsstring[] = "options: "
253 - #if defined(ENABLE_FRILLS)
254 - "frills,"
255 - #endif
256 -+#if defined(ENABLE_SGRMOUSE)
257 -+ "sgrmouse,"
258 -+#endif
259 - #if defined(SELECTION_SCROLLING)
260 - "selectionscrolling,"
261 - #endif
262
263 diff --git a/x11-terms/rxvt-unicode/metadata.xml b/x11-terms/rxvt-unicode/metadata.xml
264 index 6cd6906d211f..fea19d5c6016 100644
265 --- a/x11-terms/rxvt-unicode/metadata.xml
266 +++ b/x11-terms/rxvt-unicode/metadata.xml
267 @@ -21,9 +21,6 @@
268 <flag name="iso14755">Enable ISO-14755 support</flag>
269 <flag name="mousewheel">Enable scrolling via mouse wheel or buttons 4 and 5</flag>
270 <flag name="perl">Enable perl script support. You can still disable this at runtime with -pe ""</flag>
271 -<flag name="sgrmouse">Enable unofficial support for the xterm SGR 1006 mouse-tracking extension.
272 - Needed to properly support mouse events for terminals with more than 223
273 - rows or columns, in applications not supporting the urxvt 1015 extension.</flag>
274 <flag name="unicode3">Use 21 instead of 16 bits to represent unicode characters</flag>
275 <flag name="utmp">Enable utmp support</flag>
276 <flag name="wtmp">Enable wtmp support</flag>
277
278 diff --git a/x11-terms/rxvt-unicode/rxvt-unicode-9.22-r9.ebuild b/x11-terms/rxvt-unicode/rxvt-unicode-9.22-r9.ebuild
279 deleted file mode 100644
280 index 2e9acbe9987a..000000000000
281 --- a/x11-terms/rxvt-unicode/rxvt-unicode-9.22-r9.ebuild
282 +++ /dev/null
283 @@ -1,120 +0,0 @@
284 -# Copyright 1999-2021 Gentoo Authors
285 -# Distributed under the terms of the GNU General Public License v2
286 -
287 -EAPI=7
288 -
289 -inherit autotools desktop flag-o-matic systemd prefix
290 -
291 -COLOUR_PATCH_NAME="${PN}-9.22_24-bit-color_cpixl-20201108.patch"
292 -
293 -DESCRIPTION="rxvt clone with xft and unicode support"
294 -HOMEPAGE="http://software.schmorp.de/pkg/rxvt-unicode.html"
295 -SRC_URI="http://dist.schmorp.de/rxvt-unicode/Attic/${P}.tar.bz2
296 - https://dev.gentoo.org/~marecki/dists/${PN}/${COLOUR_PATCH_NAME}.xz"
297 -
298 -LICENSE="GPL-3"
299 -SLOT="0"
300 -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris"
301 -IUSE="24-bit-color 256-color blink fading-colors +font-styles gdk-pixbuf iso14755 +mousewheel
302 - +perl sgrmouse startup-notification unicode3 +utmp +wtmp xft"
303 -
304 -RESTRICT="test"
305 -
306 -RDEPEND=">=sys-libs/ncurses-5.7-r6:=
307 - media-libs/fontconfig
308 - x11-libs/libX11
309 - x11-libs/libXrender
310 - gdk-pixbuf? ( x11-libs/gdk-pixbuf )
311 - kernel_Darwin? ( dev-perl/Mac-Pasteboard )
312 - perl? ( dev-lang/perl:= )
313 - startup-notification? ( x11-libs/startup-notification )
314 - xft? ( x11-libs/libXft )"
315 -DEPEND="${RDEPEND}
316 - x11-base/xorg-proto"
317 -BDEPEND="virtual/pkgconfig"
318 -
319 -PATCHES=(
320 - "${FILESDIR}"/${PN}-9.06-case-insensitive-fs.patch
321 - "${FILESDIR}"/${PN}-9.21-xsubpp.patch
322 - "${FILESDIR}"/${PN}-9.22-perl-segfault-on-exit.patch
323 - "${FILESDIR}"/${PN}-9.22-query-graphics-insecure.patch
324 - "${FILESDIR}"/${PN}-9.22-sgr-mouse-mode-flag.patch
325 - "${WORKDIR}"/${COLOUR_PATCH_NAME}
326 -)
327 -DOCS=(
328 - Changes
329 - README.FAQ
330 - doc/README.xvt
331 - doc/changes.txt
332 - doc/etc/${PN}.term{cap,info}
333 - doc/rxvt-tabbed
334 -)
335 -
336 -src_prepare() {
337 - # Bug #787104
338 - append-cxxflags -std=c++14
339 -
340 - default
341 -
342 - # kill the rxvt-unicode terminfo file - #192083
343 - sed -i -e "/rxvt-unicode.terminfo/d" doc/Makefile.in || die "sed failed"
344 -
345 - # use xsubpp from Prefix - #506500
346 - hprefixify -q '"' -w "/xsubpp/" src/Makefile.in
347 -
348 - eautoreconf
349 -}
350 -
351 -src_configure() {
352 - # --enable-everything goes first: the order of the arguments matters
353 - econf --enable-everything \
354 - $(use_enable 24-bit-color) \
355 - $(use_enable 256-color) \
356 - $(use_enable blink text-blink) \
357 - $(use_enable fading-colors fading) \
358 - $(use_enable font-styles) \
359 - $(use_enable gdk-pixbuf pixbuf) \
360 - $(use_enable iso14755) \
361 - $(use_enable mousewheel) \
362 - $(use_enable perl) \
363 - $(use_enable sgrmouse) \
364 - $(use_enable startup-notification) \
365 - $(use_enable unicode3) \
366 - $(use_enable utmp) \
367 - $(use_enable wtmp) \
368 - $(use_enable xft)
369 -}
370 -
371 -src_compile() {
372 - default
373 -
374 - sed -i \
375 - -e 's/RXVT_BASENAME = "rxvt"/RXVT_BASENAME = "urxvt"/' \
376 - "${S}"/doc/rxvt-tabbed || die
377 -}
378 -
379 -src_install() {
380 - default
381 -
382 - systemd_douserunit "${FILESDIR}"/urxvtd.service
383 -
384 - make_desktop_entry urxvt rxvt-unicode utilities-terminal \
385 - "System;TerminalEmulator"
386 -}
387 -
388 -pkg_postinst() {
389 - if use 24-bit-color; then
390 - ewarn
391 - ewarn "You have enabled 24-bit colour support in ${PN}, which is UNOFFICIAL and INCOMPLETE."
392 - ewarn "You may or may not encounter visual glitches or stability issues. When in doubt,"
393 - ewarn "rebuild =${CATEGORY}/${PF} with USE=-24-bit-color (the default setting)."
394 - ewarn
395 - fi
396 -
397 - if use sgrmouse; then
398 - ewarn
399 - ewarn "Support for the SGR 1006 mouse extension in ${PN} is UNOFFICIAL and provided as-is."
400 - ewarn "When in doubt, rebuild =${CATEGORY}/${PF} with USE=-sgrmouse (the default setting)."
401 - ewarn
402 - fi
403 -}