On Fri, Mar 10, 2023 at 03:09:42PM +0000, Klemens Nanni wrote:
> transmission's cmake code finds and prints libevent2's 2.1.12, but ends up
> always using base libevent.so.* which I have not been able to fix.
>
> Looks like transmission wants to link against a single -levent like base,
> but ports only has libevent_* libraries.
>
> Perhaps this fixes itselt when devel/libevent2 switches to cmake and
> provides .cmake files or consumers, maybe this needs more fixing.
>
> For now, I'd just build the bundled copy as you already found out.
libevent2's CMakeLists.txt has this comment:
# library exists for historical reasons; it contains the contents of
# both libevent_core and libevent_extra. You shouldn’t use it; it may
# go away in a future version of Libevent.
devel/libevent2 currently builds with autoconf and does not ship this -levent.
Switching to cmake enables it (by default), but seeing this comment now,
I recommend opening an issue with transmission and getting their code to use
event_* properly.