Bug 1217715

Summary: missing dependency of k3b on udisks2
Product: [openSUSE] openSUSE Distribution Reporter: Stephan Wefing <wefing>
Component: KDE ApplicationsAssignee: E-Mail List <opensuse-kde-bugs>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Leap 15.5   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Leap 15.5   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Stephan Wefing 2023-11-30 23:15:20 UTC
SETUP

My linux box has an optical drive:

ls -l /dev/sr0
brw-rw----+ 1 root cdrom 11, 0 Nov 24 14:31 /dev/sr0

And I am member of group cdrom:

groups
users cdrom

I do not use the kde desktop but only selected kde applications like k3b.

STEPS TO REPRODUCE

1) Issue "zypper in --no-recommends k3b" as root. This generates the following output:

Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 4 NEW packages are going to be installed:
  cdrecord k3b lame libmpcdec6

4 new packages to install.
Overall download size: 7.1 MiB. Already cached: 0 B. After the operation, additional 16.5 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): 
Retrieving: cdrecord-3.02~a09-4.6.1.x86_64 (repo-oss)                                                                (1/4), 345.4 KiB    
Retrieving: cdrecord-3.02~a09-4.6.1.x86_64.rpm ........................................................................[done (2.5 MiB/s)]
Retrieving: libmpcdec6-r475-1.43.x86_64 (repo-oss)                                                                   (2/4),  34.6 KiB    
Retrieving: libmpcdec6-r475-1.43.x86_64.rpm .......................................................................................[done]
Retrieving: lame-3.100-150000.3.5.1.x86_64 (Update repository with updates from SUSE Linux Enterprise 15)            (3/4),  54.5 KiB    
Retrieving: lame-3.100-150000.3.5.1.x86_64.rpm ....................................................................................[done]
Retrieving: k3b-22.12.3-bp155.1.6.x86_64 (repo-oss)                                                                  (4/4),   6.7 MiB    
Retrieving: k3b-22.12.3-bp155.1.6.x86_64.rpm ..........................................................................[done (4.6 MiB/s)]

Checking for file conflicts: ......................................................................................................[done]
setting /usr/bin/cdrecord to root:root 0755 "cap_ipc_lock,cap_sys_rawio,cap_sys_nice,cap_sys_resource=ep". (wrong missing capabilities)
(1/4) Installing: cdrecord-3.02~a09-4.6.1.x86_64 ..................................................................................[done]
(2/4) Installing: libmpcdec6-r475-1.43.x86_64 .....................................................................................[done]
(3/4) Installing: lame-3.100-150000.3.5.1.x86_64 ..................................................................................[done]
(4/4) Installing: k3b-22.12.3-bp155.1.6.x86_64 ....................................................................................[done]


2) Issue "k3b" as a normal user in an xterm. Upon starting, k3b opens a window that contains the following message:

No optical drive found.
K3b did not find any optical device in your system.

At the same time, the following output is sent to the xterm:

0 20
QUrl("file:///home/wefing/rip/")
QUrl("file:///home/wefing")  will be expanded.
QUrl("file:///home/wefing/rip/")
QUrl("file:///home/wefing/rip/")
QUrl("file:///home/wefing/rip/")
QUrl("file:///home/wefing/rip/")
QUrl("file:///home/wefing")  will be expanded.
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.ServiceUnknown" 
 "The name org.freedesktop.UDisks2 was not provided by any .service files"
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.ServiceUnknown" 
 "The name org.freedesktop.UDisks2 was not provided by any .service files"
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.ServiceUnknown" 
 "The name org.freedesktop.UDisks2 was not provided by any .service files"
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.ServiceUnknown" 
 "The name org.freedesktop.UDisks2 was not provided by any .service files"
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.ServiceUnknown" 
 "The name org.freedesktop.UDisks2 was not provided by any .service files"
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.ServiceUnknown" 
 "The name org.freedesktop.UDisks2 was not provided by any .service files"
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.ServiceUnknown" 
 "The name org.freedesktop.UDisks2 was not provided by any .service files"
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.ServiceUnknown" 
 "The name org.freedesktop.UDisks2 was not provided by any .service files"
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.ServiceUnknown" 
 "The name org.freedesktop.UDisks2 was not provided by any .service files"
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.ServiceUnknown" 
 "The name org.freedesktop.UDisks2 was not provided by any .service files"
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.ServiceUnknown" 
 "The name org.freedesktop.UDisks2 was not provided by any .service files"
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.ServiceUnknown" 
 "The name org.freedesktop.UDisks2 was not provided by any .service files"
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.ServiceUnknown" 
 "The name org.freedesktop.UDisks2 was not provided by any .service files"
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.ServiceUnknown" 
 "The name org.freedesktop.UDisks2 was not provided by any .service files"
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.ServiceUnknown" 
 "The name org.freedesktop.UDisks2 was not provided by any .service files"
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.ServiceUnknown" 
 "The name org.freedesktop.UDisks2 was not provided by any .service files"
