matchbox-panel-2: fix build with newer revision for eglibc
authorMartin Jansa <Martin.Jansa@gmail.com>
Tue, 7 Dec 2010 23:15:34 +0000 (00:15 +0100)
committerMartin Jansa <Martin.Jansa@gmail.com>
Tue, 7 Dec 2010 23:18:58 +0000 (00:18 +0100)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
recipes/matchbox2/matchbox-panel-2/rename.sync.to.sync_applet.patch [new file with mode: 0644]
recipes/matchbox2/matchbox-panel-2_svn.bb

diff --git a/recipes/matchbox2/matchbox-panel-2/rename.sync.to.sync_applet.patch b/recipes/matchbox2/matchbox-panel-2/rename.sync.to.sync_applet.patch
new file mode 100644 (file)
index 0000000..f51cc0b
--- /dev/null
@@ -0,0 +1,33 @@
+sync conflicts with sync in newer eglibc
+| showdesktop.c:60:1: error: conflicting types for 'sync'
+| /OE/tmpdir-shr/sysroots/armv4t-oe-linux-gnueabi/usr/include/unistd.h:986:13: note: previous declaration of 'sync' was here
+
+--- matchbox-panel-2/applets/showdesktop/showdesktop.c 2010-12-08 00:11:26.000000000 +0100
++++ matchbox-panel-2/applets/showdesktop/showdesktop.c.new     2010-12-08 00:11:16.000000000 +0100
+@@ -57,7 +57,7 @@
+ /* Sync @applet with the _NET_SHOWING_DESKTOP root window property */
+ static void
+-sync (ShowDesktopApplet *applet)
++sync_applet (ShowDesktopApplet *applet)
+ {
+         GdkDisplay *display;
+         Atom type;
+@@ -103,7 +103,7 @@
+         if (xev->type == PropertyNotify) {
+                 if (xev->xproperty.atom == applet->atom) {
+                         /* _NET_SHOWING_DESKTOP changed */
+-                        sync (applet);
++                        sync_applet (applet);
+                 }
+         }
+@@ -145,7 +145,7 @@
+                                applet);
+         /* Sync */
+-        sync (applet);
++        sync_applet (applet);
+ }
+ /* Button clicked */
index 8ca4b66..fcc49b2 100644 (file)
@@ -8,7 +8,7 @@ RDEPENDS_${PN} = "matchbox-panel-2-icon-theme"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 SRCREV = "2098"
 PV = "2.0+svnr${SRCPV}"
-PR = "r1"
+PR = "r2"
 
 inherit autotools pkgconfig
 
@@ -17,6 +17,7 @@ SRC_URI = "svn://svn.o-hand.com/repos/matchbox/trunk;module=${PN};proto=http \
           file://startup-invalid-access.patch;striplevel=0 \
           file://startup-shown-uninitialized.patch;striplevel=0 \
           file://themeable-icons.patch;striplevel=0 \
+          file://rename.sync.to.sync_applet.patch \
 "
 S = "${WORKDIR}/${PN}"