r2853 - jhalfs/branches/experimental/HLFS

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Sun Jul 30 03:10:34 PDT 2006


Author: manuel
Date: 2006-07-30 04:10:33 -0600 (Sun, 30 Jul 2006)
New Revision: 2853

Modified:
   jhalfs/branches/experimental/HLFS/hlfs.xsl
Log:
Revised hlfs.xsl.
May contains some bug yet.

Modified: jhalfs/branches/experimental/HLFS/hlfs.xsl
===================================================================
--- jhalfs/branches/experimental/HLFS/hlfs.xsl	2006-07-30 08:58:26 UTC (rev 2852)
+++ jhalfs/branches/experimental/HLFS/hlfs.xsl	2006-07-30 10:10:33 UTC (rev 2853)
@@ -26,7 +26,7 @@
        0 = none
        1 = only chapter06 Glibc, GCC and Binutils testsuites
        2 = all chapter06 testsuites
-       3 = all chapter05 and chapter06 testsuites-->
+       3 = alias to 2 -->
   <xsl:param name="testsuite" select="1"/>
 
   <!-- Time zone -->
@@ -99,29 +99,21 @@
           <xsl:if test="@id='ch-tools-uclibc' or @id='ch-system-uclibc'">
              <xsl:text>pushd ../; tar -xvf gettext-&gettext-version;.*; popd; &#xA;</xsl:text>
           </xsl:if>
-          
+
           <!-- NEW toolchain format, from inside ./sources dir unpack binutils and gcc -->
-	  <xsl:if test="@id='ch-tools-embryo-toolchain'">
+	  <xsl:if test="@id='ch-tools-embryo-toolchain' or
+                        @id='ch-tools-cocoon-toolchain' or
+                        @id='ch-system-butterfly-toolchain'">
              <xsl:text>tar -xvf gcc-core-&gcc-version;.*; &#xA;</xsl:text>
              <xsl:text>tar -xvf gcc-g++-&gcc-version;.*; &#xA;</xsl:text>
              <xsl:text>tar -xvf binutils-&binutils-version;.*; &#xA;</xsl:text>
           </xsl:if>
-	  <xsl:if test="@id='ch-tools-cocoon-toolchain'">
-             <xsl:text>tar -xvf gcc-core-&gcc-version;.*; &#xA;</xsl:text>
-             <xsl:text>tar -xvf gcc-g++-&gcc-version;.*; &#xA;</xsl:text>
-             <xsl:text>tar -xvf binutils-&binutils-version;.*; &#xA;</xsl:text>
-          </xsl:if>
-	  <xsl:if test="@id='ch-system-butterfly-toolchain'">
-             <xsl:text>tar -xvf gcc-core-&gcc-version;.*; &#xA;</xsl:text>
-             <xsl:text>tar -xvf gcc-g++-&gcc-version;.*; &#xA;</xsl:text>
-             <xsl:text>tar -xvf binutils-&binutils-version;.*; &#xA;</xsl:text>
-          </xsl:if>
           <!-- ONLY butterfly has a testsuite -->
-          <xsl:if test="@id='ch-tools-butterfly-toolchain' and $testsuite = '3'">
+          <xsl:if test="@id='ch-tools-butterfly-toolchain' and $testsuite != '0'">
             <xsl:text>tar -xvf gcc-testsuite-&gcc-version;.*; &#xA;</xsl:text>
           </xsl:if>
           <!-- END new toolchain format -->
-	  
+
           <xsl:if test="@id='bootable-bootscripts'">
              <xsl:text>pushd ../; tar -xvf blfs-bootscripts-&blfs-bootscripts-version;.* ; popd; &#xA;</xsl:text>
           </xsl:if>
@@ -132,12 +124,6 @@
     </xsl:if>
   </xsl:template>
 
-  <xsl:template match="literal">
-    <xsl:if test="@condition=$model or not(@condition)">
-      <xsl:apply-templates/>
-    </xsl:if>
-  </xsl:template>
-  
   <xsl:template match="screen">
     <xsl:if test="(@condition=$model or not(@condition)) and
                   child::* = userinput and not(@role = 'nodump')">
@@ -147,24 +133,12 @@
 
   <xsl:template match="para/userinput">
     <xsl:if test="(contains(string(),'test') or
