Hi ports@, Today while committing otter-browser I noticed a weird behavior with portcheck. When running in /usr/ports/www/otter-browser it behaved as expected but when running on my commit tree in ~/ports/www/otter-browser it produced the following error output:
Error: unknown fragment SHARED at /usr/libdata/perl5/OpenBSD/Subst.pm line 109, <$fh> line 5. Error: unknown fragment SHARED at /usr/libdata/perl5/OpenBSD/Subst.pm line 109, <$fh> line 2. It took me some time to debug the issue. The error is not from the otter-port I was about to commit but from several dependencies that did have incorrect entries in their PLIST. The difference between the trees being that my commit tree didn't have the dependencies (ie. net/avahi with a %%SHARED%% entry in them) updated and portcheck seems to default to the relative root ports directory based on the current folder. The error report is quite deep in Subst.pm handle_fragment which is called from PkgCreate.pm. Is there a way to obtain the ports/package name or folder in a nice way inside handle_fragment? Adding a package name to the error report would make finding the offending dependencies much easier. Regards, Adam
