Index: documentation/content/en/books/developers-handbook/policies/_index.adoc =================================================================== --- documentation/content/en/books/developers-handbook/policies/_index.adoc +++ documentation/content/en/books/developers-handbook/policies/_index.adoc @@ -87,18 +87,18 @@ Some parts of the FreeBSD distribution consist of software that is actively being maintained outside the FreeBSD project. For historical reasons, we call this _contributed_ software. -Some examples are sendmail, gcc and patch. +Some examples are LLVM, man:zlib[3], and man:patch[1]. -Over the last couple of years, various methods have been used in dealing with this type of software and all have some number of advantages and drawbacks. -No clear winner has emerged. +The accepted procedure for managing contributed software involves creating a _vendor branch_, where the software can be imported cleanly (without modification) and updates can be tracked in a versioned manner. +Then, the content of the vendor branch is applied to the source tree, possibly with local modifications. +FreeBSD-specific build glue is maintained in the source tree, not in the vendor branch. -Since this is the case, after some debate one of these methods has been selected as the "official" method and will be required for future imports of software of this kind. -Furthermore, it is strongly suggested that existing contributed software converge on this model over time, as it has significant advantages over the old method, including the ability to easily obtain diffs relative to the "official" versions of the source by everyone (even without direct repository access). -This will make it significantly easier to return changes to the primary developers of the contributed software. +Depending on their needs and complexity, individual software projects may deviate from this procedure, at the discretion of the maintainer. +The exact steps required to update a particular piece of contributed software should be recorded in a file named `FREEBSD-upgrade`; +for example, for link:https://cgit.freebsd.org/src/tree/contrib/libarchive/FREEBSD-upgrade[libarchive]. -Ultimately, however, it comes down to the people actually doing the work. -If using this model is particularly unsuited to the package being dealt with, exceptions to these rules may be granted only with the approval of the core team and with the general consensus of the other developers. -The ability to maintain the package in the future will be a key issue in the decisions. +Contributed software is usually placed in the `contrib/` subdirectory of the source tree, with some exceptions. +Contributed software used only by the kernel lives under `sys/contrib/`. [NOTE] ====