From: Osama Abdelkader <osama.abdelkader@gmail.com>
To: yocto@lists.yoctoproject.org
Cc: bitbake-devel@lists.openembedded.org
Subject: [RFC] Proposal: New tool to display recipe dependency trees
Date: Mon, 24 Nov 2025 19:24:04 +0200 [thread overview]
Message-ID: <aSSUtHYFQlychNQk@osama> (raw)
Hi All,
I would like to propose adding a new command-line tool (or BitBake subcommand) that generates
dependency trees, including:
DEPENDS (build-time)
RDEPENDS (runtime)
Optional graph output (text, JSON)
Motivation
Currently, BitBake provides:
bitbake -g produces task-depends.dot (task-level, not recipe-level, must use graphviz)
oe-pkgdata-util runtime dependency only
bitbake -e <recipe> view variables, but manually
Errors from the dependency resolver (if a recipe is missing)
But there is no built-in CLI tool to display a recipe dependency tree, e.g.:
bitbake-deptree dnf
dnf
├── libdnf
│ ├── libsolv
│ └── json-c
└── sqlite3
Such a tool would help:
layer developers understanding complex deps
learning how Yocto resolves recipe names, PROVIDES, virtual/ mappings
documenting or visualizing architecture
I started experimenting with a prototype using Tinfoil to walk DEPENDS and collect data through BitBake’s recipecache, and it seems feasible.
Questions for the community
Before developing this further, I would like guidance on the following:
Is this functionality valuable upstream? Would BitBake benefit from such a tool?
Where should it live?
Options I see:
new BitBake subcommand (e.g. bitbake-deptree)
extension to oe-pkgdata-util
standalone Python tool under scripts/
part of devtool?
Preferred output format(s)?
Plain ASCII tree (default)
JSON
Should the tool:
cover only DEPENDS (build-time)?
include RDEPENDS with pkgdata?
resolve virtual/ providers?
Any prior work I may have missed?
If the idea is acceptable, I will prepare a proper implementation and send a patchset to the appropriate mailing list.
Thank you for your feedback!
Best regards,
Osama
next reply other threads:[~2025-11-24 17:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-24 17:24 Osama Abdelkader [this message]
2025-11-24 18:04 ` [bitbake-devel] [RFC] Proposal: New tool to display recipe dependency trees Alexander Kanavin
2025-11-24 18:20 ` Quentin Schulz
2025-11-24 18:48 ` Osama Abdelkader
2025-11-24 18:42 ` Osama Abdelkader
2025-11-24 18:53 ` Alexander Kanavin
2025-11-25 20:15 ` Osama Abdelkader
2025-11-24 20:49 ` [yocto] " Ross Burton
2025-11-25 20:26 ` Osama Abdelkader
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aSSUtHYFQlychNQk@osama \
--to=osama.abdelkader@gmail.com \
--cc=bitbake-devel@lists.openembedded.org \
--cc=yocto@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.