[PATCH] Make graphics/sane-backends work on -CURRENT

Mel Flynn mel at rachie.is-a-geek.net
Mon Mar 2 09:25:20 PST 2009

>Submitter-Id:	current-users
>Originator:	Mel Flynn
>Confidential:	no 
>Synopsis:	[PATCH] Make graphics/sane-backends work on -CURRENT
>Severity:	serious
>Priority:	medium
>Category:	ports
>Class:		sw-bug
>Release:	FreeBSD 8.0-CURRENT i386
System: FreeBSD smoochies.wlan.rachie.is-a-geek.net 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Sat Feb 28 17:05:35 AKST 2009 mel at smoochies.wlan.rachie.is-a-geek.net:/usr/obj/usr/src/sys/SMOOCHIES i386

Use legacy usb until proper fix is done upstream.
on -CURRENT after usb2 import, make -C /usr/ports/graphics/sane-backends build

New file to be added in files/

--- patch-sanei_sanei_usb.c begins here ---
--- sanei/sanei_usb.c.orig	2007-11-15 23:46:32.000000000 -0900
+++ sanei/sanei_usb.c	2009-03-02 07:58:37.000000000 -0900
@@ -88,7 +88,12 @@
 #endif /* HAVE_USBCALLS */
 #if defined (__FreeBSD__) 
+#include <sys/param.h>
+#if __FreeBSD_version+0 >= 800064
+#include <legacy/dev/usb/usb.h>
 #include <dev/usb/usb.h>
 #endif /* __FreeBSD__ */
 #if defined (__DragonFly__)
 #include <bus/usb/usb.h>
--- patch-sanei_sanei_usb.c ends here ---

More information about the freebsd-ports mailing list