NetBSD Problem Report #51896

From www@NetBSD.org  Tue Jan 17 02:25:21 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 9266F7A289
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 17 Jan 2017 02:25:21 +0000 (UTC)
Message-Id: <20170117022520.283627A295@mollari.NetBSD.org>
Date: Tue, 17 Jan 2017 02:25:20 +0000 (UTC)
From: hako@affrc.go.jp
Reply-To: hako@affrc.go.jp
To: gnats-bugs@NetBSD.org
Subject: make package of groff fails with options -x11 -groff-docs
X-Send-Pr-Version: www-1.0

>Number:         51896
>Category:       pkg
>Synopsis:       make package of groff fails with options -x11 -groff-docs
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    leot
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 17 02:30:00 +0000 2017
>Closed-Date:    Wed Jan 18 13:46:27 +0000 2017
>Last-Modified:  Wed Jan 18 13:46:27 +0000 2017
>Originator:     Hiroshi Hakoyama
>Release:        pkgsrc
>Organization:
FRA
>Environment:
SunOS ec21 5.10 Generic_147147-26 sun4u sparc SUNW,Sun-Blade-1000
>Description:
groff with options -x11 -groff-docs can build on Solaris 10.
But, can not install.

# cd /usr/pkgsrc/textproc/groff
# bmake
# bmake package
....

=> Automatic manual page handling
pkg_create: can't stat `/usr/pkgsrc/textproc/groff/work/.destdir/usr/pkg/share/doc/groff-1.22.3/examples/mom/letter.pdf'
pkg_create: can't stat `/usr/pkgsrc/textproc/groff/work/.destdir/usr/pkg/share/doc/groff-1.22.3/examples/mom/mom-pdf.pdf'
pkg_create: can't stat `/usr/pkgsrc/textproc/groff/work/.destdir/usr/pkg/share/doc/groff-1.22.3/examples/mom/sample_docs.pdf'
pkg_create: can't stat `/usr/pkgsrc/textproc/groff/work/.destdir/usr/pkg/share/doc/groff-1.22.3/examples/mom/typesetting.pdf'
pkg_create: can't stat `/usr/pkgsrc/textproc/groff/work/.destdir/usr/pkg/share/doc/groff-1.22.3/pdf/mom-pdf.pdf'
=> Creating binary package /usr/pkgsrc/textproc/groff/work/.packages/groff-1.22.3nb4.tgz
pkg_create: can't stat `/usr/pkgsrc/textproc/groff/work/.destdir/usr/pkg/share/doc/groff-1.22.3/examples/mom/letter.pdf'
pkg_create: can't stat `/usr/pkgsrc/textproc/groff/work/.destdir/usr/pkg/share/doc/groff-1.22.3/examples/mom/mom-pdf.pdf'
pkg_create: can't stat `/usr/pkgsrc/textproc/groff/work/.destdir/usr/pkg/share/doc/groff-1.22.3/examples/mom/sample_docs.pdf'
pkg_create: can't stat `/usr/pkgsrc/textproc/groff/work/.destdir/usr/pkg/share/doc/groff-1.22.3/examples/mom/typesetting.pdf'
pkg_create: can't stat `/usr/pkgsrc/textproc/groff/work/.destdir/usr/pkg/share/doc/groff-1.22.3/pdf/mom-pdf.pdf'
pkg_create: lstat failed for file share/doc/groff-1.22.3/examples/mom/letter.pdf: No such file or directory
mv: /usr/pkgsrc/textproc/groff/work/.packages/groff-1.22.3nb4.tmp.tgz &#12434;&#20351;&#29992;&#12391;&#12365;&#12414;&#12379;&#12435;&#12290;
*** Error code 2

Stop.
bmake[1]: stopped in /usr/pkgsrc/textproc/groff
*** Error code 1

my mk.conf is:

.ifdef BSD_PKG_MK       # begin pkgsrc settings

ABI=                    32
PKGSRC_COMPILER=        gcc
GCCBASE=                /usr/pkg/gcc49

PKG_DBDIR=              /usr/pkg/pkgdb
LOCALBASE=              /usr/pkg
VARBASE=                /var
PKG_TOOLS_BIN=          /usr/pkg/sbin
PKGINFODIR=             info
PKGMANDIR=              man

