Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-06
01:45 • Ticket [221793ffff] 'make install-libraries' does not install packages</... artifact: eadda7141c user: dgp
2000-11-21
00:52 • Closed ticket [221793ffff]. artifact: fb4fea5f1f user: hobbs
2000-11-09
02:19 • Ticket [221793ffff]: 4 changes artifact: 7813a1e1c1 user: dgp
2000-11-08
00:20 • Ticket [221793ffff]: 4 changes artifact: 72e936d719 user: hobbs
2000-11-07
00:17 • Ticket [221793ffff]: 4 changes artifact: da16323b03 user: dgp
2000-11-06
17:15 • New ticket [221793ffff]. artifact: a2d8084373 user: dgp

'make install-libraries' does not install packages

Closed / Fixed221793ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-11-06 17:15:13
The 'make install-libraries' target has been written
to install packages from the CVS-checked out version
of the source distribution, which has no version
numbers in the package directories.

The actual distribution adds version numbers to the names
of these directories, so installation fails.

If anything, the Makefile targets should cater to the
user of the actual distribution.  Those checking out
from CVS can add sym-links to enable 'make install-libraries'.
dgpplain2000-11-07 00:17:31
Here's a patch:

Index: unix/Makefile.in
===================================================================
RCS file: /home/cvs/cvsroot/sun/tcl/unix/Makefile.in,v
retrieving revision 1.1.1.24
diff -c -r1.1.1.24 Makefile.in
*** Makefile.in 2000/11/06 16:26:50     1.1.1.24
--- Makefile.in 2000/11/06 17:13:15
***************
*** 583,604 ****
            $(INSTALL_DATA) $$j $(SCRIPT_INSTALL_DIR)/http1.0; \
            done;
        @echo "Installing library http2.3 directory";
