Tue Jun 29 15:13:24 2021 UTC ()
links: update to 2.23.

=== RELEASE 2.23 ===

Tue May 18 20:35:55 CEST 2021 mikulas:

	Fix a bug that the user could set floating-point parameters to nan
	via command-line argument or config file option

Tue May 18 20:22:35 CEST 2021 mikulas:

	Fix broken display if the user uses custom font and non-default
	aspect ratio

Wed May 12 20:08:48 CEST 2021 mikulas:

	Fix a bug that the code incorrectly assumed that mktime returns UTC

Sat May  1 17:56:50 CEST 2021 mikulas:

	Add an option that enables cookie saving


(fcambus)
diff -r1.76 -r1.77 pkgsrc/www/links/Makefile.common
diff -r1.77 -r1.78 pkgsrc/www/links/distinfo
diff -r1.9 -r0 pkgsrc/www/links/patches/patch-ab
diff -r0 -r1.1 pkgsrc/www/links/patches/patch-configure
diff -r1.1 -r1.2 pkgsrc/www/links/patches/patch-x.c

cvs diff -r1.76 -r1.77 pkgsrc/www/links/Makefile.common (expand / switch to unified diff)

--- pkgsrc/www/links/Makefile.common 2021/04/18 19:46:36 1.76
+++ pkgsrc/www/links/Makefile.common 2021/06/29 15:13:23 1.77
@@ -1,19 +1,19 @@ @@ -1,19 +1,19 @@
1# $NetBSD: Makefile.common,v 1.76 2021/04/18 19:46:36 fcambus Exp $ 1# $NetBSD: Makefile.common,v 1.77 2021/06/29 15:13:23 fcambus Exp $
2# 2#
3# used by www/links/Makefile 3# used by www/links/Makefile
4# used by www/links-gui/Makefile 4# used by www/links-gui/Makefile
5 5
6DISTNAME= links-2.22 6DISTNAME= links-2.23
7CATEGORIES= www 7CATEGORIES= www
8MASTER_SITES= http://links.twibright.com/download/ 8MASTER_SITES= http://links.twibright.com/download/
9EXTRACT_SUFX= .tar.bz2 9EXTRACT_SUFX= .tar.bz2
10 10
11MAINTAINER= pkgsrc-users@NetBSD.org 11MAINTAINER= pkgsrc-users@NetBSD.org
12HOMEPAGE= http://links.twibright.com/ 12HOMEPAGE= http://links.twibright.com/
13LICENSE= gnu-gpl-v2 # including special OpenSSL paragraph 13LICENSE= gnu-gpl-v2 # including special OpenSSL paragraph
14 14
15GNU_CONFIGURE= YES 15GNU_CONFIGURE= YES
16 16
17PLIST_SRC= ${.CURDIR}/../../www/links/PLIST 17PLIST_SRC= ${.CURDIR}/../../www/links/PLIST
18PATCHDIR= ${.CURDIR}/../../www/links/patches 18PATCHDIR= ${.CURDIR}/../../www/links/patches
19DISTINFO_FILE= ${.CURDIR}/../../www/links/distinfo 19DISTINFO_FILE= ${.CURDIR}/../../www/links/distinfo

cvs diff -r1.77 -r1.78 pkgsrc/www/links/distinfo (expand / switch to unified diff)

