On Sat, 23 Jun 2012, Bjørn Mork wrote: > Dan Williams <dcbw@xxxxxxxxxx> writes: > > > Sigh... I completely failed getting the script to work, because > > Device::USB fails to build it's shared library, because it wants the old > > libusb (0.9?) > > Yes, it requires the old libusb, which is version 0.1 I believe. 0.9 > could be some 1.0-pre thing? Don't know. > > Device::USB was the perl binding which showed up first. I just didn't > put any thought into this choice at all. It was packaged in Debian and > that is good enough for me. Means that some brave Debian maintainer has > gone through all the hassles getting it to build so that I won't have > to. > > Sorry that this caused you such problems. My intention was really > choosing something with a fair chance of being supported in current > distros. I realize now that I failed... > > > but happily enough when building it finds libusb-1.0 (the new version) > > and uses that, proceeding to segfault when running. And of course, > > attempting to build it against the new library (with headers in > > /usr/include/libusb-1.0) fails because it can't find the headers, and > > I'm not manly enough to figure out how to patch CPAN stuff. > > The 0.1 and 1.0 APIs are incompatible. The code must be rewritten to > use 1.0. > > > And yes, > > both libusb (0.9) and libusb1 (1.0) have to be installed in parallel > > because half the distro depends on one, half on the other. Whee. > > Yes, that's the only possible result when you change a library API to > something completely different (if we are talking about 0.1 and 1.0). > Rewriting all applications using the old API will take infinite time, > leaving the distros with the two options: > > 1) keep both libraries, or > 2) drop some applications > > But keeping both should be no problem, given that you do like Debian and > reserve the "libusb" name for the old API: Maybe you're not aware that libusb-1.0 has a compatibility layer that provides the old libusb-0.1 bindings. It's probably in a package called libusb-compat or something similar. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html