[oe] [PATCH] contacts: fix build error

Dmitry Baryshkov dbaryshkov at gmail.com
Sun Nov 9 13:28:14 UTC 2008


contacts' source defines e_util_unicode_get_utf8() as both static
function() in .c file and as non-static one in the header. As this
function is unused outside of that file, drop non-static declaration.

Signed-off-by: Dmitry Baryshkov <dbaryshkov at gmail.com>
---
 .../pimlico/contacts-0.8/contacts-util-fixup.diff  |   13 +++++++++++++
 packages/pimlico/contacts_0.8.bb                   |    1 +
 2 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 packages/pimlico/contacts-0.8/contacts-util-fixup.diff

diff --git a/packages/pimlico/contacts-0.8/contacts-util-fixup.diff b/packages/pimlico/contacts-0.8/contacts-util-fixup.diff
new file mode 100644
index 0000000..95c3dbb
--- /dev/null
+++ b/packages/pimlico/contacts-0.8/contacts-util-fixup.diff
@@ -0,0 +1,13 @@
+Index: contacts-0.8/src/contacts-utils.h
+===================================================================
+--- contacts-0.8.orig/src/contacts-utils.h	2008-10-30 13:42:03.527971013 +0300
++++ contacts-0.8/src/contacts-utils.h	2008-10-30 13:42:08.140177662 +0300
+@@ -22,8 +22,6 @@
+ #include <libebook/e-book.h>
+ #include "contacts-defs.h"
+
+-char *e_util_unicode_get_utf8 (const char *text, gunichar * out);
+-
+ const char *kozo_utf8_strstrcasestrip (const char *haystack,
+				       const gunichar * needle);
+
diff --git a/packages/pimlico/contacts_0.8.bb b/packages/pimlico/contacts_0.8.bb
index d596d45..861e83a 100644
--- a/packages/pimlico/contacts_0.8.bb
+++ b/packages/pimlico/contacts_0.8.bb
@@ -6,4 +6,5 @@ SRC_URI = "http://pimlico-project.org/sources/${PN}/${PN}-${PV}.tar.gz \
 	   file://stock_contact.png \
 	   file://stock_person.png  \
 	   file://contacts-owl-window-menu.patch;patch=1 \
+	   file://contacts-util-fixup.diff;patch=1 \
 	  "
-- 
1.5.6.5





More information about the Openembedded-devel mailing list