...

/

Ensure Build Systems Install to the Right Location

Ensure Build Systems Install to the Right Location

Understand the details of installing packages into the right directories.

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 means that the build system will try to install content to /usr/local. While this may be correct for installing packages without the package manager, it’s the wrong location when installing it with our package manager (apk ...