Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/dbus: remove empty line from dbus.mk
@ 2015-10-12 19:21 Bernd Kuhls
  2015-10-12 19:21 ` [Buildroot] [PATCH 2/2] package/dbus: Add optional dependency to xlib_libSM Bernd Kuhls
  2015-10-12 19:55 ` [Buildroot] [PATCH 1/2] package/dbus: remove empty line from dbus.mk Thomas Petazzoni
  0 siblings, 2 replies; 3+ messages in thread
From: Bernd Kuhls @ 2015-10-12 19:21 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/dbus/dbus.mk | 1 -
 1 file changed, 1 deletion(-)

diff --git a/package/dbus/dbus.mk b/package/dbus/dbus.mk
index abce1fb..84fbdfa 100644
--- a/package/dbus/dbus.mk
+++ b/package/dbus/dbus.mk
@@ -18,7 +18,6 @@ define DBUS_USERS
 	dbus -1 dbus -1 * /var/run/dbus - dbus DBus messagebus user
 endef
 
-
 DBUS_DEPENDENCIES = host-pkgconf expat
 
 DBUS_CONF_ENV = ac_cv_have_abstract_sockets=yes
-- 
2.6.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 2/2] package/dbus: Add optional dependency to xlib_libSM
  2015-10-12 19:21 [Buildroot] [PATCH 1/2] package/dbus: remove empty line from dbus.mk Bernd Kuhls
@ 2015-10-12 19:21 ` Bernd Kuhls
  2015-10-12 19:55 ` [Buildroot] [PATCH 1/2] package/dbus: remove empty line from dbus.mk Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Bernd Kuhls @ 2015-10-12 19:21 UTC (permalink / raw)
  To: buildroot

To detect X11 support dbus uses the autoconf macro AC_PATH_XTRA
http://cgit.freedesktop.org/dbus/dbus/tree/configure.ac#n1264

This macro checks for the optional presence of libICE:
http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=blob;f=lib/autoconf/libs.m4;h=d2040d731f81fc1693e01d118c45d51ad169d56a;hb=HEAD#l472

quoting dbus configure with libICE not present:
checking for IceConnectionNumber in -lICE... no

quoting dbus configure with libICE being present:
checking for IceConnectionNumber in -lICE... yes

The binary usr/bin/dbus-launch is being linked to libICE and libSM if
the packages are available:

$ output/host/usr/bin/i586-buildroot-linux-uclibc-readelf -a
  output/target/usr/bin/dbus-launch | grep NEEDED
 0x00000001 (NEEDED)                     Shared library: [libdbus-1.so.3]
 0x00000001 (NEEDED)                     Shared library: [libSM.so.6]
 0x00000001 (NEEDED)                     Shared library: [libICE.so.6]
 0x00000001 (NEEDED)                     Shared library: [libX11.so.6]
 0x00000001 (NEEDED)                     Shared library: [libc.so.1]

To get a reproducable build add libSM as optional dependency to dbus,
libSM pulls in the dependency to libICE.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/dbus/dbus.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/dbus/dbus.mk b/package/dbus/dbus.mk
index 84fbdfa..139a5d7 100644
--- a/package/dbus/dbus.mk
+++ b/package/dbus/dbus.mk
@@ -60,6 +60,9 @@ endif
 ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
 DBUS_CONF_OPTS += --with-x
 DBUS_DEPENDENCIES += xlib_libX11
+ifeq ($(BR2_PACKAGE_XLIB_LIBSM),y)
+DBUS_DEPENDENCIES += xlib_libSM
+endif
 else
 DBUS_CONF_OPTS += --without-x
 endif
-- 
2.6.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/2] package/dbus: remove empty line from dbus.mk
  2015-10-12 19:21 [Buildroot] [PATCH 1/2] package/dbus: remove empty line from dbus.mk Bernd Kuhls
  2015-10-12 19:21 ` [Buildroot] [PATCH 2/2] package/dbus: Add optional dependency to xlib_libSM Bernd Kuhls
@ 2015-10-12 19:55 ` Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2015-10-12 19:55 UTC (permalink / raw)
  To: buildroot

Dear Bernd Kuhls,

On Mon, 12 Oct 2015 21:21:02 +0200, Bernd Kuhls wrote:
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  package/dbus/dbus.mk | 1 -
>  1 file changed, 1 deletion(-)

Both applied, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-12 19:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-12 19:21 [Buildroot] [PATCH 1/2] package/dbus: remove empty line from dbus.mk Bernd Kuhls
2015-10-12 19:21 ` [Buildroot] [PATCH 2/2] package/dbus: Add optional dependency to xlib_libSM Bernd Kuhls
2015-10-12 19:55 ` [Buildroot] [PATCH 1/2] package/dbus: remove empty line from dbus.mk Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox