On 2024-07-10, Rob Schmersel <[email protected]> wrote:
> Hi,
>
> Looking for advice on how one can build rust programs that require
> openSSL support on OpenBSD -current
>
> No matter what I try I keep coming back to errors like:
>
>  cargo:libressl_version_number=3090000f
>
>   --- stderr
>   thread 'main' panicked at
>   
> /home/lobo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-sys-0.9.96/build/main.rs:334:5:
>
>
>   This crate is only compatible with OpenSSL (version 1.0.1 through
>   1.1.1, or 3), or LibreSSL 2.5 through 3.8.1, but a different version
>   of OpenSSL was found. The build is now aborting due to this version
>   mismatch.
>
> Or is it better to ask this on ports@?
>
> BR/Rob


This is handled automatically for things in ports using the framework
you get with MODULES=devel/cargo.

Otherwise you will need to patch openssl-sys-*/build/main.rs to
loosen the version check.


-- 
Please keep replies on the mailing list.

Reply via email to