Date: Wed, 14 Mar 2018 14:01:58 -0700 From: Craig Leres <leres@freebsd.org> To: freebsd-doc@freebsd.org Subject: Small mistake in the flavors section of the porters handbook Message-ID: <27026957-f43b-052e-17d2-f6f2e5c0f697@freebsd.org>
index | next in thread | raw e-mail
[-- Attachment #1 --] Example 7.2 on this page has a mistake: https://www.freebsd.org/doc/en/books/porters-handbook/flavors-using.html The conditional needs to use == instead of = or else you get: make: "/usr/ports/devel/subversion/Makefile" line 53: warning: String comparison operator should be either == or != Craig [-- Attachment #2 --] --- flavors-using.html.orig 2018-03-14 13:26:52.123165000 -0700 +++ flavors-using.html 2018-03-14 13:26:50.691360000 -0700 @@ -23,7 +23,7 @@ FLAVOR?= ${FLAVORS:[1]} nox11_PKGNAMESUFFIX= -nox11 [...] -.if ${FLAVOR} = x11 +.if ${FLAVOR} == x11 [enable x11 features] .endif</pre></div></div><br class="example-break" /><div class="example"><a id="flavors-using-ex3"></a><div class="example-title">Example 7.3. More Complex Flavors Usage</div><div class="example-contents"><p>Here is a slightly edited excerpt of what is present in <a xmlns="" class="package" href="https://www.freebsd.org/cgi/url.cgi?ports/devel/libpeas/pkg-descr">devel/libpeas</a>, a port thathelp
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?27026957-f43b-052e-17d2-f6f2e5c0f697>
