Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 336247 - x11-plugins/gkrellweather-2.0.7-r1 and -r2 does not work
Summary: x11-plugins/gkrellweather-2.0.7-r1 and -r2 does not work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jim Ramsay (lack) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-06 16:09 UTC by Jouni Rinne
Modified: 2011-05-10 18:39 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge_info,4.97 KB, text/plain)
2010-09-06 16:09 UTC, Jouni Rinne
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jouni Rinne 2010-09-06 16:09:22 UTC
Gkrellweather gkrellm-plugin stopped working the day -r1 was released. I hardly ever look at it, so this went unnoticed for a long time, and then I thought it was just a temporary malfunction of the weather station. Then I noticed that the weather forecast was stuck to August 11, the very day -r1 update was released. That was too weird a coincidence, so I downgraded to 2.0.7 and restarted gkrellm... Yes, it started working and updated the weather forecast :). I don't claim to really understand what is happening, but there must be something wrong in the LDFLAGS patch...
Comment 1 Jouni Rinne 2010-09-06 16:09:51 UTC
Created attachment 246274 [details]
emerge --info
Comment 2 Jim Ramsay (lack) (RETIRED) gentoo-dev 2010-11-01 15:45:08 UTC
This plugin works fine for me (-r2 version) with a couple different weather stations.  Forecast is correct and has today's date.

I'd like you to do 2 things for me, if you have time:

1) Upgrade to the -r1 version explicitly, and see if the bug hits you there.  Then upgrade back up to -r2.  I need to find out if the bug affects -r1 or -r1 or both.

2) When you have the broken plugin installed, take a look in ~/.wmWeatherReports (this is where the back-end data fetching utility puts the data it downloads off the web).  You should see a .dat and .TXT file for each weather station you have tried to use.  Check the dates on those files.  Stop and restart gkrellm.  See if the one you have configured is updated or not.  Perhaps something there will suggest what's going on.
Comment 3 Jouni Rinne 2010-11-04 18:15:43 UTC
As soon as I upgrade to -r1 and restart gkrellm, the .wmWeatherReports/*.dat and *.TXT stop updating; I've set gkrellm to update the file(s) every 15 mins, the weather station updates its output every half an hour.

BUT, I noticed something I didn't notice earlier: the GrabWeather binary gets renamed and moved around between revisions. Here's the output of 'equery files gkrellweather' for every revision:

* Contents of x11-plugins/gkrellweather-2.0.7:
/usr
/usr/bin
/usr/bin/GrabWeather2
/usr/lib64
/usr/lib64/gkrellm2
/usr/lib64/gkrellm2/plugins
/usr/lib64/gkrellm2/plugins/gkrellweather.so
/usr/share
/usr/share/doc
/usr/share/doc/gkrellweather-2.0.7
/usr/share/doc/gkrellweather-2.0.7/ChangeLog.bz2
/usr/share/doc/gkrellweather-2.0.7/README.bz2

* Contents of x11-plugins/gkrellweather-2.0.7-r1:
/usr
/usr/bin
/usr/bin/GrabWeather
/usr/lib64
/usr/lib64/gkrellm2
/usr/lib64/gkrellm2/plugins
/usr/lib64/gkrellm2/plugins/gkrellweather.so
/usr/share
/usr/share/doc
/usr/share/doc/gkrellweather-2.0.7-r1
/usr/share/doc/gkrellweather-2.0.7-r1/ChangeLog.bz2
/usr/share/doc/gkrellweather-2.0.7-r1/README.bz2

* Contents of x11-plugins/gkrellweather-2.0.7-r2:
/usr
/usr/lib64
/usr/lib64/gkrellm2
/usr/lib64/gkrellm2/plugins
/usr/lib64/gkrellm2/plugins/gkrellweather.so
/usr/libexec
/usr/libexec/gkrellweather
/usr/libexec/gkrellweather/GrabWeather
/usr/share
/usr/share/doc
/usr/share/doc/gkrellweather-2.0.7-r2
/usr/share/doc/gkrellweather-2.0.7-r2/ChangeLog.bz2
/usr/share/doc/gkrellweather-2.0.7-r2/README.bz2
 
Comment 4 Jouni Rinne 2010-11-04 18:22:08 UTC
Just got an idea while reading through my own comment :)

I installed gkrellweather-2.0.7-r1 and renamed GrabWeather to GrabWeather2, and restarted gkrellm... It works!

So the culprit must be the renamed/moved binary; the patches do something weird to it. 
Comment 5 Jouni Rinne 2010-11-04 20:25:34 UTC
Ok, I finally figured out what was wrong... Because the GrabWeather executable kept changing names and paths between revisions, I should have manually edited the path in  ~/.gkrellm2/user-config after *every* update... To make sure everything went as it should I started afresh and stopped gkrellm, removed every reference to gkrellweather in ~/.gkrellm2/user-config and restarted gkrellm after upgrading gkrellweather to -r2. Needless to say it seems to work now :)

I hope you don't continue to move around these files any more; at least you should then inform the users with elog or something.

I think you could now safely mark this bug as 'fixed' :)
Comment 6 Jim Ramsay (lack) (RETIRED) gentoo-dev 2011-05-10 18:39:19 UTC
(In reply to comment #5)
> Ok, I finally figured out what was wrong... Because the GrabWeather executable
> kept changing names and paths between revisions, I should have manually edited
> the path in  ~/.gkrellm2/user-config after *every* update... To make sure
> everything went as it should I started afresh and stopped gkrellm, removed
> every reference to gkrellweather in ~/.gkrellm2/user-config and restarted
> gkrellm after upgrading gkrellweather to -r2. Needless to say it seems to work
> now :)
> 
> I hope you don't continue to move around these files any more; at least you
> should then inform the users with elog or something.
> 
> I think you could now safely mark this bug as 'fixed' :)

Sorry for the late response, and also for the inconvenience of the issue in the first place.

This was a one-time move to resolve a conflict with x11-misc/bbweather (Bug #333289), so it shan't happen again!