roehling / postsrsd

Postfix Sender Rewriting Scheme daemon
319 stars 38 forks source link

Problem with detect libconfuse #162

Open tczaude opened 9 months ago

tczaude commented 9 months ago

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 commented 9 months ago

Try passing -DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS to cmake

tczaude commented 9 months ago

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 commented 3 months ago

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