Changeset 13e52a5 for common


Ignore:
Timestamp:
06/20/2020 05:16:22 PM (4 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
49f8b03
Parents:
706e5bf
Message:

Add the multilib book: fixes ticket #1722

Location:
common/libs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • common/libs/func_book_parser

    r706e5bf r13e52a5  
    157157    lfs)
    158158        echo -n " ${L_arrow}${BOLD}LFS${R_arrow} build... "
     159        # The scripts pages are xincluded by the book, so must
     160        # be generated for running xsltproc
    159161        pushd $BOOK > /dev/null
    160162        if [ -f process-scripts.sh ]; then
     
    163165        popd > /dev/null
    164166
     167        # First profile the book, for revision and arch. Note that
     168        # MULTIBLIB is set to "default" if pure 64 bit book. In this
     169        # profiling on arch is useless, but does not hurt either.
    165170        xsltproc --nonet                                      \
    166171                 --xinclude                                   \
    167                  --stringparam revision       "$INITSYS"      \
     172                 --stringparam profile.revision "$INITSYS"    \
     173                 --stringparam profile.arch     "$MULTILIB"   \
     174                 --output prbook.xml                          \
     175                 $BOOK/stylesheets/lfs-xsl/profile.xsl        \
     176                 $BOOK/index.xml >> $LOGDIR/$LOG 2>&1
     177
     178        # Use the profiled book for generating the scriptlets
     179        xsltproc --nonet                                      \
    168180                 --stringparam testsuite      "$TEST"         \
    169181                 --stringparam bomb-testsuite "$BOMB_TEST"    \
     
    195207                 --output ./${PROGNAME}-commands/             \
    196208                 $XSL                                         \
    197                  $BOOK/index.xml >> $LOGDIR/$LOG 2>&1
     209                 prbook.xml >> $LOGDIR/$LOG 2>&1
    198210# Remove flags requesting user action in some cases. Much easier here than
    199211# in the stylesheet...
  • common/libs/func_wrt_Makefile

    r706e5bf r13e52a5  
    421421LUSER_wrt_LogNewFiles() {          #
    422422#----------------------------------#
     423(
     424cat << EOF
     425        @\$(call log_new_files_LUSER,$1)
     426EOF
     427) >> $MKFILE.tmp
     428}
     429
     430#----------------------------------#
     431CHROOT_wrt_LogNewFiles() {         #
     432#----------------------------------#
     433(
     434cat << EOF
     435        @\$(call log_new_files,$1)
     436EOF
     437) >> $MKFILE.tmp
     438}
     439
     440#=======================
     441
     442
     443#==== RM BUILD DIRS ====
     444
     445#----------------------------------#
     446LUSER_RemoveBuildDirs() {          #
     447#----------------------------------#
    423448  local name=`echo ${1} | sed 's/[0-9]-//'`
    424449(
    425450cat << EOF
    426         @\$(call log_new_files_LUSER,$name)
    427 EOF
    428 ) >> $MKFILE.tmp
    429 }
    430 
    431 #----------------------------------#
    432 CHROOT_wrt_LogNewFiles() {         #
     451        @\$(call remove_build_dirs,$name)
     452EOF
     453) >> $MKFILE.tmp
     454}
     455
     456#----------------------------------#
     457CHROOT_wrt_RemoveBuildDirs() {     #
    433458#----------------------------------#
    434459  local name=`echo ${1} | sed 's/[0-9]-//'`
    435460(
    436461cat << EOF
    437         @\$(call log_new_files,$name)
    438 EOF
    439 ) >> $MKFILE.tmp
    440 }
    441 
    442 #=======================
    443 
    444 
    445 #==== RM BUILD DIRS ====
    446 
    447 #----------------------------------#
    448 LUSER_RemoveBuildDirs() {          #
    449 #----------------------------------#
    450   local name=`echo ${1} | sed 's/[0-9]-//'`
    451 (
    452 cat << EOF
    453         @\$(call remove_build_dirs,$name)
    454 EOF
    455 ) >> $MKFILE.tmp
    456 }
    457 
    458 #----------------------------------#
    459 CHROOT_wrt_RemoveBuildDirs() {     #
    460 #----------------------------------#
    461   local name=`echo ${1} | sed 's/[0-9]-//'`
    462 (
    463 cat << EOF
    464462        @\$(call remove_build_dirs2,$name)
    465463EOF
Note: See TracChangeset for help on using the changeset viewer.