[GRASS-dev] Re: [GRASS GIS] #765: g.gui fails to launch wxpython IU

GRASS GIS trac at osgeo.org
Mon Dec 14 12:44:07 EST 2009


#765: g.gui fails to launch wxpython IU
---------------------+------------------------------------------------------
  Reporter:  marisn  |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect  |      Status:  reopened                 
  Priority:  major   |   Milestone:  6.4.0                    
 Component:  wxGUI   |     Version:  6.4.0 RCs                
Resolution:          |    Keywords:                           
  Platform:  Linux   |         Cpu:  x86-64                   
---------------------+------------------------------------------------------
Comment (by glynn):

 Replying to [comment:2 marisn]:

 > It still app-lays to my Gentoo system. I made svn up && make clean on
 6.5 branch
 > and every bit of this report is still true.
 >
 > g.gui fails to launch new wxgui AND fails to report failure.

 It's a Gentoo bug. Gentoo's `/usr/bin/python` is a symlink to `python-
 wrapper` which invokes the version of python selected by
 `/etc/env.d/python/config`, `$EPYTHON`, etc.

 Unfortunately, it also inspects `argv[0]` (which it has no business
 doing), which breaks when `argv[0]` is something other than the Python
 interpreter or the script.

 g.gui passed "wxgui" as `argv[0]`; I "fixed" this in 7.0 with r39764, but
 that was before I discovered that it was Gentoo's bug. I'm not sure
 whether this should be back-ported or reverted.

 This bug has been reported at
 [http://bugs.gentoo.org/show_bug.cgi?id=286191], but the Gentoo developers
 only appear to be concerned with how it affects Gentoo itself.

 As to what to do about it: part of me says to revert it on principle
 (Gentoo isn't Microsoft, and shouldn't assume that the rest of the world
 will change to accommodate them). OTOH, I don't see any advantage to
 passing an "unusual" value for `argv[0]`.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/765#comment:6>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list