All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] glib: Drop dbus dependency, it isn't useful
@ 2012-02-25 15:57 Richard Purdie
  2012-02-25 19:16 ` Martin Jansa
  2012-02-26 12:30 ` Colin Walters
  0 siblings, 2 replies; 5+ messages in thread
From: Richard Purdie @ 2012-02-25 15:57 UTC (permalink / raw)
  To: openembedded-core

dbus is only needed for some of the glib tests which we don't use. We can
therefore drop the dependency and gain some small parallelism gains.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta-yocto/conf/distro/poky-tiny.conf b/meta-yocto/conf/distro/poky-tiny.conf
index 411347a..5d1d67a 100644
--- a/meta-yocto/conf/distro/poky-tiny.conf
+++ b/meta-yocto/conf/distro/poky-tiny.conf
@@ -108,3 +108,5 @@ IMAGE_FSTYPES = "ext2 cpio.gz"
 #        variants of all compatible machines, but that leads to a lot
 #        more machine configs to maintain long term.
 MACHINE_ESSENTIAL_EXTRA_RDEPENDS = ""
+
+ASSUME_PROVIDED += "pkgconfig$"
diff --git a/meta/recipes-core/glib-2.0/glib-2.0/nodbus.patch b/meta/recipes-core/glib-2.0/glib-2.0/nodbus.patch
new file mode 100644
index 0000000..1486203
--- a/dev/null
+++ b/meta/recipes-core/glib-2.0/glib-2.0/nodbus.patch
@@ -0,0 +1,23 @@
+Disable dbus dependency. Autodetecting isn't deterministic, we don't have the DEPENDS
+and we don't want to built this piece so hardcode it off.
+
+RP 2012/2/25
+
+Index: glib-2.30.2/configure.ac
+===================================================================
+--- glib-2.30.2.orig/configure.ac	2012-02-25 14:50:07.444242397 +0000
++++ glib-2.30.2/configure.ac	2012-02-25 14:51:28.096240485 +0000
+@@ -3769,10 +3769,9 @@
+ # Check for libdbus1 - Optional - is only used in the GDBus test cases
+ #
+ # 1.2.14 required for dbus_message_set_serial
+-PKG_CHECK_MODULES(DBUS1,
+-                  dbus-1 >= 1.2.14,
+-                  [AC_DEFINE(HAVE_DBUS1, 1, [Define if dbus-1 is available]) have_dbus1=yes],
+-                  have_dbus1=no)
++DBUS1_CFLAGS=
++DBUS1_LIBS=
++$have_dbus1=no      
+ AC_SUBST(DBUS1_CFLAGS)
+ AC_SUBST(DBUS1_LIBS)
+ AM_CONDITIONAL(HAVE_DBUS1, [test "x$have_dbus1" = "xyes"])
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.30.2.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.30.2.bb
index e2170bc..0b26575 100644
--- a/meta/recipes-core/glib-2.0/glib-2.0_2.30.2.bb
+++ b/meta/recipes-core/glib-2.0/glib-2.0_2.30.2.bb
@@ -1,6 +1,6 @@
 require glib.inc
 
-PR = "r5"
+PR = "r6"
 PE = "1"
 
 DEPENDS += "libffi python-argparse-native zlib"
@@ -14,6 +14,7 @@ SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.bz2 \
            file://60_wait-longer-for-threads-to-die.patch \
            file://g_once_init_enter.patch \
            file://glib-2.0_fix_for_x32.patch \
+           file://nodbus.patch \
           "
 SRC_URI[md5sum] = "b40f3889e8d24e1b367763673ca6deb5"
 SRC_URI[sha256sum] = "94b1f1a1456c67060ca868d299bef3f7268a2c1c5c360aabb7149d4d9b2fdcd3"
diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc
index d553869..6eddf8f 100644
--- a/meta/recipes-core/glib-2.0/glib.inc
+++ b/meta/recipes-core/glib-2.0/glib.inc
@@ -13,8 +13,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7 \
 BUGTRACKER = "http://bugzilla.gnome.org"
 SECTION = "libs"
 
-DEPENDS = "glib-2.0-native gtk-doc-native zip dbus"
-DEPENDS_virtclass-native = "gtk-doc-native pkgconfig-native gettext-native dbus-native"
+DEPENDS = "glib-2.0-native gtk-doc-native zip"
+DEPENDS_virtclass-native = "gtk-doc-native pkgconfig-native gettext-native"
 DEPENDS_virtclass-nativesdk = "libtool-nativesdk"
 PACKAGES =+ "${PN}-utils "
 





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

* Re: [PATCH] glib: Drop dbus dependency, it isn't useful
  2012-02-25 15:57 [PATCH] glib: Drop dbus dependency, it isn't useful Richard Purdie
@ 2012-02-25 19:16 ` Martin Jansa
  2012-02-25 22:57   ` Richard Purdie
  2012-02-26 12:30 ` Colin Walters
  1 sibling, 1 reply; 5+ messages in thread
From: Martin Jansa @ 2012-02-25 19:16 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 3993 bytes --]

On Sat, Feb 25, 2012 at 03:57:26PM +0000, Richard Purdie wrote:
> dbus is only needed for some of the glib tests which we don't use. We can
> therefore drop the dependency and gain some small parallelism gains.
> 
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> ---
> diff --git a/meta-yocto/conf/distro/poky-tiny.conf b/meta-yocto/conf/distro/poky-tiny.conf
> index 411347a..5d1d67a 100644
> --- a/meta-yocto/conf/distro/poky-tiny.conf
> +++ b/meta-yocto/conf/distro/poky-tiny.conf
> @@ -108,3 +108,5 @@ IMAGE_FSTYPES = "ext2 cpio.gz"
>  #        variants of all compatible machines, but that leads to a lot
>  #        more machine configs to maintain long term.
>  MACHINE_ESSENTIAL_EXTRA_RDEPENDS = ""
> +
> +ASSUME_PROVIDED += "pkgconfig$"

^^ this doesn't seem related to this patch and what's meaning of trailing $, or just typo?

> diff --git a/meta/recipes-core/glib-2.0/glib-2.0/nodbus.patch b/meta/recipes-core/glib-2.0/glib-2.0/nodbus.patch
> new file mode 100644
> index 0000000..1486203
> --- a/dev/null
> +++ b/meta/recipes-core/glib-2.0/glib-2.0/nodbus.patch
> @@ -0,0 +1,23 @@
> +Disable dbus dependency. Autodetecting isn't deterministic, we don't have the DEPENDS
> +and we don't want to built this piece so hardcode it off.
> +
> +RP 2012/2/25
> +
> +Index: glib-2.30.2/configure.ac
> +===================================================================
> +--- glib-2.30.2.orig/configure.ac	2012-02-25 14:50:07.444242397 +0000
> ++++ glib-2.30.2/configure.ac	2012-02-25 14:51:28.096240485 +0000
> +@@ -3769,10 +3769,9 @@
> + # Check for libdbus1 - Optional - is only used in the GDBus test cases
> + #
> + # 1.2.14 required for dbus_message_set_serial
> +-PKG_CHECK_MODULES(DBUS1,
> +-                  dbus-1 >= 1.2.14,
> +-                  [AC_DEFINE(HAVE_DBUS1, 1, [Define if dbus-1 is available]) have_dbus1=yes],
> +-                  have_dbus1=no)
> ++DBUS1_CFLAGS=
> ++DBUS1_LIBS=
> ++$have_dbus1=no      
> + AC_SUBST(DBUS1_CFLAGS)
> + AC_SUBST(DBUS1_LIBS)
> + AM_CONDITIONAL(HAVE_DBUS1, [test "x$have_dbus1" = "xyes"])
> diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.30.2.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.30.2.bb
> index e2170bc..0b26575 100644
> --- a/meta/recipes-core/glib-2.0/glib-2.0_2.30.2.bb
> +++ b/meta/recipes-core/glib-2.0/glib-2.0_2.30.2.bb
> @@ -1,6 +1,6 @@
>  require glib.inc
>  
> -PR = "r5"
> +PR = "r6"
>  PE = "1"
>  
>  DEPENDS += "libffi python-argparse-native zlib"
> @@ -14,6 +14,7 @@ SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.bz2 \
>             file://60_wait-longer-for-threads-to-die.patch \
>             file://g_once_init_enter.patch \
>             file://glib-2.0_fix_for_x32.patch \
> +           file://nodbus.patch \
>            "
>  SRC_URI[md5sum] = "b40f3889e8d24e1b367763673ca6deb5"
>  SRC_URI[sha256sum] = "94b1f1a1456c67060ca868d299bef3f7268a2c1c5c360aabb7149d4d9b2fdcd3"
> diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc
> index d553869..6eddf8f 100644
> --- a/meta/recipes-core/glib-2.0/glib.inc
> +++ b/meta/recipes-core/glib-2.0/glib.inc
> @@ -13,8 +13,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7 \
>  BUGTRACKER = "http://bugzilla.gnome.org"
>  SECTION = "libs"
>  
> -DEPENDS = "glib-2.0-native gtk-doc-native zip dbus"
> -DEPENDS_virtclass-native = "gtk-doc-native pkgconfig-native gettext-native dbus-native"
> +DEPENDS = "glib-2.0-native gtk-doc-native zip"
> +DEPENDS_virtclass-native = "gtk-doc-native pkgconfig-native gettext-native"
>  DEPENDS_virtclass-nativesdk = "libtool-nativesdk"
>  PACKAGES =+ "${PN}-utils "
>  
> 
> 
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

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

* Re: [PATCH] glib: Drop dbus dependency, it isn't useful
  2012-02-25 19:16 ` Martin Jansa
