FTBFS with Python 2.7 on Natty

Bug #683182 reported by Barry Warsaw
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
graphviz (Ubuntu)
Fix Released
High
Barry Warsaw

Bug Description

Binary package hint: graphviz

Graphviz fails to build on Natty with Python 2.7. I will attach full build log, but here's the relevant failure line:

for i in python2.6 python2.7; do \
  install -d /build/barry-graphviz_2.26.3-5-amd64-xiXBnD/graphviz-2.26.3/debian/libgv-python/usr/lib/$i/$(basename $(_py_=$i; python${_py_#python*} -c 'from distutils import sysconfig; print(sysconfig.get_python_lib())')) ; \
  cp /build/barry-graphviz_2.26.3-5-amd64-xiXBnD/graphviz-2.26.3/debian/libgv-python/usr/lib/graphviz/python/gv.py \
   /build/barry-graphviz_2.26.3-5-amd64-xiXBnD/graphviz-2.26.3/debian/libgv-python/usr/lib/$i/$(basename $(_py_=$i; python${_py_#python*} -c 'from distutils import sysconfig; print(sysconfig.get_python_lib())')) ; \
  mv /build/barry-graphviz_2.26.3-5-amd64-xiXBnD/graphviz-2.26.3/debian/libgv-python/usr/lib/graphviz/$(echo $i|sed -e 's/\.//')/*.so \
   /build/barry-graphviz_2.26.3-5-amd64-xiXBnD/graphviz-2.26.3/debian/libgv-python/usr/lib/$i/$(basename $(_py_=$i; python${_py_#python*} -c 'from distutils import sysconfig; print(sysconfig.get_python_lib())')) ; \
 done
mv: cannot stat `/build/barry-graphviz_2.26.3-5-amd64-xiXBnD/graphviz-2.26.3/debian/libgv-python/usr/lib/graphviz/python27/*.so': No such file or directory
make: *** [install] Error 1
dpkg-buildpackage: error: /usr/bin/fakeroot debian/rules binary-arch gave error exit status 2

Tags: patch python27

Related branches

Revision history for this message
Barry Warsaw (barry) wrote :
tags: added: python27
Changed in graphviz (Ubuntu):
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Barry Warsaw (barry)
Revision history for this message
Barry Warsaw (barry) wrote :

So I think the problem is that graphviz does not support --enable-python27 in it's configure script. I tried building this in a pbuilder with only Python 2.7 enabled and it still fails. Do ./configure --help to see the lack of option. I am investigating.

Changed in graphviz (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Barry Warsaw (barry) wrote :

This gets us farther by adding --enable-python27 to configure.ac (you probably need to re-run autoconf or autoreconf though the latter causes a big change). The build still fails though.

test -z "/usr/share/man/man3" || /bin/mkdir -p "/build/barry-graphviz_2.26.3-5ubuntu1-amd64-_h4V9Y/graphviz-2.26.3/debian/tmp/usr/share/man/man3"
 /usr/bin/install -c -m 644 gv.3guile gv.3lua gv.3ocaml gv.3perl gv.3php gv.3python gv.3python gv.3ruby gv.3tcl '/build/barry-graphviz_2.26.3-5ubuntu1-amd64-_h4V9Y/graphviz-2.26.3/debian/tmp/usr/share/man/man3'
/usr/bin/install: will not overwrite just-created `/build/barry-graphviz_2.26.3-5ubuntu1-amd64-_h4V9Y/graphviz-2.26.3/debian/tmp/usr/share/man/man3/gv.3python' with `gv.3python'
make[5]: *** [install-man3] Error 1
make[5]: Leaving directory `/build/barry-graphviz_2.26.3-5ubuntu1-amd64-_h4V9Y/graphviz-2.26.3/tclpkg/gv'
make[4]: *** [install-am] Error 2
make[4]: Leaving directory `/build/barry-graphviz_2.26.3-5ubuntu1-amd64-_h4V9Y/graphviz-2.26.3/tclpkg/gv'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory `/build/barry-graphviz_2.26.3-5ubuntu1-amd64-_h4V9Y/graphviz-2.26.3/tclpkg/gv'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/build/barry-graphviz_2.26.3-5ubuntu1-amd64-_h4V9Y/graphviz-2.26.3/tclpkg'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/build/barry-graphviz_2.26.3-5ubuntu1-amd64-_h4V9Y/graphviz-2.26.3'
make: *** [install] Error 2
dpkg-buildpackage: error: /usr/bin/fakeroot debian/rules binary-arch gave error exit status 2

tags: added: patch
Revision history for this message
Barry Warsaw (barry) wrote :

Ignore the previous patch. Here's the debdiff that fixes the build failure. quilts don't play nicely with branches so no merge proposal.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package graphviz - 2.26.3-5ubuntu1

---------------
graphviz (2.26.3-5ubuntu1) natty; urgency=low

  * Really add support for Python 2.7. (LP: #683182)
 -- Barry Warsaw <email address hidden> Fri, 03 Dec 2010 18:08:11 -0500

Changed in graphviz (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.