I did the following:
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: 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
===>>> Version 3.19_25
FreeBSD neomarx 12.1-RELEASE-p4 FreeBSD 12.1-RELEASE-p4 r360200 GENERIC amd64
Created attachment 224288 [details]
Do not always delete build status files after building a single port
The removal of the build done files is on purpose, so I do not think this is actually a bug (IOW, it works as designed).
I never use -R and cannot easily test the attached change for correctness (especially, whether it has unexpected side effects in different contexts).
I'm willing to apply the patch to the port, in case I get positive feedback on it. It has to be shown to work, and it should not have caused any issues over many portmaster runs with different sets of command line options.