GNOME Bugzilla – Bug 162038
Broken RPM specfile
Last modified: 2011-11-11 10:03:55 UTC
Launch gnome-system-monitor and observer the process list. Many processess have no names, and the memory usage shows as 0, yet they are real processes. For example, all the nfsd daemons show up this way.
update your libgtop and gnome-system-monitor to 2.8 and try to reproduce
There is no libgtop under FC3, but there is a libgtop2, I'm guessing they are the same? It is already at 2.8.0. I downloaded gnome-system-monitor-2.8.0 from the 2.8.1 directory. I then tried to build an rpm using: rpmbuild -ta gnome-system-monitor-2.8.0.tar.gz and received an error: error: File /root/gnome-system-monitor-2.3.0.tar.gz: No such file or directory I extracted the spec file and noted the version number was wrong. I edited it to 2.8.0 and placed the new spec file back in the archive. Re-issued the rpmbuild command. The build crashed eventually with the following error: RPM build errors: File not found: /var/tmp/gnome-system-monitor-root/usr/share/applications/gnome-system-monitor.schemas However I noticed the binary file had already been built and was in the /var/tmp/gnome-system-monitor-root/usr/bin directory. I ran the binary, and confirmed using the Help:About that it was 2.8.0, however the original bug is the same, with many processes without names. Not sure where to go from here? BTW your spec file needs fixing.
OK, I just tried the whole thing again using gnome-system-monitor-2.8.1 from the 2.8.2 directory. The spec file has the same bugs, so the rpm build failed, BUT.... the bianry file seems to work. In summary gnome-system-monitor-2.8.1 seems to work under FC3.
I notice gnome-system-monitor-2.9.91.tar.gz still has a broken spec file. Any plans to fix these?
may be i could steal the .spec used by Fedora ?
Created attachment 37950 [details] [review] better ?
I don't know as I have multiple failed dependancies due to libgtop2-devel and gtk2-devel. I am running FC3 and RHEL4 (both have a broken gnome-system-monitor), so the version I really need is 2.8.1 as per my comment #3. BTW I had to change the pached spec file back to version 2.9.91 as that is the latest version I can download. The 2.8.1 binary works on both FC3 and RHEL4 but the rpm build fails (but after the binary is built). I have tried myself to get the FC3 spec file (from 2.7.0-2) to work with your 2.8.1 source but without any success.
I would suggest removing this spec file from the package, instead of constantly modifing this spec to follow Fedora's packages. Especially, since Gnome-System-Monitor is included in Fedora Core already as a default package. I'll attach a little patch for the modification needed to the Changelog & Makefile.am.
Created attachment 56631 [details] [review] Patch to modify Makefile.am & Changelog.