The "not needed" error is because wxwidgets is listed in LIB_DEPENDS but there's no WANTLIB coming from it. This means that it will _not_ be recorded in the package as a runtime dependency so if somebody pkg_add's it, they won't have wxwidgets installed, and functions trying to call into that library at runtime will crash.

It's not because it's in an unversioned shared library. Those are often present in ports using loadable modules (compiled extensions for languages, or optional plugins for database support for various software, etc) and there's nothing special about WANTLIB/LIB_DEPENDS in these.

Is it using dlopen() to load wxwidgets lib/s? If so then add a WANTLIB on the relevant lib/s with a "uses dlopen" comment.

--
 Sent from a phone, apologies for poor formatting.

On 8 February 2025 03:31:33 Klemens Nanni <k...@openbsd.org> wrote:

06.02.2025 21:15, Martijn van Duren пишет:
Yep... I accidentally placed it in RUN_DEPENDS, instead of LIB_DEPENDS.
These libraries are linked against libAtlasUI.so, but make package
compains with:
LIB_DEPENDS x11/wxWidgets not needed for games/0ad/base ?
Not sure how this is supposed to be resolved, or if it can be ignored.

Probably because libAtlasUI.so is not a SHARED_LIBS entry,
so I'd ignore it for now.


And I did made the changes for patch-build_resources_0ad_sh, but
it got lost when picking the new and modified files.

Passes 'make package' now.

-USE_NOBTCFI = Yes

83819 pyrogenesis PSIG SIGILL caught handler=0x888064ec10 mask=0<> code=ILL_BTCFI addr=0x88c94e23a0 trapno=21

With that kept I reach the start menu, but without sound:

WARNING: No audio device was found.

OK kn, much better than a broken port;  the rest can be done in-tree.

Reply via email to