All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]: Fix GraphViz .dot output for rdepends and rrecs (BitBake 1.10)
@ 2010-10-29 21:28 Matt Johnson
  2010-10-29 22:01 ` Paul Menzel
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Johnson @ 2010-10-29 21:28 UTC (permalink / raw)
  To: openembedded-devel

The below patch fixes rdepends and rrecs GraphViz output.  These two are 
put into the rdepends data structure differently than the rest, and 
without this patch, each character gets its own vertex, which is wrong 
and creates massive .dot files.  The fix is similar to a previous one 
documented here: 
http://bugs.openembedded.org/attachment.cgi?id=13797&action=diff 
<http://bugs.openembedded.org/attachment.cgi?id=13797&action=diff> .  I 
have submitted the patch to the BitBake developer list too.

diff -uNr lib/bb/cooker.py.busted lib/bb/cooker.py
--- lib/bb/cooker.py.busted     2010-10-29 16:15:01.157515847 -0500
+++ lib/bb/cooker.py    2010-10-29 16:17:12.367546106 -0500
@@ -435,11 +435,11 @@
              for depend in depgraph["depends"][pn]:
                  print >> depends_file, '"%s" -> "%s"' % (package, depend)
          for package in depgraph["rdepends-pkg"]:
-            for rdepend in depgraph["rdepends-pkg"][package]:
-                print >> depends_file, '"%s" -> "%s" [style=dashed]' % 
(package, rdepend)
+            for rdepend in re.findall("([\w.-]+)(\ \(.+\))?", 
''.join(depgraph["rdepends-pkg"][package])):
+                print >> depends_file, '"%s" -> "%s%s" [style=dashed]' 
% (package, rdepend[0], rdepend[1])
          for package in depgraph["rrecs-pkg"]:
-            for rdepend in depgraph["rrecs-pkg"][package]:
-                print >> depends_file, '"%s" -> "%s" [style=dashed]' % 
(package, rdepend)
+            for rdepend in re.findall("([\w.-]+)(\ \(.+\))?", 
''.join(depgraph["rrecs-pkg"][package])):
+                print >> depends_file, '"%s" -> "%s%s" [style=dashed]' 
% (package, rdepend[0], rdepend[1])
          print >> depends_file,  "}"
          bb.msg.plain("Package dependencies saved to 
'package-depends.dot'")




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH]: Fix GraphViz .dot output for rdepends and rrecs (BitBake 1.10)
  2010-10-29 21:28 [PATCH]: Fix GraphViz .dot output for rdepends and rrecs (BitBake 1.10) Matt Johnson
@ 2010-10-29 22:01 ` Paul Menzel
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Menzel @ 2010-10-29 22:01 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 375 bytes --]

Am Freitag, den 29.10.2010, 16:28 -0500 schrieb Matt Johnson:
> The below patch fixes rdepends and rrecs GraphViz output.

[…]

It looks like your MUA mangled the patch and added line breaks.

Also your Signed-of-by line is missing. Please take a look at OE’s
commit policy [1].


Thanks,

Paul


[1] http://wiki.openembedded.org/index.php/Commit_Policy

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-29 22:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-29 21:28 [PATCH]: Fix GraphViz .dot output for rdepends and rrecs (BitBake 1.10) Matt Johnson
2010-10-29 22:01 ` Paul Menzel

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.