[oe-commits] Martin Jansa : omgps: add patch for gcc-4.4 build
git version control
git at git.openembedded.org
Sun Jan 17 14:17:02 UTC 2010
Module: openembedded.git
Branch: shr/unstable
Commit: 2ffa71b47b1e8f87b3a845851b021a2a3d6efb2c
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=2ffa71b47b1e8f87b3a845851b021a2a3d6efb2c
Author: Martin Jansa <Martin.Jansa at gmail.com>
Date: Sun Jan 17 15:13:43 2010 +0100
omgps: add patch for gcc-4.4 build
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
recipes/omgps/omgps/gcc-4.4.patch | 68 +++++++++++++++++++++++++++++++++++++
recipes/omgps/omgps_svn.bb | 3 +-
2 files changed, 70 insertions(+), 1 deletions(-)
diff --git a/recipes/omgps/omgps/gcc-4.4.patch b/recipes/omgps/omgps/gcc-4.4.patch
new file mode 100644
index 0000000..3eae960
--- /dev/null
+++ b/recipes/omgps/omgps/gcc-4.4.patch
@@ -0,0 +1,68 @@
+diff -uNr omgps.orig/src/include/map_repo.h omgps/src/include/map_repo.h
+--- omgps.orig/src/include/map_repo.h 2009-07-20 19:54:08.000000000 +0200
++++ omgps/src/include/map_repo.h 2010-01-17 14:55:24.000000000 +0100
+@@ -3,6 +3,9 @@
+
+ #include <glib.h>
+ #include <gdk/gdk.h>
++// workaround Python.h unconditionally (re)defines _XOPEN_SOURCE and _POSIX_C_SOURCE
++#undef _XOPEN_SOURCE
++#undef _POSIX_C_SOURCE
+ #include <Python.h>
+
+ #define MAP_MAX_BG_COLORS 5
+diff -uNr omgps.orig/src/include/py_ext.h omgps/src/include/py_ext.h
+--- omgps.orig/src/include/py_ext.h 2009-07-20 19:54:08.000000000 +0200
++++ omgps/src/include/py_ext.h 2010-01-17 14:55:57.000000000 +0100
+@@ -4,8 +4,8 @@
+ void py_ext_init();
+ void py_ext_cleanup();
+
+-void inline py_ext_trylock();
+-void inline py_ext_lock();
+-void inline py_ext_unlock();
++void py_ext_trylock();
++void py_ext_lock();
++void py_ext_unlock();
+
+ #endif /* PY_EXT_H_ */
+diff -uNr omgps.orig/src/include/uart.h omgps/src/include/uart.h
+--- omgps.orig/src/include/uart.h 2009-07-20 19:54:08.000000000 +0200
++++ omgps/src/include/uart.h 2010-01-17 14:33:00.000000000 +0100
+@@ -12,9 +12,9 @@
+ extern void uart_cleanup();
+ extern void uart_close();
+
+-extern inline int read_with_timeout(U1 *buf, int len);
+-extern inline int write_with_timeout(U1 *buf, int len);
+-extern inline gboolean read_fixed_len(U1 *buf, int expected_len);
++extern int read_with_timeout(U1 *buf, int len);
++extern int write_with_timeout(U1 *buf, int len);
++extern gboolean read_fixed_len(U1 *buf, int expected_len);
+
+ extern int sysfs_get_gps_device_power();
+ extern gboolean gps_device_power_on();
+diff -uNr omgps.orig/src/py_ext.c omgps/src/py_ext.c
+--- omgps.orig/src/py_ext.c 2009-07-20 19:54:08.000000000 +0200
++++ omgps/src/py_ext.c 2010-01-17 14:56:46.000000000 +0100
+@@ -26,17 +26,17 @@
+ Py_Finalize();
+ }
+
+-void inline py_ext_trylock()
++void py_ext_trylock()
+ {
+ TRYLOCK_MUTEX(&lock);
+ }
+
+-void inline py_ext_lock()
++void py_ext_lock()
+ {
+ LOCK_MUTEX(&lock);
+ }
+
+-void inline py_ext_unlock()
++void py_ext_unlock()
+ {
+ UNLOCK_MUTEX(&lock);
+ }
diff --git a/recipes/omgps/omgps_svn.bb b/recipes/omgps/omgps_svn.bb
index e68a9a4..d73ade1 100644
--- a/recipes/omgps/omgps_svn.bb
+++ b/recipes/omgps/omgps_svn.bb
@@ -7,6 +7,7 @@ DEPENDS = "gtk+ python-pygobject dbus-glib"
PV = "0.1+svnr${SRCPV}"
PR = "r0"
S = "${WORKDIR}/${PN}"
-SRC_URI = "svn://omgps.googlecode.com/svn/trunk;module=omgps;proto=http"
+SRC_URI = "svn://omgps.googlecode.com/svn/trunk;module=omgps;proto=http \
+ file://gcc-4.4.patch;patch=1"
inherit autotools
More information about the Openembedded-commits
mailing list