Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 833345 - sys-apps/hwloc: invalid icon in desktop entry
Summary: sys-apps/hwloc: invalid icon in desktop entry
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-14 16:44 UTC by i.Dark_Templar
Modified: 2024-04-25 08:49 UTC (History)
6 users (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 i.Dark_Templar 2022-02-14 16:44:54 UTC
'Hardware Locality lstopo' desktop entry doesn't have a valid icon

Reproducible: Always

Steps to Reproduce:
1. emerge -1 sys-apps/hwloc
2. run DE if not running yet, KDE for example
3. Locate 'Hardware Locality lstopo' menu entry in main menu
Actual Results:  
'Hardware Locality lstopo' has placeholder icon in KDE, might have no icon in other DE/WMs

Expected Results:  
Correct and present icon should be used. Not installing desktop entry is also an option.

$ cat /usr/share/applications/lstopo.desktop 
# should only be used when lstopo is built with Cairo/X11 support
# so that no terminal is required
[Desktop Entry]
Name=Hardware Locality lstopo
Comment=Show hardware topology
Exec=lstopo
Terminal=false
Type=Application
Categories=System;
Keywords=System;Utility;
Icon=hwloc

Icon 'hwloc' is specified but no icon is packaged. I've found suitable icons in upstream repository, but they're missing in tarball for current version 2.6.0:

https://github.com/open-mpi/hwloc/tree/master/contrib/android/assets
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-24 10:44:13 UTC
(pacho, feel free to fix if you're able, as I only tend to drive-by hwloc & may forget about it)
Comment 2 Larry the Git Cow gentoo-dev 2022-12-04 14:50:45 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8d1957c3ae62f4f6677bd6ccee9f4df01ab4523

commit d8d1957c3ae62f4f6677bd6ccee9f4df01ab4523
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2022-12-04 14:29:31 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2022-12-04 14:49:21 +0000

    sys-apps/hwloc: Install icon
    
    No revbump as it is a minor change, hopefully most people will simply get it
    fixed in next bumps then. Use upstream android png icon over svg as it has a
    high enough resolution and text looks misaligned in svg icon.
    
    Closes: https://bugs.gentoo.org/833345
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 sys-apps/hwloc/Manifest              | 1 +
 sys-apps/hwloc/hwloc-2.8.0-r1.ebuild | 6 ++++--
 2 files changed, 5 insertions(+), 2 deletions(-)
Comment 3 Alfred Wingate 2023-06-14 06:55:18 UTC
This hasnt been fixed due to the desktop file specifying the Icon name as hwloc so its not going to ignore the installed lstopo.png.

This should be fixed by amending `doicon ${DISTDIR}/lstopo.png` to `newicon ${DISTDIR}/lstopo.png hwloc.png`
Comment 4 Alfred Wingate 2023-06-14 06:56:57 UTC
(In reply to Alfred Wingate from comment #3)
> This hasnt been fixed due to the desktop file specifying the Icon name as
> hwloc so its not going to ignore the installed lstopo.png.

"so its going to ignore"*. unhelpful not slipped in.
Comment 5 i.Dark_Templar 2023-06-17 10:39:50 UTC
(In reply to Alfred Wingate from comment #3)
> This hasnt been fixed due to the desktop file specifying the Icon name as
> hwloc so its not going to ignore the installed lstopo.png.
> 
> This should be fixed by amending `doicon ${DISTDIR}/lstopo.png` to `newicon
> ${DISTDIR}/lstopo.png hwloc.png`

(In reply to Alfred Wingate from comment #4)
> (In reply to Alfred Wingate from comment #3)
> > This hasnt been fixed due to the desktop file specifying the Icon name as
> > hwloc so its not going to ignore the installed lstopo.png.
> 
> "so its going to ignore"*. unhelpful not slipped in.

Yeah, just checked the issue again. It's still not fixed.

$ equery f hwloc | grep png
/usr/share/pixmaps/lstopo.png
$ equery f hwloc | grep desktop
/usr/share/applications/lstopo.desktop
$ grep Icon /usr/share/applications/lstopo.desktop
Icon=hwloc

sys-apps/hwloc 2.8.0-r1
Comment 6 Larry the Git Cow gentoo-dev 2023-06-19 13:31:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d1243b13cbabd55458c75712bb8f65d9dc2cbfd

commit 0d1243b13cbabd55458c75712bb8f65d9dc2cbfd
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2023-06-19 13:30:13 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2023-06-19 13:30:13 +0000

    sys-apps/hwloc: Fix icon installation
    
    Thanks-to: Alfred Wingate
    Thanks-to: i.Dark_Templar
    Closes: https://bugs.gentoo.org/833345
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 sys-apps/hwloc/hwloc-2.9.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 7 Joost Ruis 2024-04-21 11:18:22 UTC
I still had the issue, it seems that it is not resolved.

After looking into things I found out this:

joost@joost-ser /usr/share/pixmaps $ ls -la hwloc*
-rw-r--r-- 1 root root 18008 Mar  2 01:50 hwloc
-rw-r--r-- 1 root root 18008 Apr 21 13:15 hwloc.png

I noticed a hwloc icon file without the png extension. I made a copy and it instantly fixed the issue here.
Comment 8 Nowa Ammerlaan gentoo-dev 2024-04-25 08:39:16 UTC
*** Bug 926862 has been marked as a duplicate of this bug. ***
Comment 9 Larry the Git Cow gentoo-dev 2024-04-25 08:49:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21867382426ea87eccf3c49ece762b4e83589edd

commit 21867382426ea87eccf3c49ece762b4e83589edd
Author:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
AuthorDate: 2024-04-25 08:45:15 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2024-04-25 08:48:24 +0000

    sys-apps/hwloc: remove automagic behaviour of rocm/l0
    
    And:
    - fixed the icon file
    - add doc flag to install doxygen documentation
    
    Closes: https://bugs.gentoo.org/926862
    Closes: https://bugs.gentoo.org/927627
    Closes: https://bugs.gentoo.org/833345
    Closes: https://bugs.gentoo.org/836663
    Closes: https://github.com/gentoo/gentoo/pull/25837
    Co-authored-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 profiles/arch/amd64/package.use.mask                        |  4 ++++
 profiles/arch/base/package.use.mask                         |  4 ++++
 profiles/features/musl/package.use.mask                     |  4 ++++
 .../hwloc/{hwloc-2.9.3.ebuild => hwloc-2.9.3-r1.ebuild}     | 13 +++++++++++--
 sys-apps/hwloc/metadata.xml                                 |  2 ++
 5 files changed, 25 insertions(+), 2 deletions(-)