Bug 2192253 - gnome-shell: make bolt dependency weak
Summary: gnome-shell: make bolt dependency weak
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-shell
Version: 38
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Florian Müllner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-30 22:00 UTC by Dominik 'Rathann' Mierzejewski
Modified: 2023-06-29 20:39 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dominik 'Rathann' Mierzejewski 2023-04-30 22:00:19 UTC
It's not possible to uninstall bolt due to hard dependency in gnome-shell. If a machine doesn't have a Thunderbolt interface, there's no point in running boltd and having this package installed. gnome-shell works just fine without bolt. Please make it a weak dependency (Recommends: instead of Requires:).

Version-Release number of selected component (if applicable):
bolt-0.9.5-1.fc38.x86_64
gnome-shell-44.1-1.fc38.x86_64

Reproducible: Always

Steps to Reproduce:
1. rpm -e bolt

Actual Results:  
error: Failed dependencies:
	bolt(x86-64) is needed by (installed) gnome-shell-44.1-1.fc38.x86_64


Expected Results:  
Successful removal.

Comment 1 Dominik 'Rathann' Mierzejewski 2023-04-30 22:33:16 UTC
https://src.fedoraproject.org/rpms/gnome-shell/pull-request/19 open.

Comment 2 Debarshi Ray 2023-05-03 10:45:14 UTC
Does boltd really always run on machines without a Thunderbolt interface?  For example:

  [rishi@topinka ~]$ ps aux | grep bolt
  rishi     315538  0.0  0.0 222168  2176 pts/0    S+   12:43   0:00 grep --color=auto bolt
  [rishi@topinka ~]$ rpm -q bolt
  bolt-0.9.2-1.fc36.x86_64

Comment 3 Dominik 'Rathann' Mierzejewski 2023-05-04 21:58:40 UTC
It does run on mine when it's installed. I have to mask the service to prevent it from
running or uninstall with rpm -e --nodeps. But, even if it didn't run, I still don't
want to have code which I have no use for lying around and taking space and potentially
increasing my attack surface.

Comment 4 Debarshi Ray 2023-05-05 14:07:04 UTC
(In reply to Dominik 'Rathann' Mierzejewski from comment #3)
> It does run on mine when it's installed. I have to mask the service to
> prevent it from running or uninstall with rpm -e --nodeps.

It might be worth filing a bug upstream against bolt about this:
https://gitlab.freedesktop.org/bolt/bolt

Comment 5 Debarshi Ray 2023-05-05 15:07:41 UTC
From what Christian Kellner once told me, bolt only looks at sysfs.  Does the Settings -> Thunderbolt panel think that you have Thunderbolt hardware?  What do things like 'boltctl list' and 'boltctl list --all' show?

Comment 6 Dominik 'Rathann' Mierzejewski 2023-06-29 20:39:57 UTC
(In reply to Debarshi Ray from comment #5)
> From what Christian Kellner once told me, bolt only looks at sysfs.  Does
> the Settings -> Thunderbolt panel think that you have Thunderbolt hardware? 

No, it says "No Thunderbolt Support".

> What do things like 'boltctl list' and 'boltctl list --all' show?

Both commands return no output.


Note You need to log in before you can comment on or make changes to this bug.