After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 593607 - pycairo doesn't tinderbox configure
pycairo doesn't tinderbox configure
Status: RESOLVED NOTGNOME
Product: jhbuild
Classification: Infrastructure
Component: general
2.27.x
Other Linux
: Normal normal
: ---
Assigned To: Jhbuild maintainers
Jhbuild QA
Depends on:
Blocks:
 
 
Reported: 2009-08-31 05:12 UTC by Craig Keogh
Modified: 2009-08-31 07:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Craig Keogh 2009-08-31 05:12:53 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
Comment 1 Frederic Peters 2009-08-31 06:23:47 UTC
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?
Comment 2 Craig Keogh 2009-08-31 07:45:44 UTC
Thanks Frederic.

Bug at:
https://bugs.freedesktop.org/show_bug.cgi?id=23599