pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/www/elinks



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sat Nov 28 21:06:56 UTC 2026

Modified Files:
        pkgsrc/www/elinks: Makefile distinfo options.mk
        pkgsrc/www/elinks/patches: patch-src_util_memory.c
Added Files:
        pkgsrc/www/elinks/patches: patch-src_js_quickjs_heartbeat.c
            patch-src_js_quickjs_heartbeat.h
Removed Files:
        pkgsrc/www/elinks/patches: patch-meson.build patch-src_js_quickjs.h
            patch-src_terminal_sixel.c

Log Message:
www/elinks: Update elinks to 0.20.0

Update prepared in wip by adr

Delete incompatibility with extinct felinks
Switch to quickjs-ng
Delete applied patches upstream and add fixes not present on last
release

Elinks 0.20.0
-------------
Released on 2026-07-26
* bump mozjs to 140
* switch from quickjs to quickjs-ng
* Added color "default" in colors settings (\e[39m and \e[49m
sequences)
* support for SVG #423
* infinite loop in mailcap code #425
* Use /usr/bin/env to determine awk interpreter path for awk example
scripts #426
* skip DNS lookup for local files which have empty hostname #428
* check declaration of fgets_unlocked for bionic libc #429
* fix parallel build race #431
* added document.browse.sorting_type (and let sort "numerically",
for example kernel versions)
* increase max number of concurrent connections
* extend document.browse.images.display_style, adding value -1 (no
text)
* apply libcss twice (similar to elinks css implementation)
* refresh-view, set-mark, goto-mark and onload-oneshot actions for
exmode #220
* back to smb based on smbclient binary


To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 pkgsrc/www/elinks/Makefile
cvs rdiff -u -r1.38 -r1.39 pkgsrc/www/elinks/distinfo
cvs rdiff -u -r1.21 -r1.22 pkgsrc/www/elinks/options.mk
cvs rdiff -u -r1.1 -r0 pkgsrc/www/elinks/patches/patch-meson.build \
    pkgsrc/www/elinks/patches/patch-src_js_quickjs.h \
    pkgsrc/www/elinks/patches/patch-src_terminal_sixel.c
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/www/elinks/patches/patch-src_js_quickjs_heartbeat.c \
    pkgsrc/www/elinks/patches/patch-src_js_quickjs_heartbeat.h
cvs rdiff -u -r1.1 -r1.2 pkgsrc/www/elinks/patches/patch-src_util_memory.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/elinks/Makefile
diff -u pkgsrc/www/elinks/Makefile:1.98 pkgsrc/www/elinks/Makefile:1.99
--- pkgsrc/www/elinks/Makefile:1.98     Wed Nov 11 11:56:14 2026
+++ pkgsrc/www/elinks/Makefile  Sat Nov 28 21:06:56 2026
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.98 2026/11/11 11:56:14 wiz Exp $
+# $NetBSD: Makefile,v 1.99 2026/11/28 21:06:56 wiz Exp $
 
-DISTNAME=      elinks-0.18.0
-PKGREVISION=   8
+DISTNAME=      elinks-0.20.0
 CATEGORIES=    www
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=rkd77/}
 GITHUB_RELEASE=        v${PKGVERSION_NOREV}
@@ -15,9 +14,6 @@ LICENSE=      gnu-gpl-v2
 TOOL_DEPENDS+= vim-share-[0-9]*:../../editors/vim-share
 TOOL_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto
 
-CONFLICTS+=    felinks-[0-9]*
-SUPERSEDES+=   felinks-[0-9]*
-
 USE_PKGLOCALEDIR=      yes
 USE_LANGUAGES=         c c++
 USE_CXX_FEATURES+=     c++17

Index: pkgsrc/www/elinks/distinfo
diff -u pkgsrc/www/elinks/distinfo:1.38 pkgsrc/www/elinks/distinfo:1.39
--- pkgsrc/www/elinks/distinfo:1.38     Thu Nov 13 23:18:47 2025
+++ pkgsrc/www/elinks/distinfo  Sat Nov 28 21:06:56 2026
@@ -1,9 +1,8 @@
-$NetBSD: distinfo,v 1.38 2025/11/13 23:18:47 leot Exp $
+$NetBSD: distinfo,v 1.39 2026/11/28 21:06:56 wiz Exp $
 
-BLAKE2s (elinks-0.18.0.tar.xz) = 65d0190de47ff7953789b90b861cf45ac50c6a9e858560b4f3c5078aea56a124
-SHA512 (elinks-0.18.0.tar.xz) = e0ff737e06d4b591d362257b9a375b938f9d6222cf6ee4df2065c7b47f883a5eacf76dabae8fc7c0b32cf9b7df56267752217d6999b0ae24c2482763b5b0ccb9
-Size (elinks-0.18.0.tar.xz) = 2078656 bytes
-SHA1 (patch-meson.build) = 11a16613cef254e8e179e844bb302f98ce925e2d
-SHA1 (patch-src_js_quickjs.h) = ea31a77b00bd1740b64e8de1bbc4c8a27830bb89
-SHA1 (patch-src_terminal_sixel.c) = 330bf0c751f1b37944be6afd7b022782411224ec
-SHA1 (patch-src_util_memory.c) = dc390442f65d7cee70d28d6a6cba5ee0981eb83a
+BLAKE2s (elinks-0.20.0.tar.xz) = dd22e871a15d3287aecefdbc2145034a204e1770052821e42b994ee4dc00167f
+SHA512 (elinks-0.20.0.tar.xz) = a1ad2e94c73f20f7bbed6b47634d7c3b2343bd2e7a13a0563f701711724cae08a4906cc3adc24000742287a1653468ab3edd82db7708d3e5a336889a326dda44
+Size (elinks-0.20.0.tar.xz) = 2220344 bytes
+SHA1 (patch-src_js_quickjs_heartbeat.c) = 14572dea0536af6da33a202f8195f5f1857e5955
+SHA1 (patch-src_js_quickjs_heartbeat.h) = 2542f51c60eee7dd96c00b34c1bab78e1fdae6ed
+SHA1 (patch-src_util_memory.c) = 4d0c89ff99ca3a46c496b1a4e196c3f71d10335e

Index: pkgsrc/www/elinks/options.mk
diff -u pkgsrc/www/elinks/options.mk:1.21 pkgsrc/www/elinks/options.mk:1.22
--- pkgsrc/www/elinks/options.mk:1.21   Fri Feb  7 16:18:14 2025
+++ pkgsrc/www/elinks/options.mk        Sat Nov 28 21:06:56 2026
@@ -1,13 +1,13 @@
-# $NetBSD: options.mk,v 1.21 2025/02/07 16:18:14 pho Exp $
+# $NetBSD: options.mk,v 1.22 2026/11/28 21:06:56 wiz Exp $
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.elinks
 PKG_SUPPORTED_OPTIONS=         cgi elinks-exmode gssapi nls samba terminfo x11
 PKG_OPTIONS_OPTIONAL_GROUPS=   js tls
-PKG_OPTIONS_GROUP.js=          mujs quickjs spidermonkey
+PKG_OPTIONS_GROUP.js=          mujs quickjs-ng spidermonkey
 PKG_OPTIONS_GROUP.tls=         gnutls openssl
-# spidermonkey (mozjs) runs faster than quickjs, but it's less portable
+# spidermonkey (mozjs) runs faster than quickjs-ng, but it's less portable
 # because it uses Rust. The default should be a portable interpreter.
-PKG_SUGGESTED_OPTIONS=         nls terminfo quickjs gnutls
+PKG_SUGGESTED_OPTIONS=         nls terminfo quickjs-ng gnutls
 
 .include "../../mk/bsd.options.mk"
 
@@ -83,9 +83,9 @@ MESON_ARGS+=  -Dmujs=true
 .  include "../../lang/mujs/buildlink3.mk"
 .  include "../../databases/sqlite3/buildlink3.mk"
 
-.elif !empty(PKG_OPTIONS:Mquickjs)
+.elif !empty(PKG_OPTIONS:Mquickjs-ng)
 MESON_ARGS+=   -Dquickjs=true
-.  include "../../lang/quickjs/buildlink3.mk"
+.  include "../../lang/quickjs-ng/buildlink3.mk"
 .  include "../../databases/sqlite3/buildlink3.mk"
 
 .elif !empty(PKG_OPTIONS:Mspidermonkey)

Index: pkgsrc/www/elinks/patches/patch-src_util_memory.c
diff -u pkgsrc/www/elinks/patches/patch-src_util_memory.c:1.1 pkgsrc/www/elinks/patches/patch-src_util_memory.c:1.2
--- pkgsrc/www/elinks/patches/patch-src_util_memory.c:1.1       Fri Apr 14 21:35:06 2023
+++ pkgsrc/www/elinks/patches/patch-src_util_memory.c   Sat Nov 28 21:06:56 2026
@@ -1,10 +1,10 @@
-$NetBSD: patch-src_util_memory.c,v 1.1 2023/04/14 21:35:06 nia Exp $
+$NetBSD: patch-src_util_memory.c,v 1.2 2026/11/28 21:06:56 wiz Exp $
 
 Use macro to make mremap compatible to NetBSD
 
---- src/util/memory.c.orig     2020-05-31 13:15:37.000000000 +0000
+--- src/util/memory.c.orig     2026-07-26 09:58:12.000000000 +0000
 +++ src/util/memory.c
-@@ -21,6 +21,14 @@
+@@ -21,7 +21,15 @@
  #include "util/error.h"
  #include "util/memory.h"
  
@@ -14,12 +14,13 @@ Use macro to make mremap compatible to N
 +#else
 +# define MREMAP(p, oldsz, newsz, f)    mremap(p, oldsz, newsz, f)
 +#endif
+ 
 +
 +
- 
  #if !defined(DEBUG_MEMLEAK) && !defined(CONFIG_FASTMEM)
  
-@@ -165,7 +173,7 @@ mem_mmap_realloc(void *p, size_t old_siz
+ static int alloc_try = 0;
+@@ -174,7 +182,7 @@ mem_mmap_realloc(void *p, size_t old_size, size_t new_
  
        if (new_size) {
  #ifdef HAVE_MREMAP

Added files:

Index: pkgsrc/www/elinks/patches/patch-src_js_quickjs_heartbeat.c
diff -u /dev/null pkgsrc/www/elinks/patches/patch-src_js_quickjs_heartbeat.c:1.1
--- /dev/null   Sat Nov 28 21:06:56 2026
+++ pkgsrc/www/elinks/patches/patch-src_js_quickjs_heartbeat.c  Sat Nov 28 21:06:56 2026
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_js_quickjs_heartbeat.c,v 1.1 2026/11/28 21:06:56 wiz Exp $
+
+Fix parameter type
+
+--- src/js/quickjs/heartbeat.c.orig    2026-07-26 09:58:12.000000000 +0000
++++ src/js/quickjs/heartbeat.c
+@@ -33,7 +33,7 @@ int
+  * Returning 1 terminates script execution immediately. */
+ 
+ int
+-js_heartbeat_callback(JSRuntime *rt, void *opaque)
++js_heartbeat_callback(JSContext *ctx, void *opaque)
+ {
+       ELOG
+       struct ecmascript_interpreter *interpreter = (struct ecmascript_interpreter *)opaque;
Index: pkgsrc/www/elinks/patches/patch-src_js_quickjs_heartbeat.h
diff -u /dev/null pkgsrc/www/elinks/patches/patch-src_js_quickjs_heartbeat.h:1.1
--- /dev/null   Sat Nov 28 21:06:56 2026
+++ pkgsrc/www/elinks/patches/patch-src_js_quickjs_heartbeat.h  Sat Nov 28 21:06:56 2026
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_js_quickjs_heartbeat.h,v 1.1 2026/11/28 21:06:56 wiz Exp $
+
+Fix parameter type
+
+--- src/js/quickjs/heartbeat.h.orig    2026-07-26 09:58:12.000000000 +0000
++++ src/js/quickjs/heartbeat.h
+@@ -23,7 +23,7 @@ void done_heartbeat(struct heartbeat *hb);
+ struct heartbeat *add_heartbeat(struct ecmascript_interpreter *interpreter);
+ void check_heartbeats(void *data);
+ void done_heartbeat(struct heartbeat *hb);
+-int js_heartbeat_callback(JSRuntime *rt, void *opaque);
++int js_heartbeat_callback(JSContext *ctx, void *opaque);
+ 
+ #ifdef __cplusplus
+ }



Home | Main Index | Thread Index | Old Index