From 785c525893ef515dbbe6b677ed8deabe235486f6 Mon Sep 17 00:00:00 2001 From: Rmys Date: Mon, 30 Jul 2018 23:38:02 +0300 Subject: [PATCH 1/2] xdg-utils:rebuild --- desktop/misc/xdg-utils/pspec.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/desktop/misc/xdg-utils/pspec.xml b/desktop/misc/xdg-utils/pspec.xml index 92acb6f7ee..a3b099b9a6 100644 --- a/desktop/misc/xdg-utils/pspec.xml +++ b/desktop/misc/xdg-utils/pspec.xml @@ -34,6 +34,13 @@ + + 2018-07-30 + 1.1.2 + Rebuild New T. + Mustafa Cinasal + muscnsl@gmail.com + 2018-01-17 1.1.2 From 5af166147f9afe88ced3b6341e296ffb17555463 Mon Sep 17 00:00:00 2001 From: Rmys Date: Mon, 30 Jul 2018 23:49:17 +0300 Subject: [PATCH 2/2] lymx:rebuild --- .../files/lynx-2.8.8rel.2-ncurses_6.1-1.patch | 80 +++++++++++++++++++ .../lynx-2.8.8rel.2-openssl_1.1.0-1.patch | 21 +++++ network/web/lynx/pspec.xml | 2 + 3 files changed, 103 insertions(+) create mode 100644 network/web/lynx/files/lynx-2.8.8rel.2-ncurses_6.1-1.patch create mode 100644 network/web/lynx/files/lynx-2.8.8rel.2-openssl_1.1.0-1.patch diff --git a/network/web/lynx/files/lynx-2.8.8rel.2-ncurses_6.1-1.patch b/network/web/lynx/files/lynx-2.8.8rel.2-ncurses_6.1-1.patch new file mode 100644 index 0000000000..9306893484 --- /dev/null +++ b/network/web/lynx/files/lynx-2.8.8rel.2-ncurses_6.1-1.patch @@ -0,0 +1,80 @@ +Submitted By: Pierre Labastie +Date: 2018-01-30 +Initial Package Version: 2.8.8rel.2 +Upstream Status: Fixed in master (at lynx-2.8.9dev.12) +Origin: Upstream +Description: Fix for building with ncurses-6.1 +diff -ur lynx2.8.9dev.11/src/LYCurses.c lynx2.8.9dev.12/src/LYCurses.c +--- lynx2.8.9dev.11/src/LYCurses.c 2016-11-04 22:54:57.000000000 +0100 ++++ lynx2.8.9dev.12/src/LYCurses.c 2017-03-18 22:42:48.000000000 +0100 +@@ -1696,7 +1696,7 @@ + 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; +@@ -1705,8 +1705,10 @@ + 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') +@@ -1718,14 +1720,18 @@ + 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(); +@@ -2203,6 +2209,8 @@ + int y, x; + size_t inx; + ++ (void) y; ++ (void) y0; + #ifdef USE_CURSES_PADS + /* + * If we've configured to use pads for left/right scrolling, that can +diff -ur lynx2.8.9dev.11/src/LYStrings.c lynx2.8.9dev.12/src/LYStrings.c +--- lynx2.8.9dev.11/src/LYStrings.c 2015-12-16 02:18:53.000000000 +0100 ++++ lynx2.8.9dev.12/src/LYStrings.c 2017-04-29 02:32:21.000000000 +0200 +@@ -1004,12 +1004,13 @@ + { + 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); + } + } diff --git a/network/web/lynx/files/lynx-2.8.8rel.2-openssl_1.1.0-1.patch b/network/web/lynx/files/lynx-2.8.8rel.2-openssl_1.1.0-1.patch new file mode 100644 index 0000000000..73710c2a73 --- /dev/null +++ b/network/web/lynx/files/lynx-2.8.8rel.2-openssl_1.1.0-1.patch @@ -0,0 +1,21 @@ +Submitted By: Pierre Labastie +Date: 2017-06-28 +Initial Package Version: 2.8.8rel.2 +Upstream Status: Fixed in master (at lynx-2.8.9dev;10) +Origin: Upstream +Description: Fix for building with openssl-1.1 +T--- ./WWW/Library/Implementation/HTTP.c.dist Thu Oct 27 20:10:54 2016 ++++ ./WWW/Library/Implementation/HTTP.c Thu Oct 27 20:38:01 2016 +@@ -720,7 +720,11 @@ + #elif SSLEAY_VERSION_NUMBER >= 0x0900 + #ifndef USE_NSS_COMPAT_INCL + if (!try_tls) { +- handle->options |= SSL_OP_NO_TLSv1; ++#if OPENSSL_VERSION_NUMBER >= 0x10100000L ++ SSL_set_min_proto_version(handle,TLS1_VERSION); ++#else ++ SSL_set_options(handle, SSL_OP_NO_TLSv1); ++#endif + #if OPENSSL_VERSION_NUMBER >= 0x0090806fL && !defined(OPENSSL_NO_TLSEXT) + } else { + int ret = (int) SSL_set_tlsext_host_name(handle, ssl_host); diff --git a/network/web/lynx/pspec.xml b/network/web/lynx/pspec.xml index 77721dfd2b..08df7b550d 100644 --- a/network/web/lynx/pspec.xml +++ b/network/web/lynx/pspec.xml @@ -24,6 +24,8 @@ lynx2-8-6-fix-ugly-color.patch lynx2-8-7-adapt-to-modern-file-localizations.patch lynx2-8-7-tmp_dir.patch + lynx-2.8.8rel.2-openssl_1.1.0-1.patch + lynx-2.8.8rel.2-ncurses_6.1-1.patch