All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] metacity: upgrade to 2.30.3 from 2.30.0
@ 2010-11-08 22:25 Michael Smith
  2010-11-08 22:25 ` [PATCH 2/2] metacity: patch configure to add --disable-canberra Michael Smith
  2010-11-08 22:33 ` [PATCH 1/2] metacity: upgrade to 2.30.3 from 2.30.0 Koen Kooi
  0 siblings, 2 replies; 4+ messages in thread
From: Michael Smith @ 2010-11-08 22:25 UTC (permalink / raw)
  To: openembedded-devel

Signed-off-by: Michael Smith <msmith@cbnco.com>
---
 .../{metacity_2.30.0.bb => metacity_2.30.3.bb}     |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
 rename recipes/gnome/{metacity_2.30.0.bb => metacity_2.30.3.bb} (79%)

diff --git a/recipes/gnome/metacity_2.30.0.bb b/recipes/gnome/metacity_2.30.3.bb
similarity index 79%
rename from recipes/gnome/metacity_2.30.0.bb
rename to recipes/gnome/metacity_2.30.3.bb
index 3c34810..317a192 100644
--- a/recipes/gnome/metacity_2.30.0.bb
+++ b/recipes/gnome/metacity_2.30.3.bb
@@ -3,18 +3,16 @@ DESCRIPTION = "Metacity is the boring window manager for the adult in you."
 LICENSE = "GPL"
 DEPENDS = "libcanberra libwnck startup-notification gtk+ gconf gdk-pixbuf-csource-native gnome-doc-utils"
 
-PR = "r2"
-
 inherit gnome update-alternatives
 
 SRC_URI += "file://crosscompile.patch "
 
