Checking for pkg-plist issues shows strange error message

From: Matthias Fechner <>
Date: Fri, 05 Aug 2022 07:21:35 UTC
Dear all,

I currently try to integrate a patch I received for devel/gitaly port to 
use not the git from ports but an internal git version that includes 
some fixes which are maybe to risky to include to the devel/git port.

The patch itself looks fine:

But if I do a test build with poudriere I get something strange:

===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: @dir %%DATADIR%%/share/git-core/templates/branches
===> Checking for items in pkg-plist which are not in STAGEDIR
Error: Missing: @dir %%DATADIR%%/share/git-core/templates/branches
===> Error: Plist issues found.

The full log is here:

Is this a bug in this pkg-list check?
I checked the devel/git port and it has the same line, but defined in pkg-plist and not in a dynamic PLIST.

Thanks a lot for any feedback.



"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook