[oe-commits] Martin Jansa : matchbox-panel-2: fix build with newer revision for eglibc

git version control git at git.openembedded.org
Tue Dec 7 23:19:41 UTC 2010


Module: openembedded.git
Branch: master
Commit: fae65a5a2ca8a4b9a895001f9ab9f69d235081e1
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=fae65a5a2ca8a4b9a895001f9ab9f69d235081e1

Author: Martin Jansa <Martin.Jansa at gmail.com>
Date:   Wed Dec  8 00:15:34 2010 +0100

matchbox-panel-2: fix build with newer revision for eglibc

Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 .../rename.sync.to.sync_applet.patch               |   33 ++++++++++++++++++++
 recipes/matchbox2/matchbox-panel-2_svn.bb          |    3 +-
 2 files changed, 35 insertions(+), 1 deletions(-)

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
index 0000000..f51cc0b
--- /dev/null
+++ b/recipes/matchbox2/matchbox-panel-2/rename.sync.to.sync_applet.patch
@@ -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 */
diff --git a/recipes/matchbox2/matchbox-panel-2_svn.bb b/recipes/matchbox2/matchbox-panel-2_svn.bb
index 8ca4b66..fcc49b2 100644
--- a/recipes/matchbox2/matchbox-panel-2_svn.bb
+++ b/recipes/matchbox2/matchbox-panel-2_svn.bb
@@ -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}"
 





More information about the Openembedded-commits mailing list