| Summary: | host-policycoreutils-graph-depends fails | ||
|---|---|---|---|
| Product: | buildroot | Reporter: | Thomas Petazzoni <thomas.petazzoni> |
| Component: | Other | Assignee: | Yann E. MORIN <yann.morin.1998> |
| Status: | RESOLVED MOVED | ||
| Severity: | normal | CC: | buildroot |
| Priority: | P5 | ||
| Version: | 2019.08 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
That is most likely due to a circular dependency. The issue is that circular dependencies are no longer handles properly by graph-depends since we use show-info. (In reply to Thomas Petazzoni from comment #0) As you already found, the issue is because the package is not enabled (it is a host package without a config.in option), and is also not in the dependency chain of any other package. The proposal I have is to add a check to graph-depends, that checks that the requested root package is indeed enabled, and if not, inform the user rather than spew a traceback. (In reply to Arnout Vandecappelle from comment #1) > circular dependencies are no longer handles properly by graph-depends Yes they are: https://git.buildroot.org/buildroot/tree/support/scripts/graph-depends#n133 and https://git.buildroot.org/buildroot/tree/support/scripts/graph-depends#n337 (In reply to Yann E. MORIN from comment #2) >> circular dependencies are no longer handles properly by graph-depends > Yes they are: https://git.buildroot.org/buildroot/tree/support/scripts/graph-depends#n133 and https://git.buildroot.org/buildroot/tree/support/scripts/graph-depends#n337 The code is there, but you don't get that far because 'make show-info' fails if there is a circular dependency. For any package involved in the loop, _FINAL_RECURSIVE_DEPENDENCIES will trigger a circular dependency error from make. So show-info never prints anything. Thank you for your report.
The issue tracker for the Buildroot project has been moved to
the Gitlab.com issue tracker:
https://gitlab.com/buildroot.org/buildroot/-/issues
We are taking this opportunity to close old issues in this old
tracker. If you believe your issue is still relevant, please
open one in the new issue tracker.
Thank you!
|
$ make host-policycoreutils-graph-depends Getting dependency tree... Traceback (most recent call last): File "/home/thomas/projets/buildroot/support/scripts/graph-depends", line 357, in <module> sys.exit(main()) File "/home/thomas/projets/buildroot/support/scripts/graph-depends", line 341, in main dict_deps = remove_extra_deps(dict_deps, rootpkg, args.transitive, arrow_dir) File "/home/thomas/projets/buildroot/support/scripts/graph-depends", line 170, in remove_extra_deps if d not in deps[rootpkg]: KeyError: 'host-policycoreutils' make[1]: *** [package/policycoreutils/policycoreutils.mk:100: host-policycoreutils-graph-depends] Error 1 make: *** [Makefile:84: _all] Error 2