TOOLS_PLATFORM.install?=        ${LOCALBASE}/bin/bsdinstall
TOOLS_PLATFORM.awk?=            ${LOCALBASE}/bin/nawk
TOOLS_PLATFORM.sed?=            ${LOCALBASE}/bin/nbsed
# TOOLS_PLATFORM.sh?=           /usr/bin/bash
TOOLS_PLATFORM.sh?=             ${LOCALBASE}/bin/bash

CONFIG_SHELL=   ${LOCALBASE}/bin/bash
WRAPPER_SHELL=  ${LOCALBASE}/bin/bash

TOOLS_PLATFORM.ar=      /usr/ccs/bin/ar
TOOLS_PLATFORM.nm=      /usr/ccs/bin/nm
TOOLS_PLATFORM.ranlib=  /usr/ccs/bin/ranlib
USE_TOOLS+=             ar nm ranlib

TOOLS_PLATFORM.flex?=           ${LOCALBASE}/bin/flex
TOOLS_PLATFORM.lex?=            ${LOCALBASE}/bin/flex
TOOLS_PLATFORM.find?=            ${LOCALBASE}/bin/gfind

# CFLAGS+=              -O2
CFLAGS+= -O3 -mcpu=ultrasparc3 -mtune=ultrasparc3
CXXFLAGS+= -O3 -mcpu=ultrasparc3 -mtune=ultrasparc3
DBG=                    # prevent DBG from adding default optimizer flags

# gcc49
PKG_OPTIONS.gcc49= gcc-c++ -gcc-fortran -gcc-go gcc-inplace-math -gcc-objc -gcc-objc++
# gcc5

X11_TYPE= modular
USE_INET6= no

PKG_OPTIONS.xz= -nls
PKG_OPTIONS.cvs = -kerberos
PKG_OPTIONS.groff= -x11 -groff-docs
PKG_OPTIONS.gd= -x11

IS_BUILTIN.zlib= yes
USE_BUILTIN.zlib= no
PREFER.zlib= pkgsrc

USE_BUILTIN.bzip2= no
PREFER.bzip2= pkgsrc
USE_BZIP2= yes

ACCEPTABLE_LICENSES+=vim-license

.endif                  # end pkgsrc settings

>How-To-Repeat:
in mk.conf, add
PKG_OPTIONS.groff= -x11 -groff-docs

# cd /usr/pkgsrc/textproc/groff
# bmake package
>Fix:
There are missing pdf files that defined in PLIST:

share/doc/${PKGNAME}/examples/mom/letter.pdf
share/doc/${PKGNAME}/examples/mom/mom-pdf.pdf
share/doc/${PKGNAME}/examples/mom/sample_docs.pdf
share/doc/${PKGNAME}/examples/mom/typesetting.pdf
share/doc/${PKGNAME}/pdf/mom-pdf.pdf

A workaround is to edit these lines.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->leot
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Tue, 17 Jan 2017 08:40:24 +0000
Responsible-Changed-Why:
Take


From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/51896: make package of groff fails with options -x11 -groff-docs
Date: Tue, 17 Jan 2017 10:35:23 +0100

 Hello Hiroshi,

 hako@affrc.go.jp writes:
 > >Number:         51896
 > >Category:       pkg
 > >Synopsis:       make package of groff fails with options -x11 -groff-docs
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       medium
 > >Responsible:    pkg-manager
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Tue Jan 17 02:30:00 +0000 2017
 > >Originator:     Hiroshi Hakoyama
 > >Release:        pkgsrc
 > [...]
 > >Fix:
 > There are missing pdf files that defined in PLIST:
 > 
 > share/doc/${PKGNAME}/examples/mom/letter.pdf
 > share/doc/${PKGNAME}/examples/mom/mom-pdf.pdf
 > share/doc/${PKGNAME}/examples/mom/sample_docs.pdf
 > share/doc/${PKGNAME}/examples/mom/typesetting.pdf
 > share/doc/${PKGNAME}/pdf/mom-pdf.pdf
 > 
 > A workaround is to edit these lines.
 > 

 Can you please try the following patch:

  http://netbsd.org/~leot/pkgsrc-patches/groff-pkg51896.patch

 It just updates PLIST and PLIST.docs accordingly.


 Please let us know if it will fix the problem!
 Thank you!

