Packages building tweaks

Build directory

Packages are building in /sources directory. You can use this directory as mountpoint to extend disk space amount.

Second compilation of meson/ninja programs can lead to errors. To avoid this errors build directory should be cleared. You can place .cleanup empty file in /sources directory to delete derectory before extracting source package.

Multithreading

To speedup compilation multithreading can be used. For example, to enable building using four CPU threads write in /etc/profile this directive:

export MAKEFLAGS="-j4"

After editing /etc/profile reboot is needed for applying changes.

Some packages don't support multithreading. To compile this application you can use command before compilation:

export MAKEFLAGS="-j1"

Swap partition

Sometimes is needed to build huge source packages that require more memory than your device have. Try to use swap partition with command like:

swapon /dev/vda2