Blame SOURCES/deps.patch

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