cardano-bsd-alliance/freebsd-ports-cncli

autotools-0.2.5/src/lib.rs fails build: 'configure.ac' is required

Closed this issue · 4 comments

  1. There is some logic in the Rust app to grab sodium via github. I commented that out and building sodium as part of the port instead. Currently testing building the port with:
    GH_ACCOUNT= cardano-bsd-alliance DISTVERSION= v5.0.3d ( that tag has git command commented out ): https://github.com/cardano-bsd-alliance/cncli/blob/bsdbuild/build.rs

  2. The current issue: build fails with:
    image

Now that i'm looking at the code again, I think all is needed is to comment out this code...
#[cfg(not(feature = "libsodium-sys"))]
{
let libsodium = autotools::Config::new("contrib/libsodium/").reconf("-vfi").build();
println!("cargo:rustc-link-search=native={}", libsodium.join("lib").display());
println!("cargo:rustc-link-lib=static=sodium");
}

Nope, now complains about missing lib:
image

Okay, setting default = ["libsodium-sys"] in Cargo.toml did the trick, but of course now another issue... This port is lots of fun!

image

Well, build is fixed! It seems it does not build with ssl=base but will build with ssl=libressl for example.

image