Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2019-12-22
15:16 • Closed ticket [ff676a2358]: TIP 406 broken in Tcl 8.7a3 release plus 5 other... artifact: 3907cab644 user: jan.nijtmans
2019-12-20
16:09 • Ticket [ff676a2358]: 4 changes artifact: eef8fc1dd4 user: dkf
2019-11-25
18:58 • Ticket [ff676a2358]: 3 changes artifact: b12d71762d user: dgp
18:56 • Ticket [ff676a2358]: 3 changes artifact: 79c0737773 user: dgp
18:45 • Ticket [ff676a2358]: 4 changes artifact: 27ccf8a60f user: dgp
18:45 • New ticket [ff676a2358]. artifact: 5b711f9f0e user: dgp

TIP 406 broken in Tcl 8.7a3 release

Closed / Fixedff676a23582d47f08990fda8925034718b8fff28Created 7 years agoUpdated 7 years ago
Descriptionplain2019-11-25 18:45:30
Trying to test Tcl 8.7a3 as released, I see 37 failing tests in httpcookie.test .

The failures start with

==== http-cookiejar-2.15 cookie storage: basics FAILED
==== Contents of test case:

    oo::objdefine $tracer method PostponeRefresh {} {
        set ::result set
        next
    }
    http::cookiejar configure -domainref 12345
    return $result

---- Test setup failed:
couldn't open "/home/dgp/src/tcl8.7a3/library/http/effective_tld_names.txt.gz": no such file or directory
---- errorInfo(setup): couldn't open "/home/dgp/src/tcl8.7a3/library/http/effective_tld_names.txt.gz": no such file or directory
    while executing
"open $filename"
    (class "::http::cookiejar" method "GetDomainListOffline" line 6)
...

Indeed that file is not present in the source code distribution.

Is this a brokenness in the set of files distributed?

If we add this file to the distribution, then in what sense can the complete http package be installed as a single-file TM ?

A very quick reply is needed if this is to be fixed in the release.
dgp Ticket [ff676a2358]: 4 changes [History diff]2019-11-25 18:45:42
dgpplain2019-11-25 18:56:27
Based on a quick look, TIP 406 calls for creation of a new package "cookiejar".

The Makefiles have made no provision to install this package.

With its structure depending on multiple files, this package cannot be
installed as a Tcl Module. However, the pkgIndex.tcl file is written
shared with the http package, which is installed in TM form, and not
in the pkgIndex.tcl format.

I do not see a quick clean path to untangle this.

(Enter rant about multiple packages per index script here).
dgpplain2019-11-25 18:58:42
Should also mention here the violation of the principle "Test what you will run".

Long ago we moved to installing the http package in TM format, but the
test suite always tests its pkgIndex.tcl driven counterpart in the source/build
area. Such tests cannot help but be less valuable.
dkfhtml2019-12-20 16:09:44

I think this is now fixed (by making the cookiejar bits into a parallel package instead of living directly in the http package directory). Independent testing of this would be highly welcomed, which is why I've not closed this.

I simply wasn't aware that the http package was a TM after installation; I saw the pkgIndex.tcl and thought it wasn't. (I haven't tried to fix that; I think it's out of scope of this bug report.)

jan.nijtmansplain2019-12-22 15:16:17
Yes, it's fixed. cookiejar now works fine after installation
Log in (anonymous is fine) to add a comment.