NetBSD Problem Report #32966
From www@netbsd.org Thu Mar 2 12:31:46 2006
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
id C1EC563B877; Thu, 2 Mar 2006 12:31:46 +0000 (UTC)
Message-Id: <20060302123146.C1EC563B877@narn.netbsd.org>
Date: Thu, 2 Mar 2006 12:31:46 +0000 (UTC)
From: neil.hoggarth@physiol.ox.ac.uk
Reply-To: neil.hoggarth@physiol.ox.ac.uk
To: gnats-bugs@netbsd.org
Subject: textproc/groff PLIST problem
X-Send-Pr-Version: www-1.0
>Number: 32966
>Category: pkg
>Synopsis: textproc/groff PLIST problem
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: wiz
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 02 12:35:00 +0000 2006
>Closed-Date: Tue Mar 07 03:55:59 +0000 2006
>Last-Modified: Tue Mar 07 10:10:01 +0000 2006
>Originator: Neil Hoggarth
>Release: Solaris 9
>Organization:
University of Oxford
>Environment:
SunOS saros 5.9 Generic_118558-19 sun4u sparc SUNW,Ultra-30
>Description:
groff-1.19.2nb2 does not install cleanly. The problem appears to be that
the install phase installs a number of files with a "g" prefix, presumably
to prevent name clashes with system native utilities ("geqn" rather than
"eqn", "gnroff" rather than "nroff", etc), whereas the PLIST seems to
assume that the names will *not* be prefixed. This leads to the following
errors on "bmake install", and prevents "bmake package" from finding
all the files it expects.
===> [Automatic manual page handling]
/usr/pkg/bin/eqn: No such file or directory
/usr/pkg/bin/grn: No such file or directory
/usr/pkg/bin/indxbib: No such file or directory
/usr/pkg/bin/lookbib: No such file or directory
/usr/pkg/bin/neqn: No such file or directory
/usr/pkg/bin/nroff: No such file or directory
/usr/pkg/bin/pic: No such file or directory
/usr/pkg/bin/refer: No such file or directory
/usr/pkg/bin/soelim: No such file or directory
/usr/pkg/bin/tbl: No such file or directory
/usr/pkg/bin/troff: No such file or directory
/usr/pkg/man/man1/eqn.1: No such file or directory
/usr/pkg/man/man1/grn.1: No such file or directory
/usr/pkg/man/man1/indxbib.1: No such file or directory
/usr/pkg/man/man1/lookbib.1: No such file or directory
/usr/pkg/man/man1/neqn.1: No such file or directory
/usr/pkg/man/man1/nroff.1: No such file or directory
/usr/pkg/man/man1/pic.1: No such file or directory
/usr/pkg/man/man1/refer.1: No such file or directory
/usr/pkg/man/man1/soelim.1: No such file or directory
/usr/pkg/man/man1/tbl.1: No such file or directory
/usr/pkg/man/man1/troff.1: No such file or directory
/usr/pkg/share/groff/1.19.2/tmac/an.tmac: No such file or directory
/usr/pkg/share/groff/1.19.2/tmac/m.tmac: No such file or directory
/usr/pkg/share/groff/1.19.2/tmac/mm.tmac: No such file or directory
/usr/pkg/share/groff/1.19.2/tmac/mmse.tmac: No such file or directory
/usr/pkg/share/groff/1.19.2/tmac/mse.tmac: No such file or directory
/usr/pkg/share/groff/1.19.2/tmac/s.tmac: No such file or directory
===> Registering installation for groff-1.19.2nb2
pkg_create: can't stat `/usr/pkg/bin/eqn'
pkg_create: can't stat `/usr/pkg/bin/grn'
pkg_create: can't stat `/usr/pkg/bin/indxbib'
pkg_create: can't stat `/usr/pkg/bin/lookbib'
pkg_create: can't stat `/usr/pkg/bin/neqn'
pkg_create: can't stat `/usr/pkg/bin/nroff'
pkg_create: can't stat `/usr/pkg/bin/pic'
pkg_create: can't stat `/usr/pkg/bin/refer'
pkg_create: can't stat `/usr/pkg/bin/soelim'
pkg_create: can't stat `/usr/pkg/bin/tbl'
pkg_create: can't stat `/usr/pkg/bin/troff'
pkg_create: can't stat `/usr/pkg/man/man1/eqn.1'
pkg_create: can't stat `/usr/pkg/man/man1/grn.1'
pkg_create: can't stat `/usr/pkg/man/man1/indxbib.1'
pkg_create: can't stat `/usr/pkg/man/man1/lookbib.1'
pkg_create: can't stat `/usr/pkg/man/man1/neqn.1'
pkg_create: can't stat `/usr/pkg/man/man1/nroff.1'
pkg_create: can't stat `/usr/pkg/man/man1/pic.1'
pkg_create: can't stat `/usr/pkg/man/man1/refer.1'
pkg_create: can't stat `/usr/pkg/man/man1/soelim.1'
pkg_create: can't stat `/usr/pkg/man/man1/tbl.1'
pkg_create: can't stat `/usr/pkg/man/man1/troff.1'
pkg_create: can't stat `/usr/pkg/share/groff/1.19.2/tmac/an.tmac'
pkg_create: can't stat `/usr/pkg/share/groff/1.19.2/tmac/m.tmac'
pkg_create: can't stat `/usr/pkg/share/groff/1.19.2/tmac/mm.tmac'
pkg_create: can't stat `/usr/pkg/share/groff/1.19.2/tmac/mmse.tmac'
pkg_create: can't stat `/usr/pkg/share/groff/1.19.2/tmac/mse.tmac'
pkg_create: can't stat `/usr/pkg/share/groff/1.19.2/tmac/s.tmac'
groff-1.19.2nb2 requires installed package gcc3-c++-3.3.5nb1
groff-1.19.2nb2 requires installed package gcc3-c-3.3.5nb1
groff-1.19.2nb2 requires installed package ghostscript-gnu-8.15nb1
groff-1.19.2nb2 requires installed package netpbm-10.32
groff-1.19.2nb2 requires installed package perl-5.8.7nb8
groff-1.19.2nb2 requires installed package pkg_install-info-4.5nb3
groff-1.19.2nb2 requires installed package psutils-1.17nb1
>How-To-Repeat:
cd /usr/pkgsrc/textproc/groff && bmake clean && bmake install
>Fix:
This diff illustrates the manual changes that I maked to the PLIST in
order to get the package to install/deinstall/package cleanly:
--- PLIST.~1.9.~ Wed Dec 7 17:51:51 2005
+++ PLIST Thu Mar 2 12:16:51 2006
@@ -1,11 +1,11 @@
@comment $NetBSD: PLIST,v 1.9 2005/12/07 17:51:51 wiz Exp $
bin/addftinfo
bin/afmtodit
-bin/eqn
+bin/geqn
bin/eqn2graph
bin/gdiffmk
bin/grap2graph
-bin/grn
+bin/ggrn
bin/grodvi
bin/groff
bin/groffer
@@ -15,31 +15,31 @@
bin/grops
bin/grotty
bin/hpftodit
-bin/indxbib
+bin/gindxbib
bin/lkbib
-bin/lookbib
+bin/glookbib
bin/mmroff
-bin/neqn
-bin/nroff
+bin/gneqn
+bin/gnroff
bin/pdfroff
bin/pfbtops
-bin/pic
+bin/gpic
bin/pic2graph
bin/post-grohtml
bin/pre-grohtml
-bin/refer
-bin/soelim
-bin/tbl
+bin/grefer
+bin/gsoelim
+bin/gtbl
bin/tfmtodit
-bin/troff
+bin/gtroff
lib/groff/groffer/groffer2.sh
man/man1/addftinfo.1
man/man1/afmtodit.1
-man/man1/eqn.1
+man/man1/geqn.1
man/man1/eqn2graph.1
man/man1/gdiffmk.1
man/man1/grap2graph.1
-man/man1/grn.1
+man/man1/ggrn.1
man/man1/grodvi.1
man/man1/groff.1
man/man1/groffer.1
@@ -50,21 +50,21 @@
man/man1/grops.1
man/man1/grotty.1
man/man1/hpftodit.1
-man/man1/indxbib.1
+man/man1/gindxbib.1
man/man1/lkbib.1
-man/man1/lookbib.1
+man/man1/glookbib.1
man/man1/mmroff.1
-man/man1/neqn.1
-man/man1/nroff.1
+man/man1/gneqn.1
+man/man1/gnroff.1
man/man1/pdfroff.1
man/man1/pfbtops.1
-man/man1/pic.1
+man/man1/gpic.1
man/man1/pic2graph.1
-man/man1/refer.1
-man/man1/soelim.1
-man/man1/tbl.1
+man/man1/grefer.1
+man/man1/gsoelim.1
+man/man1/gtbl.1
man/man1/tfmtodit.1
-man/man1/troff.1
+man/man1/gtroff.1
man/man5/groff_font.5
man/man5/groff_out.5
man/man5/groff_tmac.5
@@ -407,7 +407,7 @@
share/groff/${PKGVERSION}/tmac/Xps.tmac
share/groff/${PKGVERSION}/tmac/a4.tmac
share/groff/${PKGVERSION}/tmac/an-old.tmac
-share/groff/${PKGVERSION}/tmac/an.tmac
+share/groff/${PKGVERSION}/tmac/gan.tmac
share/groff/${PKGVERSION}/tmac/andoc.tmac
share/groff/${PKGVERSION}/tmac/composite.tmac
share/groff/${PKGVERSION}/tmac/cp1047.tmac
@@ -428,7 +428,7 @@
share/groff/${PKGVERSION}/tmac/latin9.tmac
share/groff/${PKGVERSION}/tmac/lbp.tmac
share/groff/${PKGVERSION}/tmac/lj4.tmac
-share/groff/${PKGVERSION}/tmac/m.tmac
+share/groff/${PKGVERSION}/tmac/gm.tmac
share/groff/${PKGVERSION}/tmac/man.tmac
share/groff/${PKGVERSION}/tmac/mandoc.tmac
share/groff/${PKGVERSION}/tmac/mdoc.tmac
@@ -437,7 +437,7 @@
share/groff/${PKGVERSION}/tmac/mdoc/doc-nroff
share/groff/${PKGVERSION}/tmac/mdoc/doc-syms
share/groff/${PKGVERSION}/tmac/me.tmac
-share/groff/${PKGVERSION}/tmac/mm.tmac
+share/groff/${PKGVERSION}/tmac/gmm.tmac
share/groff/${PKGVERSION}/tmac/mm/0.MT
share/groff/${PKGVERSION}/tmac/mm/4.MT
share/groff/${PKGVERSION}/tmac/mm/5.MT
@@ -445,10 +445,10 @@
share/groff/${PKGVERSION}/tmac/mm/ms.cov
share/groff/${PKGVERSION}/tmac/mm/se_locale
share/groff/${PKGVERSION}/tmac/mm/se_ms.cov
-share/groff/${PKGVERSION}/tmac/mmse.tmac
+share/groff/${PKGVERSION}/tmac/gmmse.tmac
share/groff/${PKGVERSION}/tmac/mom.tmac
share/groff/${PKGVERSION}/tmac/ms.tmac
-share/groff/${PKGVERSION}/tmac/mse.tmac
+share/groff/${PKGVERSION}/tmac/gmse.tmac
share/groff/${PKGVERSION}/tmac/om.tmac
share/groff/${PKGVERSION}/tmac/papersize.tmac
share/groff/${PKGVERSION}/tmac/pdfmark.tmac
@@ -457,7 +457,7 @@
share/groff/${PKGVERSION}/tmac/psatk.tmac
share/groff/${PKGVERSION}/tmac/psold.tmac
share/groff/${PKGVERSION}/tmac/pspic.tmac
-share/groff/${PKGVERSION}/tmac/s.tmac
+share/groff/${PKGVERSION}/tmac/gs.tmac
share/groff/${PKGVERSION}/tmac/safer.tmac
share/groff/${PKGVERSION}/tmac/spdf.tmac
share/groff/${PKGVERSION}/tmac/trace.tmac
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->wiz
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Thu, 02 Mar 2006 20:19:37 +0000
Responsible-Changed-Why:
Over to maintainer.
State-Changed-From-To: open->feedback
State-Changed-By: wiz@netbsd.org
State-Changed-When: Thu, 02 Mar 2006 20:19:37 +0000
State-Changed-Why:
That's strange. Could you please provide me with the config.log file?
From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/32966 CVS commit: pkgsrc/textproc/groff
Date: Sun, 5 Mar 2006 19:23:21 +0000 (UTC)
Module Name: pkgsrc
Committed By: wiz
Date: Sun Mar 5 19:23:21 UTC 2006
Modified Files:
pkgsrc/textproc/groff: Makefile PLIST
Log Message:
(Hopefully) fix Solaris PLIST. Addresses PR 32966 by Neil Hoggarth.
To generate a diff of this commit:
cvs rdiff -r1.34 -r1.35 pkgsrc/textproc/groff/Makefile
cvs rdiff -r1.9 -r1.10 pkgsrc/textproc/groff/PLIST
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Thomas Klausner <wiz@netbsd.org>
To: Neil Hoggarth <neil.hoggarth@physiol.ox.ac.uk>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/32966 textproc/groff PLIST problem
Date: Sun, 5 Mar 2006 20:23:50 +0100
On Fri, Mar 03, 2006 at 04:57:02PM +0000, Neil Hoggarth wrote:
> I was browsing cvsweb to see if there had been any recent changes to the
> groff PLIST, and I see that there used to be a "PLIST.SunOS", which was
> removed on 9th December last year with the comment:
>
> "Remove PLIST.SunOS -- it is incorrect, and the differences
> should be handled with PLIST_SUBST instead."
>
> However, I don't see any sign that PLIST_SUBST is being used. Could this
> be the cause of the problem?
Good hint!
Please cvs update and let me know if it works for you now.
Thanks,
Thomas
From: Neil Hoggarth <neil.hoggarth@physiol.ox.ac.uk>
To: gnats-bugs@netbsd.org
Cc: wiz@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/32966 textproc/groff PLIST problem
Date: Mon, 6 Mar 2006 17:04:14 +0000 (GMT)
On Sun, 5 Mar 2006, Thomas Klausner wrote:
> Please cvs update and let me know if it works for you now.
Yes - I just completed a successful build, install and package with
a freshly cleaned and updated pkgsrc tree. Thanks for the fix.
Regards,
--
Neil Hoggarth ------------------- Computing Manager, Sherrington Building
Department of Physiology, Anatomy and Genetics - University of Oxford, UK
State-Changed-From-To: feedback->closed
State-Changed-By: wiz@netbsd.org
State-Changed-When: Tue, 07 Mar 2006 03:55:59 +0000
State-Changed-Why:
Fixed, thanks!
From: Thomas Klausner <wiz@netbsd.org>
To: Neil Hoggarth <neil.hoggarth@physiol.ox.ac.uk>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/32966 textproc/groff PLIST problem
Date: Tue, 7 Mar 2006 05:18:27 +0100
--mJm6k4Vb/yFcL9ZU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Mon, Mar 06, 2006 at 05:04:14PM +0000, Neil Hoggarth wrote:
> Yes - I just completed a successful build, install and package with
> a freshly cleaned and updated pkgsrc tree. Thanks for the fix.
You're welcome.
I have another fix that is probably better. Could you please check
if the attached diff works too?
Thanks,
Thomas
--mJm6k4Vb/yFcL9ZU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=groff-diff
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/textproc/groff/Makefile,v
retrieving revision 1.35
diff -u -r1.35 Makefile
--- Makefile 5 Mar 2006 19:23:21 -0000 1.35
+++ Makefile 7 Mar 2006 04:02:11 -0000
@@ -24,11 +24,7 @@
.include "../../mk/bsd.prefs.mk"
-.if ${OPSYS} == "SunOS"
-PLIST_SUBST+= GNU_PREFIX="g"
-.else
PLIST_SUBST+= GNU_PREFIX=""
-.endif
.if defined(PAPERSIZE)
CONFIGURE_ENV+= PAGE=${PAPERSIZE:Q}
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/textproc/groff/distinfo,v
retrieving revision 1.12
diff -u -r1.12 distinfo
--- distinfo 7 Dec 2005 17:51:51 -0000 1.12
+++ distinfo 7 Mar 2006 04:02:11 -0000
@@ -4,5 +4,6 @@
RMD160 (groff-1.19.2.tar.gz) = d5e57fa1d71dbff2c59a40a5a68c7417ffe211c9
Size (groff-1.19.2.tar.gz) = 2903263 bytes
SHA1 (patch-aa) = 3c74f1b8e809da5359d4702f0f5f299593601209
+SHA1 (patch-ab) = 19ddc64acd7dad1971fec0b94a0339dab1780647
SHA1 (patch-ac) = 7c29e3ca0c0a2e5389ff436ff5c15c9a0a4d7581
SHA1 (patch-ae) = 18d553fe99ca6915d42de5f6edf74fc56e2fc650
Index: patches/patch-ab
===================================================================
RCS file: patches/patch-ab
diff -N patches/patch-ab
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-ab 7 Mar 2006 04:02:11 -0000
@@ -0,0 +1,22 @@
+$NetBSD$
+
+--- configure.orig 2005-09-03 16:28:36.000000000 +0200
++++ configure
+@@ -9791,17 +9791,7 @@ _ACEOF
+ echo "$as_me:$LINENO: result: $PAGE" >&5
+ echo "${ECHO_T}$PAGE" >&6
+
+-echo "$as_me:$LINENO: checking for existing troff installation" >&5
+-echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
+- if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
+- echo "$as_me:$LINENO: result: yes" >&5
+-echo "${ECHO_T}yes" >&6
+- g=g
+- else
+- echo "$as_me:$LINENO: result: no" >&5
+-echo "${ECHO_T}no" >&6
+ g=
+- fi
+
+ echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
+ echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
--mJm6k4Vb/yFcL9ZU--
From: Neil Hoggarth <neil.hoggarth@physiol.ox.ac.uk>
To: gnats-bugs@netbsd.org
Cc: wiz@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/32966 textproc/groff PLIST problem
Date: Tue, 7 Mar 2006 10:06:27 +0000 (GMT)
On Tue, 7 Mar 2006, Thomas Klausner wrote:
> I have another fix that is probably better. Could you please check
> if the attached diff works too?
That works for the binaries. It seems that some of the macro packages
still get installed with a "g" prefix which isn't reflected in the
PLIST. Errors from the install phase:
[...]
===> [Automatic manual page handling]
/usr/pkg/share/groff/1.19.2/tmac/an.tmac: No such file or directory
/usr/pkg/share/groff/1.19.2/tmac/m.tmac: No such file or directory
/usr/pkg/share/groff/1.19.2/tmac/mm.tmac: No such file or directory
/usr/pkg/share/groff/1.19.2/tmac/mmse.tmac: No such file or directory
/usr/pkg/share/groff/1.19.2/tmac/mse.tmac: No such file or directory
/usr/pkg/share/groff/1.19.2/tmac/s.tmac: No such file or directory
===> Registering installation for groff-1.19.2nb2
pkg_create: can't stat `/usr/pkg/share/groff/1.19.2/tmac/an.tmac'
pkg_create: can't stat `/usr/pkg/share/groff/1.19.2/tmac/m.tmac'
pkg_create: can't stat `/usr/pkg/share/groff/1.19.2/tmac/mm.tmac'
pkg_create: can't stat `/usr/pkg/share/groff/1.19.2/tmac/mmse.tmac'
pkg_create: can't stat `/usr/pkg/share/groff/1.19.2/tmac/mse.tmac'
pkg_create: can't stat `/usr/pkg/share/groff/1.19.2/tmac/s.tmac'
Regards,
--
Neil Hoggarth ------------------- Computing Manager, Sherrington Building
Department of Physiology, Anatomy and Genetics - University of Oxford, UK
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.