From owner-freebsd-ports Thu Jun 14 7:20:17 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 007D937B409 for ; Thu, 14 Jun 2001 07:20:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5EEK2P30998; Thu, 14 Jun 2001 07:20:02 -0700 (PDT) (envelope-from gnats) Received: from goliath.siemens.de (goliath.siemens.de [194.138.37.131]) by hub.freebsd.org (Postfix) with ESMTP id BE99B37B406 for ; Thu, 14 Jun 2001 07:18:10 -0700 (PDT) (envelope-from ust@cert.siemens.de) Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by goliath.siemens.de (8.11.1/8.11.1) with ESMTP id f5EEI8405834 for ; Thu, 14 Jun 2001 16:18:09 +0200 (MET DST) Received: from mars.cert.siemens.de (ust.mchp.siemens.de [139.23.201.17]) by mail1.siemens.de (8.11.0/8.11.0) with ESMTP id f5EEI8707017 for ; Thu, 14 Jun 2001 16:18:08 +0200 (MET DST) Received: from alaska.cert.siemens.de (reims.mchp.siemens.de [139.23.202.134]) by mars.cert.siemens.de (8.11.4/8.11.4/Siemens CERT [ $Revision: 1.15 ]) with ESMTP id f5EEI8F48201 for ; Thu, 14 Jun 2001 16:18:08 +0200 (CEST) Received: (from ust@localhost) by alaska.cert.siemens.de (8.11.4/8.11.4/alaska [ $Revision: 1.7 ]) id f5EEI8886823; Thu, 14 Jun 2001 14:18:08 GMT (envelope-from ust) Message-Id: <200106141418.f5EEI8886823@alaska.cert.siemens.de> Date: Thu, 14 Jun 2001 14:18:08 GMT From: Udo Schweigert Reply-To: Udo Schweigert To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/28145: Unbreak references in non-html output for port textproc/sgmlformat Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 28145 >Category: ports >Synopsis: Unbreak references in non-html output for port textproc/sgmlformat >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Jun 14 07:20:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Udo Schweigert >Release: FreeBSD 4.3-STABLE i386 >Organization: >Environment: System: FreeBSD alaska.cert.siemens.de 4.3-STABLE FreeBSD 4.3-STABLE #19: Sun Jun 10 12:02:58 CEST 2001 ust@alaska.cert.siemens.de:/usr/obj/work/src/RELENG_4/sys/alaska i386 >Description: The ascii output of textproc/sgmlfmt does not handle references correctly, mainly because groff is used in an old fashioned way which does not work any more. This implies that non-html docs of some ports (I detetcted this when trying to read the mutt manual) are generated with empty references. >How-To-Repeat: >Fix: The attached patch use groff the right way and fixes some otherwise occuring error messages. diff -ruN sgmlformat/files/patch-01 sgmlformat.new/files/patch-01 --- sgmlformat/files/patch-01 Thu Jan 1 01:00:00 1970 +++ sgmlformat.new/files/patch-01 Thu Jun 14 15:39:18 2001 @@ -0,0 +1,25 @@ +--- sgmlfmt/sgmlfmt.pl.orig Tue Sep 15 23:05:47 1998 ++++ sgmlfmt/sgmlfmt.pl Thu Jun 14 15:37:50 2001 +@@ -151,19 +151,14 @@ + open (outfile, ">$fileroot.trf"); + &sgmlparse(infile, "roff"); + while () { ++ s,\\\(ru,_,g if /^\.GET[HP]N/; + print outfile; + } + close(infile); + close(outfile); ++ system("groff -z -rRef=1 -T ${driver} -t ${fileroot}.trf 2>&1 | egrep '^\\.' > ${fileroot}.qrf"); + system("groff -T ${driver} -t ${fileroot}.trf ${postproc} > ${fileroot}.${driver}"); +- +- # If foo.tmp has been created, then there are cross references +- # in the file and we need a second pass to resolve them correctly. +- +- if (stat("${fileroot}.tmp")) { +- system("groff -T ${driver} -t ${fileroot}.trf ${postproc} > ${fileroot}.${driver}"); +- unlink("${fileroot}.qrf"); +- } ++ unlink("${fileroot}.qrf"); + unlink("${fileroot}.trf"); + } + >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message