Bug#325374: dia: FTBFS: could not find pygtk module
Andreas Jochens
aj at andaco.de
Sun Aug 28 06:53:25 UTC 2005
Package: dia
Version: 0.94.0-12
Severity: normal
Tags: patch
When building 'dia' in a clean unstable chroot,
I get the following error:
checking if Python version >= 1.5.2... okay
checking local Python configuration... checking for script directory... /usr/lib/python2.3/site-packages
checking for extension module directory... /usr/lib/python2.3/site-packages
looks good
checking for python module gtk... X11 connection rejected because of wrong authentication.
no
configure: error: could not find pygtk module
make: *** [build-stamp] Error 1
Regards
Andreas Jochens
diff -urN ../tmp-orig/dia-0.94.0/configure.in ./configure.in
--- ../tmp-orig/dia-0.94.0/configure.in 2004-08-17 15:03:26.000000000 +0000
+++ ./configure.in 2005-08-27 17:54:47.000000000 +0000
@@ -401,7 +401,6 @@
if test "x$with_python" != xno; then
AM_PATH_PYTHON(1.5.2)
- AM_CHECK_PYMOD(gtk,,,[AC_MSG_ERROR(could not find pygtk module)])
AM_CHECK_PYTHON_HEADERS
AM_CHECK_PYTHON_LIB
diff -urN ../tmp-orig/dia-0.94.0/configure ./configure
--- ../tmp-orig/dia-0.94.0/configure 2004-08-18 15:36:58.000000000 +0000
+++ ./configure 2005-08-27 17:55:42.000000000 +0000
@@ -25277,44 +25277,6 @@
echo "${ECHO_T}looks good" >&6
-py_mod_var=`echo gtk'_' | sed 'y%./+-%__p_%'`
-echo "$as_me:$LINENO: checking for python module gtk" >&5
-echo $ECHO_N "checking for python module gtk... $ECHO_C" >&6
-if eval "test \"\${py_cv_mod_$py_mod_var+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-
-prog="
-import sys
-try:
- import gtk
-except ImportError:
- sys.exit(1)
-except:
- sys.exit(0)
-sys.exit(0)"
-if $PYTHON -c "$prog" 1>&5 2>&5
- then
- eval "py_cv_mod_$py_mod_var=yes"
- else
- eval "py_cv_mod_$py_mod_var=no"
- fi
-
-fi
-
-py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
-if test "x$py_val" != xno; then
- echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
- else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
- { { echo "$as_me:$LINENO: error: could not find pygtk module" >&5
-echo "$as_me: error: could not find pygtk module" >&2;}
- { (exit 1); exit 1; }; }
-fi
-
-
echo "$as_me:$LINENO: checking for headers required to compile python extensions" >&5
echo $ECHO_N "checking for headers required to compile python extensions... $ECHO_C" >&6
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
More information about the Pkg-gnome-maintainers
mailing list