[oe-commits] Martin Jansa : iliwi: add patch to build it with newer vala

git version control git at git.openembedded.org
Wed Feb 16 17:56:16 UTC 2011


Module: openembedded.git
Branch: shr/testing2011.1
Commit: 2c43183bf650c8b1c8dc5be12ea80672c2968c71
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=2c43183bf650c8b1c8dc5be12ea80672c2968c71

Author: Martin Jansa <Martin.Jansa at gmail.com>
Date:   Wed Jan  5 08:10:55 2011 +0100

iliwi: add patch to build it with newer vala

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

---

 recipes/openmoko-3rdparty/iliwi/new.vala.patch |   59 ++++++++++++++++++++++++
 recipes/openmoko-3rdparty/iliwi_git.bb         |    3 +-
 2 files changed, 60 insertions(+), 2 deletions(-)

diff --git a/recipes/openmoko-3rdparty/iliwi/new.vala.patch b/recipes/openmoko-3rdparty/iliwi/new.vala.patch
new file mode 100644
index 0000000..43d18eb
--- /dev/null
+++ b/recipes/openmoko-3rdparty/iliwi/new.vala.patch
@@ -0,0 +1,59 @@
+From patchwork Mon Jan  3 16:17:07 2011
+Content-Type: text/plain; charset="utf-8"
+MIME-Version: 1.0
+Content-Transfer-Encoding: 7bit
+Subject: [Shr-Devel] Fix code to compile against new vala version
+Date: Mon, 03 Jan 2011 15:17:07 -0000
+From: Pau Espin Pedrol <pespin.shar at gmail.com>
+X-Patchwork-Id: 838
+
+---
+ src/wifi.vala |   10 +++++-----
+ 1 files changed, 5 insertions(+), 5 deletions(-)
+
+
+diff --git a/src/wifi.vala b/src/wifi.vala
+index 5460bb1..9995f16 100644
+--- a/src/wifi.vala
++++ b/src/wifi.vala
+@@ -25,11 +25,11 @@ namespace iliwi {
+     public signal void status_change();
+     public signal void network_list_change();
+     
+-    unowned Thread thread;
++    unowned Thread<void*> thread;
+     
+     public Wifi() {
+       try {
+-        thread = Thread.create(WifiThread.run_thread, true);
++        thread = Thread.create<void*>(WifiThread.run_thread, true);
+       } catch(Error e) {
+         critical("Couldn't start wifi-thread!");
+       }
+@@ -270,7 +270,7 @@ namespace iliwi {
+       }
+     }
+     public static void connect_to_network(Network network) {
+-      disconnect();
++      disconnectt();
+       wifi.set_new_status("connecting..");
+       connect_network = network;
+       network.set_new_status(NetworkStatus.CONNECTING);
+@@ -317,7 +317,7 @@ namespace iliwi {
+       }
+       status = NetworkStatus.CONNECT;
+     }
+-    private static void disconnect() {
++    private static void disconnectt() {
+       status = NetworkStatus.UNCONNECTED;
+       try {
+         Process.spawn_sync(null, {Environment.find_program_in_path("killall"),"wpa_supplicant"}, null, GLib.SpawnFlags.STDERR_TO_DEV_NULL, null);
+@@ -372,7 +372,7 @@ namespace iliwi {
+       networks = new HashMap<string,Network>(str_hash,str_equal);
+       visible_networks = new ArrayList<Network>();
+       status = NetworkStatus.UNCONNECTED;
+-      disconnect();
++      disconnectt();
+       load_preferred_networks();
+       scan();
+     }
diff --git a/recipes/openmoko-3rdparty/iliwi_git.bb b/recipes/openmoko-3rdparty/iliwi_git.bb
index 1cab077..6818b90 100644
--- a/recipes/openmoko-3rdparty/iliwi_git.bb
+++ b/recipes/openmoko-3rdparty/iliwi_git.bb
@@ -2,13 +2,12 @@ DESCRIPTION = "Iliwi connects you to WiFi networks"
 HOMEPAGE = "http://github.com/Ebbe/Iliwi"
 LICENSE = "GPLv3"
 AUTHOR = "Esben Damgaard <ebbe at hvemder.dk>"
-DEPENDS = "dbus-glib elementary libgee"
+DEPENDS = "dbus-glib elementary libgee libeflvala"
 # killall and udhcpc from busybox are enough
 RDEPENDS_${PN} = "wireless-tools wpa-supplicant"
 
 SRCREV = "fcd77fada06f6373b0fb5771f78aaa9dcaa97036"
 PV = "0.0.1+gitr${SRCPV}"
-SRC_URI = "git://github.com/Ebbe/Iliwi.git;protocol=http;branch=master"
 PR = "r10"
 
 SRC_URI = "git://github.com/Ebbe/Iliwi.git;protocol=http;branch=master \





More information about the Openembedded-commits mailing list