Bug 927212 - glib2: Missing dependency on dbus-x11
Summary: glib2: Missing dependency on dbus-x11
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: glib2
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 977439 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-25 11:55 UTC by Florian Weimer
Modified: 2017-03-03 15:21 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-03-02 08:42:16 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Florian Weimer 2013-03-25 11:55:34 UTC
It seems that gnome-boxes needs /usr/bin/dbus-launch to work, but the package lacks a dependency which reflects that.

Comment 2 Christophe Fergeau 2013-03-25 13:00:08 UTC
(In reply to comment #0)
> It seems that gnome-boxes needs /usr/bin/dbus-launch to work

Can you give more details about the problem you've had which makes you think it needs a dbus-launch dep?

Comment 3 Florian Weimer 2013-03-25 13:17:07 UTC
I get this error message when I try to start the program:

(gnome-boxes:9025): Boxes-CRITICAL **: media-manager.vala:27: Error connecting to Tracker: Failed to execute child process "dbus-launch" (No such file or directory)

Comment 4 Bill Nottingham 2013-03-27 20:53:37 UTC
What sort of a session are you running it under?

Comment 5 Florian Weimer 2013-05-15 15:25:53 UTC
(In reply to comment #4)
> What sort of a session are you running it under?

It's just an X session, without a desktop environment.

Comment 6 Christophe Fergeau 2013-05-15 15:47:02 UTC
glib2 has some code in gio/gdbusaddress.c which tries to run dbus-launch, but no dbus-x11 dependency. I couldn't find any occurrences of dbus-launch in gnome-boxes and tracker sources, so I'll assume Boxes is triggering this dbus-launch code.

Comment 7 Colin Macdonald 2014-01-13 10:20:15 UTC
I get this same error

   Failed to execute child process "dbus-launch"

when running eekboard on a very basic X session (also without desktop environment).  So glib2 sounds about right.

I also get it from gnome-terminal, a gtk3 app (but perhaps that's still glib2).

Comment 8 Colin Macdonald 2014-01-13 10:20:54 UTC
Sorry, I should've noted on F20.

Comment 9 Florian Weimer 2014-01-13 10:24:12 UTC
Okay, let's move this to F20, then.

Comment 10 Petr Šabata 2014-01-17 08:56:23 UTC
*** Bug 977439 has been marked as a duplicate of this bug. ***

Comment 11 Fedora End Of Life 2015-05-29 08:57:09 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 12 Petr Šabata 2015-05-29 11:36:04 UTC
Still unaddressed in F22.

Comment 13 Fedora End Of Life 2016-07-19 10:08:18 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 14 Colin Macdonald 2016-07-19 20:23:28 UTC
On rawhide:

1) gnome-terminal now pulls in dbus-x11, not via glib2
2) eekboard still fails (does not pull in dbus-x11)
3) gnome-boxes: untested, but no dbus-x11 appears in the dep list.

I'll reopen against rawhide.

Comment 15 Jan Kurik 2016-07-26 04:40:59 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.

Comment 16 Kalev Lember 2017-03-02 08:42:16 UTC
Sorry, but adding /usr/bin/dbus-launch as a dependency in glib is a no go. There are lots of low level programs that link with glib and this would force an X11 dependency on all of them.

I went ahead and reverted this. The dbus dependency needs to be added in apps that use the functionality instead, e.g. gnome-terminal and eekboard and gnome-boxes.

Comment 17 Petr Pisar 2017-03-02 12:12:21 UTC
We talk about /usr/lib64/libgio-2.0.so.0. This is the only file that contains dbus-lunch strings. What about moving this library into a separate subpackage and add the dbus-x11 dependency to it.

I actually reported another bug proposing splitting the glib2 libraries because of dependency bloat. I think glib2 is just to big and should be split.

Comment 18 Petr Šabata 2017-03-02 12:38:08 UTC
(In reply to Petr Pisar from comment #17)
> We talk about /usr/lib64/libgio-2.0.so.0. This is the only file that
> contains dbus-lunch strings. What about moving this library into a separate
> subpackage and add the dbus-x11 dependency to it.

+1

> I actually reported another bug proposing splitting the glib2 libraries
> because of dependency bloat. I think glib2 is just to big and should be
> split.

+1

The Base Runtime team will definitely want you guys to split glib2-devel so you can use the header files without pulling in perl and python (at least).  That's just an informal heads-up; there's no report for that yet, afaik :)

Comment 19 Colin Macdonald 2017-03-02 17:17:38 UTC
Ok, I filed bug #1428502 and bug #1428503 to get the dependency added to eekboard and gnome-boxes directly.

Comment 20 Colin Macdonald 2017-03-02 17:20:04 UTC
Oops I didn't read Petr's comment carefully; that sounds fine too.  Anyway, at least there are bugs tracking what will need to depend on the new subpackage.

Comment 21 Petr Pisar 2017-03-03 07:18:13 UTC
(In reply to Colin Macdonald from comment #20)
> Anyway, at least there are bugs tracking what will need to depend on the new
> subpackage.

You won't need because the dependency will be autogenerated via library soname.

Comment 22 Kalev Lember 2017-03-03 15:21:19 UTC
Sure, I think splitting gio into a subpackage should be easily doable if needed.

I don't think it would make sense to add a dbus-x11 hard dep to the new gio subpackage though. Most of the code that uses gio works just fine without dbus and adding the dep to the library package would probably just scare off low level consumers from using it in the first place.

E.g. the GTask API from gio is something that is universally useful to help deal with threads. If we add a heavy dep to gio, then suddenly low level consumers such as libdnf would be forced to avoid using the GTask API.


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