Here is a fresh diff for 1.21.1 (not 1.21) released on January 9,
2021. It is based on wen heping's diff for 1.21.
Changelog: https://git.savannah.gnu.org/cgit/wget.git/tree/NEWS
I tested downloading and verifying SHA256 of install69.img.
Feedback and tests are welcome. OK?
Nam Nguyen writes:
> wen heping writes:
>
>> Hi,
>>
>> Here is a patch for net/wget to update to 1.21, it build
>> well and run well on amd64-6.8 system.
>>
>>
>> wen
>
> Thank you for this update. It looks good to me. I can commit this if I
> can get an OK.
>
> solene@: Should it be backported to -stable?
> ${WRKSRC}/ChangeLog reports fixed memory leak, use of uninitialized
> stack mem and stack memory leak found by Coverity, and other memory
> leaks and a read buffer overflow.
>
> `make test' passes, skipping some. I tested by downloading an openbsd
> ISO. I tested against the pending devel/pcre2 update, which I will
> commit soon.
>
> Details on `make test'
> ==
> Here are some notes on `make test' explaining why they are skipped.
>
> 1. SKIP: Test-stdouterr.px
>
> This test tries writing to /dev/full and expects an exit status of 3,
> indicating a File I/O error (per wget(1)). /dev/full does not exist on
> OpenBSD.
>
> unless(-e "/dev/full") {
> exit 77; # skip
> }
>
> 2. SKIP: Test-no_proxy-env
>
> This is the only new unit test that appears to be skipped. Other tests
> are skipped as in the previous release, 1.20.3.
>
> Test-no_proxy-env.log:1:SKIP Test-no_proxy-env.py (exit status: 77)
>
> This test, along with other tests, are skipped for the same
> reason. gethostbyname fails and returns an error. This is to be expected
> because _pbuild doesn't have network access. I confirmed this with a
> minimal python3 reproducer that works when run as a user but fails when
> using doas -u _pbuild.
>
> import socket
> try:
> ip = socket.gethostbyname("www.working2.localhost")
> except socket.gaierror as _:
> print("error");
> print("works " + ip);
>
> The other tests that fail for the same reason:
>
> SKIP: Test-https-selfsigned.px
> SKIP: Test-https-weboftrust.px
> SKIP: Test-https-tlsv1x.px
> SKIP: Test-https-clientcert.px
> SKIP: Test-https-tlsv1.px
> SKIP: Test-https-pfs.px
> SKIP: Test-https-crl.px
> SKIP: Test-https-badcerts.px
Index: Makefile
===
RCS file: /cvs/ports/net/wget/Makefile,v
retrieving revision 1.86
diff -u -p -u -p -r1.86 Makefile
--- Makefile23 Feb 2021 19:39:35 - 1.86
+++ Makefile26 Jun 2021 09:10:48 -
@@ -2,9 +2,8 @@
COMMENT = retrieve files from the web via HTTP, HTTPS and FTP
-DISTNAME = wget-1.20.3
+DISTNAME = wget-1.21.1
CATEGORIES = net
-REVISION = 3
HOMEPAGE = https://www.gnu.org/software/wget/
MAINTAINER = Nam Nguyen
Index: distinfo
===
RCS file: /cvs/ports/net/wget/distinfo,v
retrieving revision 1.25
diff -u -p -u -p -r1.25 distinfo
--- distinfo23 Apr 2019 20:15:08 - 1.25
+++ distinfo26 Jun 2021 09:10:48 -
@@ -1,2 +1,2 @@
-SHA256 (wget-1.20.3.tar.gz) = MczPxmMFKNscjjoG9t7PKjcAYLmChBz6srhndAClCS4=
-SIZE (wget-1.20.3.tar.gz) = 4489249
+SHA256 (wget-1.21.1.tar.gz) = WboL2t6a0TXtpYGuTlmnqfJeOkvealQZYysxkGEg4m4=
+SIZE (wget-1.21.1.tar.gz) = 4884887
Index: patches/patch-Makefile_in
===
RCS file: /cvs/ports/net/wget/patches/patch-Makefile_in,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 patch-Makefile_in
--- patches/patch-Makefile_in 4 Apr 2019 10:36:45 - 1.2
+++ patches/patch-Makefile_in 26 Jun 2021 09:10:48 -
@@ -3,12 +3,12 @@ $OpenBSD: patch-Makefile_in,v 1.2 2019/0
Index: Makefile.in
--- Makefile.in.orig
+++ Makefile.in
-@@ -1469,7 +1469,7 @@ distuninstallcheck_listfiles = find . -type f | \
+@@ -1644,7 +1644,7 @@ distuninstallcheck_listfiles = find . -type f | \
ACLOCAL_AMFLAGS = -I m4
# subdirectories in the distribution
--SUBDIRS = lib src doc po util fuzz tests testenv
-+SUBDIRS = lib src doc po util tests testenv
+-SUBDIRS = lib src doc po gnulib_po util fuzz tests testenv
++SUBDIRS = lib src doc po gnulib_po util tests testenv
EXTRA_DIST = MAILING-LIST \
msdos/config.h msdos/Makefile.DJ \
msdos/Makefile.WC ABOUT-NLS \
Index: patches/patch-doc_wget_texi
===
RCS file: /cvs/ports/net/wget/patches/patch-doc_wget_texi,v
retrieving revision 1.16
diff -u -p -u -p -r1.16 patch-doc_wget_texi
--- patches/patch-doc_wget_texi 21 Feb 2019 22:32:31 - 1.16
+++ patches/patch-doc_wget_texi 26 Jun 2021 09:10:48 -
@@ -2,7 +2,7 @@ $OpenBSD: patch-doc_wget_texi,v 1.16 201
Index: doc/wget.texi
--- doc/wget.texi.orig
+++ doc/wget.texi
-@@ -190,7 +190,7 @@ gauge can be customized to your preferences.
+@@ -195,7 +195,7 @@ gauge can be customized to your preferences.
Most of the f