Skip to contentSkip to conversation

New: host-policycoreutils-graph-depends fails

Buildroot bugzilla at busybox.net 1 participant 6 messages Sep 21, 2019 – Jun 15, 2024

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=12246

Bug ID: 12246
Summary: host-policycoreutils-graph-depends fails
Product: buildroot
Version: 2019.08
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: thomas.petazzoni at free-electrons.com
CC: buildroot at uclibc.org
Target Milestone: ---

$ 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
Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 12246] host-policycoreutils-graph-depends fails

https://bugs.busybox.net/show_bug.cgi?id=12246

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at buildroot.uclibc |yann.morin.1998 at free.fr
|.org |

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 12246] host-policycoreutils-graph-depends fails

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=12246

--- Comment #1 from Arnout Vandecappelle <[email protected]> --- 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.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 12246] host-policycoreutils-graph-depends fails

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=12246

--- Comment #2 from Yann E. MORIN <[email protected]> --- (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)

Quoted 1 line

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

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#4 lore raw

[Buildroot] [Bug 12246] host-policycoreutils-graph-depends fails

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=12246

--- Comment #3 from Arnout Vandecappelle <[email protected]> --- (In reply to Yann E. MORIN from comment #2)

Quoted 3 lines
Quoted 1 line

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.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#5 lore raw

[Buildroot] [Bug 12246] host-policycoreutils-graph-depends fails

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=12246

Yann E. MORIN <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |MOVED

--- Comment #4 from Yann E. MORIN <[email protected]> --- 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!

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot