Thanks tastytea for taking over this package and being both gentoo proxy-maintainer and upstream, now. =:^)
With many themes combining icons and cursors and with wayland the old /usr/share/cursors/xorg-x11/ location seems to be deprecated in favor of /usr/share/icons/<theme>/cursors, with at least adwaita-icon-theme (the only other package I have merged that places files under /usr/share/cursors/xorg-x11) handling it using a relative symlink:
/usr/share/cursors/xorg-x11/Adwaita -> ../../../../usr/share/icons/Adwaita/cursors
I ran into this recently when kde/plasma (which I run live-git-master using the -9999 ebuilds in the gentoo/kde overlay) updated its cursor handling and at least temporarily partially lost support for the old /usr/share/cursors/xorg-x11/ location. For me the symptom was no cursor over titlebars (which I guess on wayland, or at least the kwin_wayland compositor, are its responsibility, while most cursors are set by the application), making it hard to hit the buttons therein! (FWIW I bisected the kde bug and meant to file it but never got it done. Hopefully someone else caught it and it's fixed now but I've not tested without the below symlink workaround.)
My initial workaround was replacing /usr/share/cursors/xorg-x11 with a symlink -> /usr/share/icons , which worked for gentoo-xcursors, but tonight Adwaita had an update and complained about that symlink while creating the above listed Adwaita/cursors symlink, and created a backup symlink in /usr/share/icons instead. So I deleted the xorg-x11 symlink I had created, reinstalled both packages, letting adwaita create its symlink and gentoo-xcursors create its dirs, then (modifying the adwaita symlink pattern so gentoo-xcursors would still install properly) replaced the three gentoo-xcursors xorg-x11 dirs with symlinks to the icons location, like so:
/usr/share/cursors/xorg-x11/gentoo -> ../../icons/gentoo
/usr/share/cursors/xorg-x11/gentoo-blue -> ../../icons/gentoo-blue
/usr/share/cursors/xorg-x11/gentoo-silver -> ../../icons/gentoo-silver
That no longer interferes with adwaita, and I tried remerging the gentoo-xcursors package on top of my symlinks and (with portage at least) it mentions keeping the symlinks and that I might want to review them, but installs everything to the expected now-symlinked location.
But it'd be nice to have that actually in the package, and since I see it's proxy-maintained by the (now) upstream... here's the bug for it.
Of course renaming the package to just gentoo-cursors or some such is arguably appropriate as well, but the legacy xcursors name should still be discoverable at least by most for awhile, still. It's the new icons/<theme>/cursors location, perhaps with a symlink from the old location, that's the critical bit.
Thanks again for providing a new home and care for a theme-package I like. =:^)
I couldn't find any formal specification for it, but my investigation confirmed that cursor themes are expected to be in the same place as icon themes nowadays, like you said. I'll change the location and add symlinks.
I agree that renaming the package would make sense, but on the other hand all other cursor themes in Gentoo are named -xcursors. This may need a broader consensus. 🤔
Just manually copied the 0.3.2-r2 ebuild to my overlay, unmerged the old version (which removed my manually created symlinks, I double-checked), then merged 0.3.2-r2.
Seems to be fine, symlinks look good, etc. =:^)
Thanks. Looking forward to having it in the main tree!
(And BTW, I had no idea the /usr/share/cursors location was gentoo-specific; as comment #0 suggests I just thought it was a legacy standard location. As with some of the amd64 lib/lib64 stuff (which I'm somewhat familiar with as I started on gentoo with amd64 in early 2004, when it was setup already but not long so) I suppose gentoo started using it before there was a solidly established standard location and they picked a plausible location that didn't end up being the standard one, so now we have some non-standard legacy to deal with. Good detective work!)
The bug has been closed via the following commit(s):
Author: Ronny (tastytea) Gutbrod <email@example.com>
AuthorDate: 2022-06-03 14:55:56 +0000
Commit: Joonas Niilola <firstname.lastname@example.org>
CommitDate: 2022-06-12 07:27:02 +0000
x11-themes/gentoo-xcursors: fix install location, update EAPI 7 -> 8
Switch to default install location¹, because the Gentoo-specific path is
problematic². Symlinks are added at old location for backwards
Signed-off-by: Ronny (tastytea) Gutbrod <email@example.com>
Signed-off-by: Joonas Niilola <firstname.lastname@example.org>
.../gentoo-xcursors-0.3.2-r2.ebuild | 30 ++++++++++++++++++++++
1 file changed, 30 insertions(+)