From eec87dbd1f226a0bf09145862f43b36fd1fde14b Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Fri, 10 Dec 2021 18:19:06 +0100 Subject: [PATCH] Add dependency thoughts to BLFS/TODO --- BLFS/TODO | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/BLFS/TODO b/BLFS/TODO index 51207ec..ad11b07 100644 --- a/BLFS/TODO +++ b/BLFS/TODO @@ -15,3 +15,26 @@ the BLFS book should be revised and validated, but our time is limited. -- Bugs hunting. + +-- About dependencies + A. A DEPENDENCY MAY NOT BE INSTALLED EVEN IF NEEDED + Currently (December 10th, 2021), the dependencies are only installed + if either: + - (i) they are not already installed + - (ii) their version is higher than the installed version + If a dependency is not installed, its dependencies are not considered. + But it may happen that a dependency (depB) of a dependency (depA) is in + case (i) or (ii) (most likely), but not depA. In this case, depB is + not considered, although it might happen that it is needed for the + requested package. + So the dependency system should be changed to always compute the full + dependency chain, and another function should be created to remove + packages not in case (i) or (ii) from the list of generated dependencies. + B. CHECKING DEPENDENCIES + There are several kinds of checks we might want to implement, for + example: + - (i) check that a package can be built with only the listed + dependencies, and their dependencies (missing dependency) + - (ii) check that the dependencies do not include dependencies + that are already in the dependency chain (redundant dependency) + - (iii) check that a dependency is really needed (false dependency)