Blame SOURCES/deps.patch

c5a379
diff --git meson.build meson.build
c5a379
index 02a93f57..93f77e62 100644
c5a379
--- meson.build
c5a379
+++ meson.build
bdd7ca
@@ -211,7 +211,7 @@ if get_option('bluez')
c5a379
 endif
c5a379
 libxmlb = dependency('xmlb', version : '>= 0.1.13', fallback : ['libxmlb', 'libxmlb_dep'])
bdd7ca
 if get_option('gusb')
bdd7ca
-  gusb = dependency('gusb', version : '>= 0.3.5', fallback : ['gusb', 'gusb_dep'])
bdd7ca
+  gusb = dependency('gusb', version : '>= 0.3.0', fallback : ['gusb', 'gusb_dep'])
bdd7ca
   conf.set('HAVE_GUSB', '1')
c5a379
 endif
bdd7ca
 sqlite = dependency('sqlite3')
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
bdd7ca
diff --git a/plugins/dfu/fu-dfu-device.c b/plugins/dfu/fu-dfu-device.c
bdd7ca
index 79854124..2879c6e5 100644
bdd7ca
--- plugins/dfu/fu-dfu-device.c
bdd7ca
+++ plugins/dfu/fu-dfu-device.c
bdd7ca
@@ -1262,9 +1262,8 @@ fu_dfu_device_open (FuDevice *device, GError **error)
bdd7ca
 		g_set_error (error,
bdd7ca
 			     FWUPD_ERROR,
bdd7ca
 			     FWUPD_ERROR_NOT_SUPPORTED,
bdd7ca
-			     "GUsb version %s too old to support GD32, "
bdd7ca
-			     "fwupd needs to be rebuilt against 0.3.6 or later",
bdd7ca
-			     g_usb_version_string ());
bdd7ca
+			     "GUsb version too old to support GD32, "
bdd7ca
+			     "fwupd needs to be rebuilt against 0.3.6 or later");
bdd7ca
 		return FALSE;
bdd7ca
 #endif
bdd7ca
 	}