Bug 212053 - [porters-handbook] Logic-typo in makefile-options.html 5.12.3.10. OPT_PREVENTS and OPT_PREVENTS_MSG
Summary: [porters-handbook] Logic-typo in makefile-options.html 5.12.3.10. OPT_PREVENT...
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Books & Articles (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-doc (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-22 15:06 UTC by Harald Schmalzbauer
Modified: 2016-08-24 11:57 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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