From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D6A17158042 for ; Mon, 28 Oct 2024 11:42:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E9873E07C9; Mon, 28 Oct 2024 11:42:04 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CCAB9E07C9 for ; Mon, 28 Oct 2024 11:42:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D34B334313F for ; Mon, 28 Oct 2024 11:42:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0B02711DF for ; Mon, 28 Oct 2024 11:42:02 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1730115666.a0994847954dbf35b3933d1ecb2332d1684602e7.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/elinks/, www-client/elinks/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-client/elinks/elinks-0.17.1.1.ebuild www-client/elinks/elinks-9999.ebuild www-client/elinks/files/elinks-0.17.1.1-sftp.patch X-VCS-Directories: www-client/elinks/ www-client/elinks/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: a0994847954dbf35b3933d1ecb2332d1684602e7 X-VCS-Branch: master Date: Mon, 28 Oct 2024 11:42:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e6be15a7-7f49-42a8-adf9-269c2d85cd18 X-Archives-Hash: d0a8957ec87036506baae4c0797a6849 commit: a0994847954dbf35b3933d1ecb2332d1684602e7 Author: Felix Janda posteo de> AuthorDate: Mon Oct 28 01:40:45 2024 +0000 Commit: Sam James gentoo org> CommitDate: Mon Oct 28 11:41:06 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0994847 www-client/elinks: various bugfixes Closes: https://bugs.gentoo.org/933407 Closes: https://bugs.gentoo.org/942286 Closes: https://bugs.gentoo.org/942202 Closes: https://bugs.gentoo.org/942293 Signed-off-by: Felix Janda posteo.de> Closes: https://github.com/gentoo/gentoo/pull/39134 Signed-off-by: Sam James gentoo.org> www-client/elinks/elinks-0.17.1.1.ebuild | 8 ++- www-client/elinks/elinks-9999.ebuild | 4 +- www-client/elinks/files/elinks-0.17.1.1-sftp.patch | 63 +++++++++++++--------- 3 files changed, 48 insertions(+), 27 deletions(-) diff --git a/www-client/elinks/elinks-0.17.1.1.ebuild b/www-client/elinks/elinks-0.17.1.1.ebuild index ba0f3ed2a59c..9b8c200b66dd 100644 --- a/www-client/elinks/elinks-0.17.1.1.ebuild +++ b/www-client/elinks/elinks-0.17.1.1.ebuild @@ -29,6 +29,7 @@ IUSE+=" javascript libcss lua lzma +mouse nls nntp perl python samba ssl test tr RESTRICT="!test? ( test )" REQUIRED_USE=" guile? ( ${GUILE_REQUIRED_USE} ) + javascript? ( libcss ) lua? ( ${LUA_REQUIRED_USE} ) python? ( ${PYTHON_REQUIRED_USE} ) " @@ -86,12 +87,17 @@ PATCHES=( pkg_setup() { use guile && guile-single_pkg_setup use lua && lua-single_pkg_setup - use python && python-single-r1_pkg_setup + python-single-r1_pkg_setup } src_prepare() { default use guile && guile_bump_sources + python_fix_shebang . + + # https://bugs.gentoo.org/show_bug.cgi?id=942286 + sed -i -e '/find_library/s/, dirs: \[[^]]*\]//' \ + meson.build || die } src_configure() { diff --git a/www-client/elinks/elinks-9999.ebuild b/www-client/elinks/elinks-9999.ebuild index 385322847846..daa906d436ce 100644 --- a/www-client/elinks/elinks-9999.ebuild +++ b/www-client/elinks/elinks-9999.ebuild @@ -29,6 +29,7 @@ IUSE+=" javascript libcss lua lzma +mouse nls nntp perl python samba ssl test tr RESTRICT="!test? ( test )" REQUIRED_USE=" guile? ( ${GUILE_REQUIRED_USE} ) + javascript? ( libcss ) lua? ( ${LUA_REQUIRED_USE} ) python? ( ${PYTHON_REQUIRED_USE} ) " @@ -81,12 +82,13 @@ BDEPEND=" pkg_setup() { use guile && guile-single_pkg_setup use lua && lua-single_pkg_setup - use python && python-single-r1_pkg_setup + python-single-r1_pkg_setup } src_prepare() { default use guile && guile_bump_sources + python_fix_shebang . } src_configure() { diff --git a/www-client/elinks/files/elinks-0.17.1.1-sftp.patch b/www-client/elinks/files/elinks-0.17.1.1-sftp.patch index 2607c90b4fbd..f8f1d5092bff 100644 --- a/www-client/elinks/files/elinks-0.17.1.1-sftp.patch +++ b/www-client/elinks/files/elinks-0.17.1.1-sftp.patch @@ -1,18 +1,7 @@ -From 1f0ee66aecbb52f8c423128aa7e0dd35822e989c Mon Sep 17 00:00:00 2001 -From: Witold Filipczyk -Date: Mon, 27 May 2024 10:23:46 +0200 -Subject: [PATCH] [protolcols] Do not compile-in SFTP when ftp was disabled. - Refs #304 +Combination of upstream commits: +1f0ee66aecbb52f8c423128aa7e0dd35822e989c +a198d2da3cf958d7c1de3bc02a2ea49c25a3f785 ---- - src/protocol/curl/ftp.c | 42 +++------------------------------------- - src/protocol/curl/http.c | 42 ++++++++++++++++++++++++++++++++++++++++ - src/protocol/curl/sftp.h | 2 +- - src/protocol/protocol.c | 2 +- - 4 files changed, 47 insertions(+), 41 deletions(-) - -diff --git a/src/protocol/curl/ftp.c b/src/protocol/curl/ftp.c -index 5f3d462ac..73120a67d 100644 --- a/src/protocol/curl/ftp.c +++ b/src/protocol/curl/ftp.c @@ -55,6 +55,8 @@ @@ -24,7 +13,16 @@ index 5f3d462ac..73120a67d 100644 static char el_curlversion[256]; static void -@@ -641,45 +643,6 @@ ftp_curl_handle_error(struct connection *conn, CURLcode res) +@@ -616,7 +618,7 @@ + abort_connection(conn, connection_state(S_OK)); + } + +-static void ++void + ftp_curl_handle_error(struct connection *conn, CURLcode res) + { + if (res == CURLE_OK) { +@@ -635,45 +637,6 @@ abort_connection(conn, connection_state(S_CURL_ERROR - res)); } @@ -70,17 +68,36 @@ index 5f3d462ac..73120a67d 100644 void ftpes_protocol_handler(struct connection *conn) { -@@ -695,3 +658,4 @@ sftp_protocol_handler(struct connection *conn) +@@ -689,3 +652,4 @@ do_ftpes(conn); } } +#endif \ No newline at end of file -diff --git a/src/protocol/curl/http.c b/src/protocol/curl/http.c -index e2349489a..25d0eb36d 100644 +--- a/src/protocol/curl/ftpes.h ++++ b/src/protocol/curl/ftpes.h +@@ -1,6 +1,10 @@ + #ifndef EL__PROTOCOL_CURL_FTPES_H + #define EL__PROTOCOL_CURL_FTPES_H + ++#ifdef CONFIG_LIBCURL ++#include ++#endif ++ + #include "main/module.h" + #include "protocol/protocol.h" + +@@ -12,6 +16,7 @@ + + #if defined(CONFIG_FTP) && defined(CONFIG_LIBCURL) + extern protocol_handler_T ftpes_protocol_handler; ++void ftp_curl_handle_error(struct connection *conn, CURLcode res); + #else + #define ftpes_protocol_handler NULL + #endif --- a/src/protocol/curl/http.c +++ b/src/protocol/curl/http.c -@@ -505,3 +505,45 @@ http_curl_protocol_handler(struct connection *conn) +@@ -461,3 +461,45 @@ do_http(conn); } } @@ -126,11 +143,9 @@ index e2349489a..25d0eb36d 100644 + } +#endif +} -diff --git a/src/protocol/curl/sftp.h b/src/protocol/curl/sftp.h -index f9167c3fa..cdcafd572 100644 --- a/src/protocol/curl/sftp.h +++ b/src/protocol/curl/sftp.h -@@ -10,7 +10,7 @@ extern "C" { +@@ -10,7 +10,7 @@ extern struct module sftp_protocol_module; @@ -139,11 +154,9 @@ index f9167c3fa..cdcafd572 100644 extern protocol_handler_T sftp_protocol_handler; #else #define sftp_protocol_handler NULL -diff --git a/src/protocol/protocol.c b/src/protocol/protocol.c -index 930a4f86b..d3fae896c 100644 --- a/src/protocol/protocol.c +++ b/src/protocol/protocol.c -@@ -336,7 +336,7 @@ static struct module *protocol_submodules[] = { +@@ -336,7 +336,7 @@ #ifdef CONFIG_NNTP &nntp_protocol_module, #endif