From d607ac37173a520a92b30255d2968420e0ffab5d Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sun, 22 Feb 2015 15:16:49 +0000 Subject: [PATCH] Fix dependency generator: When the .dep file is scanned during the tree building, it outputs dependencies in the file order, while when the tree is scanned later, dependencies are output in alphabetical order. This may eventually lead to a wrong order at the end. To be sure that both output are the same, just sort the .dep file before scanning it. --- BLFS/libs/func_dependencies | 1 + 1 file changed, 1 insertion(+) diff --git a/BLFS/libs/func_dependencies b/BLFS/libs/func_dependencies index b3b2d80..87ea5a3 100644 --- a/BLFS/libs/func_dependencies +++ b/BLFS/libs/func_dependencies @@ -113,6 +113,7 @@ of ${BOLD}${DepFile%.dep}${OFF}" ../xsl/dependencies.xsl ../packages.xml if [[ -f ${id_of_dep}.dep ]]; then + sort ${id_of_dep}.dep -o ${id_of_dep}.dep sed -i "1i${rootlink[*]} $count" ${id_of_dep}.dep generate_dependency_tree ${id_of_dep}.dep # Test return value, in case we exchange dependencies