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

Mathieu Arnold mat at FreeBSD.org
Tue Jul 21 09:48:48 UTC 2015


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">


More information about the svn-doc-all mailing list