Commit graph

36 commits

Author SHA1 Message Date
Pierre Labastie
abadee36de Improve and augment the "func_dependency" doc 2021-12-30 14:20:43 +01:00
Pierre Labastie
141d072bf6 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.
2021-12-19 17:30:10 +01:00
Pierre Labastie
a78cfc961e Better document the loop on "after" deps
Add also a description of that loop in the general header
2021-12-19 17:30:10 +01:00
Pierre Labastie
e0bbc6e6ac Document some variables in func_dependencies
Better document the $seen global variable used in path_to,
also at places where "path_to" is called.
Document p and b flags in the loop over "after" deps.
Document lr variable in the loop over "first" deps.
2021-12-19 17:30:10 +01:00
Pierre Labastie
dd9ca56bd2 BLFS dependencies: better document the functions
First the function used in pass1. Also some nit in the function itself
2021-12-18 15:28:47 +01:00
Pierre Labastie
fd4a7982f2 Remove $Id$ comments, they are useless with git 2021-10-31 10:22:30 +01:00
Pierre Labastie
e030049a44 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.
2018-02-19 16:01:00 +00:00
Pierre Labastie
28546ae95d Output some information during the cleaning phase in BLFS dependency engine
for the impatient
2018-02-09 09:24:55 +00:00
Pierre Labastie
f1edc8e377 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
2018-02-02 21:12:30 +00:00
Pierre Labastie
d80302bf94 Impose -pass1 to be built before its dependant package (bug #1718) 2018-02-02 21:10:16 +00:00
Pierre Labastie
59afe7323a BLFS/libs: Another stupid bug in path_to 2018-02-02 21:06:49 +00:00
Pierre Labastie
5afaf7cc48 BLFS/libs/func_dependencies: fix 2 stupid bug in function path_to 2018-02-02 17:55:29 +00:00
Pierre Labastie
2140f22a88 New management of dependencies:
- Even if only required or recommended deps only are requested and built,
  account for optional deps to build the pacakge order
- build "runtime" deps after the pacakge dependening on them, but before
  any other package
- using the "first" role in the book, implement pass1 pacakges when there
  are circular dependencies
- Documentation has still to be written
- There must be bugs, thank you for testing...
2018-01-28 17:56:55 +00:00
Pierre Labastie
2e1c1c3c16 Remove spaces at the end of lines 2018-01-13 09:08:56 +00:00
Pierre Labastie
6c8095a04f Avoid infinite recursion in "tree-erase" if there is a circular dependency 2017-08-22 09:00:49 +00:00
Pierre Labastie
4888f0cdd4 typos 2016-02-29 15:30:06 +00:00
Pierre Labastie
f37d08b3aa Fix a bug in "tree_erase",
which occurs rarely
2016-02-28 18:07:52 +00:00
Pierre Labastie
e91a15da8a Print external dependencies when printing the dependency tree 2015-11-23 14:22:48 +00:00
Pierre Labastie
7ac11f0671 Fix a long standing bug preventing the chosen MTA to be used and improve
some comments
2015-11-23 14:14:23 +00:00
Pierre Labastie
7dc8595523 Automate the process of choosing action when there are circular dependencies.
This has to be tested, but hopefully, it should allow to find a coherent
build order when there are not too many circular dependencies
2015-11-17 20:22:04 +00:00
Pierre Labastie
d7c07e0b34 Memorize answers for circular dependencies. Still, we need a way to
automaitcally answer when competition is between for example optional
and recommended dep.
2015-11-07 11:36:11 +00:00
Pierre Labastie
1670a20e34 Again minor fix in comments for func_dependencies 2015-11-04 09:26:58 +00:00
Pierre Labastie
7f9fa78b65 Typos and minor fixes 2015-11-03 21:53:34 +00:00
Pierre Labastie
e4b1293971 Improve (?) comments in func_dependencies 2015-11-03 17:17:15 +00:00
Pierre Labastie
bd07ef520f The preceding fix is just a workaround, but the correct fix is:
- the problem is when a .dep file contains pack-A pack-B pack-A. If pack-A
and pack-B have some dep in common, say pack-C, that dep is erased from
pack-B, with the idea that it will be built as a dep of pack-A. But when
the program encounters the second pack-A, it removes the first one, so that
pack-C is built before the second pack-A, but after pack-B. Sorting was
a good workaround, but removing the last line instead of the first is
much better.
- Otherwise, add Xfce and Lxde to the list of packages whose preceding
sibling is a required dep.
2015-02-22 21:20:37 +00:00
Pierre Labastie
d607ac3717 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.
2015-02-22 15:16:49 +00:00
Pierre Labastie
e576789367 Merge ablfs branch. Normally, jhalfs should not perform differently
for building LFS
2013-10-29 15:42:03 +00:00
Manuel Canales Esparcia
aac025d60f BLFS: python-modules hacks. 2007-08-12 19:05:35 +00:00
Manuel Canales Esparcia
5e091a2b7e BLFS: Skip installed packages newer than the book ones. 2007-08-12 14:34:33 +00:00
Manuel Canales Esparcia
ba5efc414d BLFS: Revised and verified (I hope) all current circular dependencies. 2007-07-25 19:35:17 +00:00
Manuel Canales Esparcia
d72ee6934c BLFS: Fixed several new circular dependencies. 2007-07-24 23:13:22 +00:00
Manuel Canales Esparcia
53e258f2fe BLFS:Avoid a few new circular dependencies. 2007-02-11 13:31:15 +00:00
Manuel Canales Esparcia
f4ed135b17 Merged r2954:3058 from experimental. 2006-08-24 20:38:22 +00:00
Manuel Canales Esparcia
249874a3d1 Some screen output look changes. 2006-08-12 15:33:33 +00:00
Manuel Canales Esparcia
4a7e066e2a Removed depure.txt creation.
The recursive call code is more usefull to catch circular dependencies.
2006-08-12 14:47:31 +00:00
Manuel Canales Esparcia
3c10176753 Added new BLFS files from the experimental branch. 2006-07-16 10:29:37 +00:00