On Sun, Jan 22, 2012 at 2:59 AM, Peter Bigot
<pabi...@users.sourceforge.net> wrote:
> On Sat, Jan 21, 2012 at 8:09 AM, Wander Lairson Costa
> <wander.lair...@gmail.com> wrote:
>> I have not commented on this thread because I haven't time to go into
>> it right now, but I am reading all the posts. Something I didn't get
>> is if this behavior is a bug in older versions of libusb or not...
>
> I would guess so, since it's present in SUSE 10.3's libusb-0.1.12 from
> 2007, but is not present in Ubuntu 11.04 (or perhaps Ubuntu has
> applied a patch for it).  I have not tried to research the libusb
> history to find out if it was a bug and was fixed there, as that
> doesn't help me (SUSE 10.3 is way past end-of-life so there's no path
> to get an updated package).

You can always build libusb-0.1 from source on your Suse 10.3.

On the other hand, libusb-0.1 has not been updated for quite
some time. The last release version is 0.1.12 and it was released
on 2006-03-04.

But I just checked the Ubuntu patches for libusb-0.1 and indeed
there is a patch related to this topic. And indeed this shows that
it is a libusb-0.1 bug.

https://launchpad.net/ubuntu/+source/libusb/2:0.1.12-20
The Debian patch is here.
https://launchpad.net/ubuntu/+archive/primary/+files/libusb_0.1.12-20.debian.tar.gz
In the patches, there is one with the name 08_bus_location.diff.

--- a/linux.c
+++ b/linux.c
@@ -355,6 +355,7 @@

     strncpy(bus->dirname, entry->d_name, sizeof(bus->dirname) - 1);
     bus->dirname[sizeof(bus->dirname) - 1] = 0;
+    bus->location = atoi(bus->dirname);

     LIST_ADD(fbus, bus);


-- 
Xiaofan

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to