Tk Library Source Code

View Ticket
Login
Ticket UUID: 1711544
Title: sak.tcl validate fails with bad error msg without module nam
Type: Bug Version: None
Submitter: mic42 Created on: 2007-05-02 21:54:30
Subsystem: Development Tools Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2007-05-04 04:41:25
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2007-05-03 21:41:25
Description:
Trying to use ./sak.tcl validate i see the following failure:
schlenk@chronos:~/devel/tcllib> tclsh ./sak.tcl validate
Validating tcllib 1.9 development
===================================================
1: Existence of testsuites ...
------------------------------------------------------
  Without testsuite : bench
  Without testsuite : ftp
  Without testsuite : ftpd
  Without testsuite : grammar_peg
  Without testsuite : http
  Without testsuite : irc
  Without testsuite : javascript
  Without testsuite : jpeg
  Without testsuite : nmea
  Without testsuite : nntp
  Without testsuite : page
  Without testsuite : pluginmgr
  Without testsuite : smtpd
  Without testsuite : tar
  Without testsuite : tcllibc
  Without testsuite : term
  Without testsuite : tiff
  Without testsuite : transfer
------------------------------------------------------

2: Existence of package indices ...
------------------------------------------------------
------------------------------------------------------

3: Consistency of package versions ...
------------------------------------------------------
unmatched open quote in list
    while executing
"foreach {n v} $line break"
    ("foreach" body line 12)
    invoked from within
"foreach line [split [read $fh] \n] {
            regsub "\#.*$" $line {} line
            if {![regexp {provide} $line]} {continue}
            if {![regexp {package} $lin..."
    ("foreach" body line 24)
    invoked from within
"foreach f $files {
        # We ignore package indices and all files not in a module.

        if {[string equal pkgIndex.tcl [file tail $f]]} {continue}
        if {![reg..."
    invoked from within
"foreach f $files {
        # We ignore package indices and all files not in a module.

        if {[string equal pkgIndex.tcl [file tail $f]]} {continue}
        if {![reg..."
    (procedure "ppackages" line 24)
    invoked from within
"ppackages"
    (procedure "validate_versions" line 3)
    invoked from within
"validate_versions"
    (procedure "_validate_all" line 21)
    invoked from within
"_validate_all"
    (procedure "__validate" line 4)
    invoked from within
"__$cmd"
    (file "./sak.tcl" line 2550)
User Comments: andreas_kupries added on 2007-05-04 04:41:25:
Logged In: YES 
user_id=75003
Originator: NO


Fix is to add

    # Now a stronger check for the actual command
    if {![regexp {package[ ][ ]*provide} $line]} {continue}

in line 251 of sak.tcl

The line 35 of critcl.tcl slips past the filters because I check for 'package' and 'provide' separately, and not as command. The above adds the stronger check.

Fixed in head.

andreas_kupries added on 2007-05-04 03:56:37:
Logged In: YES 
user_id=75003
Originator: NO

Yes. Using this recipe I can confirm the problem, using Tcl 8.4. I.e. this is version independent, and simply something in the pkgIndex.tcl of critcl sak has trouble understanding ... Investigating now ...

mic42 added on 2007-05-04 03:35:23:
Logged In: YES 
user_id=302287
Originator: YES

I use strace to check where this happens: It happens when scanning the tcllibc module (a tcllibc dir is created below modules when i use ./sak.tcl critcl first)


So to reproduce first build the critcl modules.

./sak.tcl critcl
./sak.tcl validate

I tried with 8.5a6 (HEAD from today)

andreas_kupries added on 2007-05-03 05:13:10:
Logged In: YES 
user_id=75003
Originator: NO

I do not see this stacktrace, using tclsh 8.4.15.
What version of tclsh was used for this ?