Bug 294532 - mail/mailman3: Clean up orig patched files so they are not installed
Summary: mail/mailman3: Clean up orig patched files so they are not installed
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Craig Leres
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-04-14 22:03 UTC by Craig Leres
Modified: 2026-04-15 17:05 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (einar)


Attachments
patch (497 bytes, patch)
2026-04-14 22:03 UTC, Craig Leres
einar: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Leres freebsd_committer freebsd_triage 2026-04-14 22:03:13 UTC
Remove *.orig after patching.
Comment 1 Craig Leres freebsd_committer freebsd_triage 2026-04-14 22:03:55 UTC
Created attachment 269782 [details]
patch
Comment 2 Einar Bjarni Halldórsson 2026-04-15 09:05:44 UTC
(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?
Comment 3 Einar Bjarni Halldórsson 2026-04-15 09:25:05 UTC
LGTM
Comment 4 Craig Leres freebsd_committer freebsd_triage 2026-04-15 16:59:28 UTC
(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").
Comment 5 commit-hook freebsd_committer freebsd_triage 2026-04-15 17:04:26 UTC
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(-)