Skip to content
Tcl Source Code View Ticket
Login

View Ticket

'make gendate' target broken

Deleted218963ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:08:40
OriginalBugID: 3333 Bug
Version: 8.2.1
SubmitDate: '1999-11-05'
LastModified: '1999-11-07'
Severity: MED
Status: Released
Submitter: techsupp
ChangedBy: hobbs
OS: Other
FixedDate: '1999-11-07'
FixedInVersion: 8.2.2
ClosedDate: '2000-10-25'


Name:
Don Porter

CVS:
$Id: Makefile.in,v 1.44.2.2 1999/10/02 01:09:54 hobbs Exp $

Comments:
The problem is the interaction between CVS Keyword expansion and other
    quoting.  When the $Id$ keyword is expanded by CVS, the expanded value
    contains "/".  The -e flag to sed sees the "/" as a close of the
    's/SCCCID//' command, and the rest of the keyword expansion causes a
    sed error.  The fix is to use a different character ('?') to act as the
    delimiter for the 's' command of sed.

    Note: Since Tcl 8.2.1 is not available through the Scriptics NetCVS
    repository,
    the diffs are done against my own local CVS repository in which I keep
    Tcl
    releases.  That explains different revision numbers.  The diff is
    against
    the Tcl 8.2.1 source code release.

ObservedBehavior:
$ cd tcl8.2.1/unix
    $ make gendate
    yacc -l ./../generic/tclGetDate.y
    yacc: 8 shift/reduce conflicts.
    sed -e 's/yy/TclDate/g' -e '/^#include <values.h>/d'  -e 's/SCCSID/RCS: @(#) $Id: Makefile.in,v 1.44.2.2 1999/10/02
    01:09:54 hobbs Exp $/'  -e '/#ifdef __STDC__/,/#endif/d' -e '/TclDateerrlab:/d'  -e '/TclDatenewstate:/d' -e '/#pragma/d'  -e '/#include <inttypes.h>/d'  <y.tab.c >./../generic/tclDate.c
    sed: Unknown option to 's'
    make: *** [gendate] Error 1

DesiredBehavior:
'make gendate' should build generic/tclDate.c from 
    generic/tclGetDate.y

Patch:
Index: Makefile.in
===================================================================
RCS file: /home/cvs/cvsroot/sun/tcl/unix/Makefile.in,v
retrieving revision 1.1.1.17
diff -c -r1.1.1.17 Makefile.in
*** Makefile.in 1999/10/04 21:07:21     1.1.1.17
--- Makefile.in 1999/10/04 21:57:14
***************
*** 460,466 ****
  gendate:
        yacc -l $(GENERIC_DIR)/tclGetDate.y
        sed -e 's/yy/TclDate/g' -e '/^#include <values.h>/d'  !           -e 's/SCCSID/RCS: @(#) $$Id: Makefile.in,v 1.44.2.2 1999/10/02 01:09:54 hobbs Exp $$/'  -e '/#ifdef __STDC__/,/#endif/d' -e '/TclDateerrlab:/d'  -e '/TclDatenewstate:/d' -e '/#pragma/d'  -e '/#include <inttypes.h>/d'  --- 460,466 ----
  gendate:
        yacc -l $(GENERIC_DIR)/tclGetDate.y
        sed -e 's/yy/TclDate/g' -e '/^#include <values.h>/d'  !           -e 's?SCCSID?RCS: @(#) $$Id$$?'  -e '/#ifdef __STDC__/,/#endif/d' -e '/TclDateerrlab:/d'  -e '/TclDatenewstate:/d' -e '/#pragma/d'  -e '/#include <inttypes.h>/d'  
PatchFiles:
unix/Makefile.in



Fixed as specified. 
-- 11/07/1999 hobbs
welch Deleted ticket [218963ffff]. [History diff]2000-10-26 08:32:16
dgp Ticket [218963ffff]: 3 changes [History diff]2001-04-05 06:52:48
Log in (anonymous is fine) to add a comment.