Changeset e030049


Ignore:
Timestamp:
02/19/2018 04:01:00 PM (6 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
8fb1daa
Parents:
df1f318
Message:

BLFS/func_dependencies: when building the graph, and DEP_LEVEL=3 (build opt
deps only for requested packages), it may happen that a requested packages
is seen at depth > 2 before it is seen at depth=2. In this case, optional
deps are not processed the first time, and then the package is not processed
at depth 2 because it has already been seen. Add a case statement against
that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/libs/func_dependencies

    rdf1f318 re030049  
    136136{
    137137while read prio_of_dep build_of_dep id_of_dep; do
    138 case $prio_of_dep in
     138  case $prio_of_dep in
    139139    1) priostring=required ;;
    140140    2) priostring=recommended ;;
    141141    3) priostring=optional ;;
    142142    4) priostring=external ;;
    143 esac
    144 case $build_of_dep in
     143  esac
     144  case $build_of_dep in
    145145    a) buildstring=runtime ;;
    146146    b) buildstring=        ;;
    147 esac
    148 # Has this entry already been seen
     147  esac
     148# Has this entry already been seen?
     149# We have a special case here: if the entry has been seen at depth > 2
     150# and now depth=2 and DEP_LEVEL=3, optional deps have not been processed.
     151# If this is the case, just consider it has not been seen.
    149152  if [ -f ${id_of_dep}.dep ] ; then
     153    case $depth$DEP_LEVEL in
     154      23) ;;
     155       *)
    150156# Just display it and proceed.
    151     echo -en "\nEdge: $depth${spaceSTR:0:$((depth + spacing))}${MAGENTA}${id_of_dep}${OFF} $priostring $buildstring"
    152     continue
     157         echo -en "\nEdge: $depth${spaceSTR:0:$((depth + spacing))}${MAGENTA}${id_of_dep}${OFF} $priostring $buildstring"
     158         continue
     159         ;;
     160    esac
    153161  fi
    154162# Is the weight higher than requested?
Note: See TracChangeset for help on using the changeset viewer.