From mark@thuvia.org  Sun Jun 29 14:24:24 2003
Return-Path: <mark@thuvia.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 3771637B401; Sun, 29 Jun 2003 14:24:24 -0700 (PDT)
Received: from pengo.systems.pipex.net (pengo.systems.pipex.net [62.241.160.193])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 7421543F93; Sun, 29 Jun 2003 14:24:23 -0700 (PDT)
	(envelope-from mark@thuvia.org)
Received: from dotar.thuvia.org (81-86-236-167.dsl.pipex.com [81.86.236.167])
	by pengo.systems.pipex.net (Postfix) with ESMTP
	id C715B4C00565; Sun, 29 Jun 2003 22:24:20 +0100 (BST)
Received: from dotar.thuvia.org (localhost [127.0.0.1])
	by dotar.thuvia.org (8.12.9/8.12.9) with ESMTP id h5TLOK0Z003639;
	Sun, 29 Jun 2003 22:24:20 +0100 (BST)
	(envelope-from mark@dotar.thuvia.org)
Received: (from mark@localhost)
	by dotar.thuvia.org (8.12.9/8.12.9/Submit) id h5TLOKeb003638;
	Sun, 29 Jun 2003 22:24:20 +0100 (BST)
	(envelope-from mark)
Message-Id: <200306292124.h5TLOKeb003638@dotar.thuvia.org>
Date: Sun, 29 Jun 2003 22:24:20 +0100 (BST)
From: Mark Valentine <mark@thuvia.org>
Reply-To: Mark Valentine <mark@thuvia.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: fanf@freebsd.org
Subject: unifdef -t broken in FreeBSD 4.8
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         53907
>Category:       bin
>Synopsis:       unifdef -t broken in FreeBSD 4.8
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    fanf
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 29 14:30:11 PDT 2003
>Closed-Date:    Mon Jul 07 07:47:42 PDT 2003
>Last-Modified:  Mon Jul 07 07:47:42 PDT 2003
>Originator:     Mark Valentine
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
System: FreeBSD dotar.thuvia.org 4.8-STABLE FreeBSD 4.8-STABLE #6: Wed Jun 11 15:04:41 BST 2003 root@dotar.thuvia.org:/usr/obj/usr/src/sys/DOTAR i386


	
>Description:
	unifdef -t seems not to work in FreeBSD 4.8.  The version in 4.7
	doesn't seem to have the problems I'm seeing (see below).
>How-To-Repeat:
	The following trivial example dumps core for me.

	  $ unifdef -t -DFOO <<%%
	  #ifdef FOO
	  foo
	  #endif

	Other incantations I tried just fail to process the #ifdefs.
>Fix:



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->fanf 
Responsible-Changed-By: fanf 
Responsible-Changed-When: Mon Jun 30 06:31:14 PDT 2003 
Responsible-Changed-Why:  
I'll deal with this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53907 
State-Changed-From-To: open->feedback 
State-Changed-By: fanf 
State-Changed-When: Mon Jun 30 07:48:13 PDT 2003 
State-Changed-Why:  
I've committed a fix, rev 1.17. Can you try it and tell me if 
it works OK for you, please? 
(Out of interest, what are you using text mode for?) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53907 
State-Changed-From-To: feedback->patched 
State-Changed-By: fanf 
State-Changed-When: Tue Jul 1 01:01:55 PDT 2003 
State-Changed-Why:  
Mark says it works for him. MFC RSN. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53907 
State-Changed-From-To: patched->closed 
State-Changed-By: fanf 
State-Changed-When: Mon Jul 7 07:47:24 PDT 2003 
State-Changed-Why:  
Fix now in RELENG_4 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53907 
>Unformatted:
