Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2007-02-23
10:20 • Closed ticket [1500979fff]: pkgIndex.tcl is removed in "make clean"</i... artifact: c80c9c7ae3 user: sf-robot
2007-02-09
08:08 • Pending ticket [1500979fff]. artifact: c9e6b0e301 user: hobbs
2006-08-02
15:13 • Ticket [1500979fff]: 4 changes artifact: d973e87edd user: mic42
2006-06-12
10:15 • Ticket [1500979fff]: 1 change artifact: 9960adc92a user: dgp
2006-06-11
07:40 • Ticket [1500979fff]: 4 changes artifact: 3c17facef1 user: jcw
06:49 • Ticket [1500979fff]: 4 changes artifact: f958f143e6 user: jcw
2006-06-05
21:16 • Ticket [1500979fff]: 1 change artifact: c5b05a6fcf user: dkf
13:25 • New ticket [1500979fff]. artifact: 98af7357f9 user: jcw

pkgIndex.tcl is removed in "make clean"

Closed / Invalid1500979fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2006-06-05 13:25:49
In my extensions based on sampleextension's TEA 3.5, make clean 
removes pkgIndex.tcl, which is however not rebuilt by a make, but by 
configure (from pkgIndex.tcl.in).

As a result, make clean causes trouble in a subsequent make.

I can't see how to work around this, the CLEANFILES variable in the 
Makefile is set up by configure.  I suppose configure should not add 
pkgIndex.tcl to the CLEANFILES list if it sees a pkgIndex.tcl.in

Maybe related: I've had trouble building a variant by creating a new dir, 
then doing "cd newdir; /path/to/orig/configure; make".  The make does 
nothing if there are build results in the original area.  Doing a "make 
clean" in the original area is enough to make the variant build normally.

Which is what brought up that first issue ...

(I try to avoid make distclean to be able to keep the configure settings)

-jcw
dkf Ticket [1500979fff]: 1 change [History diff]2006-06-05 21:16:48
jcwplain2006-06-11 06:49:30
Logged In: YES 
user_id=1983

The make-not-making problem can be solved by changing:

  VPATH = $(srcdir):$(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win

to

  VPATH = $(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win

Have not looked at how to solve pkgIndex.tcl rebuild yet.
jcwplain2006-06-11 07:40:32
Logged In: YES 
user_id=1983

Hm, that didn't work.  Watch: (Makefile.in contains the original line)

From the main dir itself, Makefile ends up with (GOOD!):
  VPATH = $(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win
From another dir, that same Makefile.in produces this (BAD!):
  VPATH = $(srcdir):$(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win

Ok, so maybe configure wants to include the top always, and drops it 
explicitly when already in the top?  When I change Makefile.in to:
  VPATH = $(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win
The in the orig dir, this ends up in Makefile (BAD!):
  VPATH = /generic:$(srcdir)/unix:$(srcdir)/win
In another dir, it produces (GOOD!):
  VPATH = $(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win

Looks like ya just can win with the current autoconf/makefile logic.

I've changed it as follows in Makefile.in for now:
  VPATH = $(srcdir)/generic:$(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win
With that double entry, I get this Makefile in the orig dir:
  VPATH = /generic:$(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win
And this Makefile elsewhere:
  VPATH = $(srcdir)/generic:$(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win

Clearly a hack, but it works for me.
dgp Ticket [1500979fff]: 1 change [History diff]2006-06-12 10:15:46
mic42plain2006-08-02 15:13:21
Logged In: YES 
user_id=302287

Duplicated in Bug #1517839.
hobbsplain2007-02-09 08:08:05
Logged In: YES 
user_id=72656
Originator: NO

The extension writer should modify CLEANFILES setting in configure.in depending on whether pkgIndex.tcl.in is used or it is hand-rolled in the Makefile.
sf-robotplain2007-02-23 10:20:10
Logged In: YES 
user_id=1312539
Originator: NO

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
Log in (anonymous is fine) to add a comment.