pkg-static: dir '/usr/local/lib/compat/pkg' is missing

From: FreeBSD User <freebsd_at_walstatt-de.de>
Date: Fri, 28 Nov 2025 11:22:23 UTC
Rebuild of pkg stops with the error shown below. The required input hinders
unattended or almost unattended rebuild via portmaster in my case. 

How can this issue be resolved? '/usr/local/lib/compat/pkg' is missing on both recent
16-CURRENT and 15-STABLE. Do I miss something here?

Kind regards

oh

[...]
===>>> Creating a backup package for old version pkg-2.4.2_1
Creating package for pkg-2.4.2_1
pkg-static: dir '/usr/local/lib/compat/pkg' is missing
pkg-static: package creation failed

===>>> Package creation failed for pkg-2.4.2_1!

===>>> Ignore this error  [i]
===>>> Abort update       [a]
===>>> Retry              [r]

===>>> How would you like to proceed? [i]