postsrsd
postsrsd copied to clipboard
Problem with detect libconfuse
Hi i try bump postsrsd on Funtoo this based on Gentoo ebuild.
i recive error
--- LOG END ---
error: downloading 'https://github.com/libconfuse/libconfuse/releases/download/v3.3/confuse-3.3.tar.gz' failed
status_code: 6
status_string: "Couldn't resolve host name"
log:
--- LOG BEGIN ---
getaddrinfo(3) failed for github.com:443
Could not resolve host: github.com
btw connect to github working fine.
But solution is simplest Gentoo / Funtoo have confuse in repo and the question is how to force CMAKE to first check /usr/lib for the presence of this library
Try passing -DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS
to cmake
we have another output
CMake Error at /usr/share/cmake/Modules/FetchContent.cmake:1179 (message): No content details recorded for Confuse Call Stack (most recent call first): /usr/share/cmake/Modules/FetchContent.cmake:1662 (__FetchContent_getSavedDetails) /usr/share/cmake/Modules/FetchContent.cmake:1955 (FetchContent_Populate) cmake/utils.cmake:14 (FetchContent_MakeAvailable) CMakeLists.txt:198 (add_autotools_dependency)
and
ls /usr/lib/libconfuse.so*
/usr/lib/libconfuse.so /usr/lib/libconfuse.so.2 /usr/lib/libconfuse.so.2.1.0
Just to clarify: Afaict postsrsd's cmake setup downloads specific GIT snapshots of external dependencies at build time, without offering the option option to dynamically link against local copies in /usr/lib. This is a twofold problem for linux distributions:
- Builds should/must work without network access
- Vendored libraries increase the makes handling of security issues in these libraries very painful. (More details here: https://fedoraproject.org/wiki/Bundled_Libraries )
[EDIT sometime later]: Nevermind, there is -DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS