prismstumbler_0.7.3+0.7.4pre1.bb: Add patch to replace gps_query call
authorKhem Raj <raj.khem@gmail.com>
Thu, 30 Sep 2010 06:14:04 +0000 (23:14 -0700)
committerKhem Raj <raj.khem@gmail.com>
Thu, 30 Sep 2010 20:15:06 +0000 (13:15 -0700)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/prismstumbler/prismstumbler-0.7.3+0.7.4pre1/replace-gps_query.patch [new file with mode: 0644]
recipes/prismstumbler/prismstumbler_0.7.3+0.7.4pre1.bb

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 (file)
index 0000000..9473971
--- /dev/null
@@ -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);
+ }
index de51ba0..75e5bfb 100644 (file)
@@ -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"