Bug 1217296

Summary: error: nothing provides /usr/bin/dbus-daemon needed by glib2-devel
Product: [openSUSE] openSUSE Tumbleweed Reporter: Giacomo Comes <comes>
Component: OtherAssignee: Adrian Schröter <adrian.schroeter>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: fvogt
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Giacomo Comes 2023-11-17 20:28:35 UTC
I'm using build (obs-build) to build locally the package accountsservice.
The build process fails with the following error:
  expansion error
    nothing provides /usr/bin/dbus-daemon needed by glib2-devel

rpm -q --provides dbus-1-daemon | grep dbus-daemon
  dbus-1:/usr/bin/dbus-daemon

The package dbus-1-daemon does provide /usr/bin/dbus-daemon prefixed by:
  dbus-1:

If I use: "zypper in glib2-devel" there are no problems, glib2-devel gets installed with its dependencies.
but 'build' does not understand that dbus-1:/usr/bin/dbus-daemon provided by dbus-1-daemon is what glib2-devel needs.

For test I rebuild the package dbus-1 and replaced in the spec file:
  Provides:       dbus-1:%{_bindir}/dbus-daemon
with:
  Provides:       %{_bindir}/dbus-daemon

Once I made such package available to 'build' I was able to build accountsservice.
Another way to go around the bug is to edit /var/tmp/build-root/.srcfiles.cache and replace dbus-1:/usr/bin/dbus-daemon with /usr/bin/dbus-daemon

Anyway this looks like a limitation/bug of the package 'build' isn't it?
Comment 1 Fabian Vogt 2024-03-05 11:49:48 UTC
The prjconf was just missing a FileProvides.