Re: plist-check not reporting orphaned files present in a @comment

From: Sergei Vyshenski <svysh.fbsd_at_gmail.com>
Date: Wed, 16 Aug 2023 18:22:49 UTC
Hi,

I had similar problems, if mode modifier is used in pkg-plist.
This line leads to error, if EXAMPLES is unset:
@(,,755) %%PORTEXAMPLES%%%%EXAMPLESDIR%%/bin/clca
This line goes without error, if EXAMPLES is unset:
%%PORTEXAMPLES%%@(,,755) %%EXAMPLESDIR%%/bin/clca

Regards, Sergei
On 8/16/2023 9:13 PM, Felix Palmen wrote:
> Hi all,
>
> I'm having unexpected trouble with plist-check. I have some custom
> PLIST_SUB expanding to "@comment " based on ${ARCH} and found that
> orphaned files from ${STAGEDIR} weren't properly reported.
>
> Then I tried to hardcode "@comment " in pkg-plist instead (to rule out
> possible issues with expansion) and they *still* were not reported,
> which seems very strange. Only when I removed the lines completely,
> plist-check correctly reported the orphaned files.
>
> The only "unusual" thing about the ports where this happened to me is
> that they use a custom ${PREFIX} (not ${LOCALBASE}). I didn't test yet
> whether this happens with default ${PREFIX} as well.
>
> Sure, I should dig into the framework and debug it, but right now, it
> would distract me from my ongoing project, so I thought I'd ask the list
> first whether anyone has an idea what could go wrong here ^^
>
> Cheers, Felix
>