crates-build-env icon indicating copy to clipboard operation
crates-build-env copied to clipboard

Missing library libhandy

Open floers opened this issue 4 years ago • 7 comments

Building a crate with a dependency to the libhandy crate fails on docs.rs: https://docs.rs/crate/gstore/0.2.4/builds/358169

Affected crates: gstore Ubuntu 20.04 packages to install: libhandy-1-0

floers avatar Mar 05 '21 21:03 floers

@floers are you interested in adding it yourself? https://forge.rust-lang.org/docs-rs/add-dependencies.html

jyn514 avatar Mar 05 '21 21:03 jyn514

Actually I am! I will try it this weekend :)

floers avatar Mar 05 '21 21:03 floers

I just realized the libhandy package is not available in 20.04 focal which the dockerfile is based on. I guess that means I have to wait for the next LTS release?

floers avatar Mar 06 '21 08:03 floers

Yes, unfortunately. You could try changing your build.rs so it doesn't link to libhandy, or vendoring it and building from source.

jyn514 avatar Mar 06 '21 14:03 jyn514

Ok I'll try to build it from source. Thank you for your help :). Should I close this issue now? Is there a place to keep track of libraries to add when the docs.rs machine is upgraded?

floers avatar Mar 07 '21 15:03 floers

This issue works fine to track upgrades that need a new OS version.

jyn514 avatar Mar 07 '21 15:03 jyn514

I think this should be possible after https://github.com/rust-lang/crates-build-env/pull/120 :)

jyn514 avatar Jan 19 '23 20:01 jyn514