prismstumbler: Don't apply wireless.patch for linux-libc-headers >= 2.6.30.
authorStanislav Brabec <utx@penguin.cz>
Wed, 16 Sep 2009 20:25:59 +0000 (20:25 +0000)
committerutx@penguin.cz <utx@penguin.cz>
Wed, 16 Sep 2009 20:25:59 +0000 (20:25 +0000)
recipes/prismstumbler/prismstumbler_0.7.3+0.7.4pre1.bb

index b7c7100..bc23824 100644 (file)
@@ -9,9 +9,11 @@ DEPENDS = "libpcap gtk+ wireless-tools sqlite zlib dbus-glib gpsd"
 RDEPENDS = "wireless-tools"
 RRECOMMENDS = "gpsd"
 
+# wireless.patch is required for linux-libc-headers == 2.6.23
+# but breaks build with linux-libc-headers >= 2.6.30.
 SRC_URI = "http://projects.linuxtogo.org/frs/download.php/14/${PN}-0.7.4pre1.tar.gz \
            file://gpsapi.patch;patch=1 \
-           file://wireless.patch;patch=1 \
+      ${@['', 'file://wireless.patch;patch=1'][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;patch=1;pnum=0"
 
 S = "${WORKDIR}/${PN}-0.7.4pre1"