Bug 226251

Summary: Porter's Handbook: typo in MESON args
Product: Documentation Reporter: Zsolt Udvari <uzsolt>
Component: Books & ArticlesAssignee: Mathieu Arnold <mat>
Status: Closed FIXED    
Severity: Affects Many People CC: linimon
Priority: --- Keywords: easy
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://www.freebsd.org/doc/en/books/porters-handbook/book.html#options-meson_true

Description Zsolt Udvari freebsd_committer freebsd_triage 2018-02-27 19:05:02 UTC
At "5.13.3.5.2. OPT_MESON_TRUE and OPT_MESON_FALSE" and
"5.13.3.5.3. OPT_MESON_YES and OPT_MESON_NO":

OPTIONS_DEFINE=	OPT1
OPT1_MESON_TRUE=	test debug
OPT1_MESON_FALSE=	optimize

is equivalent to:
...
CMAKE_ARGS+=	-Dtest=true -Ddebug=true \
		-Doptimize=false
.else
CMAKE_ARGS+=	-Dtest=false -Ddebug=false \
		-Doptimize=true
.endif

Note the CMAKE_ARGS appears instead of MESON_ARGS.
Comment 1 Mathieu Arnold freebsd_committer freebsd_triage 2018-04-12 07:13:57 UTC
thanks for the report.
Comment 2 commit-hook freebsd_committer freebsd_triage 2018-04-12 07:19:37 UTC
A commit references this bug:

Author: mat
Date: Thu Apr 12 07:19:11 UTC 2018
New revision: 51546
URL: https://svnweb.freebsd.org/changeset/doc/51546

Log:
  Fix copy&paste error in MESON_TRUE... section.

  PR:		226251
  Reported by:	Zsolt Udvari
  Sponsored by:	Absolight

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