Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 409587 - sys-apps/usb_modeswitch: Make dev-lang/tcl optional using jimtcl (for building executable)
Summary: sys-apps/usb_modeswitch: Make dev-lang/tcl optional using jimtcl (for buildin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
: 432068 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-03-24 21:08 UTC by Christian Faulhammer (RETIRED)
Modified: 2013-06-24 17:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Faulhammer (RETIRED) gentoo-dev 2012-03-24 21:08:58 UTC
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
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2012-03-27 16:27:40 UTC
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 &
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2012-08-23 03:04:46 UTC
*** Bug 432068 has been marked as a duplicate of this bug. ***
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2012-08-23 03:05:44 UTC
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?)
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2013-06-24 17:42:15 UTC
+*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