From: =?ISO-2022-JP?B?GyRCSCI7MxsoQiAbJEJNThsoQg==?= <hako@affrc.go.jp>
To: gnats-bugs@NetBSD.org
Cc: Leonardo Taccari <leot@NetBSD.org>,
 gnats-admin@netbsd.org,
 pkgsrc-bugs@netbsd.org,
 hako@affrc.go.jp
Subject: Re: pkg/51896: make package of groff fails with options -x11
 -groff-docs
Date: Wed, 18 Jan 2017 10:01:18 +0900

 Dear Leonardo,

 Your patch fixed the problem. Many thanks!

 Hiroshi

 On Tue, 17 Jan 2017 09:40:01 +0000 (UTC)
 Leonardo Taccari <leot@NetBSD.org> wrote:

 > The following reply was made to PR pkg/51896; it has been noted by GNATS.
 > 
 > From: Leonardo Taccari <leot@NetBSD.org>
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: pkg/51896: make package of groff fails with options -x11 -groff-docs
 > Date: Tue, 17 Jan 2017 10:35:23 +0100
 > 
 >  Hello Hiroshi,
 >  
 >  hako@affrc.go.jp writes:
 >  > >Number:         51896
 >  > >Category:       pkg
 >  > >Synopsis:       make package of groff fails with options -x11 -groff-docs
 >  > >Confidential:   no
 >  > >Severity:       non-critical
 >  > >Priority:       medium
 >  > >Responsible:    pkg-manager
 >  > >State:          open
 >  > >Class:          sw-bug
 >  > >Submitter-Id:   net
 >  > >Arrival-Date:   Tue Jan 17 02:30:00 +0000 2017
 >  > >Originator:     Hiroshi Hakoyama
 >  > >Release:        pkgsrc
 >  > [...]
 >  > >Fix:
 >  > There are missing pdf files that defined in PLIST:
 >  > 
 >  > share/doc/${PKGNAME}/examples/mom/letter.pdf
 >  > share/doc/${PKGNAME}/examples/mom/mom-pdf.pdf
 >  > share/doc/${PKGNAME}/examples/mom/sample_docs.pdf
 >  > share/doc/${PKGNAME}/examples/mom/typesetting.pdf
 >  > share/doc/${PKGNAME}/pdf/mom-pdf.pdf
 >  > 
 >  > A workaround is to edit these lines.
 >  > 
 >  
 >  Can you please try the following patch:
 >  
 >   http://netbsd.org/~leot/pkgsrc-patches/groff-pkg51896.patch
 >  
 >  It just updates PLIST and PLIST.docs accordingly.
 >  
 >  
 >  Please let us know if it will fix the problem!
 >  Thank you!
 >  


From: "Leonardo Taccari" <leot@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/51896 CVS commit: pkgsrc/textproc/groff
Date: Wed, 18 Jan 2017 13:44:47 +0000

 Module Name:	pkgsrc
 Committed By:	leot
 Date:		Wed Jan 18 13:44:47 UTC 2017

 Modified Files:
 	pkgsrc/textproc/groff: Makefile PLIST PLIST.docs

 Log Message:
 Update PLIST.{,docs} in order to fix building of groff without the `groff-docs'
 option.
 Bump PKGREVISION

 Noticed by and thanks to Hiroshi Hakoyama via PR pkg/51896.


 To generate a diff of this commit:
 cvs rdiff -u -r1.84 -r1.85 pkgsrc/textproc/groff/Makefile
 cvs rdiff -u -r1.25 -r1.26 pkgsrc/textproc/groff/PLIST
 cvs rdiff -u -r1.4 -r1.5 pkgsrc/textproc/groff/PLIST.docs

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: leot@NetBSD.org
State-Changed-When: Wed, 18 Jan 2017 13:46:27 +0000
State-Changed-Why:
Patch committed.

Thank you very much again Hiroshi for the PR and the feedback!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.