Skip to content

cargo-c.recipe: Force openssl-sys to pick our openssl, not brew and add a Cargo.lock file

Nirbheek Chauhan requested to merge nirbheek/cerbero:cargo-c-brew-ssl into main

The plague of Rust -sys crates continues. The openssl-sys crate UNCONDITIONALLY looks into the brew prefix to find openssl libs. It doesn't bother using pkg-config or some other standard mechanism.

Thankfully, it first looks at OPENSSL_LIB_DIR and OPENSSL_INCLUDE_DIR so let's set that.

Also add a cargo.lock file to fix build failures in stable branches: https://gitlab.freedesktop.org/gstreamer/cerbero/-/jobs/48046289

Edited by Nirbheek Chauhan

Merge request reports