Skip to content
Tcl Source Code History Of Ticket 573292
Login

History Of Ticket 573292

Artifacts Associated With Ticket 573292

  1. Ticket change [8f1a873593] (rid 120226) by pifpafpuf on 2002-06-24 20:25:20:

    1. assignee initialized to: "mdejong"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      I called
      
        make install prefix=/usr/local/stow/tcl8.4a4
      
      and got
      
      unix# ll `which tclsh8.4`
      -rwxr-xr-x    1 root     staff        6207 Jun 24 22:15
      /usr/local/bin/tclsh8.4*
      
      I guess the wrong prefix comes from the --prefix given
      to configure. 
      All other files are installed where requested.
      
      The different prefixes used during configure/make and
      'make install' are 
      necessary when using stow
      (http://www.gnu.org/software/stow/) or when
      packing distributions.
      
        Harald Kirsch
      
    4. foundin initialized to: "obsolete: 8.4a4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "pifpafpuf"
    9. subsystem initialized to: "53. Configuration and Build Tools"
    10. title initialized to: "prefix not honoured on make install"
    11. type initialized to: "Bug"
  2. Ticket change [a1aec140d9] (rid 109768) by mdejong on 2002-06-25 03:39:19:

    1. icomment:
      Logged In: YES 
      user_id=90858
      
      Tcl does not support setting the prefix variable
      at make time. I doubt it ever will. If you want to
      set the prefix it should be done at configure time.
      A handy patch might be to detect if the user changed
      the prefix variable on the command line an generate
      an error that tells them not too. It might have
      been useful to set the prefix like that in the old
      days of static libs, but these days there are far
      too many compiled in paths to even think about
      supporting this.
      
      
    2. login: "mdejong"
    3. mimetype: "text/plain"
    4. username: "mdejong"
  3. Ticket change [02f63352a8] (rid 119741) by pifpafpuf on 2002-06-26 22:19:54:

    1. icomment:
      Logged In: YES 
      user_id=367359
      
      It seems like we have a different understanding of how a prefix
      given to 'make install' should be handled. You write:
      
        but these days there are far
        too many compiled in paths to even think about
        supporting this.
      
      You seem to mean that the prefix for 'make install' must be
      fiddled into
      the software to tell it its own location. On the contrary
      'make install'
      MUST NOT touch any compiled-in prefix anymore. It should
      only copy the
      files into the destination directory structure and maybe set
      permissions. 
      
      This is necessary for stow as well as for package builders
      like dpkg or rpm: 
      The software is intended to work e.g. in /usr/local but for
      packing (rpm) or
      other managing (stow) it is necessary to have it in a single
      clean
      directory hierarchy, i.e. in particular not in /usr/local.
      This is what the prefix
      given to 'make install' should be used for.
      
      That said you may find that supporting this is really trivial.
      
        Harald Kirsch
      
      
      
    2. login: "pifpafpuf"
    3. mimetype: "text/plain"
    4. username: "pifpafpuf"
  4. Ticket change [c0acb68b5e] (rid 102452) by dgp on 2002-06-26 23:15:46:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Note that this issue is similar to the one
      raised in Tcl Bug 489370.  You might
      want to read comments there for
      background.
      
      I also liked the ability to re-direct installs
      with a single redefine, but Mo insists it's
      not correct.  You can still achieve the
      redirection, but you'll need to redefine
      all of prefix, exec_prefix, and libdir now.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [b9ec6c2cd2] (rid 129229) by dgp on 2002-06-26 23:23:27:

    1. assignee changed to: "rmax"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      
      rmax, I think you look after the tcl.spec file and
      packaging of Tcl/Tk into RPMs.  Does this
      issues affect those things?
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  6. Ticket change [1c779788b2] (rid 90609) by rmax on 2002-07-15 17:23:22:

    1. icomment:
      Logged In: YES 
      user_id=124643
      
      Harald, I think what you need is INSTALL_ROOT
      
      ./configure --prefix=/usr ...
      make
      make INSTALL_ROOT=/var/tmp/tcl-root install
      
      This creates a Tcl installation that is configured to work when
      installed under /usr, but prepends /var/tmp/tcl-root to any
      path during installation.
      
      
    2. login: "rmax"
    3. mimetype: "text/plain"
    4. username: "rmax"
  7. Ticket change [c6966bd2c7] (rid 121795) by pifpafpuf on 2002-09-01 03:11:20:

    1. icomment:
      Logged In: YES 
      user_id=367359
      
      First, I would like to stress that I want to change prefix
      *only* to redirect installation, i.e. where files are
      copied. Of course it
      makes no sense to configure for /X and compile for /Y.
      
      mdejong says:
      
      > Tcl does not support setting the prefix variable
      > at make time.
      
      Looking into configure.in, the main reason seems to be that
      libdir is expanded
      at configure time instead of when make is run. The comment in
      configure.in around line 26 is:
      
      # libdir must be a fully qualified path and (not
      ${exec_prefix}/lib)
      
      What is the reason for this?
      
      P.S.: No, INSTALL_ROOT is not suitable for use with stow.
      
      
      
    2. login: "pifpafpuf"
    3. mimetype: "text/plain"
    4. username: "pifpafpuf"
  8. Ticket change [f8aabae4fa] (rid 91577) by stephenhill on 2003-02-25 04:58:20:

    1. icomment:
      Logged In: YES 
      user_id=452449
      
      This is a fairly common need - you configure for location X,
      you install under a stow tree, then you generate packages (
      or whatever ) from the stow tree and they will be installed
      and run from location X on other machines.  
      
      The eval that expands libdir is incorrect, since it affects
      every use of libdir.  The fix should have only affected the
      one buggy use of libdir that was causing a ${exec_prefix} to
      show up in the generated tclConfig.sh file.  
      
      For my use I commented out the eval and we don't care about
      the bad line we get in the tclConfig.sh since we don't use it.  
      
      
      
      
    2. login: "stephenhill"
    3. mimetype: "text/plain"
    4. username: "stephenhill"
  9. Ticket change [ecc19a1e02] (rid 103762) by mdejong on 2003-02-25 05:15:52:

    1. icomment:
      Logged In: YES 
      user_id=90858
      
      I don't see how we can subst one value of libdir into the
      tclConfig.sh
      and another value into the Makefile. Could you work around this
      issue by running:
      
      make prefix=/some/path libdir='$(exec_prefix)/lib` install
      
      This would likely "fix" things for you, but if a --libdir option
      were to be passed to the configure script then things would
      be broken again.
      
      
      
    2. login: "mdejong"
    3. mimetype: "text/plain"
    4. username: "mdejong"
  10. Ticket change [c5f12e908c] (rid 121676) by dgp on 2003-02-26 14:11:02:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Note this excerpt from unix/README:
      
      (f) Type "make install" to install Tcl binaries and script
      files in
          standard places.  You'll need write permission on the
      installation
          directories to do this.  The installation directories are
          determined by the "configure" script and may be
      specified with
          the --prefix and --exec-prefix options to "configure". 
      See the
          Makefile for information on what directories were
      chosen; you
          can override these choices by modifying the "prefix" and
          "exec_prefix" variables in the Makefile.
      
      Is seems that the final sentence is no longer correct, because
      'make install' has been modified so one cannot redirect the
      location of an install by simply redefining "prefix".
      
      Whatever the final resolution of this, the Makefile should
      be checked to be correct.
      
      There's a similar claim in the unix/Makefile for Tk.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  11. Ticket change [ec56ebb193] (rid 103696) by dgp on 2003-02-26 23:55:58:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      shouldn't type so late at night.
      
      When I type "Makefile", I meant "README".
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  12. Ticket change [0aa9e4ac7b] (rid 236940) by stu on 2025-01-20 11:02:10:

    1. assignee changed to: "aku"
    2. closer changed to: "nobody"
    3. comment changed to:
      I called
      
        make install prefix=/usr/local/stow/tcl8.4a4
      
      and got
      
      unix# ll `which tclsh8.4`
      -rwxr-xr-x    1 root     staff        6207 Jun 24 22:15
      /usr/local/bin/tclsh8.4*
      
      I guess the wrong prefix comes from the --prefix given
      to configure. 
      All other files are installed where requested.
      
      The different prefixes used during configure/make and
      'make install' are 
      necessary when using stow
      (http://www.gnu.org/software/stow/) or when
      packing distributions.
      
        Harald Kirsch
      
    4. icomment:
      I think this can be closed.
      
      Seems like
      $ make install DESTDIR=...
      (which now exists) is what was desired.
      
    5. login: "stu"
    6. mimetype: "text/plain"
    7. severity changed to: "Minor"
    8. username: "stu"
  13. Ticket change [4a8536d156] (rid 237093) by stu on 2025-01-21 16:32:54:

    1. assignee changed to: "jan.nijtmans"
    2. login: "stu"
    3. mimetype: "text/plain"