clux / muslrust

Docker environment for building musl based static linux rust binaries
MIT License
965 stars 88 forks source link

Unable to build prost due to old version of cmake on ubuntu:xenial #91

Closed luke-biel closed 2 years ago

luke-biel commented 2 years ago

Cmake-rs (https://github.com/rust-lang/cmake-rs/issues/131) and by dependency prost has recently bumped cmake dependency to 3.12 (with use of --parallel cmd line flag). As muslrust uses ubuntu 16.04, it's apt repositories only support downloading 3.5.1.

An os version bump would be nice there.

clux commented 2 years ago

Ah, damn. Thanks for the heads up. Last I checked that was actually quite complicated due to #21, and I won't have time to experiment with the next two weeks.

I think there might be some cmake backports available. If you are able, I can take a PR doing something like that because that's likely to be a lot simpler.

luke-biel commented 2 years ago

There's no rush in this case, I wanted to inform about this because cmake-rs seems like dependency that is used by many crates.

Workaround in my case was to fetch the repo and manually change ubuntu to jammy. Build went fine and all crates compiled. It's weird, because we have ring in Cargo.lock. No rocket though, as servers run on axum.

clux commented 2 years ago

have upgraded today, new images are built with jammy.

admittedly this is a bit of a sharp break because we have no tagging scheme to distinguish between xenial andjammy, but hopefully it's something that's not too hard to work around.