Created attachment 269366 [details] Proposed patch After applying the attached mail/fetchmail passes 'poudriere testport' on amd64 under 15.0, 14.4, 14.3, and 13.5 for the following configurations: - Default settings - ssl=base, GSSAPI_MIT - ssl=base, GSSAPI_NONE - ssl=openssl, GSSAPI_MIT - ssl=openssl, GSSAPI_NONE - WolfSSL - no NLS - no DOCS mail/fetchmailconf passes 'poudriere testport' on amd64 under 15.0, 14.4, 14.3, and 13.5 with default settings. Built package also works in my testing. Changes since 6.6.1 (reproduced from upstream NEWS): fetchmail-6.6.3 (released 2026-04-01, 32388 LoC): ## COMPATIBILITY: * fetchmail can now be built with OpenSSL 4.0.0 (tested as of -beta1). fetchmail-6.6.2 (released 2025-12-09, 32386 LoC): ## BUGFIX: * fetchmail 6.6.0 and 6.6.1 could not be configured without SSL, it would break compiling sink.c. Fix compilation. Report by Toralf Förster, analysis and different patch suggested by Holger Hoffstätte, fixes #86. https://bugs.gentoo.org/967258 and https://gitlab.com/fetchmail/fetchmail/-/issues/86
Hi, Thank you for your submission. I have tested build of the patch in Poudriere (14.3-RELEASE-p9, amd64, main(c927d063a7ee)) and it seems OK. Maybe while we are here, we can replace <bsd.port.pre.mk> and <bsd.port.post.mk> with <bsd.port.options.mk> and <bsd.port.mk>. I need to ask for approval from my mentors first. Thanks. diff --git a/mail/fetchmail/Makefile b/mail/fetchmail/Makefile index 58cb8bb189ff..97839d8f420d 100644 --- a/mail/fetchmail/Makefile +++ b/mail/fetchmail/Makefile @@ -105,7 +105,7 @@ post-install-DOCS-on: .endif -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> .if ${PORT_OPTIONS:MOPIE} && ${MASTERDIR} == ${.CURDIR} && ${OPSYS} == FreeBSD . if ${OSVERSION} >= 1400072 @@ -114,4 +114,4 @@ CPPFLAGS+= -I${LOCALBASE}/include . endif .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk>
Try this: +USES+= localbase:ldflags +LDFLAGS+= -Wl,--as-needed -LDFLAGS+= -L${LOCALBASE}/lib -Wl,--as-needed -CPPFLAGS+= -I${LOCALBASE}/include
(In reply to Vladimir Druzenko from comment #2) Yes, this way works too.
(In reply to Yusuf Yaman from comment #3) Add this to patch too.
Created attachment 269510 [details] 0001-mail-fetchmail-Update-6.6.1-6.6.3.patch (In reply to Vladimir Druzenko from comment #4) Okay.
LGMT. If the maintainer has no objections, then you can commit.
Comment on attachment 269510 [details] 0001-mail-fetchmail-Update-6.6.1-6.6.3.patch Looks good to me, builds correctly in poudriere, built package works in my testing. I have no objections - thank you for the improvements!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=1acb7a259430803e8efda6a8c35025119d99ac53 commit 1acb7a259430803e8efda6a8c35025119d99ac53 Author: Corey Halpin <chalpin@cs.wisc.edu> AuthorDate: 2026-04-05 17:01:49 +0000 Commit: Yusuf Yaman <nxjoseph@FreeBSD.org> CommitDate: 2026-04-08 18:49:28 +0000 mail/fetchmail: Update 6.6.1 => 6.6.3 While here: * Use <bsd.port.options.mk> instead. * Add USES=localbase:ldflags instead. Changelog: * Fix compilation without SSL. * Can now be built with OpenSSL 4.0.0. https://gitlab.com/fetchmail/fetchmail/-/blob/6.6.3/NEWS?ref_type=tags PR: 294251 Reported by: Corey Halpin <chalpin@cs.wisc.edu> (maintainer) Approved by: vvd (co-mentor) mail/fetchmail/Makefile | 11 +++++------ mail/fetchmail/distinfo | 6 +++--- 2 files changed, 8 insertions(+), 9 deletions(-)
(In reply to Vladimir Druzenko from comment #6) Thank you. (In reply to Corey Halpin from comment #7) Thanks. Committed.