Skip Menu |

This queue is for tickets about the Device-USB CPAN distribution.

Report information
The Basics
Id: 45638
Status: open
Priority: 0/
Queue: Device-USB

People
Owner: cpan.wade [...] anomaly.org
Requestors: james2vegas [...] aim.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Makefile.PL assumes that shared libs are .so on !Win
In Makefile.PL searching for libusb, return 1 if defined $dir && ($^O =~ /win/i ? -e "$dir/libusb.lib" : -e " $dir/libusb.so") ; Not all unixen, never mind all not windows operating system have shared libs ending in .so, some have different extensions, others append the version number.
I am open to suggestions on better ways to recognize whether or not the libusb library is available before installation. This test was instituted to help specific people who were having trouble installing the module when the library did not exist. If you have a better test (or a patch), I would be happy to change the module to support it. At present, I only have access to Linux and Mac OSX. (Most of the Linux distributions that I have tried symlink the version numbered library to the .so name, so that test has been good enough. But I'm always open to improvements. Especially if you can test in an environment I don't have.) Thanks for the report. G. Wade
Use Devel::CheckLib instead of the custom detection.