0) make it python 3.3 compatible 1) use proper --with-pythonXY on configure 2) remove graphite flags due a bug in upstream Reproducible: Always Actual Results: python example work well w/ python 3.3. kapidox (recently hacked to use python bindings for graphviz) is able to build KF5 documentation.
Created attachment 370414 [details, diff] patch to make it python 3 compatible
Created attachment 370416 [details, diff] patch to turn 2.36.0 to 2.36.0-r1
Created attachment 370418 [details] updated ebuild
Comment on attachment 370418 [details] updated ebuild --- graphviz-2.36.0.ebuild 2014-02-07 14:30:47.135367781 +0100 +++ - 2014-02-15 12:36:23.339200527 +0100 @@ -3,7 +3,7 @@ # $Header: /var/cvsroot/gentoo-x86/media-gfx/graphviz/graphviz-2.36.0.ebuild,v 1.2 2014/02/06 12:19:14 kensington Exp $ EAPI=5 -PYTHON_COMPAT=( python{2_6,2_7} ) +PYTHON_COMPAT=( python{2_6,2_7,3_3} ) inherit autotools eutils flag-o-matic java-pkg-opt-2 multilib python-single-r1 @@ -137,7 +137,8 @@ src_prepare() { epatch \ "${FILESDIR}"/${PN}-2.34.0-Xaw-configure.patch \ - "${FILESDIR}"/${PN}-2.34.0-dot-pangocairo-link.patch + "${FILESDIR}"/${PN}-2.34.0-dot-pangocairo-link.patch \ + "${FILESDIR}"/${P}-python3-compat.patch # ToDo: Do the same thing for examples and/or # write a patch for a configuration-option @@ -168,6 +169,13 @@ use java && append-cppflags $(java-pkg_get-jni-cflags) + # 2.36.0 has assertion failure w/ some graphite flags: + # dot: mincross.c:1077: install_in_rank: Assertion ` + # (((Agraphinfo_t*)(((Agobj_t*)(g))->data))->rank)[r].n <= + # (((Agraphinfo_t*)(((Agobj_t*)(g))->data))->rank)[r].an' failed. + # So, turn graphite options OFF + filter-flags -floop* -fgraphite* -ftree-loop* -fivopts + eautoreconf } @@ -204,6 +212,7 @@ --without-visio" # Bindings: + local -r with_python=`sed 's,_,,' <<<${PYTHON_SINGLE_TARGET}` myconf="${myconf} $(use_enable guile) --disable-io @@ -212,7 +221,7 @@ --disable-ocaml $(use_enable perl) --disable-php - $(use_enable python) + $(use_enable python ${with_python}) --disable-r $(use_enable ruby) --disable-sharp
I said this on another bug too, but if it's possible, non-single-target support would be nice too.
Created attachment 370600 [details, diff] use python-r1 instead of python-single-r1 next generation of the same ebuild capable to link w/ few PYTHON_TARGETS simultaneously. kde-frameworks/kapidox now can be less restrictive about python version. https://github.com/gentoo/kde/commit/a452697f2b2debfea728af5f2dd5a4e84342b5e5#commitcomment-5387329
Created attachment 370602 [details, diff] make it python3 compatible + fixes add Python3 support + a lot of fixes to ugly config files (full of copy-n-paste errors)... upstream devs definitely must read some docs about autotools...
The python3 compat patches should probably be forwarded to upstream directly for preventing us from diverging with them Thanks
Fedora is applying this simpler patch https://src.fedoraproject.org/rpms/graphviz/blob/master/f/graphviz-2.40.1-python3.patch