[packages/wget] fix build with gnupg >= 2.4.1; rel 2

atler atler at pld-linux.org
Fri May 12 01:48:50 CEST 2023


commit b4d14d56e770009f67fd6bf6bc603c2cec492fd4
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri May 12 01:48:08 2023 +0200

    fix build with gnupg >= 2.4.1; rel 2
    
    see https://savannah.gnu.org/bugs/index.php?64184

 gnupg-2.4.1-tests.patch | 30 ++++++++++++++++++++++++++++++
 wget.spec               |  4 +++-
 2 files changed, 33 insertions(+), 1 deletion(-)
---
diff --git a/wget.spec b/wget.spec
index efb31a6..92dfa38 100644
--- a/wget.spec
+++ b/wget.spec
@@ -19,7 +19,7 @@ Summary(uk.UTF-8):	Утиліта для отримання файлів по п
 Summary(zh_CN.UTF-8):	[通讯]功能强大的下载程序,支持断点续传
 Name:		wget
 Version:	1.21.4
-Release:	1
+Release:	2
 License:	GPL v3+ with OpenSSL exception
 Group:		Networking/Utilities
 Source0:	http://ftp.gnu.org/gnu/wget/%{name}-%{version}.tar.lz
@@ -31,6 +31,7 @@ Patch1:		%{name}-wgetrc_path.patch
 Patch2:		%{name}-home_etc.patch
 Patch3:		%{name}-ssl-certs.patch
 Patch4:		user.xdg.origin.url.patch
+Patch5:		gnupg-2.4.1-tests.patch
 URL:		http://www.gnu.org/software/wget/
 BuildRequires:	autoconf >= 2.64
 BuildRequires:	autoconf-archive
@@ -144,6 +145,7 @@ Proxy серверів, настроюваність.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %{__rm} doc/wget.info doc/sample.wgetrc.munged_for_texi_inclusion po/stamp-po
 
diff --git a/gnupg-2.4.1-tests.patch b/gnupg-2.4.1-tests.patch
new file mode 100644
index 0000000..afbc9e2
--- /dev/null
+++ b/gnupg-2.4.1-tests.patch
@@ -0,0 +1,30 @@
+From 478b2e93a2b4102d5c76332ea5ff6a1a920ae0db Mon Sep 17 00:00:00 2001
+From: Jan Palus <jpalus at fastmail.com>
+Date: Fri, 12 May 2023 01:44:13 +0200
+Subject: [PATCH] * testenv/conf/expected_files.py: Ignore common.conf
+
+Signed-off-by: Jan Palus <jpalus at fastmail.com>
+---
+ testenv/conf/expected_files.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/testenv/conf/expected_files.py b/testenv/conf/expected_files.py
+index 65adb707..72146726 100644
+--- a/testenv/conf/expected_files.py
++++ b/testenv/conf/expected_files.py
+@@ -24,10 +24,10 @@ class ExpectedFiles:
+         snapshot = {}
+         for parent, dirs, files in os.walk('.'):
+             for name in files:
+-                # pubring.gpg, pubring.kbx, dirmngr.conf, gpg.conf will be created by libgpgme
++                # pubring.gpg, pubring.kbx, common.conf, dirmngr.conf, gpg.conf will be created by libgpgme
+                 #   if $HOME doesn't contain the .gnupg directory.
+                 # setting $HOME to CWD (in base_test.py) breaks two Metalink tests, so we skip this file here.
+-                if name in [ 'pubring.gpg', 'pubring.kbx', 'dirmngr.conf', 'gpg.conf' ]:
++                if name in [ 'pubring.gpg', 'pubring.kbx', 'common.conf', 'dirmngr.conf', 'gpg.conf' ]:
+                     continue
+ 
+                 f = {'content': ''}
+-- 
+2.40.1
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/wget.git/commitdiff/b4d14d56e770009f67fd6bf6bc603c2cec492fd4



More information about the pld-cvs-commit mailing list