Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with detect libconfuse #162

Open
tczaude opened this issue Oct 5, 2023 · 3 comments
Open

Problem with detect libconfuse #162

tczaude opened this issue Oct 5, 2023 · 3 comments

Comments

@tczaude
Copy link

tczaude commented Oct 5, 2023

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

@roehling
Copy link
Owner

roehling commented Oct 5, 2023

Try passing -DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS to cmake

@tczaude
Copy link
Author

tczaude commented Oct 6, 2023

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

@ametzler
Copy link

ametzler commented Apr 13, 2024

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:

[EDIT sometime later]: Nevermind, there is
-DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants