Tk Source Code

View Ticket
Login
Ticket UUID: 220688
Title: Makefile build run fails if Tcl test was not compiled
Type: Bug Version: obsolete: 8.3
Submitter: welch Created on: 2000-10-31 23:50:47
Subsystem: 84. Unix Build Assigned To: nobody
Priority: 2 Severity:
Status: Closed Last Modified: 2000-11-01 06:50:47
Resolution: Fixed Closed By: welch
    Closed on: 2000-10-31 23:50:47
Description:
OriginalBugID: 4237 Bug
Version: 8.3
SubmitDate: '2000-02-23'
LastModified: '2000-03-30'
Severity: MED
Status: Released
Submitter: techsupp
ChangedBy: ericm
OS: Linux
Machine: Black
FixedDate: '2000-03-30'
FixedInVersion: 8.3.1


Name:
mo

ReproducibleScript:
If you run the "make runtest" rule in the Tk build directory
without running the "make runtest" rule in the Tcl directory,
you will get an error because the Tcl test .o files can not
be found.

ObservedBehavior:
The "make runtest" rule fails.

DesiredBehavior:
I would like it to not fail.

Patch:
Index: unix/Makefile.in
===================================================================
RCS file: /cvsroot/tk/unix/Makefile.in,v
retrieving revision 1.41
diff -u -r1.41 Makefile.in
--- Makefile.in 2000/02/14 22:43:32     1.41
+++ Makefile.in 2000/02/23 21:44:40
@@ -384,7 +384,13 @@
                @TK_BUILD_LIB_SPEC@  $(WISH_LIBS) $(TK_CC_SEARCH_FLAGS) -o wish

-tktest: $(TKTEST_OBJS) $(TK_LIB_FILE)
+# This rule is executed if the user tried to run tktest without first
+# building tcltest in the Tcl bin directory. Just do it for them.
+${TCL_BIN_DIR}/tcltest:
+       cd ${TCL_BIN_DIR} ;  +       make tcltest
+
+tktest: ${TCL_BIN_DIR}/tcltest $(TKTEST_OBJS) $(TK_LIB_FILE)
        ${CC} @LDFLAGS@ $(TKTEST_OBJS)  @TK_BUILD_LIB_SPEC@  $(WISH_LIBS) $(TK_CC_SEARCH_FLAGS) -o tktest
@@ -409,7 +415,7 @@
        ./tktest $(TOP_DIR)/tests/all.tcl -geometry +0+0 $(TCLTESTARGS)

 # Useful target to launch a built tktest with the proper path,...
-runtest:
+runtest: tktest
        LD_LIBRARY_PATH=`pwd`:${TCL_BIN_DIR}:${LD_LIBRARY_PATH};  export LD_LIBRARY_PATH;  LIBPATH=`pwd`:${TCL_BIN_DIR}:${LIBPATH}; export LIBPATH;  Index: unix/configure.in
===================================================================
RCS file: /cvsroot/tk/unix/configure.in,v
retrieving revision 1.47
diff -u -r1.47 configure.in
--- configure.in        2000/02/10 08:53:16     1.47
+++ configure.in        2000/02/23 21:44:40
@@ -17,6 +17,8 @@
 if test "${exec_prefix}" = "NONE"; then
     exec_prefix=$prefix
 fi
+# Make sure srcdir is fully qualified!
+srcdir=`cd $srcdir ; pwd`
 TK_SRC_DIR=`cd $srcdir/..; pwd`

 AC_PROG_RANLIB

PatchFiles:
unix/Makefile.in
    unix/configure.in



Thanks for the patch, Mo.  I applied it to the sources in CVS, and it will go out with 8.3.1.

- eric

-- 03/30/2000 ericm