Loaded plugin "/usr/lib64/qt5/plugins/k3b_plugins/k3bmaddecoder.so"
Loaded plugin "/usr/lib64/qt5/plugins/k3b_plugins/k3bwavedecoder.so"
Loaded plugin "/usr/lib64/qt5/plugins/k3b_plugins/k3baudiometainforenamerplugin.so"
Loaded plugin "/usr/lib64/qt5/plugins/k3b_plugins/k3blibsndfiledecoder.so"
Loaded plugin "/usr/lib64/qt5/plugins/k3b_plugins/k3bmpcdecoder.so"
Loaded plugin "/usr/lib64/qt5/plugins/k3b_plugins/k3blameencoder.so"
Loaded plugin "/usr/lib64/qt5/plugins/k3b_plugins/k3bexternalencoder.so"
Loaded plugin "/usr/lib64/qt5/plugins/k3b_plugins/k3bsoxencoder.so"
Loaded plugin "/usr/lib64/qt5/plugins/k3b_plugins/k3baudioprojectcddbplugin.so"
Loaded plugin "/usr/lib64/qt5/plugins/k3b_plugins/k3boggvorbisencoder.so"
Loaded plugin "/usr/lib64/qt5/plugins/k3b_plugins/k3bffmpegdecoder.so"
Loaded plugin "/usr/lib64/qt5/plugins/k3b_plugins/k3boggvorbisdecoder.so"
Loaded plugin "/usr/lib64/qt5/plugins/k3b_plugins/k3bflacdecoder.so"
K3bQProcess::QProcess(0x0)
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.ServiceUnknown" 
 "The name org.freedesktop.UDisks2 was not provided by any .service files"
kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.ServiceUnknown" 
 "The name org.freedesktop.UDisks2 was not provided by any .service files"
K3bQProcess::QProcess(0x0)
Devices: 
------------------------------ 

(K3b::Core) System problems:
 CRITICAL
 PROBLEM:   "No optical drive found." 
 DETAILS:   "K3b did not find any optical device in your system." 
 SOLUTION:  "" 


20 20
22 22
QModelIndex(18,0,0x55facff623b0,KDirModel(0x55facf877fd0))
QModelIndex(18,0,0x55facff623b0,KDirModel(0x55facf877fd0))
"quant"
Thread waiting done. 

EXPECTED RESULTS

Installing k3b should trigger the concomitant installation of all packages on which package k3b depends and which have not been installed so far.

COMMENT

Manual installation of package udisks2 solves the problem.
Comment 1 Christophe Marin 2023-12-01 09:28:18 UTC
(In reply to Stephan Wefing from comment #0)

> 1) Issue "zypper in --no-recommends k3b" as root. This generates the following output:

[...]

> kf.solid.backends.udisks2: Failed enumerating UDisks2 objects:
> "org.freedesktop.DBus.Error.ServiceUnknown" 


The solid library package recommends installing udisks2. Do you always use '--no-recommends'?
Comment 2 Stephan Wefing 2023-12-03 11:37:26 UTC
(In reply to Christophe Marin from comment #1)
> (In reply to Stephan Wefing from comment #0)
> 
> > 1) Issue "zypper in --no-recommends k3b" as root. This generates the following output:
> 
> [...]
> 
> > kf.solid.backends.udisks2: Failed enumerating UDisks2 objects:
> > "org.freedesktop.DBus.Error.ServiceUnknown" 
> 
> 
> The solid library package recommends installing udisks2. Do you always use
> '--no-recommends'?

The error message output by the solid library package _suggests_ that udisks2 is missing. The fact that manual installation of udisks2 actually solves the problem shows that this package is _necessary_ for running k3b. hence installing udisks2 is _mandatory_ and not a mere _recommendation_.

I always use "--no-recommends" with no problems so far. As the name of this option suggests, using it should not exclude necessary packages from being installed.