dependencies: ensure availability of host-tar, cleanups in graphs
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest7 patches 0 repliesNew
- v17 patches 0 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | support/graph-depends: ensure all packages get graphedsupport/ | +9 | 0 replies | |
| 2/7 | support/graph-depends: also cut on host-skeletonsupport/ | +8 | 0 replies | |
| 3/7 | support/graph-depends: also cut on host-tarsupport/ | +1 | 0 replies | |
| 4/7 | core/package: postpone evaluation of dependency conditionspackage/ | +10 | 0 replies | |
| 5/7 | core/package: add possibility to declare download dependenciespackage/ | +3 | 0 replies | |
| 6/7 | core/package: add host-tar dependency for downloads from repositoriespackage/ | +4 | 0 replies | |
| 7/7 | fs: always depend on build host-tar if neededfs/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [Buildroot] [PATCH 0/7 v2] dependencies: ensure availability of host-tar, cleanups in graphs
Hello All!
This series brings two major changes:
1- consistency cleanups in the dependency graph
2- ensure that host-tar is available when we need it
The first part, covering the first three patches, is mostly a cleanup pass, to ensure the graph is not too cluttered, but yet does not miss out any package. This is pretty trivial, except for the first patch, which has a detailed commit log: in some conditions, we may have missed packages from the dependency graph. We did not have that situation with our internal packages so far, but the host-skeleton cut-off really uncovered it: when a package with no dependency is also a cut-off point (to avoid cluterring), and is not a top-level dependency, then that package is not displayed in the dependency graph, not even as a dependency of 'ALL'. Fixing is pretty trivial: add any newly-discovered package asa dependency of 'ALL'; transitivity removal will clanup the mess afterward.
The second part, not much more complex either, ensures that host-tar is built and installed before a download backend, that _locally_ generates a tarball, is called. When a package downloaded from a repository is downloaded 'early' in the build process, it may well be so-downloaded before host-tar was built, because host-tar is only an extract dependency (so far), so the system tar is used, which may generate archives that do not match the hash we have for them.
As such, a new type of dependency is added, that guarantees ordering before the download step. Then, host-tar is added as a download dependency to packages which site method is one of the repository-based downloads that call to tar: cvs, git and svn (bzr and hg use their internal tarball generator).
Finally, the filesystems are made to depend on host-tar when it is needed, too, because we do generate the intermediate tarball, which is then extracted by all filesystems.
Regards,
Yann E. MORIN.
The following changes since commit 6ac12d8b18b4e1ebd8b11279e98068d2b3ba449e
Revert "libcrossguid: bump to version 0.2.2" (2018-05-08 15:39:16 +0200)
are available in the git repository at:
git://git.buildroot.org/~ymorin/git/buildroot.git
for you to fetch changes up to d8b722a2f2638142b1a68c7c5bd7ced36d2f34db
fs: always depend on build host-tar if needed (2018-05-08 22:38:29 +0200)
----------------------------------------------------------------
Yann E. MORIN (7):
support/graph-depends: ensure all packages get graphed support/graph-depends: also cut on host-skeleton support/graph-depends: also cut on host-tar
core/package: postpone evaluation of dependency conditions core/package: add possibility to declare download dependencies core/package: add host-tar dependency for downloads from repositories
fs: always depend on build host-tar if needed
fs/common.mk | 1 + package/pkg-generic.mk | 27 +++++++++++++++++---------- support/scripts/graph-depends | 19 ++++++++++++++++++- 3 files changed, 36 insertions(+), 11 deletions(-)
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'