Ensure Build Systems Install to the Right Location
Understand how common build systems like Makefile, CMake, and meson default to incorrect installation paths on Alpine Linux. Learn to specify correct installation prefixes to comply with Alpine's Filesystem Hierarchy Standard, ensuring packages install to proper locations for system management.
We'll cover the following...
We'll cover the following...
Preface
Most projects that we may package as APKBUILD have some build system, like a Makefile, CMake, or meson. By default, these systems don’t necessarily install to the correct locations that are defined by the Alpine FHS. That means that we have to explicitly specify what location they should be installed to.
Common problems
By default, most build systems assume that user installs are done, not system installs. This ...