--- pkgsrc/www/links/distinfo 2021/04/18 19:46:36 1.77
+++ pkgsrc/www/links/distinfo 2021/06/29 15:13:23 1.78
@@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
1$NetBSD: distinfo,v 1.77 2021/04/18 19:46:36 fcambus Exp $ 1$NetBSD: distinfo,v 1.78 2021/06/29 15:13:23 fcambus Exp $
2 2
3SHA1 (links-2.22.tar.bz2) = dc4ad1fb400ada87343228a5965318a68328e35b 3SHA1 (links-2.23.tar.bz2) = 4077d341f9ea2e300319ee3fb972918cf4f703a1
4RMD160 (links-2.22.tar.bz2) = 218451319593cf4cd7b538ba65a06a5abb0b5cae 4RMD160 (links-2.23.tar.bz2) = 34bea8d9a625280abe62a78ce98d56a73fab15cb
5SHA512 (links-2.22.tar.bz2) = d2c9f764d64c2d73b85c998db9fc8c241556977380eef1f4041623ca306f5798227b2b57daecf09ee85e0b07f8738bdfe0b84fefc924d6e05d931e29d29ba40e 5SHA512 (links-2.23.tar.bz2) = 3c233dab2e7e5ca72f582c5af9c5799b3d6c1a5a64d4e9e0209f78f347a245dc760c2340f71839fd42e1c9f358599b8baa12aa024938f2ab1b6424c8fb0b9a7d
6Size (links-2.22.tar.bz2) = 6481705 bytes 6Size (links-2.23.tar.bz2) = 6521143 bytes
7SHA1 (patch-ab) = 3856b53ea6c17d72ca569acf1128ae40d2439ffb 7SHA1 (patch-configure) = 047d48d898f674f5f0b18c700e6296fe180380e2
8SHA1 (patch-x.c) = e4291e08437efd1147cfce88530fc662152df346 8SHA1 (patch-x.c) = 3aff5484e803495febf417bb5c2b9e3d79a265d4

File Deleted: pkgsrc/www/links/patches/Attic/patch-ab

File Added: pkgsrc/www/links/patches/patch-configure
$NetBSD: patch-configure,v 1.1 2021/06/29 15:13:24 fcambus Exp $

--- configure.orig	2021-05-21 18:46:59.000000000 +0000
+++ configure
@@ -850,10 +850,10 @@ fi
 
 
 
-ACLOCAL="./missing aclocal"
-AUTOCONF="./missing autoconf"
-AUTOMAKE="./missing automake"
-AUTOHEADER="./missing autoheader"
+ACLOCAL="aclocal"
+AUTOCONF="autoconf"
+AUTOMAKE="automake"
+AUTOHEADER="autoheader"
 
 export CC
 export CPPFLAGS

cvs diff -r1.1 -r1.2 pkgsrc/www/links/patches/patch-x.c (expand / switch to unified diff)

--- pkgsrc/www/links/patches/patch-x.c 2020/11/15 20:36:37 1.1
+++ pkgsrc/www/links/patches/patch-x.c 2021/06/29 15:13:24 1.2
@@ -1,58 +1,60 @@ @@ -1,58 +1,60 @@
1$NetBSD: patch-x.c,v 1.1 2020/11/15 20:36:37 nat Exp $ 1$NetBSD: patch-x.c,v 1.2 2021/06/29 15:13:24 fcambus Exp $
 2
2Fix display for color depths lower than 4bpp. 3Fix display for color depths lower than 4bpp.
3--- x.c.orig 2019-08-28 13:01:46.000000000 +0000 4
 5--- x.c.orig 2021-01-27 20:31:20.000000000 +0000
