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

Koen Kooi k.kooi at student.utwente.nl
Sun Nov 4 23:18:58 UTC 2007


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

Marcin Juszkiewicz schreef:
> Dnia niedziela, 4 listopada 2007, mickeyl commit napisał:
> 
>> neod: add dependency to dbus-1
>>
>> Author: mickeyl at openembedded.org
>> Branch: org.openembedded.dev
>> Revision: dfbec4dce18c3885b36210c05ed69759ab6bf5b6
> 
>> packages/openmoko2/neod_svn.bb	6cc80a4570dfd74c4eefe208b331a5b8c8d049af
>> packages/openmoko2/neod_svn.bb	92a5e00ba437275e36002f64963caa7aab304a17
>> @@ -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

- --
koen at dominion.kabel.utwente.nl will go go away in december 2007, please
use k.kooi at student.utwente.nl 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-----




More information about the Openembedded-devel mailing list