Remove *.orig after patching.
Created attachment 269782 [details] patch
(In reply to Craig Leres from comment #1) Hi Craig, I'm building with your patch now to test. Should every port that has patches do this, and if so, shouldn't it be built into the patch stage?
LGTM
(In reply to Einar Bjarni Halldórsson from comment #2) I would guess most ports compile from source code and having stray .orig files in WRKSRC usually doesn't result in them being included in the package. Python ports are particularly prone to installation of .orig files since the install step is usually automatic. There are other ways to deal with this cleanup. For example you could remove them from STAGEDIR in a post-stage rule. Or if you are copying content to be installed using COPYTREE_BIN or COPYTREE_SHARE you might filter (e.g. "! -name *.orig").
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=67c45deca2eb9f69417c208ec18c505aa0241b61 commit 67c45deca2eb9f69417c208ec18c505aa0241b61 Author: Craig Leres <leres@FreeBSD.org> AuthorDate: 2026-04-15 17:03:34 +0000 Commit: Craig Leres <leres@FreeBSD.org> CommitDate: 2026-04-15 17:03:34 +0000 mail/mailman3: Clean up orig patched files so they are not installed PR: 294532 Approved by: einar (maintainer) mail/mailman3/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)