Changeset 141d072


Ignore:
Timestamp:
12/19/2021 04:30:10 PM (2 years ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
ablfs-more, legacy, trunk
Children:
f81d8bd
Parents:
a78cfc9
git-author:
Pierre Labastie <pierre.labastie@…> (12/19/2021 04:26:23 PM)
git-committer:
Pierre Labastie <pierre.labastie@…> (12/19/2021 04:30:10 PM)
Message:

BLFS Dependencies: Fix pass2 not run

With the way we manage "first" deps, it may happen that no node
unreference the pass2 node. In that case, we add it to root.
Add some documentation for what we do for those deps, too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/libs/func_dependencies

    ra78cfc9 r141d072  
    299299                a package name (so that it is removed when building the
    300300                xml book).
     301                Also change the "first" qualifier so that a cycle:
     302                 A -first-> B ---chain---> A becomes:
     303                 B ---chain---> A -before-> B-pass1
     304                and we remove all the dependencies which have a chain to
     305                A in B-pass1.
     306                Since we do not change anything else, it may happen that
     307                nothing depends on B. In that case, B is appended to root.
    301308    input       vars: None
    302309                files: <node>.dep files containing dangling edges and
     
    397404  for id_of_dep in $lines_to_change; do
    398405    sed "/\ $id_of_dep\$/"'{s/[[:digit:]] f /1 b /;s/$/-pass1/}' -i $node
     406    if ! grep -q " $id_of_dep\$" *.dep; then
     407      echo 1 b $id_of_dep >>root.dep
     408    fi
    399409  done
    400410done
Note: See TracChangeset for help on using the changeset viewer.