From owner-freebsd-current@FreeBSD.ORG Wed Feb 4 09:47:03 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0361310656D6 for ; Wed, 4 Feb 2009 09:47:03 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.tele2.se [212.247.155.65]) by mx1.freebsd.org (Postfix) with ESMTP id 8FAD48FC0C for ; Wed, 4 Feb 2009 09:47:02 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=h6Gd6J8yk-YAZcrHTtMA:9 a=iw8MitXZkUXWMHShCJoA:7 a=pGxnQLnfNzBqinsLRZJ6IpY8gPkA:4 a=LY0hPdMaydYA:10 Received: from [85.19.218.115] (account mc467741@c2i.net HELO [10.37.1.92]) by mailfe11.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1018327155; Wed, 04 Feb 2009 10:47:00 +0100 From: Hans Petter Selasky To: freebsd-current@freebsd.org, vova@fbsd.ru Date: Wed, 4 Feb 2009 10:49:26 +0100 User-Agent: KMail/1.9.7 References: <1233732660.1767.30.camel@localhost> In-Reply-To: <1233732660.1767.30.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200902041049.27444.hselasky@c2i.net> Cc: Subject: Re: USB2 - libusb20 vs devel/libusb X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2009 09:47:03 -0000 On Wednesday 04 February 2009, Vladimir Grebenschikov wrote: > Hi > > I've tried libusb, looks like it works more or less. > > What is the right policy about libusb* libraries ? > > I have security/libfprint (finger-print reader that uses ugen device) > that stop working after upgrade. > > Following entry in /etc/libmap.conf make it works somehow > libusb-0.1.so libusb20.so > libusb-0.1.so.8 libusb20.so.1 > > It allows library to access usb device, but pam authentication with it > still does not work ( looks like it reads fingerprint correctly, but > fails later ). Have you checked the permissions of your device? usbconfig dump_access > > What is right way to handle that situation ? > Is there universal library, that will work for both stacks ? I was thinking about doing some detection inside libusb in ports, but currently you have to switch manually. On problem is that the libusb code in ports is not BSD licensed, so we cannot just copy in the old UGEN support :-( /* * (Free|Open|Net)BSD USB support * * Derived from Linux version by Richard Tobin. * * $Id: bsd.c,v 1.33 2006/03/04 01:16:10 jerdfelt Exp $ * $Name: $ * * This library is covered by the LGPL, read LICENSE for details. */ On the other hand, libusbhid, automatically detects USB stack and switches everything accordingly. > PS. I didn't try yet libgphoto2 (it also uses ugen directly). --HPS