!       @for j in $(TOP_DIR)/library/http/*.tcl ; \
            do \
            $(INSTALL_DATA) $$j $(SCRIPT_INSTALL_DIR)/http2.3; \
            done;
        @echo "Installing library opt0.4 directory";
!       @for j in $(TOP_DIR)/library/opt/*.tcl ; \
            do \
            $(INSTALL_DATA) $$j $(SCRIPT_INSTALL_DIR)/opt0.4; \
            done;
        @echo "Installing library msgcat1.2 directory";
!       @for j in $(TOP_DIR)/library/msgcat/*.tcl ; \
            do \
            $(INSTALL_DATA) $$j $(SCRIPT_INSTALL_DIR)/msgcat1.2; \
            done;
        @echo "Installing library tcltest2.0 directory";
!       @for j in $(TOP_DIR)/library/tcltest/*.tcl ; \
            do \
            $(INSTALL_DATA) $$j $(SCRIPT_INSTALL_DIR)/tcltest2.0; \
            done;
--- 583,604 ----
            $(INSTALL_DATA) $$j $(SCRIPT_INSTALL_DIR)/http1.0; \
            done;
        @echo "Installing library http2.3 directory";
!       @for j in $(TOP_DIR)/library/http2.3/*.tcl ; \
            do \
            $(INSTALL_DATA) $$j $(SCRIPT_INSTALL_DIR)/http2.3; \
            done;
        @echo "Installing library opt0.4 directory";
!       @for j in $(TOP_DIR)/library/opt0.4/*.tcl ; \
            do \
            $(INSTALL_DATA) $$j $(SCRIPT_INSTALL_DIR)/opt0.4; \
            done;
        @echo "Installing library msgcat1.2 directory";
!       @for j in $(TOP_DIR)/library/msgcat1.2/*.tcl ; \
            do \
            $(INSTALL_DATA) $$j $(SCRIPT_INSTALL_DIR)/msgcat1.2; \
            done;
        @echo "Installing library tcltest2.0 directory";
!       @for j in $(TOP_DIR)/library/tcltest2.0/*.tcl ; \
            do \
            $(INSTALL_DATA) $$j $(SCRIPT_INSTALL_DIR)/tcltest2.0; \
            done;
Index: win/Makefile.in
===================================================================
RCS file: /home/cvs/cvsroot/sun/tcl/win/Makefile.in,v
retrieving revision 1.1.1.8
diff -c -r1.1.1.8 Makefile.in
*** Makefile.in 2000/11/06 16:27:10     1.1.1.8
--- Makefile.in 2000/11/06 17:13:15
***************
*** 503,524 ****
            $(COPY) "$$j" "$(SCRIPT_INSTALL_DIR)/http1.0"; \
            done;
        @echo "Installing library http2.3 directory"; \
!       @for j in $(ROOT_DIR)/library/http/*.tcl; \
            do \
            $(COPY) "$$j" "$(SCRIPT_INSTALL_DIR)/http2.3"; \
            done;
        @echo "Installing library opt0.4 directory"; \
!       @for j in $(ROOT_DIR)/library/opt/*.tcl; \
            do \
            $(COPY) "$$j" "$(SCRIPT_INSTALL_DIR)/opt0.4"; \
            done;
        @echo "Installing library msgcat1.2 directory"; \
!       @for j in $(ROOT_DIR)/library/msgcat/*.tcl; \
            do \
            $(COPY) "$$j" "$(SCRIPT_INSTALL_DIR)/msgcat1.2"; \
            done;
        @echo "Installing library tcltest2.0 directory"; \
!       @for j in $(ROOT_DIR)/library/tcltest/*.tcl; \
            do \
            $(COPY) "$$j" "$(SCRIPT_INSTALL_DIR)/tcltest2.0"; \
            done;
--- 503,524 ----
            $(COPY) "$$j" "$(SCRIPT_INSTALL_DIR)/http1.0"; \
            done;
        @echo "Installing library http2.3 directory"; \
!       @for j in $(ROOT_DIR)/library/http2.3/*.tcl; \
            do \
            $(COPY) "$$j" "$(SCRIPT_INSTALL_DIR)/http2.3"; \
            done;
        @echo "Installing library opt0.4 directory"; \
!       @for j in $(ROOT_DIR)/library/opt0.4/*.tcl; \
            do \
            $(COPY) "$$j" "$(SCRIPT_INSTALL_DIR)/opt0.4"; \
            done;
        @echo "Installing library msgcat1.2 directory"; \
!       @for j in $(ROOT_DIR)/library/msgcat1.2/*.tcl; \
            do \
            $(COPY) "$$j" "$(SCRIPT_INSTALL_DIR)/msgcat1.2"; \
            done;
        @echo "Installing library tcltest2.0 directory"; \
!       @for j in $(ROOT_DIR)/library/tcltest2.0/*.tcl; \
            do \
            $(COPY) "$$j" "$(SCRIPT_INSTALL_DIR)/tcltest2.0"; \
            done;
hobbsplain2000-11-08 00:20:59
This is my fault, but I think the mistake was in versioning the directories in the archive distribution.  Perhaps they should just be left like they come out of CVS - without version numbers.  That way the install targets work for the archive and the cvs distributions.
dgpplain2000-11-09 02:19:42
I agree that Jeff's idea is the better short-term fix.
The package directories need only include a version
number on installation.  Only http 1.0 needs it in the
source distribution to distinguish it from http 2.x.

After fixing this and the problems with dde's pkgIndex.tcl
file, do we want to release a Tcl 8.4a3 ?  (Release early
and often?)
hobbsplain2000-11-21 00:52:25
I've patched the Makefile.in to work with unversioned directories (leaving only http1.0 alone).
DDE still needs to be fixed, but perhaps the best solution there is to take out the Tcl version
completely from reg and dde packages.  This would be backwards compatible, because people
ask for 'package require dde 1.1', not 8.3/8.4.  Only the dll name would change.
dgp Ticket [221793ffff]: 3 changes [History diff]2001-04-06 01:45:07
Log in (anonymous is fine) to add a comment.