Tk Library Source Code

View Ticket
Login
Ticket UUID: 1099727
Title: "make install" fails to install apps other than in /usr/bin
Type: Bug Version: None
Submitter: gleusch Created on: 2005-01-10 21:03:15
Subsystem: None Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2005-01-11 05:33:41
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2005-01-10 22:33:41
Description:
When one tries to install tcllib in another directory
than /usr/...

the installation process, called as 
./configure --prefix=...  && make install

tries to install dtplite into /usr/bin and fails (until
/usr/bin is writable for the user, of course).

Example:

> ./configure --prefix=/u/leusch/tmp/eval
--exec-prefix=/u/leusch/tmp/eval/intel 
[...]

> make install
/usr/bin/tclsh8.4 `echo ./installer.tcl` \
        -no-examples -no-html \
        -pkg-path  
/u/leusch/tmp/eval/intel//lib/tcllib1.7 \
        -nroff-path /u/leusch/tmp/eval//man/mann \
        -no-wait -no-gui
Installing Tcllib 1.7
You have chosen the following configuration ...

Packages:      /u/leusch/tmp/eval/intel//lib/tcllib1.7
Applications:  /usr/bin                             [
<===== !!!!! ]
Examples:      Not installed.
Documentation:

        NROFF:  /u/leusch/tmp/eval//man/mann
        HTML:   Not installed.

[...]
Generating /u/leusch/tmp/eval/man/mann/uri.n
Generating /u/leusch/tmp/eval/man/mann/uuid.n
error copying "./apps/dtplite" to "/usr/bin/dtplite":
permission denied
    while executing
"file copy -force $aexe    $adst"
    (procedure "ainstall" line 16)
    invoked from within
"ainstall"
    (procedure "doinstall" line 26)
    invoked from within
"doinstall"
    (procedure "main" line 11)
    invoked from within
"main"
    (file "./installer.tcl" line 536)
make: *** [install] Error 1



Stating --bin-path explicitly when calling configure
doen't help either.


Diagnosis:
installer.tcl requires the -app-path parameter if the
apps are to be installed other than in /usr/bin which
the Makefile doesn't.


Possible fix:
*** Makefile.in.orig    2005-01-10 21:20:27.000000000 +0100
--- Makefile.in 2005-01-10 21:24:17.000000000 +0100
***************
*** 28,33 ****
--- 28,34 ----
  exec_prefix   = @exec_prefix@
  libdir                = @libdir@
  mandir                = @mandir@
+ bindir                = @bindir@
  
  DESTDIR               =
  pkglibdir     = $(libdir)/@PACKAGE@@VERSION@
***************
*** 52,57 ****
--- 53,59 ----
        $(TCLSH_PROG) `$(CYGPATH)
$(srcdir)/installer.tcl` \
                -no-examples -no-html \
                -pkg-path   $(DESTDIR)$(pkglibdir) \
+               -app-path   $(DESTDIR)$(bindir) \
                -nroff-path $(DESTDIR)$(mandir)/mann \
                -no-wait -no-gui
  

(or whatever path is reasonable for the apps)
User Comments: andreas_kupries added on 2005-01-11 05:33:41:
Logged In: YES 
user_id=75003

Thank you. The fix has been accepted, but it was necessary
to perform the changes manually. Please do not place patches
like this into the report itself. Place them into a file,
and attach that file.

I have also added -no-apps options to the other install
targets, to make explicit that they do not install the
applications.