Here is an ebuild for the Gnome2 panel applet gnome-sensors.
Created attachment 12363 [details] Ebuild for gnome-sensors 0.9c A very simple ebuild is attached.
This ebuild works fine for me, compiles and gnome-sensors sits nicely in my panel with no problems. I'd perhaps suggest the following patch, we dont really need the echo lines. 16c16 < #echo ${S} --- > echo ${S} 19c19 < # echo ${PWD} --- > echo ${PWD}
You're right. I had forgotten that those were in there. I put them in while testing the ebuild and must have forgotten to remove them.
there are a couple of stylistic problems with the ebuild. could you please read: http://cvs.gentoo.org/~liquidx/ebuildmistakes.html and make sure your ebuild doesn't violate any of those? oh, and remove the debugging statements :)
Created attachment 12650 [details] Updated ebuild for gnome-sensors Here is a fixed ebuild.
wow that was pretty quick :) a few comments though, 1. not your fault, but lm_sensors got changed to lm-sensors just recently to conform with policy. 2. if you use the gnome2 eclass, you don't need to define src_compile and src_install if they are pretty standard like the ones in your ebuild.
chris, is this working for you? i tested it myself, but it says that i have "no sensors available" (which is true.) and then i got someone else to test it and it just segfaulted for them. doesn't look too promising to me. (no debugging symbols found)...[New Thread 16384 (LWP 3565)] 0x40961eb9 in __wait4 () at __wait4:-1 in __wait4 #0 0x40961eb9 in __wait4 () at __wait4:-1 #1 0x409df214 in __DTOR_END__ () from /lib/libc.so.6 #2 0x4086eae3 in waitpid () from /lib/libpthread.so.0 #3 0x400b37f6 in libgnomeui_module_info_get () from /usr/lib/libgnomeui-2.so.0 #4 <signal handler called> #5 0x4092d3fa in strcmp () at strcmp:-1 #6 0x4002f80e in sensors_match_chip () from /usr/lib/libsensors.so.1 #7 0x0804df19 in gsensors_applet_start ()
Strangely enough, it is working perfectly for me. I'll see if I can find anything wrong with it, but it is a very simple program. Maybe I missed a dependency or something? What motherboard does the other person have? Do they have a working and configured lm-sensors package?
compiles fine, segfaults on both machines (gcc 2.95 & gcc 3.2)
Created attachment 14446 [details] Updated ebuild for gnome-sensors This is a corrected ebuild for gnome-sensors. This crashes on my dual Athlon (MPX chipset) with properly configured lm_sensors, but works perfectly on my dual Pentium 3 (Via 694x chipset). Also, there is no version-specific download of the source from the author, so either a version-dependant copy would need to be put on the mirrors and the ebuild adjusted accordingly, or some others means must be taken. I'm requesting more people to test this and please, if you use this, comment in this bug. Hopefully, we can determine the problem and get a possible fix to keep it from segfaulting on many machines.
I'm resolving this bug, since the author is no longer supporting this program. http://www.vkcorp.org/gsensors/