Changeset f017b22 for LFS


Ignore:
Timestamp:
07/06/2020 05:51:22 AM (4 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
b6e981a
Parents:
2f8d952
Message:

LFS/lfs.xsl: fix cases when using DESTDIR

We cannot use only the fact that it is not in chapter-temporary-tools
since now we have several chapter for the temporary system.
so use a list of chapters (non negated).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/lfs.xsl

    r2f8d952 rf017b22  
    236236         test="ancestor::chapter[@id = 'chapter-building-system' or
    237237                                 @id = 'chapter-config'          or
     238                                 @id = 'chapter-bootscripts'      or
    238239                                 @id = 'chapter-bootable'] and
    239240               $pkgmngt = 'y' and
     
    265266    <xsl:if test="ancestor::chapter[@id = 'chapter-building-system' or
    266267                                    @id = 'chapter-config'          or
     268                                    @id = 'chapter-bootscripts'     or
    267269                                    @id = 'chapter-bootable'] and
    268270                  descendant::screen[not(@role) or
     
    447449        </xsl:call-template>
    448450      </xsl:when>
    449 <!-- Package management -->
     451<!-- Package management for installation chapters -->
    450452<!-- Add $PKG_DEST to installation commands -->
    451453<!-- Also add -j1 to make install -->
    452454      <xsl:when test="@remap='install' and
    453                       not(ancestor::chapter[
    454                               @id='chapter-temporary-tools'
    455                                            ])">
     455                      ancestor::chapter[@id='chapter-building-system' or
     456                                        @id = 'chapter-config'        or
     457                                        @id = 'chapter-bootscripts'   or
     458                                        @id = 'chapter-bootable']">
    456459        <xsl:choose>
    457460          <xsl:when test="$pkgmngt='n'">
     
    560563      </xsl:when><!-- addition for tzdata + package management -->
    561564      <!-- End addition for package management -->
    562       <!-- add -j1 to make install in chapter 5 -->
    563       <xsl:when test="ancestor::chapter[@id='chapter-temporary-tools'] and
     565      <!-- add -j1 to make install in non final chapters -->
     566      <xsl:when test="ancestor::chapter[@id='chapter-temporary-tools'        or
     567                                        @id='chapter-chroot-temporary-tools' or
     568                                        @id='chapter-cross-tools'] and
    564569                      @remap='install'">
    565570        <xsl:choose>
     
    574579        </xsl:choose>
    575580        <xsl:text>&#xA;</xsl:text>
    576       </xsl:when><!-- chapter 5 install -->
     581      </xsl:when><!-- temp chapters install -->
    577582      <!-- The rest of commands -->
    578583      <xsl:otherwise>
     
    12421247      </xsl:call-template>
    12431248      <xsl:if test = "( ../@id = 'chapter-building-system' or
    1244                         ../@id = 'chapter-config'         or
    1245                         ../@id = 'chapter-bootable'       or
     1249                        ../@id = 'chapter-config'          or
     1250                        ../@id = 'chapter-bootscripts'     or
     1251                        ../@id = 'chapter-bootable'        or
    12461252                        starts-with(@id,'ch-system') ) and $pkgmngt = 'y'">
    12471253<!-- the last alternative for old books where some sections in
Note: See TracChangeset for help on using the changeset viewer.