4+++ x.c 6+++ x.c
5@@ -1663,12 +1663,12 @@ static unsigned char *x_init_driver(unsi 7@@ -1665,12 +1665,12 @@ static unsigned char *x_init_driver(unsi
6  8
7 /* find best visual */ 9 /* find best visual */
8 { 10 {
9- static_const unsigned char depths[] = {24, 16, 15, 8, 4}; 11- static_const unsigned char depths[] = {24, 16, 15, 8, 4};
10- static_const int classes[] = {TrueColor, PseudoColor, StaticColor}; /* FIXME: dodelat DirectColor */ 12- static_const int classes[] = {TrueColor, PseudoColor, StaticColor}; /* FIXME: dodelat DirectColor */
11+ static_const unsigned char depths[] = {24, 16, 15, 8, 4, 2, 1}; 13+ static_const unsigned char depths[] = {24, 16, 15, 8, 4, 2, 1};
12+ static_const int classes[] = {TrueColor, PseudoColor, StaticColor, StaticGray}; /* FIXME: dodelat DirectColor */ 14+ static_const int classes[] = {TrueColor, PseudoColor, StaticColor, StaticGray}; /* FIXME: dodelat DirectColor */
13 unsigned a, b; 15 unsigned a, b;
14  16
15 for (a = 0; a < array_elements(depths); a++) for (b = 0; b < array_elements(classes); b++) { 17 for (a = 0; a < array_elements(depths); a++) for (b = 0; b < array_elements(classes); b++) {
16- if ((classes[b] == PseudoColor || classes[b] == StaticColor) && depths[a] > 8) 18- if ((classes[b] == PseudoColor || classes[b] == StaticColor) && depths[a] > 8)
17+ if ((classes[b] == PseudoColor || classes[b] == StaticColor || classes[b] == StaticGray) && depths[a] > 8) 19+ if ((classes[b] == PseudoColor || classes[b] == StaticColor || classes[b] == StaticGray) && depths[a] > 8)
18 continue; 20 continue;
19 if (classes[b] == TrueColor && depths[a] <= 8) 21 if (classes[b] == TrueColor && depths[a] <= 8)
20 continue; 22 continue;
21@@ -1696,11 +1696,13 @@ bytes_per_pixel_found: 23@@ -1698,11 +1698,13 @@ bytes_per_pixel_found:
22 /* test misordered flag */ 24 /* test misordered flag */
23 /*debug("x_depth %d, x_bitmap_bpp %d %lx %lx %lx %s", x_depth, x_bitmap_bpp, vinfo.red_mask, vinfo.green_mask, vinfo.blue_mask, x_bitmap_bit_order == MSBFirst ? "MSBFirst" : "LSBFirst");*/ 25 /*debug("x_depth %d, x_bitmap_bpp %d %lx %lx %lx %s", x_depth, x_bitmap_bpp, vinfo.red_mask, vinfo.green_mask, vinfo.blue_mask, x_bitmap_bit_order == MSBFirst ? "MSBFirst" : "LSBFirst");*/
24 switch (x_depth) { 26 switch (x_depth) {
25+ case 1: 27+ case 1:
26+ case 2: 28+ case 2:
27 case 4: 29 case 4:
28 case 8: 30 case 8:
29 if (x_bitmap_bpp != 1) 31 if (x_bitmap_bpp != 1)
30 break; 32 break;
31- if (vinfo.class == StaticColor || vinfo.class == PseudoColor) { 33- if (vinfo.class == StaticColor || vinfo.class == PseudoColor) {
32+ if (vinfo.class == StaticColor || vinfo.class == PseudoColor || vinfo.class == StaticGray) { 34+ if (vinfo.class == StaticColor || vinfo.class == PseudoColor || vinfo.class == StaticGray) {
33 misordered = 0; 35 misordered = 0;
34 goto visual_found; 36 goto visual_found;
35 } 37 }
36@@ -1755,7 +1757,7 @@ visual_found: 38@@ -1757,7 +1759,7 @@ visual_found:
37 x_driver.flags &= ~GD_SWITCH_PALETTE; 39 x_driver.flags &= ~GD_SWITCH_PALETTE;
38 x_have_palette = 0; 40 x_have_palette = 0;
39 x_use_static_color_table = 0; 41 x_use_static_color_table = 0;
40- if (vinfo.class == StaticColor) { 42- if (vinfo.class == StaticColor) {
41+ if (vinfo.class == StaticColor || vinfo.class == StaticGray) { 43+ if (vinfo.class == StaticColor || vinfo.class == StaticGray) {
42 if (x_depth > 8) 44 if (x_depth > 8)
43 return stracpy(cast_uchar "Static color supported for up to 8-bit depth.\n"); 45 return stracpy(cast_uchar "Static color supported for up to 8-bit depth.\n");
44 if ((err = x_query_palette())) 46 if ((err = x_query_palette()))
45@@ -2219,13 +2221,32 @@ static void x_translate_colors(unsigned  47@@ -2221,13 +2223,32 @@ static void x_translate_colors(unsigned
46 return; 48 return;
47 } 49 }
48  50
49+ unsigned char *mypic = data; 51+ unsigned char *mypic = data;
50 if (x_use_static_color_table) { 52 if (x_use_static_color_table) {
51 for (j = 0; j < y; j++) { 53 for (j = 0; j < y; j++) {
52 for (i = 0; i < x; i++) 54 for (i = 0; i < x; i++)
53 data[i] = static_color_table[data[i]]; 55 data[i] = static_color_table[data[i]];
54 data += skip; 56 data += skip;
55 } 57 }
56- return; 58- return;
57+ } 59+ }
58+ if (x_depth == 1) { 60+ if (x_depth == 1) {