[packages/elinks] - updated to 0.20.0 - quickjs -> quickjs-ng - svg support - removed infinite.patch

witekfl witekfl at pld-linux.org
Sat Aug 1 09:35:36 CEST 2026


commit 6b8b64ef05c75fb75eb12cf378c0e8523c85ec7e
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date:   Sat Aug 1 09:33:10 2026 +0200

    - updated to 0.20.0
    - quickjs -> quickjs-ng
    - svg support
    - removed infinite.patch

 elinks.spec    | 18 +++++++++++-------
 infinite.patch | 30 ------------------------------
 2 files changed, 11 insertions(+), 37 deletions(-)
---
diff --git a/elinks.spec b/elinks.spec
index e477a42..382944c 100644
--- a/elinks.spec
+++ b/elinks.spec
@@ -12,7 +12,7 @@
 # - content
 %bcond_without	cgi		# Local CGI support
 %bcond_without	brotli		# Brotli compression support
-%bcond_without	js		# experimental (yet quite usable) JavaScript support (using quickjs)
+%bcond_without	js		# experimental (yet quite usable) JavaScript support (using quickjs-ng)
 %bcond_without	libcss		# libcss support
 %bcond_with	lzma		# LZMA support (old API, incompatible with xz-libs)
 %bcond_without	zstd	# zstd compression support
@@ -29,6 +29,7 @@
 %bcond_without	sixel		# image display support in SIXEL capable terminals
 %bcond_without	webp		# webp image support (requires kitty or sixel)
 %bcond_without	avif		# avif image support (requires kitty or sixel)
+%bcond_without	svg		# svg image support (requires kitty or sixel)
 %bcond_without	truecolor	# true color
 %bcond_with	x		# Use the X Window System
 # - misc
@@ -46,6 +47,7 @@
 %if %{without kitty} && %{without sixel}
 %undefine	with_avif
 %undefine	with_webp
+%undefine	with_svg
 %endif
 
 Summary:	Experimantal Links (text WWW browser)
@@ -53,16 +55,15 @@ Summary(es.UTF-8):	El links es un browser para modo texto, similar a lynx
 Summary(pl.UTF-8):	Eksperymentalny Links (tekstowa przeglądarka WWW)
 Summary(pt_BR.UTF-8):	O links é um browser para modo texto, similar ao lynx
 Name:		elinks
-Version:	0.19.1
-Release:	2
+Version:	0.20.0
+Release:	1
 Epoch:		1
 License:	GPL v2
 Group:		Applications/Networking
 Source0:	https://github.com/rkd77/elinks/releases/download/v%{version}/%{name}-%{version}.tar.xz
-# Source0-md5:	9e05fc047bde8751474dbe988f657643
+# Source0-md5:	3f75f4aa52cf76a456e1626b3f5b6730
 Source1:	%{name}.desktop
 Source2:	links.png
-Patch0:		infinite.patch
 URL:		http://www.elinks.cz/
 BuildRequires:	bzip2-devel
 %{?with_curl:BuildRequires:	curl-devel >= 7.66.0}
@@ -86,6 +87,7 @@ BuildRequires:	libdom-devel >= 0.4.2
 %endif
 %{?with_libevent:BuildRequires:	libevent-devel}
 %{?with_idn:BuildRequires:	libidn2-devel}
+%{?with_svg:BuildRequires:	librsvg-devel}
 %{?with_sixel:BuildRequires:	libsixel-devel}
 %{?with_smb:BuildRequires:	libsmbclient-devel}
 %{?with_webp:BuildRequires:	libwebp-devel}
@@ -98,7 +100,7 @@ BuildRequires:	ninja >= 1.5
 %{?with_perl:BuildRequires:	perl-devel}
 BuildRequires:	pkgconfig
 %{?with_python:BuildRequires:	python3-devel}
-%{?with_js:BuildRequires:	quickjs-devel >= 20250426}
+%{?with_js:BuildRequires:	quickjs-ng-devel}
 %{?with_ruby:BuildRequires:	ruby-devel}
 BuildRequires:	sed
 BuildRequires:	tar >= 1:1.22
@@ -147,7 +149,6 @@ keepalive.
 
 %prep
 %setup -q
-%patch -P0 -p1
 
 %build
 %meson \
@@ -173,6 +174,7 @@ keepalive.
 	%{!?with_ipv6:-Dipv6=false} \
 	%{?with_leds:-Dleds=true} \
 	%{?with_avif:-Dlibavif=true} \
+	%{?with_svg:-Dlibrsvg=true} \
 	%{?with_webp:-Dlibwebp=true} \
 	-Dkitty=%{__true_false kitty} \
 	-Dlibsixel=%{__true_false sixel} \
@@ -216,6 +218,8 @@ sed -i -e 's|bin/lua|bin/lua5.3|g' $RPM_BUILD_ROOT%{_sysconfdir}/*lua
 install AUTHORS BUGS ChangeLog NEWS README.md SITES TODO $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
 install contrib/{keybind*,wipe-out-ssl*,lua/elinks-remote} contrib/conv/{*awk,*.pl,*.sh} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
 
+sed -i -e 's|/usr/bin/env awk|/bin/awk|g' $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/*awk
+
 %find_lang %{name}
 
 %clean
diff --git a/infinite.patch b/infinite.patch
deleted file mode 100644
index 0e281e1..0000000
--- a/infinite.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-commit 5c05545ffc746d60be6fb24664a367ec01f763da
-Author: Witold Filipczyk <witekfl at poczta.onet.pl>
-Date:   Wed Mar 11 10:28:37 2026 +0100
-
-    [mailcap] infinite loop due to wrong type of variable. Refs #425
-    
-    (cherry picked from commit 39ed7a20e42bb0ac045c71bfeb6548c9518824ac)
-
-diff --git a/src/mime/backend/mailcap.c b/src/mime/backend/mailcap.c
-index 4ef73692c..e5ee9872d 100644
---- a/src/mime/backend/mailcap.c
-+++ b/src/mime/backend/mailcap.c
-@@ -72,7 +72,7 @@ struct mailcap_entry {
- 	unsigned int needsterminal:1;
- 
- 	/* normal, copiousoutput, x_ansioutput or x_htmloutput */
--	unsigned char kind;
-+	signed char kind;
- 
- 	/* The 'raw' unformatted (view)command from the mailcap files. */
- 	char command[1];
-@@ -597,7 +597,7 @@ check_entries(struct mailcap_hash_item *item)
- 	ELOG
- 	struct mailcap_entry *entry;
- 
--	unsigned char kind;
-+	signed char kind;
- 
- 	for (kind = MAILCAP_KIND_X_HTMLOUTPUT; kind >= MAILCAP_KIND_NORMAL; kind--) {
- 		foreach (entry, item->entries) {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/elinks.git/commitdiff/6b8b64ef05c75fb75eb12cf378c0e8523c85ec7e



More information about the pld-cvs-commit mailing list