Blame SOURCES/deps.patch

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