pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/41971: graphics/dia-python cannot find pygtk module (py25-gtk2 is installed)



The following reply was made to PR pkg/41971; it has been noted by GNATS.

From: Robert Elz <kre%munnari.OZ.AU@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/41971: graphics/dia-python cannot find pygtk module (py25-gtk2 
is installed) 
Date: Sat, 26 Sep 2009 07:48:41 +0700

     Date:        Fri, 25 Sep 2009 11:55:01 +0000 (UTC)
     From:        "OBATA Akio" <obache%NetBSD.org@localhost>
     Message-ID:  <20090925115501.D25F863B850%www.NetBSD.org@localhost>
 
   |  configure:25062: checking for python module gtk
   |  /usr/pkg/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py:72: 
GtkWarning: could not open display
   |     warnings.warn(str(e), _gtk.Warning)
   |  configure:25088: result: yes
 
 Yes, I see the exact same thing when DISPLAY is a random value.
 When it is a proper, but unauthorised, server, it still fails just the
 same way as described in the initial PR.
 
 That makes for a simple workaround to build the package, and suggests
 that the real problem here is very strange  behaviour of the pygtk
 module (&/or python) rather than a defect in this package itself.
 
 It isn't even clear why pygtk would want to make a connection to
 the X server when used the way it is by the tiny program configure runs
 to check that pygtk is present.
 
 A fairly easy fix (avoidance procedure) for this package would be to
 simply remove the test for pygtk from the configure script - pkgsrc
 knows (ensures) that pygtk is present using its dependency mechanism,
 there's no real need in a pkgsrc environment to test further for it.
 
 kre
 


Home | Main Index | Thread Index | Old Index