Bug 1217296 - error: nothing provides /usr/bin/dbus-daemon needed by glib2-devel
Summary: error: nothing provides /usr/bin/dbus-daemon needed by glib2-devel
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Adrian Schröter
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-17 20:28 UTC by Giacomo Comes
Modified: 2024-03-05 11:49 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.