]> git.pld-linux.org Git - packages/wget.git/commitdiff
patch to fix large files trimmed to 2G on arm and possibly other 32bit arches; rel 2 auto/th/wget-1.21.1-2
authorJan Palus <atler@pld-linux.org>
Sun, 23 May 2021 14:03:19 +0000 (16:03 +0200)
committerJan Palus <atler@pld-linux.org>
Sun, 23 May 2021 14:04:44 +0000 (16:04 +0200)
adapted from upstream

wget-largefile_32bit.patch [new file with mode: 0644]
wget.spec

diff --git a/wget-largefile_32bit.patch b/wget-largefile_32bit.patch
new file mode 100644 (file)
index 0000000..68380e0
--- /dev/null
@@ -0,0 +1,28 @@
+From 90631a6fe54eabd9c80ede5c70bc916719e76cfe Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Tim=20R=C3=BChsen?= <tim.ruehsen@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
+
index 9e89c3918822a538dd7dc0154fc4e977ca96e4ab..5a229915f731b7c458401b2b6d34fd41d40ed84d 100644 (file)
--- 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
 
This page took 0.151323 seconds and 4 git commands to generate.