Bug 263946 - ports-mgmt/poudriere-devel: distclean doesn't work on overlay
Summary: ports-mgmt/poudriere-devel: distclean doesn't work on overlay
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Bryan Drewery
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-12 22:06 UTC by Pat Maddox
Modified: 2022-05-13 20:11 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pat Maddox 2022-05-12 22:06:03 UTC
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        : 3.3.99.20211130
Installed on   : Wed May  4 07:32:09 2022 UTC
Origin         : ports-mgmt/poudriere-devel
Architecture   : FreeBSD:12:amd64
Prefix         : /usr/local
Options        :
	BASH           : on
	CERTS          : on
	DIALOG4PORTS   : on
	EXAMPLES       : on
	QEMU           : off
	ZSH            : on
Annotations    :
	FreeBSD_version: 1203000
	repo_type      : binary
	repository     : FreeBSD
Comment 1 Pat Maddox 2022-05-12 22:50:50 UTC
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.