Blob Blame History Raw
diff --git meson.build meson.build
index 02a93f57..93f77e62 100644
--- meson.build
+++ meson.build
@@ -211,7 +211,7 @@ if get_option('bluez')
 endif
 libxmlb = dependency('xmlb', version : '>= 0.1.13', fallback : ['libxmlb', 'libxmlb_dep'])
 if get_option('gusb')
-  gusb = dependency('gusb', version : '>= 0.3.5', fallback : ['gusb', 'gusb_dep'])
+  gusb = dependency('gusb', version : '>= 0.3.0', fallback : ['gusb', 'gusb_dep'])
   conf.set('HAVE_GUSB', '1')
 endif
 sqlite = dependency('sqlite3')
diff --git plugins/cros-ec/fu-cros-ec-usb-device.c plugins/cros-ec/fu-cros-ec-usb-device.c
index 5bf6f7e1..79a29b2d 100644
--- plugins/cros-ec/fu-cros-ec-usb-device.c
+++ plugins/cros-ec/fu-cros-ec-usb-device.c
@@ -109,6 +109,7 @@ static gboolean
 fu_cros_ec_usb_device_find_interface (FuUsbDevice *device,
 				      GError **error)
 {
+#if G_USB_CHECK_VERSION(0,3,3)
 	GUsbDevice *usb_device = fu_usb_device_get_dev (device);
 	FuCrosEcUsbDevice *self = FU_CROS_EC_USB_DEVICE (device);
 	g_autoptr(GPtrArray) intfs = NULL;
@@ -142,6 +143,13 @@ fu_cros_ec_usb_device_find_interface (FuUsbDevice *device,
 			     FWUPD_ERROR_NOT_FOUND,
 			     "no update interface found");
 	return FALSE;
+#else
+	g_set_error_literal (error,
+			     FWUPD_ERROR,
+			     FWUPD_ERROR_NOT_SUPPORTED,
+			     "this version of GUsb is not supported");
+	return FALSE;
+#endif
 }
 
 static gboolean
diff --git a/plugins/dfu/fu-dfu-device.c b/plugins/dfu/fu-dfu-device.c
index 79854124..2879c6e5 100644
--- plugins/dfu/fu-dfu-device.c
+++ plugins/dfu/fu-dfu-device.c
@@ -1262,9 +1262,8 @@ fu_dfu_device_open (FuDevice *device, GError **error)
 		g_set_error (error,
 			     FWUPD_ERROR,
 			     FWUPD_ERROR_NOT_SUPPORTED,
-			     "GUsb version %s too old to support GD32, "
-			     "fwupd needs to be rebuilt against 0.3.6 or later",
-			     g_usb_version_string ());
+			     "GUsb version too old to support GD32, "
+			     "fwupd needs to be rebuilt against 0.3.6 or later");
 		return FALSE;
 #endif
 	}