diff --git a/en_US.ISO8859-1/books/porters-handbook/book.sgml b/en_US.ISO8859-1/books/porters-handbook/book.sgml index c51319ecac..9fee1a1eda 100644 --- a/en_US.ISO8859-1/books/porters-handbook/book.sgml +++ b/en_US.ISO8859-1/books/porters-handbook/book.sgml @@ -6207,7 +6207,8 @@ as .putsy.conf and edit it. It is important to be able to generate this file no matter what options are present in make.conf, so please avoid doing things such as using .error - statements when (for instance) a dependency is not satisfied. + statements when (for instance) a dependency is not satisfied. + (See .) @@ -9378,6 +9379,26 @@ bacula:*:910: interested committers a little time to fix the problems. + + Avoid use of the <literal>.error</literal> construct + + The correct way for a Makefile to + signal that the port can not be installed due to some external + factor (for instance, the user has specified an illegal + combination of build options) is to set a nonblank value to + IGNORE. This value will be formatted and + shown to the user by make install. + + It is a common mistake to use .error + for this purpose. The problem with this is that many + automated tools that work with the ports tree will fail in + this situation. The most common occurence of this is seen + when trying to build /usr/ports/INDEX + (see ). However, even more + trivial commands such as make -V maintainer + also fail in this scenario. This is not acceptable. + + Necessary workarounds