summaryrefslogtreecommitdiff
path: root/x11/hanterm
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2014-09-22 11:56:39 +0000
committerjoerg <joerg@pkgsrc.org>2014-09-22 11:56:39 +0000
commit345d485d66867b8b1e4acb0327b4038e2fd2c726 (patch)
tree4d2446b341a46f474766bacedd35d8596ff78afb /x11/hanterm
parent36c92ae4a7e871008b20ebef9a6c64c3da6bee75 (diff)
downloadpkgsrc-345d485d66867b8b1e4acb0327b4038e2fd2c726.tar.gz
Fix implicit prototype conflicts. Always include termios.h for ECHO.
Diffstat (limited to 'x11/hanterm')
-rw-r--r--x11/hanterm/distinfo7
-rw-r--r--x11/hanterm/patches/patch-ab120
-rw-r--r--x11/hanterm/patches/patch-ae75
3 files changed, 134 insertions, 68 deletions
diff --git a/x11/hanterm/distinfo b/x11/hanterm/distinfo
index a4fc8cab0f9..18d811620c9 100644
--- a/x11/hanterm/distinfo
+++ b/x11/hanterm/distinfo
@@ -1,17 +1,18 @@
-$NetBSD: distinfo,v 1.11 2013/11/24 05:53:52 dholland Exp $
+$NetBSD: distinfo,v 1.12 2014/09/22 11:56:39 joerg Exp $
SHA1 (hanterm-3.1.6.tar.gz) = df2ff9ca8ddcee41baeaa8544a9983a1534e8b30
RMD160 (hanterm-3.1.6.tar.gz) = 9d9c6c1d2eca9ad338140f1d8c418ed5e0e9548b
Size (hanterm-3.1.6.tar.gz) = 323736 bytes
SHA1 (patch-aa) = 985f6bf88010e8addcaa7f18d70652dcd65255f4
-SHA1 (patch-ab) = 776a5618e0be40d3bac6d83d707c5dd970f208cf
+SHA1 (patch-ab) = d21b0261fb57a0b15990db63226196ffae70f009
SHA1 (patch-ac) = 4c5a60d1785099abe809acfcd1b6363be81e17f4
SHA1 (patch-ad) = 76ab4f52449d9e378884bc9d8e41b249e494fd04
-SHA1 (patch-ae) = 00c0992dd92832b3819574d4f3856bcf8a0a6e75
+SHA1 (patch-ae) = 80677fd263412fbf25717b596d860de51ff6edd5
SHA1 (patch-af) = 7306a141331bbbe1e4ee4e46549834be2ae2cfa1
SHA1 (patch-ag) = 50a7a71b7075ac57735189f43fd7e770ec9de81d
SHA1 (patch-button.c) = 7a8204422045cf37a468723d85b79bc79d9a7735
SHA1 (patch-chat.c) = 4c5162afae53a3c0bff08991648fe1b0cf07b38f
+SHA1 (patch-ptyx.h) = 8828a7c2d43fabd5d9430e349b91a91e1236dc86
SHA1 (patch-screen.c) = 262b4c1dbec28ae5e6fdf6893c41be3b6d3d95b5
SHA1 (patch-scrollbar.c) = c7e34150fa6f9efe95777cbf675f2a8ebb8d14f6
SHA1 (patch-util.c) = eba8de0714d749809a20334fa3035dfd52648402
diff --git a/x11/hanterm/patches/patch-ab b/x11/hanterm/patches/patch-ab
index d54bc16d7fb..63c3951e0c0 100644
--- a/x11/hanterm/patches/patch-ab
+++ b/x11/hanterm/patches/patch-ab
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.2 2013/11/24 05:53:52 dholland Exp $
+$NetBSD: patch-ab,v 1.3 2014/09/22 11:56:39 joerg Exp $
- use standard headers
- don't provide own malloc/realloc declarations
@@ -32,7 +32,19 @@ $NetBSD: patch-ab,v 1.2 2013/11/24 05:53:52 dholland Exp $
extern void FlushScroll();
extern void InsertLine();
-@@ -1764,7 +1765,7 @@ static void VTparse()
+@@ -126,6 +127,11 @@ extern int convert_3_to_utf8();
+ void set_vt_graphics (/*TScreen *screen*/);
+ #endif
+
++static void ansi_modes(XtermWidget, int (*)());
++static void dpmodes(XtermWidget, void (*)());
++static void restoremodes(XtermWidget);
++static void savemodes(XtermWidget);
++static void unparseputn(unsigned int, int);
+ static void VTallocbuf();
+ static int finput();
+ static void dotext();
+@@ -1764,7 +1770,7 @@ static void VTparse()
}
}
@@ -41,7 +53,7 @@ $NetBSD: patch-ab,v 1.2 2013/11/24 05:53:52 dholland Exp $
{
return(doinput());
}
-@@ -1774,13 +1775,14 @@ static char *v_buffer; /* pointer to ph
+@@ -1774,13 +1780,14 @@ static char *v_buffer; /* pointer to ph
static char *v_bufstr = NULL; /* beginning of area to write */
static char *v_bufptr; /* end of area to write */
static char *v_bufend; /* end of physical buffer */
@@ -57,7 +69,7 @@ $NetBSD: patch-ab,v 1.2 2013/11/24 05:53:52 dholland Exp $
v_write(f, d, len)
int f;
char *d;
-@@ -1802,7 +1804,7 @@ v_write(f, d, len)
+@@ -1802,7 +1809,7 @@ v_write(f, d, len)
fprintf(stderr, "\n");
#endif
@@ -66,7 +78,7 @@ $NetBSD: patch-ab,v 1.2 2013/11/24 05:53:52 dholland Exp $
if (f != pty_mask)
#else
if ((1 << f) != pty_mask)
-@@ -1927,7 +1929,7 @@ v_write(f, d, len)
+@@ -1927,7 +1934,7 @@ v_write(f, d, len)
return(c);
}
@@ -75,7 +87,7 @@ $NetBSD: patch-ab,v 1.2 2013/11/24 05:53:52 dholland Exp $
static fd_set select_mask;
static fd_set write_mask;
#else
-@@ -1936,6 +1938,7 @@ static int write_mask;
+@@ -1936,6 +1943,7 @@ static int write_mask;
#endif
static int pty_read_bytes;
@@ -83,7 +95,7 @@ $NetBSD: patch-ab,v 1.2 2013/11/24 05:53:52 dholland Exp $
in_put()
{
register TScreen *screen = &term->screen;
-@@ -1943,7 +1946,7 @@ in_put()
+@@ -1943,7 +1951,7 @@ in_put()
static struct timeval select_timeout;
for( ; ; ) {
@@ -92,7 +104,7 @@ $NetBSD: patch-ab,v 1.2 2013/11/24 05:53:52 dholland Exp $
if (FD_ISSET(pty_mask, &select_mask) && eventMode == NORMAL) {
#else
if (select_mask & pty_mask && eventMode == NORMAL) {
-@@ -2003,7 +2006,7 @@ in_put()
+@@ -2003,7 +2011,7 @@ in_put()
/* stop speed reading at some point to look for X stuff */
/* (4096 is just a random large number.) */
if (pty_read_bytes > 4096) {
@@ -101,7 +113,7 @@ $NetBSD: patch-ab,v 1.2 2013/11/24 05:53:52 dholland Exp $
FD_CLR(pty_mask, &select_mask);
#else
select_mask &= ~pty_mask;
-@@ -2033,7 +2036,7 @@ in_put()
+@@ -2033,7 +2041,7 @@ in_put()
/* Update the masks and, unless X events are already in the queue,
wait for I/O to be possible. */
select_mask = Select_mask;
@@ -110,7 +122,7 @@ $NetBSD: patch-ab,v 1.2 2013/11/24 05:53:52 dholland Exp $
if (v_bufptr > v_bufstr)
FD_SET(pty_mask, &write_mask);
else
-@@ -2047,7 +2050,7 @@ in_put()
+@@ -2047,7 +2055,7 @@ in_put()
/* by sangil's report */
/* #if defined(linux)||defined(SVR4)
||(defined(hpux) && OSMAJORVERSION >= 10) */
@@ -119,7 +131,7 @@ $NetBSD: patch-ab,v 1.2 2013/11/24 05:53:52 dholland Exp $
if (QLength (screen->display))
{
i = select(max_plus1, (fd_set*) &select_mask, (fd_set*) &write_mask, (fd_set *)NULL, (struct timeval *) &select_timeout);
-@@ -2073,7 +2076,7 @@ in_put()
+@@ -2073,7 +2081,7 @@ in_put()
}
/* if there is room to write more data to the pty, go write more */
@@ -128,7 +140,7 @@ $NetBSD: patch-ab,v 1.2 2013/11/24 05:53:52 dholland Exp $
if ((v_bufptr > v_bufstr) && FD_ISSET(pty_mask, &write_mask)) {
#else
if (write_mask & ptymask()) {
-@@ -2083,7 +2086,7 @@ in_put()
+@@ -2083,7 +2091,7 @@ in_put()
/* if there are X events already in our queue, it
counts as being readable */
@@ -137,55 +149,77 @@ $NetBSD: patch-ab,v 1.2 2013/11/24 05:53:52 dholland Exp $
if (QLength(screen->display) || (FD_ISSET(X_mask, &select_mask))) {
#else
if (QLength(screen->display) || (select_mask & X_mask)) {
-@@ -2322,6 +2325,7 @@ WriteText(screen, str, len, flags, fg, b
+@@ -2322,9 +2330,8 @@ WriteText(screen, str, len, flags, fg, b
/*
* process ANSI modes set, reset
*/
-+void
- ansi_modes(termw, func)
- XtermWidget termw;
- int (*func)();
-@@ -2345,6 +2349,7 @@ ansi_modes(termw, func)
+-ansi_modes(termw, func)
+- XtermWidget termw;
+- int (*func)();
++static void
++ansi_modes(XtermWidget termw, int (*func)())
+ {
+ register int i;
+
+@@ -2345,9 +2352,8 @@ ansi_modes(termw, func)
/*
* process DEC private modes set, reset
*/
-+void
- dpmodes(termw, func)
- XtermWidget termw;
- void (*func)();
-@@ -2498,6 +2503,7 @@ dpmodes(termw, func)
+-dpmodes(termw, func)
+- XtermWidget termw;
+- void (*func)();
++static void
++dpmodes(XtermWidget termw, void (*func)())
+ {
+ register TScreen *screen = &termw->screen;
+ register int i, j;
+@@ -2498,8 +2504,8 @@ dpmodes(termw, func)
/*
* process xterm private modes save
*/
-+void
- savemodes(termw)
- XtermWidget termw;
+-savemodes(termw)
+- XtermWidget termw;
++static void
++savemodes(XtermWidget termw)
{
-@@ -2564,6 +2570,7 @@ savemodes(termw)
+ register TScreen *screen = &termw->screen;
+ register int i;
+@@ -2564,8 +2570,8 @@ savemodes(termw)
/*
* process xterm private modes restore
*/
-+void
- restoremodes(termw)
- XtermWidget termw;
+-restoremodes(termw)
+- XtermWidget termw;
++static void
++restoremodes(XtermWidget termw)
{
-@@ -2711,6 +2718,7 @@ static void bitclr(p, mask)
+ register TScreen *screen = &termw->screen;
+ register int i, j;
+@@ -2711,9 +2717,8 @@ static void bitclr(p, mask)
*p &= ~mask;
}
+-unparseseq(ap, fd)
+- register ANSI *ap;
+- int fd;
+void
- unparseseq(ap, fd)
- register ANSI *ap;
- int fd;
-@@ -2744,6 +2752,7 @@ unparseseq(ap, fd)
++unparseseq(ANSI *ap, int fd)
+ {
+ register int c;
+ register int i;
+@@ -2744,9 +2749,8 @@ unparseseq(ap, fd)
}
}
-+void
- unparseputn(n, fd)
- unsigned int n;
- int fd;
-@@ -2756,6 +2765,7 @@ int fd;
+-unparseputn(n, fd)
+-unsigned int n;
+-int fd;
++static void
++unparseputn(unsigned int n, int fd)
+ {
+ unsigned int q;
+
+@@ -2756,6 +2760,7 @@ int fd;
unparseputc((char) ('0' + (n%10)), fd);
}
@@ -193,7 +227,7 @@ $NetBSD: patch-ab,v 1.2 2013/11/24 05:53:52 dholland Exp $
unparseputc(c, fd)
int c;
int fd;
-@@ -2774,6 +2784,7 @@ int fd;
+@@ -2774,6 +2779,7 @@ int fd;
}
}
@@ -201,7 +235,7 @@ $NetBSD: patch-ab,v 1.2 2013/11/24 05:53:52 dholland Exp $
unparsefputs (s, fd)
register char *s;
int fd;
-@@ -4062,7 +4073,7 @@ int LoadNewFont (screen, nfontname, bfon
+@@ -4062,7 +4068,7 @@ int LoadNewFont (screen, nfontname, bfon
if (fontnum == fontMenu_fontescape &&
nfontname != screen->menu_font_names[fontnum]) {
@@ -210,7 +244,7 @@ $NetBSD: patch-ab,v 1.2 2013/11/24 05:53:52 dholland Exp $
if (!tmpname) return 0;
strcpy (tmpname, nfontname);
}
-@@ -4377,7 +4388,7 @@ set_vt_graphics (screen)
+@@ -4377,7 +4383,7 @@ set_vt_graphics (screen)
static char gr_valid_code[] = " `ajklmnopqrstuvwx~";
if (!gr_mapping) {
diff --git a/x11/hanterm/patches/patch-ae b/x11/hanterm/patches/patch-ae
index 45077d5cfb3..dd8b5edc6d3 100644
--- a/x11/hanterm/patches/patch-ae
+++ b/x11/hanterm/patches/patch-ae
@@ -1,4 +1,4 @@
-$NetBSD: patch-ae,v 1.4 2013/11/24 05:53:52 dholland Exp $
+$NetBSD: patch-ae,v 1.5 2014/09/22 11:56:39 joerg Exp $
- avoid union wait
- force termios on all modern systems
@@ -12,7 +12,23 @@ $NetBSD: patch-ae,v 1.4 2013/11/24 05:53:52 dholland Exp $
--- main.c.orig 2002-01-09 00:41:11.000000000 +0000
+++ main.c
-@@ -239,8 +239,18 @@ static Bool IsPts = False;
+@@ -63,15 +63,7 @@ SOFTWARE.
+ #include <X11/Xaw/SimpleMenu.h>
+ #include <pwd.h>
+ #include <ctype.h>
+-#ifdef linux
+-#ifdef __GLIBC__
+-#if __GLIBC_MINOR__<1
+-#include <termbits.h>
+-#else
+ #include <termios.h>
+-#endif /* __GLIBC_MINOR__ */
+-#endif /* __GLIBC__ */
+-#endif
+
+ #ifdef DGUX /* dkim@surecom.com */
+ /* DGUX is SVR4 but its SYSV side of TTY has bugs in it */
+@@ -239,8 +231,18 @@ static Bool IsPts = False;
#ifdef SVR4
#define USE_POSIX_WAIT
#endif
@@ -31,7 +47,17 @@ $NetBSD: patch-ae,v 1.4 2013/11/24 05:53:52 dholland Exp $
#include <errno.h>
#include <setjmp.h>
-@@ -583,6 +593,8 @@ static int tslot;
+@@ -391,6 +393,9 @@ extern char *ptsname();
+ extern char *strindex ();
+ extern void HandlePopupMenu();
+
++static void get_terminal (void);
++static void resize(TScreen *screen, char *TermName, char *oldtc, char *newtc);
++
+ int switchfb[] = {0, 2, 1, 3};
+
+ static SIGNAL_T reapchild ();
+@@ -583,6 +588,8 @@ static int tslot;
#endif /* USE_SYSV_UTMP */
static jmp_buf env;
@@ -40,7 +66,7 @@ $NetBSD: patch-ae,v 1.4 2013/11/24 05:53:52 dholland Exp $
char *ProgramName;
Boolean sunFunctionKeys;
-@@ -805,9 +817,9 @@ static char *message[] = {
+@@ -805,9 +812,9 @@ static char *message[] = {
"will be started. Options that start with a plus sign (+) restore the default.",
NULL};
@@ -53,7 +79,7 @@ $NetBSD: patch-ae,v 1.4 2013/11/24 05:53:52 dholland Exp $
static int abbrev (tst, cmp)
char *tst, *cmp;
-@@ -816,7 +828,7 @@ static int abbrev (tst, cmp)
+@@ -816,7 +823,7 @@ static int abbrev (tst, cmp)
return ((len >= 2) && (!strncmp(tst, cmp, len)));
}
@@ -62,7 +88,7 @@ $NetBSD: patch-ae,v 1.4 2013/11/24 05:53:52 dholland Exp $
char *badOption;
{
struct _options *opt;
-@@ -842,13 +854,13 @@ static Syntax (badOption)
+@@ -842,13 +849,13 @@ static Syntax (badOption)
exit (1);
}
@@ -78,7 +104,7 @@ $NetBSD: patch-ae,v 1.4 2013/11/24 05:53:52 dholland Exp $
{
struct _options *opt;
char **cpp;
-@@ -960,6 +972,7 @@ XtActionsRec actionProcs[] = {
+@@ -960,6 +967,7 @@ XtActionsRec actionProcs[] = {
Atom wm_delete_window;
@@ -86,7 +112,7 @@ $NetBSD: patch-ae,v 1.4 2013/11/24 05:53:52 dholland Exp $
main (argc, argv)
int argc;
char **argv;
-@@ -1527,7 +1540,8 @@ char **argv;
+@@ -1527,7 +1535,8 @@ char **argv;
if (ioctl (pty, FIONBIO, (char *)&mode) == -1) SysError (ERROR_FIONBIO);
#endif /* USE_SYSV_TERMIO */
@@ -96,7 +122,7 @@ $NetBSD: patch-ae,v 1.4 2013/11/24 05:53:52 dholland Exp $
pty_mask = pty;
X_mask = Xsocket;
FD_ZERO(&Select_mask);
-@@ -1566,6 +1580,7 @@ char *name;
+@@ -1566,6 +1575,7 @@ char *name;
* has problems, we can re-enter this function and get another one.
*/
@@ -104,15 +130,15 @@ $NetBSD: patch-ae,v 1.4 2013/11/24 05:53:52 dholland Exp $
get_pty (pty)
int *pty;
{
-@@ -1730,6 +1745,7 @@ int pty_search(pty)
+@@ -1730,6 +1740,7 @@ int pty_search(pty)
return 1;
}
-+void
++static void
get_terminal ()
/*
* sets up X and initializes the terminal structure except for term.buf.fildes.
-@@ -1854,7 +1870,7 @@ void first_map_occurred ()
+@@ -1854,7 +1865,7 @@ void first_map_occurred ()
#endif /* USE_HANDSHAKE else !USE_HANDSHAKE */
@@ -121,7 +147,7 @@ $NetBSD: patch-ae,v 1.4 2013/11/24 05:53:52 dholland Exp $
/*
* Inits pty and tty and forks a login process.
* Does not close fd Xsocket.
-@@ -2983,10 +2999,10 @@ spawn ()
+@@ -2983,10 +2994,10 @@ spawn ()
#ifdef USE_LOGIN_DASH_P
if (term->misc.login_shell && pw && added_utmp_entry)
@@ -134,15 +160,20 @@ $NetBSD: patch-ae,v 1.4 2013/11/24 05:53:52 dholland Exp $
/* Exec failed. */
fprintf (stderr, "%s: Could not exec %s!\n", xterm_name, ptr);
-@@ -3235,6 +3251,7 @@ Exit(n)
+@@ -3235,10 +3246,8 @@ Exit(n)
}
/* ARGSUSED */
-+void
- resize(screen, TermName, oldtc, newtc)
- TScreen *screen;
- char *TermName;
-@@ -3329,18 +3346,20 @@ static SIGNAL_T reapchild (n)
+-resize(screen, TermName, oldtc, newtc)
+-TScreen *screen;
+-char *TermName;
+-register char *oldtc, *newtc;
++static void
++resize(TScreen *screen, char *TermName, char *oldtc, char *newtc)
+ {
+ #ifndef USE_SYSV_ENVVARS
+ register char *ptr1, *ptr2;
+@@ -3329,18 +3338,20 @@ static SIGNAL_T reapchild (n)
}
/* VARARGS1 */
@@ -167,7 +198,7 @@ $NetBSD: patch-ae,v 1.4 2013/11/24 05:53:52 dholland Exp $
strcat(buf, ": ");
strcat(buf, SysErrorMsg (oerrno));
strcat(buf, "\n");
-@@ -3356,10 +3375,8 @@ char *fmt;
+@@ -3356,10 +3367,8 @@ char *fmt;
}
@@ -180,7 +211,7 @@ $NetBSD: patch-ae,v 1.4 2013/11/24 05:53:52 dholland Exp $
{
register char *strinbuf;
-@@ -3377,7 +3394,7 @@ static remove_termcap_entry (buf, str)
+@@ -3377,7 +3386,7 @@ static remove_termcap_entry (buf, str)
}
return;
}
@@ -189,7 +220,7 @@ $NetBSD: patch-ae,v 1.4 2013/11/24 05:53:52 dholland Exp $
/*
* parse_tty_modes accepts lines of the following form:
-@@ -3396,7 +3413,8 @@ static int parse_tty_modes (s, modelist)
+@@ -3396,7 +3405,8 @@ static int parse_tty_modes (s, modelist)
int count = 0;
while (1) {