In the latest version of ports-mgmt/portmaster (3.19_8) match_flavor() is called by origin_from_pdb() before match_flavor() is defined. This causes some functionality to break, namely the detection of dependent ports to rebuild when using the -r option.
Created attachment 193549 [details] Move match_flavor() to before its first use This patch should be applied to the installed portmaster script in /usr/local/sbin, since portmaster recursively invokes itself and a patched copy might thus lead to the unpatched original version being executed in /usr/local/sbin ...
Please apply the patch to the actual portmaster script to make sure that the patched version is actually being tested (see comment added to the attachment).
A commit references this bug: Author: se Date: Sun May 20 10:56:14 UTC 2018 New revision: 470451 URL: https://svnweb.freebsd.org/changeset/ports/470451 Log: Fix recursive building of ports (-r option). The match_flavor function was called before being defined. The issue and cause has been reported by Herbert J. Skuhra. (Thanks!) PR: 227882 Reported by: Herbert J. Skuhra <herbert@gojira.at> Approved by: antoine (implicit) Changes: head/ports-mgmt/portmaster/Makefile head/ports-mgmt/portmaster/files/patch-portmaster
Forgotten to close?