Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 252516 - sys-apps/dbus - /usr/bin/dbus-daemon links statically to libdbus
Summary: sys-apps/dbus - /usr/bin/dbus-daemon links statically to libdbus
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: bundled-libs
  Show dependency tree
 
Reported: 2008-12-25 20:43 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2010-09-18 17:34 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-12-25 20:43:15 UTC
Uh, okay, why?
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2008-12-29 23:00:47 UTC
Because the upstream devs work on distros that like to use the dbus-daemon in their startup process (i.e. upstart) and such. Which means /usr/lib/libdbus.so isn't available. And they also stick it on initramfs's
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-12-29 23:45:39 UTC
Okay, is there any opt-in to get it to NOT build it statically?
Comment 3 Steev Klimaszewski (RETIRED) gentoo-dev 2009-01-05 16:00:44 UTC
Is there any particular reason why this is such a horrible thing?
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-01-05 21:05:59 UTC
Because it duplicates code on disk and memory for no reason at all? We don't need it in /bin do we? Then why should we link it statically?

libdbus as a 252KB text size, which is not exactly tiny on embedded systems and already a nuisance on my system with three dbus-daemon processes running.
Comment 5 Ihar Hrachyshka 2009-09-01 10:08:06 UTC
As you can see in dbus/Makefile.am, there is "-export-symbols-regex "^[^_].*" option specified for building libdbus-1.so. With this option enabled, dbus-daemon can't link with shared library properly because it uses _dbus_* functions which, as Makefile commentary states, are "for internal symbols". So we have 3 options: either link dbus-daemon statically (as it is now) or export internal library symbols (which is not a good thing regarding incapsulation and security concerns), or re-writing dbus-daemon from scratch for pure libdbus-1.so interface :)
So I think we can't do much with the problem. Comments?
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2010-09-18 17:34:39 UTC
(In reply to comment #5)
> As you can see in dbus/Makefile.am, there is "-export-symbols-regex "^[^_].*"
> option specified for building libdbus-1.so. With this option enabled,
> dbus-daemon can't link with shared library properly because it uses _dbus_*
> functions which, as Makefile commentary states, are "for internal symbols". So

With this, I think it's safe to close this as CANTFIX.