FS#77325 - [gnome-shell] and budgie-desktop could both optdepend on switcheroo-control

Attached to Project: Arch Linux
Opened by Campbell Jones (serebit) - Sunday, 29 January 2023, 20:37 GMT
Last edited by Jan Alexander Steffens (heftig) - Monday, 30 January 2023, 18:30 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

GNOME Shell has required switcheroo-control for launching applications on the discrete GPU in multi-GPU systems for years.[1] Additionally, budgie-desktop v10.7 now requires switcheroo-control for the same purpose.[2] As of right now, switcheroo-control is only available in the AUR - it should be moved to Extra and added as a hard dependency of the gnome-shell package, as is the case on Fedora.[3] The maintainer should be able to test the package on a system with multiple GPUs.

References:
[1] https://www.phoronix.com/news/GNOME-3.36-Better-Dual-GPU
[2] https://blog.buddiesofbudgie.org/budgie-10-7-released/
[3] https://fedora.pkgs.org/37/fedora-x86_64/switcheroo-control-2.6-2.fc37.x86_64.rpm.html
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Monday, 30 January 2023, 18:30 GMT
Reason for closing:  Fixed
Additional comments about closing:  switcheroo-control added, gnome-shell optdep in trunk
Comment by Mark Wagie (yochananmarqos) - Sunday, 29 January 2023, 23:29 GMT
No, it should not be a hard dependency as both packages work without it. Neither Fedora nor Solus made it a hard dependency.

Right from the Budgie 10.7 release notes you linked:

"Budgie Menu now leverages switcheroo-control if available..."

However, it is a good idea to add it as an optional dependency.

See:

https://src.fedoraproject.org/rpms/gnome-control-center/blob/rawhide/f/gnome-control-center.spec#_109-110

We could check Solus' package script as well if their website was up:

https://dev.getsol.us/source/budgie-control-center/
Comment by Campbell Jones (serebit) - Sunday, 29 January 2023, 23:50 GMT
I said gnome-shell, not gnome-control-center. Fedora has it as a hard dependency in gnome-shell:

https://src.fedoraproject.org/rpms/gnome-shell/blob/rawhide/f/gnome-shell.spec#_136

And I have it on authority from a Solus maintainer that Solus doesn't package switcheroo-control at all, though obviously we can't check at the moment. And yes, it can be an optional dependency for budgie-desktop, but I never stated otherwise.
Comment by Mark Wagie (yochananmarqos) - Monday, 30 January 2023, 00:10 GMT
Oh dear, pardon me. This is a situation where my brain referenced an existing memory regarding the subject instead of interpreting the words my eyes supposedly read and processing the new information. My apologies.

Either way, Arch often handles dependencies differently as you might already know. As I said above, none of the aforementioned packages require switcheroo-control to run. Adding it as an optional dependency would be acceptable and I'm all for it.
Comment by Campbell Jones (serebit) - Monday, 30 January 2023, 00:12 GMT
Apology accepted, and making it an optional dependency for both is reasonable to me. I'll update the ticket.

Edit: I don't have edit permissions, it seems.

Loading...