Author: pierre
Date: Sun Jul  5 22:51:22 2020
New Revision: 4188

Log:
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).

Modified:
   jhalfs/trunk/LFS/lfs.xsl

Modified: jhalfs/trunk/LFS/lfs.xsl
==============================================================================
--- jhalfs/trunk/LFS/lfs.xsl    Sun Jul  5 22:46:07 2020        (r4187)
+++ jhalfs/trunk/LFS/lfs.xsl    Sun Jul  5 22:51:22 2020        (r4188)
@@ -235,6 +235,7 @@
     <xsl:if
          test="ancestor::chapter[@id = 'chapter-building-system' or
                                  @id = 'chapter-config'          or
+                                 @id = 'chapter-bootscripts'      or
                                  @id = 'chapter-bootable'] and
                $pkgmngt = 'y' and
                descendant::screen[not(@role) or
@@ -264,6 +265,7 @@
                        userinput[@remap = 'install']"/>
     <xsl:if test="ancestor::chapter[@id = 'chapter-building-system' or
                                     @id = 'chapter-config'          or
+                                    @id = 'chapter-bootscripts'     or
                                     @id = 'chapter-bootable'] and
                   descendant::screen[not(@role) or
                                      @role != 'nodump']/userinput[
@@ -446,13 +448,14 @@
           <xsl:with-param name="instructions" select="string()"/>
         </xsl:call-template>
       </xsl:when>
-<!-- Package management -->
+<!-- Package management for installation chapters -->
 <!-- Add $PKG_DEST to installation commands -->
 <!-- Also add -j1 to make install -->
       <xsl:when test="@remap='install' and
-                      not(ancestor::chapter[
-                              @id='chapter-temporary-tools'
-                                           ])">
+                      ancestor::chapter[@id='chapter-building-system' or
+                                        @id = 'chapter-config'        or
+                                        @id = 'chapter-bootscripts'   or
+                                        @id = 'chapter-bootable']">
         <xsl:choose>
           <xsl:when test="$pkgmngt='n'">
             <xsl:choose>
@@ -559,8 +562,10 @@
 </xsl:text>
       </xsl:when><!-- addition for tzdata + package management -->
       <!-- End addition for package management -->
-      <!-- add -j1 to make install in chapter 5 -->
-      <xsl:when test="ancestor::chapter[@id='chapter-temporary-tools'] and
+      <!-- add -j1 to make install in non final chapters -->
+      <xsl:when test="ancestor::chapter[@id='chapter-temporary-tools'        or
+                                        @id='chapter-chroot-temporary-tools' or
+                                        @id='chapter-cross-tools'] and
                       @remap='install'">
         <xsl:choose>
           <xsl:when test="contains(string(),'make ')">
@@ -573,7 +578,7 @@
           </xsl:otherwise>
         </xsl:choose>
         <xsl:text>&#xA;</xsl:text>
-      </xsl:when><!-- chapter 5 install -->
+      </xsl:when><!-- temp chapters install -->
       <!-- The rest of commands -->
       <xsl:otherwise>
         <xsl:apply-templates/>
@@ -1241,8 +1246,9 @@
         <xsl:with-param name="path" select=".//sect1info/address/text()"/>
       </xsl:call-template>
       <xsl:if test = "( ../@id = 'chapter-building-system' or
-                        ../@id = 'chapter-config'         or
-                        ../@id = 'chapter-bootable'       or
+                        ../@id = 'chapter-config'          or
+                        ../@id = 'chapter-bootscripts'     or
+                        ../@id = 'chapter-bootable'        or
                         starts-with(@id,'ch-system') ) and $pkgmngt = 'y'">
 <!-- the last alternative for old books where some sections in
      chapter-config had ch-system -->
-- 
http://lists.linuxfromscratch.org/listinfo/alfs-log
Unsubscribe: See the above information page

Reply via email to