summaryrefslogtreecommitdiff
path: root/doc/guide
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2005-05-15 23:46:20 +0000
committerrillig <rillig@pkgsrc.org>2005-05-15 23:46:20 +0000
commitb5138069770295d5628375fb0a2b76e461539c5e (patch)
treeed7d46f1187fed077a52685b5164af9425405398 /doc/guide
parenta03d851b64f339a27c6f6bca28afcf2c7be3c753 (diff)
downloadpkgsrc-b5138069770295d5628375fb0a2b76e461539c5e.tar.gz
Added documentation for a bug in bmake, and a reference to the package
regress/make-quoting, where a more complete example and a workaround is presented.
Diffstat (limited to 'doc/guide')
-rw-r--r--doc/guide/files/makefile.xml20
1 files changed, 19 insertions, 1 deletions
diff --git a/doc/guide/files/makefile.xml b/doc/guide/files/makefile.xml
index 053a5812e30..02d02ed6f30 100644
--- a/doc/guide/files/makefile.xml
+++ b/doc/guide/files/makefile.xml
@@ -1,4 +1,4 @@
-<!-- $NetBSD: makefile.xml,v 1.13 2005/05/15 20:31:45 rillig Exp $ -->
+<!-- $NetBSD: makefile.xml,v 1.14 2005/05/15 23:46:20 rillig Exp $ -->
<!-- based on:
pkgsrc/bootstrap/bmake/for.c 1.1.1.1
@@ -301,5 +301,23 @@ for_test:
</itemizedlist>
</sect2>
+ <sect2>
+ <title>Workaround for a bug in BSD Make</title>
+
+ <para>The pkgsrc bmake program does not handle the following
+ assignment correctly. In case <varname>_othervar_</varname>
+ contains a ``-'' character, one of the closing braces is included
+ in <varname>${VAR}</varname> after this code executes.</para>
+
+ <programlisting>
+ VAR:= ${VAR:N${_othervar_:C/-//}}
+ </programlisting>
+
+ <para>For a more complex code snippet and a workaround, see the
+ package <pkg>regress/make-quoting</pkg>, testcase
+ <varname>bug1</varname>.</para>
+
+ </sect2>
+
</sect1>
</chapter>