[GRASS-dev] [GRASS GIS] #1647: GRASS 6.4.2: g.extension.py crash on Fedora 16

#1647: GRASS 6.4.2: g.extension.py crash on Fedora 16
-------------------------+--------------------------------------------------
Reporter: neteler | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Python | Version: svn-releasebranch64
Keywords: g.extension | Platform: Linux
      Cpu: x86-32 |
-------------------------+--------------------------------------------------
Using the package from Fedora 16, 32bit:

{{{
(Wed Apr 25 09:18:26 2012)
g.extension.py extension=r.vol.dem operation=add
Traceback (most recent call last):
   File
"/usr/lib/grass-6.4.2/etc/gui/scripts/g.extension.py", line
802, in <module>
     sys.exit(main())
   File
"/usr/lib/grass-6.4.2/etc/gui/scripts/g.extension.py", line
790, in main
     check_dirs()
   File
"/usr/lib/grass-6.4.2/etc/gui/scripts/g.extension.py", line
735, in check_dirs
     check_style_files('grass_logo.png')
   File
"/usr/lib/grass-6.4.2/etc/gui/scripts/g.extension.py", line
717, in check_style_files
     shutil.copyfile(dist_file,addons_file)
   File "/usr/lib/python2.7/shutil.py", line 81, in copyfile
     with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory:
'/usr/lib/grass-6.4.2/docs/html/grass_logo.png'
(Wed Apr 25 09:18:26 2012) Befehl ausgeführt (0 sec)
}}}

But:

{{{
ls -la /usr/lib/python2.7/shutil.py
-rw-r--r--. 1 root root 18302 27. Okt 03:36 /usr/lib/python2.7/shutil.py

locate grass_logo.png | grep 6.4.2
/usr/share/doc/grass-6.4.2/docs/html/grass_logo.png
/usr/share/doc/grass-6.4.2/docs/html/nviz/grass_logo.png
}}}

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

#1647: GRASS 6.4.2: g.extension.py crash on Fedora 16
-------------------------+--------------------------------------------------
Reporter: neteler | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Python | Version: svn-releasebranch64
Keywords: g.extension | Platform: Linux
      Cpu: x86-32 |
-------------------------+--------------------------------------------------

Comment(by volter):

That's a flaw in my packaging.

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

#1647: GRASS 6.4.2: g.extension.py crash on Fedora 16
-------------------------+--------------------------------------------------
Reporter: neteler | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Python | Version: svn-releasebranch64
Keywords: g.extension | Platform: Linux
      Cpu: x86-32 |
-------------------------+--------------------------------------------------

Comment(by neteler):

I solved it temporarily with

sudo ln -s /usr/share/doc/grass-6.4.2/docs /usr/lib/grass-6.4.2/docs

but now get this error:
{{{
Fetching <r.vol.dem> from GRASS-Addons SVN (be patient)...
Compiling...
Makefile:8: /usr/lib/grass-6.4.2/include/Make/Module.make:
Datei oder Verzeichnis nicht gefunden
make: *** Keine Regel, um
»/usr/lib/grass-6.4.2/include/Make/Module.make« zu
erstellen. Schluss.
ERROR: Compilation failed, sorry. Please check above error messages
}}}

Please also package the /usr/lib/grass-6.4.2/include/ directory in the
grass-devel RPM. Some parts except for include/Make/ I found in
grass-devel: /usr/include/grass/ .

Furthermore I believe that
/usr/share/doc/grass-6.4.2/docs/ should go into grass.rpm, not grass-
devel.

Thanks.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1647#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1647: GRASS 6.4.2: g.extension.py crash on Fedora 16
------------------------------+---------------------------------------------
Reporter: neteler | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-releasebranch64
Keywords: g.extension, rpm | Platform: Linux
      Cpu: x86-32 |
------------------------------+---------------------------------------------
Changes (by hamish):

  * keywords: g.extension => g.extension, rpm
  * component: Python => Packaging

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

#1647: GRASS 6.4.2: g.extension.py crash on Fedora 16
------------------------+---------------------------------------------------
  Reporter: neteler | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.4.3
Component: Packaging | Version: svn-releasebranch64
Resolution: invalid | Keywords: g.extension, rpm
  Platform: Linux | Cpu: x86-32
------------------------+---------------------------------------------------
Changes (by neteler):

  * status: new => closed
  * resolution: => invalid

Comment:

Replying to [comment:2 neteler]:
> I solved it temporarily with
>
> sudo ln -s /usr/share/doc/grass-6.4.2/docs /usr/lib/grass-6.4.2/docs
>
> but now get this error:
> {{{
> Fetching <r.vol.dem> from GRASS-Addons SVN (be patient)...
> Compiling...
> Makefile:8: /usr/lib/grass-6.4.2/include/Make/Module.make:
> Datei oder Verzeichnis nicht gefunden
> make: *** Keine Regel, um
> »/usr/lib/grass-6.4.2/include/Make/Module.make« zu
> erstellen. Schluss.
> ERROR: Compilation failed, sorry. Please check above error messages
> }}}

Reported in packager's bugtracker as

https://bugzilla.redhat.com/show_bug.cgi?id=855524

Hence closing here as invalid (wrong bugtracker).

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1647#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>