Changeset 3d75bc2 for HLFS/hlfs.xsl


Ignore:
Timestamp:
06/18/2007 09:00:29 PM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
a4af9217
Parents:
31eb678
Message:

HLFS: XSL clean-up,
fixed Glibc commads when the testsuite is not run,
and export CONFIG_SITE from inside adjusting script
instead of exporting target and ldso from inside
settingenvironment target.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • HLFS/hlfs.xsl

    r31eb678 r3d75bc2  
    111111             <xsl:text>pushd ../; tar -xvf gettext-&gettext-version;.*; popd; &#xA;</xsl:text>
    112112          </xsl:if>
    113 
    114113          <!-- SVN toolchain format, from inside ./sources dir unpack binutils and gcc -->
    115114          <xsl:if test="@id='ch-tools-embryo-toolchain' or
     
    128127          </xsl:if>
    129128          <!-- END SVN toolchain format -->
    130 
    131           <!-- 2.4-branch toolchain -->
    132           <xsl:if test="@id='ch-tools-gcc-pass2' or @id='ch-system-gcc'">
    133              <xsl:text>pushd ../; tar -xvf gcc-g++-&gcc-version;.*; popd; &#xA;</xsl:text>
    134           </xsl:if>
    135           <xsl:if test="@id='ch-system-gcc' and $testsuite != '0'">
    136             <xsl:text>pushd ../; tar -xvf gcc-testsuite-&gcc-version;.*; popd; &#xA;</xsl:text>
    137           </xsl:if>
    138           <!-- END 2.4-branch toolchain -->
    139 
    140 <!-- temporary
    141           <xsl:if test="@id='bootable-bootscripts'">
    142              <xsl:text>pushd ../; tar -xvf blfs-bootscripts-&blfs-bootscripts-version;.* ; popd; &#xA;</xsl:text>
    143           </xsl:if>
    144 -->
    145129        </xsl:if>
    146130        <xsl:apply-templates select=".//para/userinput | .//screen"/>
     
    184168  <xsl:template match="userinput" mode="screen">
    185169    <xsl:choose>
    186       <!-- Estandarized package formats -->
    187       <xsl:when test="contains(string(),'tar.gz')">
    188         <xsl:value-of select="substring-before(string(),'tar.gz')"/>
    189         <xsl:text>tar.*</xsl:text>
    190         <xsl:value-of select="substring-after(string(),'tar.gz')"/>
    191         <xsl:text>&#xA;</xsl:text>
    192       </xsl:when>
    193170      <!-- grsecurity kernel in the host? -->
    194171      <xsl:when test="ancestor::sect1[@id='ch-system-kernfs'] and
    195172                contains(string(),'sysctl')
    196173                and $grsecurity_host ='n'"/>
    197       <!-- We need to have /dev/console and /dev/null availables before
    198            entering to the chroot -->
    199       <xsl:when test="ancestor::sect1[@id='ch-system-devices'] and
    200                 contains(string(),'600 /dev/console')"/>
    201       <!-- Fix MAKEDEV installation in 2.4-branch -->
    202       <xsl:when test="ancestor::sect1[@id='ch-system-devices'] and
    203                 contains(string(),'bzcat MAKEDEV')">
    204         <xsl:text>bzcat /sources/</xsl:text>
    205         <xsl:value-of select="substring-after(string(),'bzcat ')"/>
    206         <xsl:text>&#xA;</xsl:text>
    207       </xsl:when>
    208174      <!-- Setting $LANG for /etc/profile -->
    209175      <xsl:when test="ancestor::sect1[@id='bootable-profile'] and
     
    215181        <xsl:text>&#xA;</xsl:text>
    216182      </xsl:when>
    217       <!-- Fixing bootscripts installation -->
    218 
    219 <!-- temporary
    220       <xsl:when test="ancestor::sect1[@id='bootable-bootscripts'] and
    221                 string() = 'make install'">
    222         <xsl:text>make install&#xA;</xsl:text>
    223         <xsl:text>cd ../blfs-bootscripts-&blfs-bootscripts-version;&#xA;</xsl:text>
    224       </xsl:when>
    225 -->
    226       <!-- Compile the keymap into the kernel has been dissabled -->
    227       <xsl:when test="contains(string(),'defkeymap')"/>
    228183      <!-- Copying the kernel config file -->
    229184      <xsl:when test="string() = 'make mrproper'">
     
    233188      <!-- No interactive commands are needed if the .config file is the proper one -->
    234189      <xsl:when test="string() = 'make menuconfig'"/>
     190      <!-- For uClibc we need to set CONFIG_SITE -->
     191      <xsl:when test="contains(string(),'CONFIG_SITE')">
     192        <xsl:value-of select="substring-before(string(),'export')"/>
     193        <xsl:text>echo "export</xsl:text>
     194        <xsl:value-of select="substring-after(string(),'export')"/>
     195        <xsl:text>" &gt;&gt; ~/.bashrc&#xA;</xsl:text>
     196      </xsl:when>
    235197      <!-- For uClibc we need to cd to the Gettext package -->
    236198      <xsl:when test="contains(string(),'cd gettext-runtime/')">
     
    273235        </xsl:choose>
    274236      </xsl:when>
    275       <!-- Fixing butterfly and 2.4-branch toolchain plus other packages test suites run -->
    276       <xsl:when test="string() = 'make -k check'
    277                       or string() = 'make check'
    278                       or string() = 'make tests'">
    279         <xsl:choose>
    280           <xsl:when test="((ancestor::sect1[@id='ch-system-butterfly-toolchain']
    281                           or ancestor::sect1[@id='ch-system-gcc'] or
    282                           ancestor::sect1[@id='ch-system-binutils'])
    283                           and $testsuite != '0') or
    284                           $testsuite = '2' or $testsuite = '3'">
     237      <!-- Fixing butterfly toolchain test suite run -->
     238      <xsl:when test="ancestor::sect1[@id='ch-system-butterfly-toolchain']
     239                      and string() = 'make -k check'">
     240        <xsl:choose>
     241          <xsl:when test="$testsuite != '0'">
    285242            <xsl:choose>
    286243              <xsl:when test="$bomb-testsuite = 'n'">
     
    300257      </xsl:when>
    301258      <!-- Fixing Glbc test suite  -->
     259      <xsl:when test="contains(string(),'rm -v configparms') and
     260                      contains(string(),'-fno-stack-protector')">
     261        <xsl:choose>
     262          <xsl:when test="$testsuite != '0'">
     263            <xsl:apply-templates/>
     264            <xsl:text>&#xA;</xsl:text>
     265          </xsl:when>
     266        </xsl:choose>
     267      </xsl:when>
    302268      <xsl:when test="contains(string(),'glibc-check-log')">
    303269        <xsl:choose>
Note: See TracChangeset for help on using the changeset viewer.