[oe-commits] Khem Raj : prismstumbler_0.7.3+0.7.4pre1.bb: Add patch to replace gps_query call

git version control git at git.openembedded.org
Thu Sep 30 20:18:46 UTC 2010


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

Author: Khem Raj <raj.khem at gmail.com>
Date:   Wed Sep 29 23:14:04 2010 -0700

prismstumbler_0.7.3+0.7.4pre1.bb: Add patch to replace gps_query call

Signed-off-by: Khem Raj <raj.khem at gmail.com>

---

 .../replace-gps_query.patch                        |   17 +++++++++++++++++
 .../prismstumbler/prismstumbler_0.7.3+0.7.4pre1.bb |    6 ++++--
 2 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/recipes/prismstumbler/prismstumbler-0.7.3+0.7.4pre1/replace-gps_query.patch b/recipes/prismstumbler/prismstumbler-0.7.3+0.7.4pre1/replace-gps_query.patch
new file mode 100644
index 0000000..9473971
--- /dev/null
+++ b/recipes/prismstumbler/prismstumbler-0.7.3+0.7.4pre1/replace-gps_query.patch
@@ -0,0 +1,17 @@
+As per http://gpsd.berlios.de/protocol-transition.html#_virtue_is_rewarded
+gps_query should be replace with gps_stream
+
+Thanks
+-Khem
+Index: prismstumbler-0.7.4pre1/src/daemon/gpsctl.c
+===================================================================
+--- prismstumbler-0.7.4pre1.orig/src/daemon/gpsctl.c
++++ prismstumbler-0.7.4pre1/src/daemon/gpsctl.c
+@@ -41,6 +41,5 @@ update_gpsdata ()
+ {
+ 	if(!gps_conn)
+ 		return;
+-
+-	gps_query (gps_conn, "p");
++	gps_stream(gps_conn, WATCH_ENABLE, NULL);
+ }
diff --git a/recipes/prismstumbler/prismstumbler_0.7.3+0.7.4pre1.bb b/recipes/prismstumbler/prismstumbler_0.7.3+0.7.4pre1.bb
index de51ba0..75e5bfb 100644
--- a/recipes/prismstumbler/prismstumbler_0.7.3+0.7.4pre1.bb
+++ b/recipes/prismstumbler/prismstumbler_0.7.3+0.7.4pre1.bb
@@ -1,5 +1,5 @@
 SECTION = "x11/network"
-PR = "r5"
+PR = "r6"
 
 PACKAGES = "${PN}-dbg prismstumbler prismstumbler-frontend prismstumbler-doc"
 DESCRIPTION = "Prismstumbler wireless LAN scanner"
@@ -15,7 +15,9 @@ SRC_URI = "http://projects.linuxtogo.org/frs/download.php/14/${PN}-0.7.4pre1.tar
            file://gpsapi.patch \
       ${@['', 'file://wireless.patch'][bb.data.getVar('PREFERRED_VERSION_linux-libc-headers', d, 1) and bb.data.getVar('PREFERRED_VERSION_linux-libc-headers', d, 1).split('.')[2] < '30']} \
            file://fix-includes.patch;striplevel=0 \
-           file://libgps-check.patch"
+           file://libgps-check.patch \
+           file://replace-gps_query.patch \
+           "
 
 S = "${WORKDIR}/${PN}-0.7.4pre1"
 





More information about the Openembedded-commits mailing list