pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/www/lynx
Module Name: pkgsrc
Committed By: jperkin
Date: Thu May 17 10:16:25 UTC 2018
Modified Files:
pkgsrc/www/lynx: Makefile distinfo
Added Files:
pkgsrc/www/lynx/patches: patch-src_LYCurses.c patch-src_LYStrings.c
Log Message:
lynx: Pull in upstream ncurses fixes, and fix SunOS.
To generate a diff of this commit:
cvs rdiff -u -r1.129 -r1.130 pkgsrc/www/lynx/Makefile
cvs rdiff -u -r1.36 -r1.37 pkgsrc/www/lynx/distinfo
cvs rdiff -u -r0 -r1.3 pkgsrc/www/lynx/patches/patch-src_LYCurses.c \
pkgsrc/www/lynx/patches/patch-src_LYStrings.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/www/lynx/Makefile
diff -u pkgsrc/www/lynx/Makefile:1.129 pkgsrc/www/lynx/Makefile:1.130
--- pkgsrc/www/lynx/Makefile:1.129 Fri Feb 16 07:17:09 2018
+++ pkgsrc/www/lynx/Makefile Thu May 17 10:16:25 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.129 2018/02/16 07:17:09 wiz Exp $
+# $NetBSD: Makefile,v 1.130 2018/05/17 10:16:25 jperkin Exp $
DISTNAME= lynx2.8.8rel.2
PKGNAME= ${DISTNAME:S/lynx/lynx-/:S/rel//}
@@ -73,6 +73,8 @@ CONFIGURE_ARGS+= --enable-read-eta
CONFIGURE_ENV+= BUILD_CC=${NATIVE_CC:Q}
.endif
+CONFIGURE_ENV.SunOS+= cf_cv_xopen_source=no
+
.include "../../devel/gettext-tools/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
Index: pkgsrc/www/lynx/distinfo
diff -u pkgsrc/www/lynx/distinfo:1.36 pkgsrc/www/lynx/distinfo:1.37
--- pkgsrc/www/lynx/distinfo:1.36 Fri Feb 16 07:17:09 2018
+++ pkgsrc/www/lynx/distinfo Thu May 17 10:16:25 2018
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.36 2018/02/16 07:17:09 wiz Exp $
+$NetBSD: distinfo,v 1.37 2018/05/17 10:16:25 jperkin Exp $
SHA1 (lynx2.8.8rel.2.tar.bz2) = 65bbf95627c88723bbb5880155e5fe01c2753d0c
RMD160 (lynx2.8.8rel.2.tar.bz2) = a683f9c163a6c343bde53ffde99dbecce4e41b02
@@ -11,4 +11,6 @@ SHA1 (patch-WWW_Library_Implementation_H
SHA1 (patch-aa) = 85e76c4b2708e01dd1abdc1af764a067bd83bcb9
SHA1 (patch-ab) = 26fab3bd426a76df530e6780eefe36464059bc6a
SHA1 (patch-af) = 31399c0c3394b90c0680708fff06f6f9e19674b3
+SHA1 (patch-src_LYCurses.c) = 66f416fd17cdb7a00beb4b850be711faf0afb605
+SHA1 (patch-src_LYStrings.c) = 7472abbb8dd864f9361b0371c5ceff9a1e257ed6
SHA1 (patch-src_LYUtils.c) = fadef16c363b3e4327dd822f57b99274bcc6c6e3
Added files:
Index: pkgsrc/www/lynx/patches/patch-src_LYCurses.c
diff -u /dev/null pkgsrc/www/lynx/patches/patch-src_LYCurses.c:1.3
--- /dev/null Thu May 17 10:16:25 2018
+++ pkgsrc/www/lynx/patches/patch-src_LYCurses.c Thu May 17 10:16:25 2018
@@ -0,0 +1,49 @@
+$NetBSD: patch-src_LYCurses.c,v 1.3 2018/05/17 10:16:25 jperkin Exp $
+
+Pull in upstream patch to fix build against newer ncurses.
+
+--- src/LYCurses.c.orig 2014-03-09 21:43:10.000000000 +0000
++++ src/LYCurses.c
+@@ -1695,7 +1695,7 @@ void lynx_enable_mouse(int state)
+ void lynx_nl2crlf(int normal GCC_UNUSED)
+ {
+ #if defined(NCURSES_VERSION_PATCH) && defined(SET_TTY) && defined(TERMIOS) && defined(ONLCR)
+- static TTY saved_tty;
++ static struct termios saved_tty;
+ static int did_save = FALSE;
+ static int waiting = FALSE;
+ static int can_fix = TRUE;
+@@ -1704,8 +1704,10 @@ void lynx_nl2crlf(int normal GCC_UNUSED)
+ if (cur_term == 0) {
+ can_fix = FALSE;
+ } else {
+- saved_tty = cur_term->Nttyb;
++ tcgetattr(fileno(stdout), &saved_tty);
+ did_save = TRUE;
++ if ((saved_tty.c_oflag & ONLCR))
++ can_fix = FALSE;
+ #if NCURSES_VERSION_PATCH < 20010529
+ /* workaround for optimizer bug with nonl() */
+ if ((tigetstr("cud1") != 0 && *tigetstr("cud1") == '\n')
+@@ -1717,14 +1719,18 @@ void lynx_nl2crlf(int normal GCC_UNUSED)
+ if (can_fix) {
+ if (normal) {
+ if (!waiting) {
+- cur_term->Nttyb.c_oflag |= ONLCR;
++ struct termios alter_tty = saved_tty;
++
++ alter_tty.c_oflag |= ONLCR;
++ tcsetattr(fileno(stdout), TCSAFLUSH, &alter_tty);
++ def_prog_mode();
+ waiting = TRUE;
+ nonl();
+ }
+ } else {
+ if (waiting) {
+- cur_term->Nttyb = saved_tty;
+- SET_TTY(fileno(stdout), &saved_tty);
++ tcsetattr(fileno(stdout), TCSAFLUSH, &saved_tty);
++ def_prog_mode();
+ waiting = FALSE;
+ nl();
+ LYrefresh();
Index: pkgsrc/www/lynx/patches/patch-src_LYStrings.c
diff -u /dev/null pkgsrc/www/lynx/patches/patch-src_LYStrings.c:1.3
--- /dev/null Thu May 17 10:16:25 2018
+++ pkgsrc/www/lynx/patches/patch-src_LYStrings.c Thu May 17 10:16:25 2018
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_LYStrings.c,v 1.3 2018/05/17 10:16:25 jperkin Exp $
+
+Pull in upstream patch to fix build against newer ncurses.
+
+--- src/LYStrings.c.orig 2013-11-29 00:52:56.000000000 +0000
++++ src/LYStrings.c
+@@ -1004,12 +1004,13 @@ static const char *expand_tiname(const c
+ {
+ char name[BUFSIZ];
+ int code;
++ TERMTYPE *tp = (TERMTYPE *) (cur_term);
+
+ LYStrNCpy(name, first, len);
+ if ((code = lookup_tiname(name, strnames)) >= 0
+ || (code = lookup_tiname(name, strfnames)) >= 0) {
+- if (cur_term->type.Strings[code] != 0) {
+- LYStrNCpy(*result, cur_term->type.Strings[code], (final - *result));
++ if (tp->Strings[code] != 0) {
++ LYStrNCpy(*result, tp->Strings[code], (final - *result));
+ (*result) += strlen(*result);
+ }
+ }
Home |
Main Index |
Thread Index |
Old Index