[oe] usb-modeswitch 2.2.0 not compatible with systemd-udevd version provided by poky/krogoth and newer

matti kaasinen matti.kaasinen at gmail.com
Mon Nov 21 09:46:05 UTC 2016


Hi!

I faced with similar problem described in
https://bbs.archlinux.org/viewtopic.php?id=199075 .
In short the latest usb-modeswitch version (2.2.0) of meta-openembedded is
not compatible with the latest versions of poky distribution (from krogoth
on).

I made a recipe for building the latest usb_modeswitch that seems fixing
this problem at least in my case. I also made a recipe loading the latest
usb-modeswitch-data.

Please find them below.

Take care,
Matti Kaasinen

=============================PATCH ================================
## Add usb-modeswitch_2.4.0.bb and usb-modeswitch-data_20160803.bb
---
diff -Naur a/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch_2.4.0.bb
b/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch_2.4.0.bb
--- a/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch_2.4.0.bb
1970-01-01 02:00:00.000000000 +0200
+++ b/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch_2.4.0.bb
2016-11-21 11:18:12.380995084 +0200
@@ -0,0 +1,19 @@
+SUMMARY = "A mode switching tool for controlling 'flip flop' (multiple
device) USB gear"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
+
+DEPENDS = "libusb1"
+
+SRC_URI = "http://www.draisberghof.de/usb_modeswitch/${BP}.tar.bz2"
+SRC_URI[md5sum] = "6e1640db47768bb9012f91b7593116ef"
+SRC_URI[sha256sum] =
"17dc32bf10df8e370f2369b5137d34dfd8f2347faaa51524c5f21c922f42e212"
+
+EXTRA_OEMAKE = "TCL=${bindir}/tclsh"
+
+FILES_${PN} = "${bindir} ${sysconfdir}
${nonarch_base_libdir}/udev/usb_modeswitch ${sbindir}
${localstatedir}/lib/usb_modeswitch"
+RDEPENDS_${PN} = "tcl"
+RRECOMMENDS_${PN} = "usb-modeswitch-data"
+
+do_install() {
+    oe_runmake DESTDIR=${D} install
+}
diff -Naur a/meta-oe/recipes-support/usb-modeswitch/
usb-modeswitch-data_20160803.bb b/meta-oe/recipes-support/usb-modeswitch/
usb-modeswitch-data_20160803.bb
--- a/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch-data_20160803.bb
1970-01-01 02:00:00.000000000 +0200
+++ b/meta-oe/recipes-support/usb-modeswitch/usb-modeswitch-data_20160803.bb
2016-11-21 11:18:12.380995084 +0200
@@ -0,0 +1,17 @@
+SUMMARY = "Data files for usbmodeswitch"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
+
+inherit allarch
+
+SRC_URI = "http://www.draisberghof.de/usb_modeswitch/${BP}.tar.bz2"
+SRC_URI[md5sum] = "acc927e44827837eb23b2a7980b38a35"
+SRC_URI[sha256sum] =
"83f4a277c6e34b8537740ae16bf9275008f7bf3f326134e0f846656a61a756fe"
+
+do_install() {
+    oe_runmake install DESTDIR=${D}
+}
+
+RDEPENDS_${PN} = "usb-modeswitch (>= 2.2.0)"
+FILES_${PN} += "${base_libdir}/udev/rules.d/ \
+                ${datadir}/usb_modeswitch"



More information about the Openembedded-devel mailing list