@ 2012-02-25 22:57   ` Richard Purdie
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Purdie @ 2012-02-25 22:57 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Sat, 2012-02-25 at 20:16 +0100, Martin Jansa wrote:
> On Sat, Feb 25, 2012 at 03:57:26PM +0000, Richard Purdie wrote:
> > dbus is only needed for some of the glib tests which we don't use. We can
> > therefore drop the dependency and gain some small parallelism gains.
> > 
> > Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> > ---
> > diff --git a/meta-yocto/conf/distro/poky-tiny.conf b/meta-yocto/conf/distro/poky-tiny.conf
> > index 411347a..5d1d67a 100644
> > --- a/meta-yocto/conf/distro/poky-tiny.conf
> > +++ b/meta-yocto/conf/distro/poky-tiny.conf
> > @@ -108,3 +108,5 @@ IMAGE_FSTYPES = "ext2 cpio.gz"
> >  #        variants of all compatible machines, but that leads to a lot
> >  #        more machine configs to maintain long term.
> >  MACHINE_ESSENTIAL_EXTRA_RDEPENDS = ""
> > +
> > +ASSUME_PROVIDED += "pkgconfig$"
> 
> ^^ this doesn't seem related to this patch and what's meaning of trailing $, or just typo?

Right, sorry about that, its a piece of a different patch.
ASSUME_PROVIDED takes regexps and without that it would match
pkgconfig-native too so its not a typo.

Cheers,

Richard




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

* Re: [PATCH] glib: Drop dbus dependency, it isn't useful
  2012-02-25 15:57 [PATCH] glib: Drop dbus dependency, it isn't useful Richard Purdie
  2012-02-25 19:16 ` Martin Jansa
@ 2012-02-26 12:30 ` Colin Walters
  2012-02-26 12:32   ` Colin Walters
  1 sibling, 1 reply; 5+ messages in thread
From: Colin Walters @ 2012-02-26 12:30 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Sat, 2012-02-25 at 15:57 +0000, Richard Purdie wrote:
> dbus is only needed for some of the glib tests which we don't use. We can
> therefore drop the dependency and gain some small parallelism gains.

Maybe you want
https://bugzilla.gnome.org/show_bug.cgi?id=667806#c4

Care to comment there that it'd be useful for you?





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

* Re: [PATCH] glib: Drop dbus dependency, it isn't useful
  2012-02-26 12:30 ` Colin Walters
@ 2012-02-26 12:32   ` Colin Walters
  0 siblings, 0 replies; 5+ messages in thread
From: Colin Walters @ 2012-02-26 12:32 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Sun, 2012-02-26 at 07:30 -0500, Colin Walters wrote:
> On Sat, 2012-02-25 at 15:57 +0000, Richard Purdie wrote:
> > dbus is only needed for some of the glib tests which we don't use. We can
> > therefore drop the dependency and gain some small parallelism gains.
> 
> Maybe you want
> https://bugzilla.gnome.org/show_bug.cgi?id=667806#c4
> 
> Care to comment there that it'd be useful for you?

Specifically you should argue that if cross compiling there's no
point to building the tests (if they're not installed), because
you can't run them (well, without some qemu hackery).

Due to libtool mainly compiling the tests also takes about 20%
of the build time.







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

end of thread, other threads:[~2012-02-26 12:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-25 15:57 [PATCH] glib: Drop dbus dependency, it isn't useful Richard Purdie
2012-02-25 19:16 ` Martin Jansa
2012-02-25 22:57   ` Richard Purdie
2012-02-26 12:30 ` Colin Walters
2012-02-26 12:32   ` Colin Walters

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.