GNOME Bugzilla – Bug 593607
pycairo doesn't tinderbox configure
Last modified: 2009-08-31 07:45:44 UTC
Pycairo doesn't configure when running as tinderbox (jhbuild tinderbox -a --output=output), but works when running from terminal (jhbuild buildone -a pycairo). I added 'set -x' to pycairo's autogen.sh. This line from autogen.sh seems to be the culprit: # some terminal codes ... boldface="`tput bold 2>/dev/null`" The output: -------------------------------------------------------------------------- pycairo Build Log Checking out pycairo 2009-08-31 14:08:51.155 cvs -z3 -q -d :pserver:anoncvs@anoncvs.freedesktop.org:/cvs/cairo update -P -d -A . ? ltmain.sh M autogen.sh Configuring pycairo 2009-08-31 14:08:53.136 ./autogen.sh --prefix /opt/gnome2 --libdir '/opt/gnome2/lib64' --disable-static --disable-gtk-doc --disable-documentation --disable-docs + set -e + ARGV0=./autogen.sh + dirname ./autogen.sh + srcdir=. + test -z . + pwd + ORIGDIR=/home/oxyde/gnome2/pycairo + cd . + PACKAGE=Pycairo + LIBTOOLIZE=libtoolize + LIBTOOLIZE_FLAGS=--copy --force + AUTOHEADER=autoheader + AUTOMAKE_FLAGS=--add-missing --foreign + AUTOCONF=autoconf + CONFIGURE_IN= + test -f configure.in + test -f configure.ac + CONFIGURE_IN=configure.ac + test Xconfigure.ac = X + extract_version AC_PREREQ + grep ^ *AC_PREREQ configure.ac + sed s/.*(\[*\([^]) ]*\).*/\1/ + autoconf_min_vers=2.59 + extract_version AM_INIT_AUTOMAKE + grep ^ *AM_INIT_AUTOMAKE configure.ac + sed s/.*(\[*\([^]) ]*\).*/\1/ + automake_min_vers=1.9.6 + extract_version AC_PROG_LIBTOOL + grep ^ *AC_PROG_LIBTOOL configure.ac + sed s/.*(\[*\([^]) ]*\).*/\1/ + libtoolize_min_vers=1.4 + aclocal_min_vers=1.9.6 + echo testing\c + echo 1,2,3 + echo -n testing + echo 1,2,3 + ECHO_N= + tput bold + boldface= error during stage configure of pycairo: Error running ./autogen.sh --prefix /opt/gnome2 --libdir '/opt/gnome2/lib64' --disable-static --disable-gtk-doc --disable-documentation --disable-docs 2009-08-31 14:08:53.442 The Gnome Live! website may have suggestions on how to resolve some build errors. Visit http://live.gnome.org/JhbuildIssues/pycairo for more information. Failed 2009-08-31 14:08:53.442
This is because it has "set -e", this means it will fail on the first error. In this case when 'tput bold' fails because it is run with TERM=dumb. Easy fix: < boldface="`tput bold 2>/dev/null`" < normal="`tput sgr0 2>/dev/null`" --- > boldface="`tput bold 2>/dev/null || /bin/true`" > normal="`tput sgr0 2>/dev/null || /bin/true`" Could you open this issue against pycairo?
Thanks Frederic. Bug at: https://bugs.freedesktop.org/show_bug.cgi?id=23599