Created attachment 252544 [details] patch from upstream commit fe9baa1 See https://github.com/curl/curl/issues/14344 for the issue reported upstream. This is a problem for some ports that rely on libcurl, such as net-p2p/transmission (see bug #280644), which consistently crashes due to the bug. While the issue was fixed upstream in commit fe9baa1, upstream has no immediate plans for a bugfix release, necessitating a patch here. The attached patch is from upstream.
I'd like to suggest using PATCHSITES syntax sugar [0] for upstream commit [1]. [0]: https://github.com/curl/curl/commit/3eec5afbd0b6377eca893c392569b2faf094d970 [1]: https://docs.freebsd.org/en/books/porters-handbook/makefiles/#porting-patchfiles
(In reply to Anton Saietskii from comment #1) Whoops, mixed up links, consider 0 as 1 and 1 as 0.
Created attachment 252567 [details] Alternative patch to Makefile An alternative patch that relies on PATCHSITES and PATCH_FILES.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=73d53fec20e010a33757af558db532d30c3a085b commit 73d53fec20e010a33757af558db532d30c3a085b Author: Rafe <mondo.debater_0q@icloud.com> AuthorDate: 2024-08-15 09:47:18 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-08-15 11:53:54 +0000 ftp/curl: Fix SIGPIPE initialization - Bump PORTREVISION for package change PR: 280653 Obtained from: https://github.com/curl/curl/commit/3eec5afbd0b6377eca893c392569b2faf094d970 ftp/curl/Makefile | 4 ++++ ftp/curl/distinfo | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-)
Committed. Thanks!
A commit in branch 2024Q3 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=e9f5d5cff998811f461ea1b3289eccc45e10eb22 commit e9f5d5cff998811f461ea1b3289eccc45e10eb22 Author: Rafe <mondo.debater_0q@icloud.com> AuthorDate: 2024-08-15 09:47:18 +0000 Commit: Mathieu Arnold <mat@FreeBSD.org> CommitDate: 2024-08-31 09:09:29 +0000 ftp/curl: Fix SIGPIPE initialization - Bump PORTREVISION for package change PR: 280653 Obtained from: https://github.com/curl/curl/commit/3eec5afbd0b6377eca893c392569b2faf094d970 (cherry picked from commit 73d53fec20e010a33757af558db532d30c3a085b) ftp/curl/Makefile | 4 ++++ ftp/curl/distinfo | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-)