Bug 245840

Summary: ports-mgmt/portmaster: -R is too agressive in removing PM_UPGRADE_DONE_FLAG
Product: Ports & Packages Reporter: aryeh.friedman
Component: Individual Port(s)Assignee: Stefan E├čer <se>
Status: Open ---    
Severity: Affects Only Me CC: se
Priority: --- Keywords: needs-qa
Version: LatestFlags: koobs: maintainer-feedback? (se)
koobs: merge-quarterly?
Hardware: Any   
OS: Any   

Description aryeh.friedman 2020-04-23 04:55:27 UTC
I did the following:

portmaster -Rafd

Died on devel/autoconf-archive due to arg list being too long (not the issue I am reporting but still an issue)

So in order to correctly get autoconf-archive correctly installed I did:

portmaster -Rd devel/autoconf-archive

Completes as expected.   Now I rerun portmaster -Rafd and none of the 200+ ports already built from the first are marked as already done.

So I then do:

ls /var/db/pkg/*/PM_UPGRADE_DONE_FLAG
ls: No match.

Therefore I have to assume that portmaster -Rd devel/autoconf-archive rm'ed all the previous PM_UPGRADE_DONE_FLAG's leading portmaster to incorrectly assume no ports had been built in the previous run of portmaster -Rafd

System info:

portmaster --version

===>>> Version 3.19_25

uname -a
FreeBSD neomarx 12.1-RELEASE-p4 FreeBSD 12.1-RELEASE-p4 r360200 GENERIC  amd64