From d3c1125cfda422cd268e12e0e2a18752edbe6b55 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 14 Mar 2012 00:55:59 -0400 Subject: Add dependency graph. --- diff --git a/depgraphs/Build-Depends_system_simplified.dot b/depgraphs/Build-Depends_system_simplified.dot new file mode 100644 index 0000000..cbe41ac --- /dev/null +++ b/depgraphs/Build-Depends_system_simplified.dot @@ -0,0 +1,57 @@ +/* + * Build-Depends_system_simplified.dot + * This is a high-level view of build dependencies between system packages. + * It is a graph of "Build-Depends" fields, showing dependencies on source + * package names rather than binary package names (e.g. "gcc" build-depends on + * "mpfr" rather than "libmpfr.4"). + */ + +digraph "Build-Depends_system_simplified" { + subgraph "Toolchain" { + "gcc" -> "gmp" + "gcc" -> "mpfr" + "gcc" -> "mpc" + "gcc" -> "binutils" + "gcc" -> "gcc" + "gcc" -> "make" + "mpfr" -> "gmp" + "mpfr" -> "make" + "mpfr" -> "gcc" + "mpfr" -> "binutils" + "mpc" -> "mpfr" + "mpc" -> "gmp" + "mpc" -> "make" + "mpc" -> "gcc" + "mpc" -> "binutils" + "gmp" -> "make" + "gmp" -> "gcc" + "gmp" -> "binutils" + "make" -> "make" + "make" -> "gcc" + "make" -> "binutils" + "binutils" -> "make" + "binutils" -> "gcc" + "binutils" -> "binutils" + } + subgraph "System" { + "busybox" -> "config-" + "busybox" -> "gcc" + "busybox" -> "make" + "busybox" -> "binutils" + "linux" -> "config-" + "linux" -> "make" + "linux" -> "gcc" + "binutils" -> "binutils" + "basefiles-" + } + subgraph "Package" { + "opkg" -> "gcc" + "opkg" -> "make" + "opkg" -> "binutils" + "fakeroot" -> "gcc" + "fakeroot" -> "make" + "fakeroot" -> "binutils" + "opkhelper" + "opkhelper-buildflags" + } +} diff --git a/depgraphs/Build-Depends_system_simplified.png b/depgraphs/Build-Depends_system_simplified.png new file mode 100644 index 0000000..8b3ddb8 --- /dev/null +++ b/depgraphs/Build-Depends_system_simplified.png Binary files differ diff --git a/depgraphs/Makefile b/depgraphs/Makefile new file mode 100644 index 0000000..72db2da --- /dev/null +++ b/depgraphs/Makefile @@ -0,0 +1,21 @@ +# Drawing these graphs requires Graphviz. + +.SUFFIXES: +.SUFFIXES: .dot .png + +SRCS = Build-Depends_system_simplified.dot +OBJS = $(SRCS:.dot=.png) + +.PHONY: all +all: $(OBJS) + +$(OBJS): + @printf ' DRAW %s\n' '$@' + @dot -T png -o '$@' '$*.dot' + +.PHONY: clean +clean: + @for obj in $(OBJS); do \ + printf ' RM %s\n' "$${obj}"; \ + rm -f $${obj}; \ + done -- cgit v0.9.1