diff -u graphviz-2.16/debian/changelog graphviz-2.16/debian/changelog --- graphviz-2.16/debian/changelog +++ graphviz-2.16/debian/changelog @@ -1,3 +1,9 @@ +graphviz (2.16-3ubuntu3) hardy; urgency=low + + * Fix for dotty hang caused by misplaced fflush() in dot. + + -- Erik de Castro Lopo Thu, 21 Feb 2008 09:29:06 +1100 + graphviz (2.16-3ubuntu2) hardy; urgency=low * Build depend on liblualib50-dev instead of liblua50-dev. diff -u graphviz-2.16/debian/patches/series graphviz-2.16/debian/patches/series --- graphviz-2.16/debian/patches/series +++ graphviz-2.16/debian/patches/series @@ -6,0 +7 @@ +3_fflush_bugfix only in patch2: unchanged: --- graphviz-2.16.orig/debian/patches/3_fflush_bugfix +++ graphviz-2.16/debian/patches/3_fflush_bugfix @@ -0,0 +1,29 @@ +--- graphviz-2.16/lib/gvc/gvrender.c.orig 2008-02-17 10:39:15.000000000 -0500 ++++ graphviz-2.16/lib/gvc/gvrender.c 2008-02-17 10:40:09.000000000 -0500 +@@ -306,6 +306,7 @@ + cg->end_graph(); + } + #endif ++ gvdevice_format(job); + } + + void gvrender_begin_page(GVJ_t * job) +@@ -345,7 +346,6 @@ + cg->end_page(); + } + #endif +- gvdevice_format(job); + } + + void gvrender_begin_layer(GVJ_t * job) +--- graphviz-2.16/lib/gvc/gvdevice.c.orig 2008-02-17 10:34:40.000000000 -0500 ++++ graphviz-2.16/lib/gvc/gvdevice.c 2008-02-17 10:34:52.000000000 -0500 +@@ -207,7 +207,7 @@ + if (job->output_file + && ! job->external_context + && job->output_lang != TK +- && ! job->flags & GVDEVICE_COMPRESSED_FORMAT) ++ && ! (job->flags & GVDEVICE_COMPRESSED_FORMAT)) + fflush(job->output_file); + } +