Ignore:
Timestamp:
01/28/2018 05:56:55 PM (7 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
1fa0dee
Parents:
764a5d7
Message:

New management of dependencies:

  • Even if only required or recommended deps only are requested and built, account for optional deps to build the pacakge order
  • build "runtime" deps after the pacakge dependening on them, but before any other package
  • using the "first" role in the book, implement pass1 pacakges when there are circular dependencies
  • Documentation has still to be written
  • There must be bugs, thank you for testing...
File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/gen_pkg_book.sh

    r764a5d7 r2140f22  
    100100  local -i index
    101101  local DepDir=$1
    102   rm -f $DepDir/*.{o,}dep
     102  rm -f $DepDir/*.{tree,dep}
    103103  for (( index=0 ; index < ${#TARGET[*]} ; index ++ )); do
    104     echo 1 ${TARGET[${index}]} >> $DepDir/root.odep
     104    echo 1 b ${TARGET[${index}]} >> $DepDir/root.dep
    105105  done
    106   echo 1 > $DepDir/root.dep
    107   echo 1 >> $DepDir/root.dep
    108   cat $DepDir/root.odep >> $DepDir/root.dep
    109106}
    110107
     
    157154pushd $DepDir > /dev/null
    158155set +e
    159 generate_dependency_tree root.dep 1
    160 echo
    161 LIST="$(tree_browse root.dep)"
     156generate_subgraph root.dep 1 1 b
     157echo -e "\n${SD_BORDER}"
     158echo Graph contains $(ls |wc -l) nodes
     159echo -e "${SD_BORDER}"
     160echo Cleaning subgraph...
     161clean_subgraph
     162echo done
     163echo Generating the tree
     164echo 1 >  root.tree
     165echo 1 >> root.tree
     166cat root.dep >> root.tree
     167generate_dependency_tree root.tree 1
     168echo -e "\n${SD_BORDER}"
     169#echo -e \\n provisional end...
     170#exit
     171echo Generating the ordered package list
     172LIST="$(tree_browse root.tree)"
    162173set -e
    163174popd > /dev/null
     
    165176echo Making XML book
    166177xsltproc --stringparam list    "$LIST"        \
    167          --stringparam MTA     "$SERVER_MAIL" \
     178         --stringparam MTA     "$MAIL_SERVER" \
    168179         --stringparam lfsbook "$LFS_FULL"    \
    169180         -o ${BookXml} \
Note: See TracChangeset for help on using the changeset viewer.