Chapter 12 Dos and Don'ts

Table of Contents
12.1 Introduction
12.4 Differentiating Operating Systems and OS Versions
12.5 __FreeBSD_version Values
12.6 Writing Something After
12.7 Use the exec Statement in Wrapper Scripts
12.8 Do Things Rationally
12.9 Respect Both CC and CXX
12.10 Respect CFLAGS
12.11 Threading Libraries
12.12 Feedback
12.13 README.html
12.14 Marking a Port Not Installable with BROKEN, FORBIDDEN, or IGNORE
12.15 Marking a Port for Removal with DEPRECATED or EXPIRATION_DATE
12.16 Avoid Use of the .error Construct
12.17 Usage of sysctl
12.18 Rerolling Distfiles
12.19 Avoiding Linuxisms
12.20 Miscellanea

12.1 Introduction

Here is a list of common dos and don'ts that you encounter during the porting process. You should check your own port against this list, but you can also check ports in the PR database that others have submitted. Submit any comments on ports you check as described in Bug Reports and General Commentary. Checking ports in the PR database will both make it faster for us to commit them, and prove that you know what you are doing.

For questions about the FreeBSD ports system, e-mail <>.
For questions about this documentation, e-mail <>.