[Pkg-tcltk-devel] Installing a tcl module

Felipe Sateler fsateler at gmail.com
Tue Oct 2 19:18:39 UTC 2007


On Tuesday 02 October 2007 14:35:21 Sergei Golovan wrote:
> On 10/2/07, Felipe Sateler <fsateler at gmail.com> wrote:
> > Upstream installs it to /usr/lib, and while tcl loads the module from
> > there, it doesn't really comply with policy, since it doesn't have a
> > versioned soname.
>
> The usual practice is to install the library to a subdir of /usr/lib
> (/usr/lib/Tclcsound for example). A proper Tcl package also provides
> file pkgIndex.tcl which is put to the same subdir of /usr/lib and
> contains an instruction how to load the library.
>
> If csound doesn't provide pkgIndex.tcl (I've quickly found
> http://www.csounds.com/manual/html/tclcsound.html. Is this your case?)

No, it doesn't. However, that exact page is more of a quick glance over 
cstclsh rather than the tclcsound module. The module is quickly glanced over 
in http://www.csounds.com/manual/html/csserver.html

> you could write your own with something like the following:
>
> package ifneeded Tclcsound 1.0 \
>     [list load [file join $dir tclcsound.so] Tclcsound]

I copied that (alongside tclcsound.so) into pkgIndex.tcl, but it didn't work 
(I'm trying to load it with "load tclcsound.so Tclcsound"). I tried different 
version numbers to no avail. I wonder how is tclsh supposed to find it? I 
guess a different command is needed to load tclcsound.


-- 

	Felipe Sateler
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/pkg-tcltk-devel/attachments/20071002/e5e24f03/attachment.pgp 


More information about the Pkg-tcltk-devel mailing list