mirror of
https://github.com/YunoHost-Apps/homeassistant_ynh.git
synced 2024-09-03 19:26:16 +02:00
Merge pull request #72 from YunoHost-Apps/testing
Fix missing libffi.so.7
This commit is contained in:
commit
975a3a8b28
6 changed files with 30 additions and 4 deletions
|
@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
|||
|
||||
Home automation platform
|
||||
|
||||
**Shipped version:** 2022.2.9~ynh1
|
||||
**Shipped version:** 2022.2.9~ynh2
|
||||
|
||||
**Demo:** https://demo.home-assistant.io
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
|
|||
|
||||
Plateforme domotique
|
||||
|
||||
**Version incluse :** 2022.2.9~ynh1
|
||||
**Version incluse :** 2022.2.9~ynh2
|
||||
|
||||
**Démo :** https://demo.home-assistant.io
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"en": "Home automation platform",
|
||||
"fr": "Plateforme domotique"
|
||||
},
|
||||
"version": "2022.2.9~ynh1",
|
||||
"version": "2022.2.9~ynh2",
|
||||
"url": "https://github.com/home-assistant/home-assistant",
|
||||
"upstream": {
|
||||
"license": "Apache-2.0",
|
||||
|
|
|
@ -41,6 +41,25 @@ myynh_create_dir () {
|
|||
[ -d "$1" ] || mkdir -p "$1"
|
||||
}
|
||||
|
||||
myynh_compile_libffi () {
|
||||
ynh_print_info --message="Building libffi..."
|
||||
|
||||
# Download
|
||||
wget "https://github.com/libffi/libffi/releases/download/v3.3/libffi-3.3.tar.gz" 2>&1
|
||||
|
||||
# Extract
|
||||
tar zxf libffi-3.3.tar.gz
|
||||
|
||||
# Install
|
||||
cd libffi-3.3
|
||||
ynh_exec_warn_less ./configure
|
||||
ynh_exec_warn_less make install
|
||||
ldconfig
|
||||
|
||||
#Exit
|
||||
cd ..
|
||||
}
|
||||
|
||||
# Install specific python version
|
||||
# usage: myynh_install_python --python="3.8.6"
|
||||
# | arg: -p, --python= - the python version to install
|
||||
|
|
|
@ -70,6 +70,10 @@ ynh_app_setting_set --app=$app --key=port --value="$port"
|
|||
ynh_script_progression --message="Installing dependencies..."
|
||||
|
||||
ynh_install_app_dependencies $pkg_dependencies
|
||||
|
||||
# Install libffi-3.3 if libffi.so.7 is missing (buster)
|
||||
[[ $(ldconfig -p | grep libffi.so.7) ]] || myynh_compile_libffi
|
||||
|
||||
myynh_install_python --python="$py_required_version"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -153,6 +153,9 @@ ynh_script_progression --message="Upgrading dependencies..."
|
|||
|
||||
ynh_install_app_dependencies $pkg_dependencies
|
||||
|
||||
# Install libffi-3.3 if libffi.so.7 is missing (buster)
|
||||
[[ $(ldconfig -p | grep libffi.so.7) ]] || myynh_compile_libffi
|
||||
|
||||
#=================================================
|
||||
# UPDATE A CONFIG FILE
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue