[GRASS-dev] [GRASS GIS] #3341: g.search.modules depends on grass-gui

#3341: g.search.modules depends on grass-gui
------------------------------+-------------------------
Reporter: martinl | Owner: grass-dev@…
     Type: defect | Status: new
Priority: minor | Milestone: 7.2.1
Component: Packaging | Version: unspecified
Keywords: g.search.modules | CPU: Unspecified
Platform: Unspecified |
------------------------------+-------------------------
In distributions like !Debian/Ubuntu GRASS is split into more packages
like `grass-core` and `grass-gui`. Currently G72:g.search.modules (shifted
by `grass-core`) depends on XML (gui/wxpython/xml/module_items.xml) which
is shifted by `grass-gui` package.

Currently the command fails (no `grass-gui` package not installed).

{{{
RASS 7.2.0 (landsat):~ > g.search.modules buffer
Traceback (most recent call last):
   File "/usr/lib/grass72/scripts/g.search.modules", line 246, in <module>
     sys.exit(main())
   File "/usr/lib/grass72/scripts/g.search.modules", line 81, in main
     modules = _search_module(keywords, AND, manpages)
   File "/usr/lib/grass72/scripts/g.search.modules", line 176, in
_search_module
     menudata_file = open(filename, 'r')
IOError: [Errno 2] No such file or directory:
'/usr/lib/grass72/gui/wxpython/xml/module_items.xml'
}}}

Solution: GUI XML files could be moved to 'etc' directory.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3341&gt;
GRASS GIS <https://grass.osgeo.org>

#3341: g.search.modules depends on grass-gui
--------------------------+------------------------------
  Reporter: martinl | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: minor | Milestone: 7.2.1
Component: Packaging | Version: unspecified
Resolution: | Keywords: g.search.modules
       CPU: Unspecified | Platform: Unspecified
--------------------------+------------------------------

Comment (by wenzeslaus):

I'm not really sure about the ''right directory'' and ''files which are
specific to wxGUI'' GUI actions, but generally I agree that this needs to
be revised. If would implement #645 by using the toolbox trees with the
current structure, we would make `grass-gui` dependent on `grass-doc`
which is not right.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3341#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#3341: g.search.modules depends on grass-gui
--------------------------+------------------------------
  Reporter: martinl | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: minor | Milestone: 7.8.0
Component: Packaging | Version: unspecified
Resolution: | Keywords: g.search.modules
       CPU: Unspecified | Platform: Unspecified
--------------------------+------------------------------
Changes (by martinl):

* milestone: 7.2.4 => 7.8.0

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3341#comment:6&gt;
GRASS GIS <https://grass.osgeo.org>