NetBSD Problem Report #36271
From woods@building.weird.com Thu May 3 22:27:58 2007
Return-Path: <woods@building.weird.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 8F3C663B853
for <gnats-bugs@gnats.netbsd.org>; Thu, 3 May 2007 22:27:58 +0000 (UTC)
Message-Id: <m1HjjmC-002IwcC@building.weird.com>
Date: Thu, 3 May 2007 18:27:52 -0400 (EDT)
From: "Greg A. Woods" <woods@planix.com>
Sender: "Greg A. Woods" <woods@building.weird.com>
Reply-To: "Greg A. Woods" <woods@planix.com>
To: gnats-bugs@NetBSD.org
Subject: /usr/share/groff_font/devhtml/DESC is missing a required parameter
X-Send-Pr-Version: 3.95
>Number: 36271
>Category: bin
>Synopsis: /usr/share/groff_font/devhtml/DESC is missing a required parameter
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu May 03 22:30:01 +0000 2007
>Closed-Date: Sat Jan 26 19:00:51 +0000 2019
>Last-Modified: Sat Jan 26 19:00:51 +0000 2019
>Originator: Greg A. Woods
>Release: netbsd-current 2007/05/02
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD (anything since 2.0)
>Description:
try to run "pre-grohtml", or "groff -Thtml" and find that it
just complains loudly:
pre-grohtml:fatal error: devhtml/DESC must set the image_generator field, exiting
Groff itself doesn't actually fail with a fatal exit code, but
with the pre-grohtml preprocessor dead, all input is swallowed
and no output is generated.
>How-To-Repeat:
pre-grohtml
groff -Thtml
>Fix:
this is a bit of a hack, but it seems to work OK
the choice of "gs" is based on the default suggested for
unix-like platforms -- it'll work as expected once one of the
Ghostscript modules from pkgsrc is installed, but without it
doesn't cause any immediate harm
there's also a rule entry that doesn't start with a tab....
Index: gnu/usr.bin/groff/font/Makefile.tty
===================================================================
RCS file: /cvs/master/m-NetBSD/main/src/gnu/usr.bin/groff/font/Makefile.tty,v
retrieving revision 1.7
diff -u -r1.7 Makefile.tty
--- gnu/usr.bin/groff/font/Makefile.tty 21 Oct 2003 10:01:20 -0000 1.7
+++ gnu/usr.bin/groff/font/Makefile.tty 3 May 2007 22:06:23 -0000
@@ -15,7 +15,7 @@
$(FONTS): R.proto
${_MKTARGET_CREATE}
(charwidth=`expr $(RES) / $(CPI)` ; \
- sed -e "s/^name [A-Z]*$$/name ${.TARGET}/" \
+ sed -e "s/^name [A-Z]*$$/name ${.TARGET}/" \
-e "s/^\\([^ ]*\\) [0-9]+ /\\1 $$charwidth /" \
-e "s/^spacewidth [0-9]+$$/spacewidth $$charwidth/" \
-e "s/^internalname .*$$/internalname $@/" \
@@ -32,3 +32,6 @@
-e "s/^vert .*$$/vert `expr $(RES) / $(LPI)`/" \
-e "s/^fonts .*$$/fonts `set $(FONTS); echo $$#` $(FONTS)/" \
${.ALLSRC} >${.TARGET}
+.if ${DIST_SUBDIR} == "font/devhtml"
+ @echo "image_generator gs" >> ${.TARGET}
+.endif
>Release-Note:
>Audit-Trail:
From: "Jeremy C. Reed" <reed@reedmedia.net>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: bin/36271
Date: Thu, 30 Apr 2009 10:45:07 -0500 (CDT)
I needed this also.
But I didn't test with "gs" not installed.
Anyone ask upstream about this? Maybe newer version behaves differently.
From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: bin/36271
Date: Tue, 11 Dec 2018 04:25:19 +0000
This appears to be resolved. Running groff -Thtml
/usr/share/man/man2/getsid.2 generates no such error on NetBSD-head.
Sevan
State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 26 Jan 2019 19:00:51 +0000
State-Changed-Why:
this patch got applied at some point.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.