ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> activetcl
activetcl
Re: [Activetcl] teapot repository package question
by Andreas Kupries other posts by this author
Oct 22 2007 10:10AM messages near this date
view in the new Beta List Site
Re: [Activetcl] teapot repository package question | Re: [Activetcl] teapot repository package question
>  $ teacup remove XOTcl 1.5.6
>   Removing instance package XOTcl 1.5.6 solaris2.6-sparc
>  $ teacup install --force --with-recommends XOTcl 1.5.6 -is package
>  Resolving XOTcl -is package -require 1.5.6 ... [package XOTcl 1.5.6
>  solaris2.6-sparc @ http://teapot.activestate.com]
>  Resolving Tcl -require 8.4 -is package ... [package Tcl 8.4.16 _ ...
>  Already installed, probing dependencies]

>  Retrieving package XOTcl   1.5.6 solaris2.6-sparc ...@
>  http://teapot.activestate.com ... Ok

>  Installing into /home/lwv27/.teapot/repository
>   $ /tmp/.lwv/ActiveTcl-8.5/bin/tclsh8.5
>  % package require XOTcl

>  And the package require never exits.
> 
>  Any ideas on how I can figure out what the package require is doing?

It should go through the procedure returned by [package unknown], so
instrumnting that is a possibility.
The other is to go to the pkgIndex.tcl of XOTcl and instrument that. I.e.
see if the pkgIndex.tcl is read at all, if the ifneeded script is executed,
and what parts of it. Guesstimate would be yes, and that it hangs in the
'load' of the shared library. At that point we are however out of luck, as
we cannot look deeper ... Actually we may can. Use 'strace' or equivalent to
see what system calls are made ... That can give us clues as well.


>  > > doing a package require for XOTcl resulted in the program just
>  > sitting.
>  >
>  > That is is XOTcl 1.5.6 ?
>  > (Compiled against 8.4, should run on 8.5 afaik) (Can you test it with
>  > 8.4 too ?)
> 
>  >
>  > $ /vol/tclsrcsol/ActiveTcl/bin/tclsh8.4
>  > % package require XOTcl
>  > 1.5.6
>  > % info patchlevel
>  > 8.4.16
>  > %
>  >
>  > So it looks like it works fine with ActiveTcl 8.4 latest
> 
>  Hm. I am unable to reproduce the hang ... That is the 8.4/XOTcl from
>  last night, and the AT 8.5 b9 gold bits ...
> 
> 
>  andreask@axe:~/workbench/X>
>  ./ActiveTcl8.4.16.1.282713-solaris-sparc/install.sh --directory $(pwd)/B
>  ; ./ActiveTcl8.5.0.0b9.282058-solaris-sparc-threaded/install.sh
>  --directory $(pwd)/B _____________________________________________
>  Launching graphical installer on casablanca:0 ...
>  _____________________________________________
>  Launching graphical installer on casablanca:0 ...
>  andreask@axe:~/workbench/X> ./B/bin/tclsh8.5 % info patchlevel
>  8.5b1
>  % package require XOTcl
>  1.5.6
>  % exit
> 
>  You were running it from the repository, right ? Better try that too.
> 
>  Remove regular package from the AT install first ...
> 
>  andreask@axe:~/workbench/X> rm -rf B/lib/xotcl1.5.6/
>  andreask@axe:~/workbench/X>  ./B/bin/tclsh8.5 % package require XOTcl
>  can't find package XOTcl % exit
> 
>  Install ...
> 
>  andreask@axe:~/workbench/X> teacup install XOTcl 1.5.6 Resolving XOTcl
>  -is package -require 1.5.6 ... [package XOTcl 1.5.6 solaris2.6-sparc @
>  http://teapot.activestate.com] Resolving Tcl -require 8.4 -is package
>  ... [package Tcl 8.4.15 _ ... Already installed, probing dependencies]
> 
>  Retrieving package XOTcl   1.5.6 solaris2.6-sparc ...@
>  http://teapot.activestate.com ... Ok
> 
>  Installing into /export/home/andreask/.teapot/repository
> 
>  Installing package XOTcl 1.5.6 solaris2.6-sparc
> 
>  And works ...
> 
>  andreask@axe:~/workbench/X>  ./B/bin/tclsh8.5 % package require XOTcl
>  1.5.6
>  %


--
	Andreas Kupries <andreask@[...].com> 
	Developer @ http://www.ActiveState.com
	Tel: +1 778-786-1122

_______________________________________________
ActiveTcl mailing list
ActiveTcl@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Larry W. Virden
Andreas Kupries
Larry W. Virden
Andreas Kupries
Larry W. Virden
Andreas Kupries
Larry W. Virden
Andreas Kupries
Larry W. Virden
Andreas Kupries
Andreas Kupries

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved