Blame SOURCES/deps.patch

c5a379
diff --git meson.build meson.build
c5a379
index 02a93f57..93f77e62 100644
c5a379
--- meson.build
c5a379
+++ meson.build
c5a379
@@ -206,7 +206,7 @@ else
c5a379
   gudev = dependency('', required : false)
c5a379
 endif
c5a379
 libxmlb = dependency('xmlb', version : '>= 0.1.13', fallback : ['libxmlb', 'libxmlb_dep'])
c5a379
-gusb = dependency('gusb', version : '>= 0.3.5', fallback : ['gusb', 'gusb_dep'])
c5a379
+gusb = dependency('gusb', version : '>= 0.3.0', fallback : ['gusb', 'gusb_dep'])
c5a379
 sqlite = dependency('sqlite3')
c5a379
 libarchive = dependency('libarchive')
c5a379
 endif
c5a379
diff --git plugins/cros-ec/fu-cros-ec-usb-device.c plugins/cros-ec/fu-cros-ec-usb-device.c
c5a379
index 5bf6f7e1..79a29b2d 100644
c5a379
--- plugins/cros-ec/fu-cros-ec-usb-device.c
c5a379
+++ plugins/cros-ec/fu-cros-ec-usb-device.c
c5a379
@@ -109,6 +109,7 @@ static gboolean
c5a379
 fu_cros_ec_usb_device_find_interface (FuUsbDevice *device,
c5a379
 				      GError **error)
c5a379
 {
c5a379
+#if G_USB_CHECK_VERSION(0,3,3)
c5a379
 	GUsbDevice *usb_device = fu_usb_device_get_dev (device);
c5a379
 	FuCrosEcUsbDevice *self = FU_CROS_EC_USB_DEVICE (device);
c5a379
 	g_autoptr(GPtrArray) intfs = NULL;
c5a379
@@ -142,6 +143,13 @@ fu_cros_ec_usb_device_find_interface (FuUsbDevice *device,
c5a379
 			     FWUPD_ERROR_NOT_FOUND,
c5a379
 			     "no update interface found");
c5a379
 	return FALSE;
c5a379
+#else
c5a379
+	g_set_error_literal (error,
c5a379
+			     FWUPD_ERROR,
c5a379
+			     FWUPD_ERROR_NOT_SUPPORTED,
c5a379
+			     "this version of GUsb is not supported");
c5a379
+	return FALSE;
c5a379
+#endif
c5a379
 }
c5a379
 
c5a379
 static gboolean