On Tue, Mar 20, 2018 at 11:18:06PM -0400, Patrick Marchand wrote: > So I'm trying to build pijul (rust vcs based on patch theory) but it > requires rust-openssl, which only supports the latest release of > libressl (2.6). Is there a quick fix to build software that requires > an older libressl than what is currently used in snapshots? Or should > I try to patch the rust-openssl source code myself.
lang/rust has an internal copy of rust-openssl (it is a cargo dependency). There is a patch on rust-openssl to force the build using the latest suppported version (see lang/rust/patches/patch-src_vendor_openssl-sys_build_rs). The method itself is a bit fragile, as it will depend on: - state of libressl itself (API or ABI breaking changes) - usage of rust-openssl (usage of previous broken changes) Running testsuite is usually a good method to check breakage. For me, rust FFI is a bit a shame: it is a *copy* of C headers, written and maintained in Rust language. It is good for crosscompilation (as Rust know how to build stuff without any C headers), but it is awful to maintain and keep up-to-date. -- Sebastien Marie

