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
--- 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 that
_______________________________________________
freebsd-doc@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-doc
To unsubscribe, send any mail to "freebsd-doc-unsubscr...@freebsd.org"

Reply via email to