Reaction score: 1,505
- Please consult Howto build ports with ports-mgmt/poudriere for a set of historically evolved issues concerning the ports tree.
- Please consult the well-known Recursive Make Considered Harmful for reasons why such tools do not handle the build process theoretically sound -- they do not use make(1) correctly to compute the graph of dependencies.
- These tools have other issues, mainly that building in the main system clutters your system with build-deps/build-tools you do not need otherwise.
- Instead, use ports-mgmt/poudriere or ports-mgmt/synth to build your ports.
These always build in a fresh, clean jail. Installing devel/ccache is optional but common practice, and integration into these tools will save a great amount of build time. The vast majority of ports build fine with ccache.
This adds a small amount of planing & taking a few decisions, and manual setup & configuration once (~1 hour). The benefit is much less hazzle when building ports until s/th basically changes in these two more advanced build tools.