Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Another path to case-tolerant package names

Closed / Out of Date2432057fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 6 years ago
Descriptionplain2008-12-15 23:59:55
Here is a patch, meant as a contribution to the TIP #339
followup discussion. It is an alternative, providing 100%
compatibility, solving an easier problem than the original.
In stead of trying to make package handling case-insensitive,
it only tries to handle the situation that a FooBar package
is provided, and then let the core provide a wrapper package
"foobar" which can be "required" in stead of the original.
nijtmansplain2008-12-16 06:59:56
File Added - 305450: tclPkg.c.patch
nijtmansplain2008-12-16 19:26:31
File Deleted - 305450:
nijtmansplain2008-12-16 19:27:13
File Added - 305500: tclPkg.c.patch
nijtmansplain2008-12-16 19:28:29
Uploaded new patch file, in which autoMkindex.test crash is fixed,
apart from that, "package names" doesn't report phony packages any
more, and a few test cases are added.
dgpplain2008-12-17 01:34:43
Patch crashes in autoMkindex-1.2.
dgpplain2008-12-17 01:46:57
Those are big and messy.  Skip them.

Crash in package-compat-1.5 .
dgpplain2008-12-17 01:48:51
oops.  not in it. following it.

I'm giving up.  Wanted to give this
a shot on the assumption it was
ready to go.  If not, I'd rather
take a different tack.
nijtmansplain2008-12-17 05:56:55
File Deleted - 305500:
nijtmansplain2008-12-17 05:57:32
File Added - 305586: tclPkg.c.diff
nijtmansplain2008-12-17 06:03:10
New attempt (there was one Tcl_EventuallyFree() too much ....,
on Windows it didn't crash.)

However, I wouldn't commit this until at least a new TIP handling
this has been accepted. It's too late for Tcl 8.6 anyway, let's
see for Tcl 8.7. I will continue to add more tests, and any
review is welcome (I still don't know what "Those are big and messy.
Skip them" means: this patch is much smaller then anything else
I have seen...... Also curious about the "different track")
nijtmansplain2010-07-27 03:54:29
File Deleted - 305586:
nijtmansplain2010-07-27 03:55:11
File Added - 381219: 2432057.patch
nijtmansplain2010-07-27 03:56:52
Here is a new patch, against current HEAD. And fixed a problem related to
circular dependancies: Phony packages should not be counted on that.

With this version, all test cases pass!
nijtmansplain2010-07-27 04:19:23
File Deleted - 381219:
nijtmansplain2010-07-27 04:20:03
File Added - 381220: 2432057.patch
nijtmansplain2010-07-27 21:29:53
B.T.W: I am not fully confident about this yet. It looks like the auto_mkIndex tool produces two lines for each package with this change. It would be better to modify auto_mkIndex to recognise this situation, and deliver the same output as before.
jan.nijtmans Ticket [2432057fff]: 1 change [History diff]2014-02-21 19:06:32
jan.nijtmans Ticket [2432057fff]: 1 change [History diff]2014-02-21 19:12:07
jan.nijtmanswiki2021-03-18 14:56:52

Being handled now by TIP #595, but in a totally different way. So, closing.

Log in (anonymous is fine) to add a comment.

Attachments: