Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2017-12-06 14:37:14 -0500
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2017-12-06 14:39:54 -0500
commitc5e67861c96185d91b6bf4710b2fcd3eb63817dc (patch)
tree5804948faa091a060193931f1d016bafab531f43
parent2878d1099c90e50e01d60eb44ab1fe8479d9adb7 (diff)
downloadtame-c5e67861c96185d91b6bf4710b2fcd3eb63817dc.tar.gz
tame-c5e67861c96185d91b6bf4710b2fcd3eb63817dc.tar.bz2
tame-c5e67861c96185d91b6bf4710b2fcd3eb63817dc.zip
depgen: Do not perform dependency generation within templates
This makes me slightly uncomfortable because I haven't researched why exactly this was not a problem before. We encountered this issue using an inline template iterating over the symbol table yielding a `c:value-of', which is admittedly something that we haven't done before. Hopefully it's an isolated case. I diffed the offending object file and the entire linked tax calculator and they were bit-for-bit identical, so we're probably good. * src/current/include/depgen.xsl (preproc:depgen): Do not perform dependency generation within templates.
-rw-r--r--src/current/include/depgen.xsl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/current/include/depgen.xsl b/src/current/include/depgen.xsl
index ab8f30e..751c1a7 100644
--- a/src/current/include/depgen.xsl
+++ b/src/current/include/depgen.xsl
@@ -357,6 +357,11 @@
</xsl:template>
+<xsl:template match="c:*[ ancestor::lv:template ]"
+ mode="preproc:depgen" priority="8">
+ <!-- ignore symbols within templates -->
+</xsl:template>
+
<xsl:template name="preproc:depgen-c-normal" match="c:value-of|c:when" mode="preproc:depgen" priority="5">
<xsl:param name="name" select="@name" />
<xsl:variable name="pkg" as="element( lv:package )"