maintainer-feedback requested: [Bug 297 072] www/qt5-webengine: fails to link with "u nable to find library -levent" — unbundled libevent.gn missing lib_dirs
[email protected] Sun, 26 Jul 2026 23:39:11 +0000
| Newsgroups | gmane.comp.kde.freebsd |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
Bugzilla Automation <[email protected]> has asked freebsd-kde (group) <[email protected]> for maintainer-feedback: Bug 297072: www/qt5-webengine: fails to link with "unable to find library -levent" =E2=80=94 unbundled libevent.gn missing lib_dirs https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D297072 --- Description --- www/qt5-webengine fails to build under poudriere on FreeBSD 15.1-STABLE wit= h: FAILED: [code=3D1] host/character_data_generator ld.lld: error: unable to find library -levent c++: error: linker command failed with exit code 1 The system libevent LIB_DEPENDS is present and correctly resolved (libevent.so exists in the jail), but the linker invocation for this target has no -L flag pointing at /usr/local/lib at all, so it can't find the port's libevent. Root cause: build/linux/unbundle/libevent.gn (the stub used when the port unbundles libevent via replace_gn_files.py) sets: libs =3D [ "event" ] with no corresponding lib_dirs, so nothing tells the linker where to look for -levent. Every other unbundled system library appears to either use pkg_config() (which supplies -L automatically) or already has lib_dirs set; this one stub was missing it. Fix: add lib_dirs =3D [ "/usr/local/lib" ] to that source_set. Patch attached and confirmed to build successfully all the way through under poudriere, and the resulting package works correctly as a dependency for audio/musescore3 (tested: launches, note entry, audio playback all functional).