mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-11-16 09:41:28 -10:00
Since systemd 258, the target build no longer passes -Dopenssl=, so meson auto-detects OpenSSL. systemd 258+ requires the OpenSSL 3 provider API, which LibreSSL does not implement; the openssl.pc from LibreSSL (version 4.x) makes systemd's meson check for >=3.0.0 a false positive. So when libressl happens to be built before systemd, openssl support gets enabled and the build fails on OpenSSL 3 only headers: Run-time dependency openssl found: YES 4.3.4 ... ../src/shared/crypto-util.h:39:12: fatal error: openssl/core_names.h: No such file or directory Explicitly enable openssl support only when libopenssl is the selected provider and disable it otherwise, as is already done for the dns-over-tls option. As systemd-importd requires openssl support, make it select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL like homed, repart and sysupdate already do. This issue has been present since commitc38d7326e0("package/systemd: bump to 258.3"), which dropped -Dopenssl=enabled/disabled from the target configure options together with the gnutls support, and also switched importd from libgcrypt to openssl without forcing libopenssl. It therefore affects 2026.02 and later, including 2026.02.x. Fixes: https://autobuild.buildroot.org/results/a37f44f3df16d4f49297b2a24bad20b0ad603ef1 Fixes:c38d7326e0("package/systemd: bump to 258.3") Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> [Marcus: slightly clarify commit message around systemd requiring the openssl 3 provider API] Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>