Closed
Description
Versions
- Python: N/A
- OS: Linux
- Kivy: N/A
- Cython: N/A
Description
We often receive bug reports that ends up being related to a missing system dependency.
Often the stacktrace is not obvious on what's missing.
For instance see:
- Unable to compile. #1710, apk build error: libtinfo.so.5: cannot open shared object file: No such file or directory #1858, Building failes at compiling openssl[armeabi-v7a] buildozer#841 (libtinfo5 and deps)
- Discussion: should the default recipe set for python3 unconditionally include libffi to build ctypes? What about sqlite3 and other core modules? #1576 (libffi-dev and other deps)
- Matplotlib recipe depends on local environment #1900 (matplotlib requires libfreetype6-dev, pkg-config and libpng12-dev)
- will update this list as I come across similar issues
In order to save developers troubleshooting time, I think we could make some optional system requirements prechecks using e.g. pkg-config and raise a warning detected missing system dependency.
This would be a first approach in tempting to mitigate these issues.
Also at first we could start with a per-recipe specific approach until we find a maybe a more generic way e.g. Recipe.system_dependencies
member or something.