Since version 1.2 usb_modeswitch supports building without TCL but with dev-lang/libjim instead, see README file: 1. If you have the "Tcl" scripting language available on your system (packages "tcl" or "jimsh"), use the light-weight installation: # make install 2. If you are size-constrained and have the Jimsh library on your system (package "libjim-dev"), you can have the Tcl interpreter embedded with the dispatcher, using its shared lib: # make install-shared
ssuominen@null ~/gentoo-x86 $ qlist usb_modeswitch | xargs grep ^#.*tcl /usr/sbin/usb_modeswitch_dispatcher:#!/usr/bin/tclsh /usr/sbin/usb_modeswitch_dispatcher:# Wrapper (tcl) for usb_modeswitch, called from ssuominen@null ~/gentoo-x86 $ qlist usb_modeswitch | xargs grep usb_modeswitch_dispatcher /etc/usb_modeswitch.conf:# Evaluated by the wrapper script /usr/sbin/usb_modeswitch_dispatcher /lib/udev/usb_modeswitch: if [ -e "/usr/sbin/usb_modeswitch_dispatcher" ]; then /lib/udev/usb_modeswitch: exec usb_modeswitch_dispatcher $1 $2 2>>/dev/null /lib/udev/usb_modeswitch: if [ ! -e "/usr/sbin/usb_modeswitch_dispatcher" ]; then /lib/udev/usb_modeswitch: exec usb_modeswitch_dispatcher --switch-mode $1 $0 &
*** Bug 432068 has been marked as a duplicate of this bug. ***
reopen for revaluation as it appears the script can be compiled into a binary using this thing called jimtcl it has bundled (can use system copy too?)
+*usb_modeswitch-1.2.6_p20130610 (24 Jun 2013) + + 24 Jun 2013; Samuli Suominen <ssuominen@gentoo.org> + +usb_modeswitch-1.2.6_p20130610.ebuild, metadata.xml: + Version bump; introduce USE="jimtcl" wrt #409587 by Christian Faulhammer