[packages/wget] patch to fix large files trimmed to 2G on arm and possibly other 32bit arches; rel 2

atler atler at pld-linux.org
Sun May 23 16:05:40 CEST 2021


commit 0c7b0025ecb573e98f9e48b07f70424fa6fefd96
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun May 23 16:03:19 2021 +0200

    patch to fix large files trimmed to 2G on arm and possibly other 32bit arches; rel 2
    
    adapted from upstream

 wget-largefile_32bit.patch | 28 ++++++++++++++++++++++++++++
 wget.spec                  |  4 +++-
 2 files changed, 31 insertions(+), 1 deletion(-)
---
diff --git a/wget.spec b/wget.spec
index 9e89c39..5a22991 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.1
-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:		%{name}-largefile_32bit.patch
 URL:		http://www.gnu.org/software/wget/
 BuildRequires:	autoconf >= 2.64
 BuildRequires:	automake >= 1:1.9
@@ -142,6 +143,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/wget-largefile_32bit.patch b/wget-largefile_32bit.patch
new file mode 100644
index 0000000..68380e0
--- /dev/null
+++ b/wget-largefile_32bit.patch
@@ -0,0 +1,28 @@
+From 90631a6fe54eabd9c80ede5c70bc916719e76cfe Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Tim=20R=C3=BChsen?= <tim.ruehsen at gmx.de>
+Date: Sun, 11 Apr 2021 12:53:16 +0200
+Subject: * src/wget.h: Use strtoll() for str_to_wgint
+
+This fixes a regression reported at https://savannah.gnu.org/bugs/?60353.
+
+Reported-by: Michal Ruprich
+---
+ src/wget.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/wget.h b/src/wget.h
+index cbac4678..23f0350d 100644
+--- a/src/wget.h
++++ b/src/wget.h
+@@ -144,7 +144,7 @@ typedef int64_t wgint;
+ #define WGINT_MAX INT64_MAX
+ typedef wgint SUM_SIZE_INT;
+ 
+-#define str_to_wgint strtol
++#define str_to_wgint strtoll
+ 
+ #include "options.h"
+ 
+-- 
+cgit v1.2.1
+
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list