-SRC_URI[archive.md5sum] = "7c8a4c8f3b667efcc60f286adb445d4c"
-SRC_URI[archive.sha256sum] = "5c4e2af2216de022181f692f15427361a1dae3d30756ef89b97a11ff5bd50b22"
+SRC_URI[archive.md5sum] = "553784f376d96b902e19ff437cd5b339"
+SRC_URI[archive.sha256sum] = "08f887018fa5e447cf184d03bae3fe2c05fdb7583bed6768e3b4d66392fc18dd"
 
 EXTRA_OECONF += "--disable-verbose \
                  --disable-xinerama \
-                 --without-introspectiom \
+                 --without-introspection \
 "
 
 do_configure_prepend() {
-- 
1.7.0.4




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

* [PATCH 2/2] metacity: patch configure to add --disable-canberra
  2010-11-08 22:25 [PATCH 1/2] metacity: upgrade to 2.30.3 from 2.30.0 Michael Smith
@ 2010-11-08 22:25 ` Michael Smith
  2010-11-08 22:33 ` [PATCH 1/2] metacity: upgrade to 2.30.3 from 2.30.0 Koen Kooi
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Smith @ 2010-11-08 22:25 UTC (permalink / raw)
  To: openembedded-devel

Canberra is still enabled by default, but amenders can add
--disable-canberra to EXTRA_OECONF.

Signed-off-by: Michael Smith <msmith@cbnco.com>
---
 .../gnome/metacity/add-disable-canberra-flag.patch |  117 ++++++++++++++++++++
 recipes/gnome/metacity_2.30.3.bb                   |    6 +-
 2 files changed, 122 insertions(+), 1 deletions(-)
 create mode 100644 recipes/gnome/metacity/add-disable-canberra-flag.patch

diff --git a/recipes/gnome/metacity/add-disable-canberra-flag.patch b/recipes/gnome/metacity/add-disable-canberra-flag.patch
new file mode 100644
index 0000000..df4a36f
--- /dev/null
+++ b/recipes/gnome/metacity/add-disable-canberra-flag.patch
@@ -0,0 +1,117 @@
+configure.in: add flag to disable canberra
+
+For embedded builds, it'd be nice to be able to disable canberra.
+Canberra is still enabled by default.
+
+Upstream: https://bugzilla.gnome.org/show_bug.cgi?id=634360
+
+--- metacity-2.30.3/config.h.in.orig	2010-11-08 15:41:29.000000000 -0500
++++ metacity-2.30.3/config.h.in	2010-11-08 15:51:54.000000000 -0500
+@@ -15,6 +15,9 @@
+ /* Define to 1 if you have the `bind_textdomain_codeset' function. */
+ #undef HAVE_BIND_TEXTDOMAIN_CODESET
+ 
++/* Build with canberra support */
++#undef HAVE_CANBERRA
++
+ /* Building with compositing manager support */
+ #undef HAVE_COMPOSITE_EXTENSIONS
+ 
+--- metacity-2.30.3/configure.in.orig	2010-11-08 15:41:15.000000000 -0500
++++ metacity-2.30.3/configure.in	2010-11-08 15:51:44.000000000 -0500
+@@ -155,7 +155,7 @@
+        ;;
+ esac
+ 
+-METACITY_PC_MODULES="gtk+-$GTK_API_VERSION >= $GTK_MIN_VERSION pango >= 1.2.0 $CANBERRA_GTK"
++METACITY_PC_MODULES="gtk+-$GTK_API_VERSION >= $GTK_MIN_VERSION pango >= 1.2.0"
+ AC_SUBST(GTK_API_VERSION)
+ 
+ AC_ARG_ENABLE(gconf,
+@@ -168,6 +168,16 @@
+     METACITY_PC_MODULES="$METACITY_PC_MODULES gconf-2.0 >= 1.2.0"
+ fi
+ 
++AC_ARG_ENABLE(canberra,
++  AC_HELP_STRING([--disable-canberra],
++                 [disable use of canberra for event sounds, for embedded non-GNOME builds]),,
++  enable_canberra=yes)
++
++if test x$enable_canberra = xyes; then
++    AC_DEFINE(HAVE_CANBERRA,1,[Build with canberra support])
++    METACITY_PC_MODULES="$METACITY_PC_MODULES $CANBERRA_GTK"
++fi
++
+ AC_ARG_ENABLE(verbose-mode,
+   AC_HELP_STRING([--disable-verbose-mode],
+                  [disable metacity's ability to do verbose logging, for embedded/size-sensitive custom builds]),,
+@@ -596,6 +606,7 @@
+ 	compiler:		  ${CC}
+ 
+ 	GConf:                    ${enable_gconf}
++	Canberra:                 ${enable_canberra}
+ 	XFree86 Xinerama:         ${use_xfree_xinerama}
+ 	Solaris Xinerama:         ${use_solaris_xinerama}
+ 	Startup notification:     ${have_startup_notification}
+--- metacity-2.30.3/src/core/bell.c.orig	2010-09-04 12:09:52.000000000 -0400
++++ metacity-2.30.3/src/core/bell.c	2010-11-08 15:54:47.000000000 -0500
+@@ -52,7 +52,10 @@
+ #include "bell.h"
+ #include "screen-private.h"
+ #include "prefs.h"
++
++#ifdef HAVE_CANBERRA
+ #include <canberra-gtk.h>
++#endif
+ 
+ /**
+  * Flashes one entire screen.  This is done by making a window the size of the
+@@ -284,8 +287,10 @@
+ 
+   if (meta_prefs_bell_is_audible ()) 
+     {
+-      ca_proplist *p;
+       XkbBellNotifyEvent *xkb_bell_event = (XkbBellNotifyEvent*) xkb_ev;
++
++#ifdef HAVE_CANBERRA
++      ca_proplist *p;
+       MetaWindow *window;
+       int res;
+ 
+@@ -312,6 +317,9 @@
+       ca_proplist_destroy (p);
+ 
+       if (res != CA_SUCCESS && res != CA_ERROR_DISABLED)
++#else
++      if (1)
++#endif /* HAVE_CANBERRA */
+         {      
+           /* ...and in case that failed we use the classic X11 bell. */
+           XkbForceDeviceBell (display->xdisplay, 
+--- metacity-2.30.3/src/core/workspace.c.orig	2010-09-04 12:09:53.000000000 -0400
++++ metacity-2.30.3/src/core/workspace.c	2010-11-08 15:50:52.000000000 -0500
+@@ -29,7 +29,10 @@
+ #include "prefs.h"
+ #include <X11/Xatom.h>
+ #include <string.h>
++
++#ifdef HAVE_CANBERRA
+ #include <canberra-gtk.h>
++#endif
+ 
+ void meta_workspace_queue_calc_showing   (MetaWorkspace *workspace);
+ static void set_active_space_hint        (MetaScreen *screen);
+@@ -355,11 +358,13 @@
+     goto finish;
+   }
+ 
++#ifdef HAVE_CANBERRA
+   ca_context_play(ca_gtk_context_get(), 1,
+                   CA_PROP_EVENT_ID, e,
+                   CA_PROP_EVENT_DESCRIPTION, "Desktop switched",
+                   CA_PROP_CANBERRA_CACHE_CONTROL, "permanent",
+                   NULL);
++#endif
+ 
+  finish:
+   meta_screen_free_workspace_layout (&layout);
diff --git a/recipes/gnome/metacity_2.30.3.bb b/recipes/gnome/metacity_2.30.3.bb
index 317a192..bb9a80e 100644
--- a/recipes/gnome/metacity_2.30.3.bb
+++ b/recipes/gnome/metacity_2.30.3.bb
@@ -5,7 +5,11 @@ DEPENDS = "libcanberra libwnck startup-notification gtk+ gconf gdk-pixbuf-csourc
 
 inherit gnome update-alternatives
 
-SRC_URI += "file://crosscompile.patch "
+PR = "r1"
+
+SRC_URI += "file://crosscompile.patch;apply=yes \
+	file://add-disable-canberra-flag.patch;apply=yes \
+"
 
 SRC_URI[archive.md5sum] = "553784f376d96b902e19ff437cd5b339"
 SRC_URI[archive.sha256sum] = "08f887018fa5e447cf184d03bae3fe2c05fdb7583bed6768e3b4d66392fc18dd"
-- 
1.7.0.4




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

* Re: [PATCH 1/2] metacity: upgrade to 2.30.3 from 2.30.0
  2010-11-08 22:25 [PATCH 1/2] metacity: upgrade to 2.30.3 from 2.30.0 Michael Smith
  2010-11-08 22:25 ` [PATCH 2/2] metacity: patch configure to add --disable-canberra Michael Smith
@ 2010-11-08 22:33 ` Koen Kooi
  2010-11-08 22:36   ` Michael Smith
  1 sibling, 1 reply; 4+ messages in thread
From: Koen Kooi @ 2010-11-08 22:33 UTC (permalink / raw)
  To: openembedded-devel

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

On 08-11-10 23:25, Michael Smith wrote:

>  EXTRA_OECONF += "--disable-verbose \
>                   --disable-xinerama \
> -                 --without-introspectiom \
> +                 --without-introspection \

introspection should get disabled by gnome.bbclass nowadays.

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFM2Hq7MkyGM64RGpERAiC6AJ9MinEjtmyvcn3C5p7nkfOItXZLlwCdGrZD
aAtEOTGxsFvs2s7wGq/7R5w=
=6mhk
-----END PGP SIGNATURE-----




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

* Re: [PATCH 1/2] metacity: upgrade to 2.30.3 from 2.30.0
  2010-11-08 22:33 ` [PATCH 1/2] metacity: upgrade to 2.30.3 from 2.30.0 Koen Kooi
@ 2010-11-08 22:36   ` Michael Smith
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Smith @ 2010-11-08 22:36 UTC (permalink / raw)
  To: openembedded-devel

Koen Kooi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 08-11-10 23:25, Michael Smith wrote:
> 
>>  EXTRA_OECONF += "--disable-verbose \
>>                   --disable-xinerama \
>> -                 --without-introspectiom \
>> +                 --without-introspection \
> 
> introspection should get disabled by gnome.bbclass nowadays.

OK, I'll fix before I push.



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

end of thread, other threads:[~2010-11-08 22:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-08 22:25 [PATCH 1/2] metacity: upgrade to 2.30.3 from 2.30.0 Michael Smith
2010-11-08 22:25 ` [PATCH 2/2] metacity: patch configure to add --disable-canberra Michael Smith
2010-11-08 22:33 ` [PATCH 1/2] metacity: upgrade to 2.30.3 from 2.30.0 Koen Kooi
2010-11-08 22:36   ` Michael Smith

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.