pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/screen misc/screen: fix paths in example files, f...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b1351ae085f7
branches: trunk
changeset: 414088:b1351ae085f7
user: rillig <rillig%pkgsrc.org@localhost>
date: Tue Mar 24 06:55:34 2020 +0000
description:
misc/screen: fix paths in example files, fix array subscript
The warnings in the patches are no longer necessary since pkglint 19.4.13
reports an error for these cases.
diffstat:
misc/screen/Makefile | 3 ++-
misc/screen/distinfo | 7 ++++---
misc/screen/patches/patch-ao | 11 ++---------
misc/screen/patches/patch-ap | 17 +++++------------
misc/screen/patches/patch-display.h | 33 +++++++++++++++++++++++++++++++++
5 files changed, 46 insertions(+), 25 deletions(-)
diffs (150 lines):
diff -r 3e4cdbc3a169 -r b1351ae085f7 misc/screen/Makefile
--- a/misc/screen/Makefile Tue Mar 24 06:55:01 2020 +0000
+++ b/misc/screen/Makefile Tue Mar 24 06:55:34 2020 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.113 2020/02/07 12:18:59 ryoon Exp $
+# $NetBSD: Makefile,v 1.114 2020/03/24 06:55:34 rillig Exp $
DISTNAME= screen-4.8.0
+PKGREVISION= 1
CATEGORIES= misc shells
MASTER_SITES= ${MASTER_SITE_GNU:=screen/}
diff -r 3e4cdbc3a169 -r b1351ae085f7 misc/screen/distinfo
--- a/misc/screen/distinfo Tue Mar 24 06:55:01 2020 +0000
+++ b/misc/screen/distinfo Tue Mar 24 06:55:34 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.50 2020/02/07 12:18:59 ryoon Exp $
+$NetBSD: distinfo,v 1.51 2020/03/24 06:55:34 rillig Exp $
SHA1 (screen-4.8.0.tar.gz) = 2328927e10e68d357bdfec7bd740726011e834e9
RMD160 (screen-4.8.0.tar.gz) = 43888fa00f708a8a9aa226e0df39abd7181b15ae
@@ -13,8 +13,9 @@
SHA1 (patch-al) = caabc33ee51922d97edac19346ad9d80fabb164b
SHA1 (patch-am) = a721e311e7dde7938de0e9546a7892bfd104ebd1
SHA1 (patch-an) = bda6c65148410a6c9a13afd8ad34f93e33731552
-SHA1 (patch-ao) = 91eecb62351aff720447eb48ea85aae70b62f9b6
-SHA1 (patch-ap) = 1f11b50826b3e4d61540351911d21214d3ab83cc
+SHA1 (patch-ao) = a45ae3186cd9bddeb915bad890f1be5abc315dd3
+SHA1 (patch-ap) = 0ecc71f5623ca4b799369b12da8523d03a86eb1a
+SHA1 (patch-display.h) = 889394ff36b6924b026490086a0e37164730cc8a
SHA1 (patch-screen.c) = de5d8468100ab88cbdb842e21b04b00221e798b8
SHA1 (patch-socket.c) = ef7d3cb14f0199383c0e750af48f19537eb0b36d
SHA1 (patch-tty.sh) = 711e10879250de4b0e04bc2ec00472edeaf6aada
diff -r 3e4cdbc3a169 -r b1351ae085f7 misc/screen/patches/patch-ao
--- a/misc/screen/patches/patch-ao Tue Mar 24 06:55:01 2020 +0000
+++ b/misc/screen/patches/patch-ao Tue Mar 24 06:55:34 2020 +0000
@@ -1,21 +1,14 @@
-$NetBSD: patch-ao,v 1.6 2016/06/20 16:04:44 ryoon Exp $
+$NetBSD: patch-ao,v 1.7 2020/03/24 06:55:34 rillig Exp $
Replace configurable paths with tags.
-BE CAREFUL IF YOU WANT TO REGENERATE THIS PATCH!
-YOU MUST RUN DIFF BEFORE SUBSTITUTIONS!
-
-% make clean && make extract && make pre-patch && make do-patch
-
-RUNNING "make patch" TAKES YOU TOO FAR.
-
--- etc/etcscreenrc.orig 2015-09-05 19:28:22.000000000 +0000
+++ etc/etcscreenrc
@@ -1,6 +1,6 @@
#
# This is an example for the global screenrc file.
-# You may want to install this file as /usr/local/etc/screenrc.
-+# You may want to install this file as /usr/pkg/etc/screenrc.
++# You may want to install this file as @PKG_SYSCONFDIR@/screenrc.
# Check config.h for the exact location.
#
# Flaws of termcap and standard settings are done here.
diff -r 3e4cdbc3a169 -r b1351ae085f7 misc/screen/patches/patch-ap
--- a/misc/screen/patches/patch-ap Tue Mar 24 06:55:01 2020 +0000
+++ b/misc/screen/patches/patch-ap Tue Mar 24 06:55:34 2020 +0000
@@ -1,14 +1,7 @@
-$NetBSD: patch-ap,v 1.8 2017/07/18 23:02:18 kim Exp $
+$NetBSD: patch-ap,v 1.9 2020/03/24 06:55:34 rillig Exp $
Replace configurable paths with tags.
-BE CAREFUL IF YOU WANT TO REGENERATE THIS PATCH!
-YOU MUST RUN DIFF BEFORE SUBSTITUTIONS!
-
-% make clean && make extract && make pre-patch && make do-patch
-
-RUNNING "make patch" TAKES YOU TOO FAR.
-
--- doc/screen.1.orig 2017-07-10 19:26:25.000000000 +0000
+++ doc/screen.1 2017-07-18 22:44:38.000000000 +0000
@@ -712,7 +712,7 @@
@@ -25,7 +18,7 @@
.I screen
is invoked, it executes initialization commands from the files
-\*Q/usr/local/etc/screenrc\*U and
-+\*Q/usr/pkg/etc/screenrc\*U and
++\*Q@PKG_SYSCONFDIR@/screenrc\*U and
\*Q.screenrc\*U in the user's home directory. These are the \*Qprogrammer's
defaults\*U that can be overridden in the following ways: for the
global screenrc file
@@ -34,7 +27,7 @@
.PP
Two configuration files are shipped as examples with your screen distribution:
-\*Qetc/screenrc\*U and \*Qetc/etcscreenrc\*U. They contain a number of
-+\*Q/usr/pkg/share/examples/screen/screenrc\*U and \*Q/usr/pkg/share/examples/screen/etcscreenrc\*U. They contain a number of
++\*Q@EXAMPLES@/screenrc\*U and \*Q@EXAMPLES/etcscreenrc\*U. They contain a number of
useful examples for various commands.
.PP
Customization can also be done 'on-line'. To enter the command mode type
@@ -43,13 +36,13 @@
distribution package for private and global initialization files.
.IP $SYSSCREENRC
-.IP /usr/local/etc/screenrc
-+.IP /usr/pkg/etc/screenrc
++.IP @PKG_SYSCONFDIR@/screenrc
.I screen
initialization commands
.IP $SCREENRC
.IP $HOME/.screenrc
-Read in after /usr/local/etc/screenrc
-+Read in after /usr/pkg/etc/screenrc
++Read in after @PKG_SYSCONFDIR@/screenrc
.IP $SCREENDIR/S\-<login>
-.IP /local/screens/S\-<login>
+.IP /tmp/screens/S\-<login>
diff -r 3e4cdbc3a169 -r b1351ae085f7 misc/screen/patches/patch-display.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/screen/patches/patch-display.h Tue Mar 24 06:55:34 2020 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-display.h,v 1.1 2020/03/24 06:55:34 rillig Exp $
+
+display.c: In function 'disp_readev_fn':
+display.c:3590:39: error: array subscript has type 'char' [-Werror=char-subscripts]
+ D_mouse_parse.params[D_mouse_parse.state] = 0;
+ ^
+display.c:3605:43: error: array subscript has type 'char' [-Werror=char-subscripts]
+ D_mouse_parse.params[D_mouse_parse.state] *= 10;
+ ^
+display.c:3606:43: error: array subscript has type 'char' [-Werror=char-subscripts]
+ D_mouse_parse.params[D_mouse_parse.state] += c - '0';
+ ^
+display.c:3618:43: error: array subscript has type 'char' [-Werror=char-subscripts]
+ D_mouse_parse.params[D_mouse_parse.state] = 0;
+ ^
+display.c:3626:39: error: array subscript has type 'char' [-Werror=char-subscripts]
+ D_mouse_parse.params[D_mouse_parse.state++] = c;
+ ^
+
+The constants for the state are from an anonymous enum at the top of
+display.c. They are all small nonnegative numbers.
+
+--- display.h.orig 2020-02-05 20:09:38.000000000 +0000
++++ display.h
+@@ -61,7 +61,7 @@ struct win; /* forward declaration */
+ struct mouse_parse
+ {
+ char sgrmode; /* non-zero if parsing an SGR sequence */
+- char state; /* current state of parsing */
++ int state; /* current state of parsing */
+ int params[3]; /* parsed params: button, x, y */
+ };
+
Home |
Main Index |
Thread Index |
Old Index