Author: pierre
Date: Fri Feb  2 13:12:30 2018
New Revision: 4035

Log:
Because we do not want to depend on <pack>groupxx if it creates a circular
    dependency, it may happen that nothing depends on <pack>groupxx. Detect and
    fix this by appending <pack>groupsxx to root.dep

Modified:
   jhalfs/trunk/BLFS/libs/func_dependencies

Modified: jhalfs/trunk/BLFS/libs/func_dependencies
==============================================================================
--- jhalfs/trunk/BLFS/libs/func_dependencies    Fri Feb  2 13:10:16 2018        
(r4034)
+++ jhalfs/trunk/BLFS/libs/func_dependencies    Fri Feb  2 13:12:30 2018        
(r4035)
@@ -265,6 +265,7 @@
 for node in $(grep -l ' a ' *.dep); do
   lines_to_remove=
   if ! [ -e ${node%.dep}groupxx.dep ]; then
+    b=0
     for parent in $(grep -l ${node%.dep}\$ *); do
       p=0
       for start in $(grep ' a ' $node | cut -d' ' -f3); do
@@ -272,10 +273,12 @@
         if path_to ${start}.dep ${parent%.dep} 3; then p=1; break; fi
       done
       if test $p = 0; then
+        b=1
         sed -i "s/\ ${node%.dep}\$/&groupxx/" $parent
       fi
     done
     echo "1 b ${node%.dep}" > ${node%.dep}groupxx.dep
+    if test $b = 0; then echo "1 b ${node%.dep}groupxx" >> root.dep; fi
   fi
   {
   while read prio_of_dep build_of_dep id_of_dep; do
-- 
http://lists.linuxfromscratch.org/listinfo/alfs-log
Unsubscribe: See the above information page

Reply via email to