Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-08-27
09:12 • Closed ticket [455642ffff]: Inconsistent $tcl_libPath and DISTNAME plus 7 ot... artifact: 71583f53e3 user: dgp
09:10 • Add attachment libpath.patch to ticket [455642ffff] artifact: 9e22e805ff user: dgp
09:10 • Ticket [455642ffff] Inconsistent $tcl_libPath and DISTNAME status still Open... artifact: 218e50abf7 user: dgp
02:10 • New ticket [455642ffff]. artifact: e62b47f253 user: dgp

Inconsistent $tcl_libPath and DISTNAME

Closed / Fixed455642ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2001-08-27 02:10:45
The routine TclpInitLibraryPath constructs a
search path for Tcl, and stores it in the
Tcl variable ::tcl_libPath.  The path is
used in the search for an init.tcl file by
the default operation of Tcl_Init().

The intent is to include on this path the
names of several directories, relative to
the executable, where the init.tcl might be
in any of the various directory layouts of Tcl,
both installed and development.

Some of the directories meant to represent
the development directory layout include
the name of the root directory.  In forming
that name, the rule is followed that for
alpha and beta releases, the name is
tcl[info patchlevel], while for stable releases,
the name is tcl[info tclversion].

Looking at the name of the root directory
created by Tcl's own 'make dist' target,
however, the root directory name of a Tcl
source distribution is:

DISTNAME = tcl@TCL_VERSION@@TCL_PATCH_LEVEL@

That is, the full patch level is always used.

These different parts of Tcl should agree about
what the root directory name of a Tcl source
distribution is.

Here's a patch, correcting TclpInitLibraryPath,
and also correcting [tcl_findLibrary] so it
remains consistent as well.
dgpplain2001-08-27 09:10:45
File Added - 10028: libpath.patch
dgpplain2001-08-27 09:12:59
Logged In: YES 
user_id=80530

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

Attachments: