Bug 733855

Summary: No maps data in zyGrib 5.0.2 GUI
Product: [Fedora] Fedora Reporter: Ken <kjh>
Component: zyGribAssignee: Pavel Zhukov <pavel>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: pavel
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: zyGrib-5.0.4-2.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-09 17:01:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ken 2011-08-27 17:58:18 UTC
Description of problem:

No maps data in zyGrib 5.0.2 GUI

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


How reproducible: Very


Steps to Reproduce:
1. Run zyGrib 5.0.2
2. Observe error message (from "strace"):


stat64("/home/kjh/data/maps/gshhs/", 0xa0c86d4) = -1 ENOENT (No such file or directory)
lstat64("/home/kjh/data/maps/gshhs/", 0xbfce0960) = -1 ENOENT (No such file or directory)
open("data/maps/gshhs//rangs_3.cat", O_RDONLY) = -1 ENOENT (No such file or directory)
open("data/maps/gshhs//rangs_3.cel", O_RDONLY) = -1 ENOENT (No such file or directory)
...etc...


Also, on "stdout":

DBG ColorScale.cpp: 110: readFile(): Error: can't open file data/colors/colors_wind_kts.txt
DBG ColorScale.cpp: 110: readFile(): Error: can't open file data/colors/colors_temp_celcius.txt
DBG ColorScale.cpp: 110: readFile(): Error: can't open file data/colors/colors_rain_mmh.txt
...etc...

3.
  
Actual results:

GUI w/o maps


Expected results:

GUI w/ maps


Additional info:

Work around : ln -s /usr/share/zyGrib/ $HOME/data

Thanks for packaging zyGrib 5 ... just in time for Hurricane Irene

Comment 1 Pavel Zhukov 2011-08-27 19:01:46 UTC
Thank you for your report. 
zyGrib uses "hardcoded paths" (or relative path). 

I cannot simply add ln -s /usr/share/zyGrib/ $HOME/data to spec file. It's incorrect. So I have to remove all relative paths (or change current dir to %{datadir}/%{name}.

Comment 2 Ken 2011-08-27 22:28:11 UTC
Yeah, just changing the relative paths in src/util/Utils.h would be easiest.

The 2nd problem is the missing data files in data/colors and data/gis .  Should I file a separate bug for that?

Comment 3 Fedora Update System 2011-09-01 17:05:33 UTC
zyGrib-5.0.4-2.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/zyGrib-5.0.4-2.fc15

Comment 4 Fedora Update System 2011-09-01 17:36:45 UTC
zyGrib-5.0.4-2.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/zyGrib-5.0.4-2.fc14

Comment 5 Fedora Update System 2011-09-01 18:00:19 UTC
zyGrib-5.0.4-2.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/zyGrib-5.0.4-2.fc16

Comment 6 Fedora Update System 2011-09-01 19:03:51 UTC
Package zyGrib-5.0.4-2.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing zyGrib-5.0.4-2.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/zyGrib-5.0.4-2.fc16
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2011-09-09 17:01:25 UTC
zyGrib-5.0.4-2.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2011-09-29 23:30:40 UTC
zyGrib-5.0.4-2.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2011-10-05 03:59:26 UTC
zyGrib-5.0.4-2.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.