Bug 212053

Summary: [porters-handbook] Logic-typo in makefile-options.html 5.12.3.10. OPT_PREVENTS and OPT_PREVENTS_MSG
Product: Documentation Reporter: Harald Schmalzbauer <bugzilla.freebsd>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Some People    
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Harald Schmalzbauer 2016-08-22 15:06:56 UTC
Please see
https://www.freebsd.org/doc/en/books/porters-handbook/makefile-options.html

In chapter 5.12.3.10. "OPT_PREVENTS  and OPT_PREVENTS_MSG",
there's a equivalent-example for:
OPT1_PREVENTS=	OPT2

It contains:
.if ${PORT_OPTIONS:MOPT2} || ${PORT_OPTIONS:MOPT1}
but most likely should read
.if ${PORT_OPTIONS:MOPT2} && ${PORT_OPTIONS:MOPT1}

Unfortunately I never visited docs sources, so no patch attached :-(

-Harry
Comment 1 commit-hook freebsd_committer freebsd_triage 2016-08-24 11:57:26 UTC
A commit references this bug:

Author: mat
Date: Wed Aug 24 11:56:25 UTC 2016
New revision: 49332
URL: https://svnweb.freebsd.org/changeset/doc/49332

Log:
  Fix a logic typo.

  PR:		212053
  Reported by:	Harald Schmalzbauer
  Sponsored by:	Absolight

Changes:
  head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml