svn commit: r47032 - head/en_US.ISO8859-1/books/porters-handbook/makefiles

Mathieu Arnold <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
Author: mat
Date: Tue Jul 21 09:48:47 2015
New Revision: 47032
URL: https://svnweb.freebsd.org/changeset/doc/47032

Log:
  Add a note saying not to use := in *_DEPENDS variables.
  
  Approved by:	wblock (mentor)
  Sponsored by:	Absolight
  Differential Revision:	https://reviews.freebsd.org/D3109

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

Modified: head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
==============================================================================
--- head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml	Mon Jul 20 23:33:07 2015	(r47031)
+++ head/en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml	Tue Jul 21 09:48:47 2015	(r47032)
@@ -3290,6 +3290,14 @@ ALWAYS_KEEP_DISTFILES=	yes
 		other:${PORTSDIR}/lang/other
 BUILD_DEPENDS=	${MY_DEPENDS}
 RUN_DEPENDS=	${MY_DEPENDS}</programlisting>
+
+	<important>
+	  <para><emphasis>Do not</emphasis> use <literal>:=</literal>
+	    to assign <varname>BUILD_DEPENDS</varname> to
+	    <varname>RUN_DEPENDS</varname> or vice-versa.  All
+	    variables are expanded immediately, which is exactly the
+	    wrong thing to do and almost always a failure.</para>
+	</important>
     </sect2>
 
     <sect2 xml:id="makefile-build_depends">
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.