Linphone 4.1.1 no longer builds with updated support libs. Udate to latest tagged version of linphone-desktop.
PR: 264734
Differential D35805
net/linphone: Update to 4.4.8 zirias on Jul 13 2022, 1:44 PM. Authored by Tags None Referenced Files
Subscribers
Details
Linphone 4.1.1 no longer builds with updated support libs. Udate to latest tagged version of linphone-desktop. PR: 264734
Diff Detail
Event TimelineComment Actions Avoid rebuilding during stage phase. There's a lot of hacking the cmake build system necessary to convince it to Tested on 13.1-RELEASE/amd64, phone calls are working. poudriere testport: Comment Actions FYI - FreeBSD 14-current /bin/mkdir -p /usr/img/freebsd.ports/net/linphone/work/.build CMake Warning (dev) at /usr/local/share/bctoolbox/cmake/bctoolboxTargets.cmake:54 (add_library): ADD_LIBRARY called with SHARED option but the target platform does not support dynamic linking. Building a STATIC library instead. This may lead to problems. Call Stack (most recent call first): /usr/local/share/bctoolbox/cmake/bctoolboxConfig.cmake:56 (include) CMakeLists.txt:24 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at /usr/local/share/bctoolbox/cmake/bctoolboxTargets.cmake:61 (add_library): ADD_LIBRARY called with SHARED option but the target platform does not support dynamic linking. Building a STATIC library instead. This may lead to problems. Call Stack (most recent call first): /usr/local/share/bctoolbox/cmake/bctoolboxConfig.cmake:56 (include) CMakeLists.txt:24 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. Comment Actions Yes, something is fishy with the cmake magic in bctoolbox, but it doesn't seem to have any effect. It builds one binary (linphone) and one shared lib (libapp-plugin.so) as it should. Comment Actions It bails out like this currently. CMake Error at /usr/local/share/bctoolbox/cmake/bctoolboxCMakeUtils.cmake:146 (message): invalid git describe version: '' Call Stack (most recent call first): build/CMakeLists.txt:49 (bc_compute_full_version) Comment Actions I can't reproduce that. bc_compute_full_version should never be called, it's patched out by the very first line of post-patch, I also checked the actual commit here: https://cgit.freebsd.org/ports/commit/?id=46dfe1ded5c6b4a625dc6ff5138b64244e69ad8c See also my testport log for -CURRENT (which *does* include the strange shared lib warnings) here: https://home.palmen-it.de/testbuilder/data/14a-default/2022-07-16_09h34m48s/logs/linphone-4.4.8,1.log Comment Actions I'm not sure exactly what is going on, but this patch fixes it on my side: diff --git a/net/linphone/Makefile b/net/linphone/Makefile index 4f64d36ec09e..024e5350a619 100644 --- a/net/linphone/Makefile +++ b/net/linphone/Makefile @@ -40,6 +40,7 @@ post-patch: -e 's/set(FULL_VERSION /&${PORTVERSION}/' \ -e 's/INSTALL_RPATH_USE_LINK_PATH/BUILD_WITH_INSTALL_RPATH/' \ -e '/add_subdirectory.*linphone_package/d' \ + -e '/add_subdirectory.*build/d' \ -e '/add_custom_command/d' -e '/deployqt_hack/d' \ ${WRKSRC}/CMakeLists.txt @${REINPLACE_CMD} 's/LINPHONE_QT_GIT_VERSION/"${PORTVERSION}"/' \ Yes, the main net/linphone/work/linphone-desktop-da40aed848da44e851d67a2039e7e966c5257d3b/linphone-app/CMakeLists.txt gets patches, but there is one more instance in net/linphone/work/linphone-desktop-da40aed848da44e851d67a2039e7e966c5257d3b/linphone-app/build/CMakeLists.txt which didn't get patched. The issue happens when linphone is built straight off a git checkout. Comment Actions And, looking at upstream sources again, this patch looks perfectly sane. We don't need this "build" subdir, it seems its only purpose is building some packages with bundled deps. Still I'm puzzled all my testport runs were fine without it, that's very strange. Comment Actions I think this still needs a few "testport" runs? My builder is currently busy... so, please feel free. I'm still puzzled why it affects you an none of my testports, but I'm pretty sure it won't hurt! Comment Actions If you want to run it through a bit more tests, no issue. My builder is currently down due to two missing fans for the extra CPU :-) Comment Actions @hselasky I will do so ASAP (read: as soon as my builder machine is done rebuilding my package repos). FYI, in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264734 a very plausible explanation emerged: the build only fails when git is installed, which will never be the case in a poudriere jail. Comment Actions See the original PR here: https://bugs.freebsd.org/264734 Just today, I pinged @bofh on IRC about it ;) |