Skip to contentSkip to conversation

org.oe.dev neod: add dependency to dbus-1

oe-commits Marcin Juszkiewicz 3 participants 3 messages Nov 4, 2007 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 9 lines · mickeyl commit

neod: add dependency to dbus-1

Author: [email protected]
Branch: org.openembedded.dev
Revision: dfbec4dce18c3885b36210c05ed69759ab6bf5b6

packages/openmoko2/neod_svn.bb 6cc80a4570dfd74c4eefe208b331a5b8c8d049af
packages/openmoko2/neod_svn.bb 92a5e00ba437275e36002f64963caa7aab304a17

Review DEPENDS = "gtk+ pulseaudio" · line 5

Quoted 6 lines
(quoted diff) +1 -1
@@ -1,7 +1,7 @@ DEPENDS = "gtk+ pulseaudio"
 DESCRIPTION = "Simple Neo1973 Daemon for Button Handling and Power 
 Management"  
 SECTION = "openmoko/daemons" 
 DEPENDS = "gtk+ pulseaudio"
-RDEPENDS = "gpe-scap xrandr alsa-utils-amixer apm"
+RDEPENDS = "gpe-scap xrandr alsa-utils-amixer apm dbus-1"

Why such rdependency? If it does not use dbus libraries then it does not need it. If it use them then it gets linked to it.

Neod currently is linked to gconf which is linked to dbus. So maybe there is other place where this rdependency should be placed?

Signature · 4 lines
JID: hrw-jabber.org
OpenEmbedded developer/consultant

         Computers are not intelligent. They only think they are.
#2 lore raw
Quoted 8 lines · Marcin Juszkiewicz
Quoted 5 lines · mickeyl commit

neod: add dependency to dbus-1

Author: [email protected]
Branch: org.openembedded.dev
Revision: dfbec4dce18c3885b36210c05ed69759ab6bf5b6

Quoted 12 lines

Review DEPENDS = "gtk+ pulseaudio" · line 5

Quoted 9 lines

packages/openmoko2/neod_svn.bb 6cc80a4570dfd74c4eefe208b331a5b8c8d049af
packages/openmoko2/neod_svn.bb 92a5e00ba437275e36002f64963caa7aab304a17

(quoted diff) +1 -1
@@ -1,7 +1,7 @@ DEPENDS = "gtk+ pulseaudio"
 DESCRIPTION = "Simple Neo1973 Daemon for Button Handling and Power 
 Management"  
 SECTION = "openmoko/daemons" 
 DEPENDS = "gtk+ pulseaudio"
-RDEPENDS = "gpe-scap xrandr alsa-utils-amixer apm"
+RDEPENDS = "gpe-scap xrandr alsa-utils-amixer apm dbus-1"

Why such rdependency? If it does not use dbus libraries then it does not need it. If it use them then it gets linked to it.

Please look into the source, before making too fast assumptions. neod calls dbus-send which is part of dbus. No linking, but calling at runtime -- same as for xrandr, gpe-scap, and alsactl.

Regards,

:M:

Signature · 1 line
Michael 'Mickey' Lauer | IT-Freelancer | http://www.vanille-media.de
#3 lore raw
In reply to Marcin Juszkiewicz

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marcin Juszkiewicz schreef:

Quoted 8 lines
Quoted 5 lines · mickeyl commit

neod: add dependency to dbus-1

Author: [email protected]
Branch: org.openembedded.dev
Revision: dfbec4dce18c3885b36210c05ed69759ab6bf5b6

Quoted 12 lines

Review DEPENDS = "gtk+ pulseaudio" · line 5

Quoted 9 lines

packages/openmoko2/neod_svn.bb 6cc80a4570dfd74c4eefe208b331a5b8c8d049af
packages/openmoko2/neod_svn.bb 92a5e00ba437275e36002f64963caa7aab304a17

(quoted diff) +1 -1
@@ -1,7 +1,7 @@ DEPENDS = "gtk+ pulseaudio"
 DESCRIPTION = "Simple Neo1973 Daemon for Button Handling and Power 
 Management"  
 SECTION = "openmoko/daemons" 
 DEPENDS = "gtk+ pulseaudio"
-RDEPENDS = "gpe-scap xrandr alsa-utils-amixer apm"
+RDEPENDS = "gpe-scap xrandr alsa-utils-amixer apm dbus-1"

Why such rdependency? If it does not use dbus libraries then it does not need it. If it use them then it gets linked to it.

There are 2 cases[*] where you need to add RDEPENDS manually for such a thing:

1) when using something like dlopen();
2) when using something like system();

neod uses option 2):

g_spawn_command_line_async( "dbus-send /org/freedesktop/PowerManagement org.freesmartphone.powermanagement.ChargerConnected", NULL );

Apart from that adding 'dbus-1' breaks OE, you should use 'dbus' instead, OE will automagically convert that to 'dbus-1' when using debian.bbclass.

regards

Koen

- --
[email protected] will go go away in december 2007, please use [email protected] instead.

[*] 2 cases I know off, but I'm not a coder
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD4DBQFHLlNTMkyGM64RGpERAmvMAKCWlwivubDR8TWvfOqzbpcaExPYogCWLjbY TPE9f5nPKNYLYILdMZiiTA==
=Zdnm
-----END PGP SIGNATURE-----