testing/usb-modeswitch: script installed in wrong location
It appears that the udev rule tries to execute /lib/udev/usb_modeswitch which is a directory.
Mar 8 13:07:15 epoxy kern.warn kernel: [ 12.603814] usb 2-3: usbfs: process 1147 (usb_modeswitch) did not claim interface 0 before use
Mar 8 13:07:22 epoxy daemon.err udevd[1169]: failed to execute '/lib/udev/usb_modeswitch' 'usb_modeswitch --driver-bind /devices/pci0000:00/0000:00:03.1/usb2/2-3/2-3:1.0 12d1/1506/0': Permission denied
Mar 8 13:07:22 epoxy daemon.err udevd[1170]: failed to execute '/lib/udev/usb_modeswitch' 'usb_modeswitch --symlink-name /devices/pci0000:00/0000:00:03.1/usb2/2-3/2-3:1.0/ttyUSB0/tty/ttyUSB0 12d1 1506 ': Permission denied
Mar 8 13:07:22 epoxy daemon.err udevd[1171]: failed to execute '/lib/udev/usb_modeswitch' 'usb_modeswitch --symlink-name /devices/pci0000:00/0000:00:03.1/usb2/2-3/2-3:1.4/ttyUSB3/tty/ttyUSB3 12d1 1506 ': Permission denied
Mar 8 13:07:22 epoxy daemon.err udevd[1173]: failed to execute '/lib/udev/usb_modeswitch' 'usb_modeswitch --symlink-name /devices/pci0000:00/0000:00:03.1/usb2/2-3/2-3:1.2/ttyUSB1/tty/ttyUSB1 12d1 1506 ': Permission denied
Mar 8 13:07:22 epoxy daemon.err udevd[1174]: failed to execute '/lib/udev/usb_modeswitch' 'usb_modeswitch --symlink-name /devices/pci0000:00/0000:00:03.1/usb2/2-3/2-3:1.3/ttyUSB2/tty/ttyUSB2 12d1 1506 ': Permission denied
This is most likely because the APKBUILD creates
$pkgdir/lib/udev/usb_modeswitch directory during prepare phase. I guess
there are somethign like:
install usb_modewitch.sh /lib/udev/usb_modeswitch
in the make file.
Since the target exist as a direcotry the script is installed in there.
Removing the mkdir line should probably fix it.
(from redmine: issue id 1046, created on 2012-03-12, closed on 2012-05-09)
- Changesets:
- Revision 23d8dd2d by Natanael Copa on 2012-03-12T15:58:46Z:
testing/usb-modeswitch: upgrade to 1.2.3
also fixes #1046