1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/diaspora_ynh.git synced 2024-09-03 18:26:13 +02:00

bookworm: fix compilation of openssl by rbenv

This moves compilation options to RUBY_CONFIGURE_OPTS because it is not supported by openssl, built by rbenv.

The reason why openssl is built is because the ruby version needed by
diaspora is now quite old. Maybe we'll need to revisit that in the
future.
This commit is contained in:
Augustin Trancart 2023-07-26 18:42:41 +02:00 committed by Félix Piédallu
parent b226866353
commit 2fa236e80f

View file

@ -216,7 +216,7 @@ ynh_install_ruby () {
final_ruby_version=$ruby_version final_ruby_version=$ruby_version
fi fi
ynh_print_info --message="Installing Ruby-$final_ruby_version" ynh_print_info --message="Installing Ruby-$final_ruby_version"
CONFIGURE_OPTS="--disable-install-doc --with-jemalloc" MAKE_OPTS="-j2" rbenv install --skip-existing $final_ruby_version > /dev/null 2>&1 RUBY_CONFIGURE_OPTS="--disable-install-doc --with-jemalloc" MAKE_OPTS="-j2" rbenv install --skip-existing $final_ruby_version > /dev/null 2>&1
# Store ruby_version into the config of this app # Store ruby_version into the config of this app
ynh_app_setting_set --app=$YNH_APP_INSTANCE_NAME --key=ruby_version --value=$final_ruby_version ynh_app_setting_set --app=$YNH_APP_INSTANCE_NAME --key=ruby_version --value=$final_ruby_version