hexpm/bob

Provide Ubuntu 22.04 (jammy) builds

Closed this issue · 4 comments

I have confirmed in a fresh lxc Ubuntu 22.04 (jammy) container that the apt dependencies listed in 20.04 dockerfile are also working for building Erlang OTP-24.3.3 (without jinterface and wx webview support I think).

I followed steps from build_otp_ubuntu.sh, and also successfully extracted the resulting archive with minimal install, and was able to compile Elixir and run iex

Can you open a PR that adds Ubuntu 22.04?

👍🏻 I can work on it sometime this week, should be mainly copy&paste

The big change in Ubuntu 22.04 is that it uses OpenSSL 3.0 by default. I was able to compile Erlang/OTP 24.2 (not earlier ones) without extra changes to the Ubuntu 22.04 system (see notes for crypto in 24.2). This support is experimental with limited crypto API support. This was improved in Erlang/OTP 24.3 crypto and today's Erlang/OTP 25.0 crypto (but it's still without custom engines support).

For Ubuntu 22.04 docker builds, I think (in theory) we could install OpenSSL 1.1 from source, in a custom location, and pass it when building erlang with the --with-ssl=PATH option. But I don't know if it's feasible for non-docker ubuntu builds (I think it's linked by Erlang/OTP dynamically).

To sum up, I think it makes sense to support only Erlang/OTP 24.2+, what do you think? Or should I look into building OpenSSL 1.1?

Thanks for investigating. I agree, I don't want to support building packages from source.