From lizard@informatik.unibw-muenchen.de  Sat May 11 16:30:04 2002
Return-Path: <lizard@informatik.unibw-muenchen.de>
Received: from gatesrv.RZ.UniBw-Muenchen.de (gatesrv.RZ.UniBW-Muenchen.de [137.193.11.27])
	by hub.freebsd.org (Postfix) with ESMTP id 274E137B406
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 11 May 2002 16:30:03 -0700 (PDT)
Received: from nemesis.informatik.unibw-muenchen.de (nemesis.Informatik.UniBw-Muenchen.de [137.193.60.30])
	by gatesrv.RZ.UniBw-Muenchen.de (8.11.2/8.11.2) with ESMTP id g4BN4Bt09357
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 12 May 2002 01:04:11 +0200 (MEST)
Received: from localhost (localhost.informatik.unibw-muenchen.de [127.0.0.1])
	by nemesis.informatik.unibw-muenchen.de (Postfix) with ESMTP id F38545A54A
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 12 May 2002 01:04:09 +0200 (CEST)
Received: by nemesis.informatik.unibw-muenchen.de (Postfix, from userid 1001)
	id B82415A549; Sun, 12 May 2002 01:04:08 +0200 (CEST)
Message-Id: <20020511230408.B82415A549@nemesis.informatik.unibw-muenchen.de>
Date: Sun, 12 May 2002 01:04:08 +0200 (CEST)
From: Oliver Braun <obraun@informatik.unibw-muenchen.de>
Reply-To:
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Fix build on -current: print/rtf2latex --- bento error
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         37969
>Category:       ports
>Synopsis:       Fix build on -current: print/rtf2latex --- bento error
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 11 16:40:01 PDT 2002
>Closed-Date:    Wed May 15 13:05:18 PDT 2002
>Last-Modified:  Wed May 15 13:05:18 PDT 2002
>Originator:     Oliver Braun
>Release:        FreeBSD 4.6-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD nemesis.informatik.unibw-muenchen.de 4.6-PRERELEASE FreeBSD 4.6-PRERELEASE #0: Thu May 2 11:59:09 CEST 2002 root@nemesis.informatik.unibw-muenchen.de:/usr/obj/usr/src/sys/NEMESIS_OB i386


>Description:

fix "stdin / initializer element is not constant" issue

Regards,
         Olli
>How-To-Repeat:
>Fix:

diff -ruN rtf2latex.old/files/patch-reader.c rtf2latex/files/patch-reader.c
--- rtf2latex.old/files/patch-reader.c	Thu Jan  1 00:00:00 1970
+++ rtf2latex/files/patch-reader.c	Sun May 12 01:01:04 2002
@@ -0,0 +1,28 @@
+--- reader.c.orig	Sun May 12 00:57:41 2002
++++ reader.c	Sun May 12 01:00:39 2002
+@@ -118,7 +118,7 @@
+ static RTFStyle	*styleList = (RTFStyle *) NULL;
+ 
+ 
+-static FILE	*rtffp = stdin;
++static FILE	*rtffp = NULL;
+ 
+ 
+ /*
+@@ -135,6 +135,7 @@
+ RTFStyle	*sp;
+ RTFStyleElt	*eltList, *ep;
+ 
++	rtffp = stdin;
+ 	/* initialize lookup table */
+ 	LookupInit ();
+ 
+@@ -584,6 +585,8 @@
+ {
+ int	c;
+ 
++	if (rtffp == NULL)
++	  rtffp = stdin;
+ 	if ((c = getc (rtffp)) != EOF)
+ 	{
+ 		if (c & 0x80)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: dwcjr 
State-Changed-When: Wed May 15 13:03:52 PDT 2002 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37963 
State-Changed-From-To: open->closed 
State-Changed-By: dwcjr 
State-Changed-When: Wed May 15 13:03:52 PDT 2002 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37966 
State-Changed-From-To: open->closed 
State-Changed-By: dwcjr 
State-Changed-When: Wed May 15 13:03:52 PDT 2002 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37987 
State-Changed-From-To: open->closed 
State-Changed-By: dwcjr 
State-Changed-When: Wed May 15 13:03:52 PDT 2002 
State-Changed-Why:  
Committed, thanks! 

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