When trying to compile gnome-system-monitor-46.0-r1 I found that it does not compile in al LLVM profile with clang with the error (full log attached below): ../gnome-system-monitor-46.0/src/proctable.cpp:106:25: error: type 'gdouble' (aka 'double') cannot be narrowed to 'int' in initializer list [-Wc++11-narrowing] ../gnome-system-monitor-46.0/src/proctable.cpp:106:28: error: type 'gdouble' (aka 'double') cannot be narrowed to 'int' in initializer list [-Wc++11-narrowing] I'm attaching below a little patch which fixes the compile issue
Created attachment 899485 [details] emerge --info
Created attachment 899486 [details] Full build log
Created attachment 899487 [details, diff] Patch fixing compile This only promotes explicitelly gdouble to gint for calling the constructor and avoiding the narrowing error
Thanks for the patch Was this send to upstream?
(In reply to Pacho Ramos from comment #4) > Thanks for the patch > > Was this send to upstream? No, I just focused on having it working on my system
It would be nice if you could send it to: https://gitlab.gnome.org/GNOME/gnome-system-monitor/-/issues Otherwise we will need to carry the patch forever Thanks
https://gitlab.gnome.org/GNOME/gnome-system-monitor/-/commit/a738bcc9765032f52d89aebc976d4f7674c65ca9
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e828d1ed696ea6474dfe584df3aa45060bc99c32 commit e828d1ed696ea6474dfe584df3aa45060bc99c32 Author: Guillermo Joandet <gjoandet@gmail.com> AuthorDate: 2024-08-06 01:51:13 +0000 Commit: Pacho Ramos <pacho@gentoo.org> CommitDate: 2025-01-15 17:29:48 +0000 gnome-extra/gnome-system-monitor: Bump to 47.0 Bug: https://bugs.gentoo.org/937631 Closes: https://bugs.gentoo.org/937539 Signed-off-by: Guillermo Joandet <gjoandet@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/38647 Signed-off-by: Pacho Ramos <pacho@gentoo.org> gnome-extra/gnome-system-monitor/Manifest | 1 + .../gnome-system-monitor-47.0.ebuild | 55 ++++++++++++++++++++++ 2 files changed, 56 insertions(+)