Bug 161689 - Packaging bug (seems %{buildroot} is hardcoded in paths)
Packaging bug (seems %{buildroot} is hardcoded in paths)
Product: Fedora
Classification: Fedora
Component: pygtk2 (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Matthew Barnes
Depends On:
  Show dependency treegraph
Reported: 2005-06-25 16:53 EDT by Patrick
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version: pygtk2-2.10.3-2.fc6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-10-29 21:12:53 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
patch for pygtk2-2.6.0-2 (6.70 KB, patch)
2005-06-25 18:33 EDT, Michael Schwendt
no flags Details | Diff
spec changes (1001 bytes, patch)
2005-06-25 18:34 EDT, Michael Schwendt
no flags Details | Diff

  None (edit)
Description Patrick 2005-06-25 16:53:00 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050524 Fedora/1.0.4-4 Firefox/1.0.4

Description of problem:
When starting a python app like yumex I get the following error:
[root@srv12 ~]# yumex
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Traceback (most recent call last):
  File "yumex.py", line 23, in ?
  File "yumWrapper.py", line 26, in ?
"/usr/src/build/535819-i386/install/usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line 37, in ?
RuntimeError: could not open display

Looks like pygtk2 was built with the %{buildroot} prepended in hardcoded
paths. pygtk2 version is 2.6.0-2 on FC4. The Xlib error is solved with Alexander Dalloz's suggestion to do xhost +local:root before starting yumex. 

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. start yumex
2. read error message/traceback

Actual Results:  Traceback (most recent call last):
  File "yumex.py", line 23, in ?
  File "yumWrapper.py", line 26, in ?
"/usr/src/build/535819-i386/install/usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line 37, in ?

Expected Results:  no traceback, yumex starts properly

Additional info:
Comment 1 Michael Schwendt 2005-06-25 18:33:36 EDT
Created attachment 115980 [details]
patch for pygtk2-2.6.0-2

The buildroot in the compiled Python files has nothing to do with your display

But the fix is attached. Upstream ought to update py-compile and use --destdir
Comment 2 Michael Schwendt 2005-06-25 18:34:09 EDT
Created attachment 115981 [details]
spec changes
Comment 3 Matthew Barnes 2006-10-29 21:12:53 EST
I was able to start yumex successfully with the current pygtk2 release (2.10.3),
so I'm closing this bug.  Please feel free to reopen it if you still encounter
the reported problem.

Note You need to log in before you can comment on or make changes to this bug.