-            contains(string(),'check')) and
-            (($testsuite = '1' and
-            (ancestor::sect1[@id='ch-system-gcc'] or
-            ancestor::sect1[@id='ch-system-glibc'])) or
-            ($testsuite = '2' and
-            ancestor::chapter[@id='chapter-building-system']) or
-            $testsuite = '3')">
-      <xsl:choose>
-        <xsl:when test="ancestor::sect1[@id='ch-system-gcc']">
-          <xsl:text>make -k check >> $TEST_LOG 2>&1 || true&#xA;</xsl:text>
-        </xsl:when>
-        <xsl:otherwise>
-          <xsl:value-of select="substring-before(string(),'make')"/>
-          <xsl:text>make -k</xsl:text>
-          <xsl:value-of select="substring-after(string(),'make')"/>
-          <xsl:text> >> $TEST_LOG 2>&1 || true&#xA;</xsl:text>
-        </xsl:otherwise>
-      </xsl:choose>
+                  contains(string(),'check')) and
+                  ($testsuite = '2' or $testsuite = '3')">
+      <xsl:value-of select="substring-before(string(),'make')"/>
+      <xsl:text>make -k</xsl:text>
+      <xsl:value-of select="substring-after(string(),'make')"/>
+      <xsl:text> >> $TEST_LOG 2>&1 || true&#xA;</xsl:text>
     </xsl:if>
   </xsl:template>
 
@@ -200,8 +174,6 @@
         <xsl:value-of select="substring-after(string(),'INPUTRC')"/>
         <xsl:text>&#xA;</xsl:text>
       </xsl:when>
-
-
       <!-- Fixing bootscripts installation -->
       <xsl:when test="ancestor::sect1[@id='bootable-bootscripts'] and
                 string() = 'make install'">
@@ -241,24 +213,23 @@
           </xsl:otherwise>
         </xsl:choose>
       </xsl:when>
-
-      <!-- Fixing toolchain test suites run -->
-      <xsl:when test="string() = 'make check' or
-                string() = 'make -k check'">
+      <!-- Fixing butterfly toolchain test suites run -->
+      <xsl:when test="string() = 'make -k check'">
         <xsl:choose>
-          <xsl:when test="(($testsuite = '1' or $testsuite = '2') and
-                    ancestor::chapter[@id='chapter-building-system']) or
-                    $testsuite = '3'">
+          <xsl:when test="$testsuite != '0'">
             <xsl:text>make -k check >> $TEST_LOG 2>&1 || true&#xA;</xsl:text>
           </xsl:when>
         </xsl:choose>
       </xsl:when>
-
-      <!-- Disable any glibc checks  -->
-      <xsl:when test="contains(string(),'gcc -fno-stack-protector') and
-                ancestor::sect1[@id='ch-system-glibc']
-                and $testsuite = '0'"/>
-
+      <!-- Fixing Glbc test suite  -->
+      <xsl:when test="contains(string(),'glibc-check-log')">
+        <xsl:choose>
+          <xsl:when test="$testsuite != '0'">
+            <xsl:value-of select="substring-before(string(),'> glibc-')"/>
+            <xsl:text>>> $TEST_LOG 2>&1 || true&#xA;</xsl:text>
+          </xsl:when>
+        </xsl:choose>
+      </xsl:when>
       <!-- Don't stop on strip run and chapter05 GCC installation test-->
       <xsl:when test="contains(string(),'strip ') or
                 ancestor::sect2[@id='testing-gcc'] and
@@ -266,7 +237,6 @@
         <xsl:apply-templates/>
         <xsl:text> || true&#xA;</xsl:text>
       </xsl:when>
-
       <!-- The rest of commands -->
       <xsl:otherwise>
         <xsl:apply-templates/>
@@ -275,6 +245,12 @@
     </xsl:choose>
   </xsl:template>
 
+  <xsl:template match="literal">
+    <xsl:if test="@condition=$model or not(@condition)">
+      <xsl:apply-templates/>
+    </xsl:if>
+  </xsl:template>
+
   <xsl:template match="replaceable">
     <xsl:choose>
       <xsl:when test="ancestor::sect1[@id='ch-system-glibc'] or




More information about the alfs-log mailing list