Blame SOURCES/deps.patch

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