View Ticket
EuroTcl/OpenACS 11 - 12 JULY 2024, VIENNA
01:51 Closed ticket [37bbdb9fb2]: `make install` does not work when `configure` was called without --prefix plus 4 other changes artifact: 72693a7bef user: bohagan
18:13 Ticket [37bbdb9fb2]: 5 changes artifact: deede30708 user: anonymous
08:17 New ticket [37bbdb9fb2]. artifact: b0cf94ff67 user: anonymous

Ticket Hash: 37bbdb9fb2abbc383fb4657118642fd495cf723d
Title: `make install` does not work when `configure` was called without --prefix
Status: Closed Type: Build Problem
Severity: Important Priority: Immediate
Subsystem: Resolution: Fixed
Last Modified: 2024-06-29 01:51:34
Version Found In: 1.7.22
User Comments:
anonymous added on 2021-01-27 08:17:35:

The TCL_PACKAGE_PATH variable is set to {/usr/lib} with braces.

  $ sudo make install
  /usr/bin/install -c -d '{/usr/lib}/tcltls1.7.22'
  /usr/bin/install -c '{/usr/lib}/tcltls1.7.22'
  /usr/bin/install -c -m 644    pkgIndex.tcl '{/usr/lib}/tcltls1.7.22'

As this is not valid brace expansion (comma is required), that results in creating a directory called { and installing the files under it, instead of /usr/lib.

anonymous added on 2022-03-12 18:13:54:

This is actually a bug in the Tcl configure script. Starting in Tcl 8.6.11, the lines:

if test "$prefix/lib" != "$libdir"; then
    TCL_PACKAGE_PATH="${libdir} ${prefix}/lib"

were changed to:

if test "$prefix/lib" != "$libdir"; then
    TCL_PACKAGE_PATH="{${libdir}} {${prefix}/lib}"

The extra braces propagate into the file, which then breaks the makefile.

bohagan added on 2024-06-29 01:51:34:
This issue is obsolete. TCL has been updated to correct the root cause and the make scripts have been changed to be TEA compliant with sane default options.