Bug#460863: gok: FTBFS on non-linux systems
Aurelien Jarno
aurel32 at debian.org
Tue Jan 15 09:55:45 UTC 2008
Package: gok
Version: 1.2.5-1
Severity: important
Tags: patch
gok fails to build on non-linux systems, as it uses C code to check for
preprocessor variables. Please find below a patch to fix that.
--- gok-1.2.5.orig/gok/gok-libusb.c
+++ gok-1.2.5/gok/gok-libusb.c
@@ -261,7 +261,7 @@
/* check if the device is attached to a kernel driver and attempt to detach if it is
* if the OS doesn't support detaching from the kernel driver, just try to claim the interface anyway
*/
- if (LIBUSB_HAS_GET_DRIVER_NP && LIBUSB_HAS_DETACH_KERNEL_DRIVER_NP)
+#if defined(LIBUSB_HAS_GET_DRIVER_NP) && defined(LIBUSB_HAS_DETACH_KERNEL_DRIVER_NP)
{
gchar *driver_name = g_malloc0(128);
if (usb_get_driver_np(handle, j, driver_name, 128) >= 0)
@@ -283,6 +283,7 @@
}
g_free(driver_name);
}
+#endif
if (usb_claim_interface(handle, j) < 0)
{
-- System Information:
Debian Release: lenny/sid
Architecture: kfreebsd-amd64 (x86_64)
Kernel: kFreeBSD 6.2-1-em64t-p4
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
More information about the pkg-gnome-maintainers
mailing list