I can build a port using an overlay:
poudriere bulk -vv -C -j 123amd64 -p default -O mine devel/ex_ample
But I can't distclean it. It appears that distclean doesn't account for overlays.
Here I attempt to distclean with the default ports tree:
# poudriere distclean devel/ex_ample
[00:00:01] Loading MOVED for /usr/local/poudriere/ports/default
[00:00:02] Gathering all expected distfiles for ports tree 'default'
[00:00:02] Error: Nonexistent origin listed: devel/ex_ample
[00:00:02] Error: Fatal errors encountered gathering distfiles metadata
Here I attempt to distclean with my ports tree:
# poudriere distclean -p mine devel/ex_ample
[00:00:00] Gathering all expected distfiles for ports tree 'mine'
[00:00:00] Warning: (devel/ex_ample): make: "/usr/share/mk/bsd.port.mk" line 32: Cannot open /usr/local/poudriere/ports/mine/Mk/bsd.port.mk
[00:00:00] Gathering list of actual distfiles
[00:00:00] Error: Something went wrong. All distfiles would have been removed.
Should poudriere distclean accept -O as well?
Name : poudriere-devel
Version : 22.214.171.12411130
Installed on : Wed May 4 07:32:09 2022 UTC
Origin : ports-mgmt/poudriere-devel
Architecture : FreeBSD:12:amd64
Prefix : /usr/local
BASH : on
CERTS : on
DIALOG4PORTS : on
EXAMPLES : on
QEMU : off
ZSH : on
repo_type : binary
repository : FreeBSD
I created a GitHub issue, thinking that may be more appropriate: https://github.com/freebsd/poudriere/issues/998
My understanding of FreeBSD PR workflow is that I should leave this PR open until that issue is resolved. I am new though, so please correct me if I'm wrong.