Re: svn commit: r234684 - head/lib/libusb

2012-04-28 Thread Hans Petter Selasky
On Friday 27 April 2012 20:58:56 Robert Millan wrote:
 El 26 d’abril de 2012 23:55, Hans Petter Selasky hsela...@c2i.net ha 
escrit:
  By linux libusb do you mean the one from http://www.libusb.org/ ?
  AFAIK this one is a portable library, at least it builds on
  GNU/kFreeBSD too.
  
  The one from libusb.org does not work under FreeBSD.
 

Hi,

 Can you be more specific about this?  We've got around 80 packages
 that are linking with this library.  If it's really broken, we
 probably need to change the build dependencies and rebuild every of
 them.

Are these packages built with libusb header files from the FreeBSD USB library 
or the libusb.org library? If the libusb.org header files are used, then 
updating the FreeBSD USB library will fix some issues. Else not.

 
 Are you sure it's completely useless?

Currently only python-libusb will be fixed when using the latest version of 
LibUSB from FreeBSD 10-current.

 
  Ok, but if you changed ABI in 10-current, then please do bump the
  soname.  We have a huge amount of trouble every time an ABI bump is
  missed (this happened with libgeom a while ago).
  
  Yes, this is done now.
 

--HPS


--
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201204281017.36909.hsela...@c2i.net



Re: svn commit: r234684 - head/lib/libusb

2012-04-26 Thread Hans Petter Selasky
On Thursday 26 April 2012 19:54:00 Robert Millan wrote:
 El 25 d’abril de 2012 23:20, Hans Petter Selasky
 
 hans.petter.sela...@bitfrost.no ha escrit:
  Isn't libusb2debian a binary compatible drop-in replacement for
  applications which are compiled with the linux libusb.
 
 By linux libusb do you mean the one from http://www.libusb.org/ ?
 AFAIK this one is a portable library, at least it builds on
 GNU/kFreeBSD too.

The one from libusb.org does not work under FreeBSD.

 I wasn't directly involved in this episode.  We're providing both
 (libusb from libusb.org and libusb from FreeBSD) but I'm not sure why.
  I suppose the one from FreeBSD has better support for kernel of
 FreeBSD?  Or perhaps because they're not API-compatible and
 applications could need either of them?
 
  If applications are compiled from
  source there is no problem, though I see some applications like
  python-libusb that hardcode structure sizes.
 
 That sounds like a problem.  Could you be more specific?  (and put
 debian-bsd@lists.debian.org on CC)
 
  Just leave the libusb2debian as-is then, and we'll have this in once the
  10-version is out.
 
 Ok, but if you changed ABI in 10-current, then please do bump the
 soname.  We have a huge amount of trouble every time an ABI bump is
 missed (this happened with libgeom a while ago).

Yes, this is done now.

--HPS


--
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201204262355.46470.hsela...@c2i.net



Bug#594330: libusb2 doesn't detect any devices

2010-08-25 Thread Hans Petter Selasky
Committed to USB P4.

--HPS

http://p4web.freebsd.org/@@182898?ac=10

Change 182898 by hsela...@hselasky_laptop001 on 2010/08/25 16:49:00

LibUSB:
- patch for GNU/kFreeBSD by David Moles

PR: http://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=594330
Reviewed by:hselasky @

Affected files ...

.. //depot/projects/usb/src/lib/libusb/libusb20.c#19 edit

Differences ...

 //depot/projects/usb/src/lib/libusb/libusb20.c#19 (text+ko) 

@@ -1182,7 +1182,7 @@
 {
struct libusb20_backend *pbe;
 
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
pbe = libusb20_be_alloc(libusb20_ugen20_backend);
 #else
pbe = NULL;



-- 
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201008251847.18340.hsela...@c2i.net