Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5a5ff12b5202eb501a06d6d0a0bb32031f4941f0
Ticket: 218963ffffffffffffffffffffffffffffffffff
'make gendate' target broken
User & Date: nobody on 2000-10-26 01:08:40
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    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
    
  4. foundin changed to: "obsolete: 8.2.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "75. Tutorial"
  10. title changed to: "'make gendate' target broken"
  11. type changed to: "Bug"