Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5877 - Gkrellweather 0.2.7-r2 no longer working
Summary: Gkrellweather 0.2.7-r2 no longer working
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Seemant Kulleen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-01 17:49 UTC by L.J. Moore
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description L.J. Moore 2002-08-01 17:49:28 UTC
For a few weeks (so I'm not sure when it got broke), the GKrellM plugin:
GKrellWeather 0.2.7-r2 has not been working.  When launched from the command
line, this is the error I get:

    sh: /usr/share/gkrellm/GrabWeather: No such file or directory

I noticed that the ebuild actually deposits the GrabWeather script in the
following directory:

    /usr/share/gkrellm/bin/GrabWeather

Also worth mentioning at this stage is the 'gkrellweather command' that is
placed in /home/$USER/.gkrellm/user_prefs.  When set to the correct directory,
it still doesn't appear to work.

Anyway, it was straightforward enough to modify the source (all of two lines!)
to reflect the correct location of the GrabWeather script.  The diff follows:

diff -cr gkrellweather-0.2.7.orig/gkrellweather.c
gkrellweather-0.2.7/gkrellweather.c
*** gkrellweather-0.2.7.orig/gkrellweather.c    2002-08-01 23:20:48.000000000 +0100
--- gkrellweather-0.2.7/gkrellweather.c 2002-08-01 23:22:16.000000000 +0100
***************
*** 695,701 ****
          options.station[1] = c[1];
          options.station[2] = c[2];
          options.station[3] = c[3];
!         sprintf(options.command, "/usr/share/gkrellm/GrabWeather %s",
options.station);
          sprintf(options.filename, "%s/.wmWeatherReports/%s.dat",
                  getenv("HOME"), options.station);
          run_command();
--- 695,701 ----
          options.station[1] = c[1];
          options.station[2] = c[2];
          options.station[3] = c[3];
!         sprintf(options.command, "/usr/share/gkrellm/bin/GrabWeather %s",
options.station);
          sprintf(options.filename, "%s/.wmWeatherReports/%s.dat",
                  getenv("HOME"), options.station);
          run_command();
***************
*** 955,961 ****
      options.windspeed_unit = 1;
      options.pressure_unit = 1;
      strcpy(options.station, DEFAULT_STATION_ID);
!     sprintf(options.command, "/usr/share/gkrellm/GrabWeather %s",
options.station);
      sprintf(options.filename, "%s/.wmWeatherReports/%s.dat",
              getenv("HOME"), options.station);
  }
--- 955,961 ----
      options.windspeed_unit = 1;
      options.pressure_unit = 1;
      strcpy(options.station, DEFAULT_STATION_ID);
!     sprintf(options.command, "/usr/share/gkrellm/bin/GrabWeather %s",
options.station);
      sprintf(options.filename, "%s/.wmWeatherReports/%s.dat",
              getenv("HOME"), options.station);
  }
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-08-28 03:38:40 UTC
hi, it seems that the gkrellweather ebuild went through a number of different
revisions.  I've restored it to the one that was working originally.  Please
check and report...
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2002-08-28 15:04:47 UTC
waddayathink, lee?
Comment 3 L.J. Moore 2002-08-29 17:05:43 UTC
Yep - the error message has gone and it's getting the weather successfully because the GrabWeather script is now in the correct location.  :)