NetBSD Problem Report #51332

From www@NetBSD.org  Mon Jul 11 03:35:53 2016
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 B96897AAA0
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 11 Jul 2016 03:35:53 +0000 (UTC)
Message-Id: <20160711033552.74CD37AAAE@mollari.NetBSD.org>
Date: Mon, 11 Jul 2016 03:35:52 +0000 (UTC)
From: hako@affrc.go.jp
Reply-To: hako@affrc.go.jp
To: gnats-bugs@NetBSD.org
Subject: textproc/groff can be built, but can not be installed on Solaris 10
X-Send-Pr-Version: www-1.0

>Number:         51332
>Category:       pkg
>Synopsis:       textproc/groff can be built, but can not be installed on Solaris 10
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    solaris-pkg-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 11 03:40:00 +0000 2016
>Closed-Date:    Thu Aug 04 09:05:47 +0000 2016
>Last-Modified:  Thu Aug 04 09:20:01 +0000 2016
>Originator:     Hiroshi Hakoyama
>Release:        pkgsrc-current
>Organization:
FRA
>Environment:
SunOS ec21 5.10 Generic_147147-26 sun4u sparc SUNW,Sun-Blade-1000
>Description:
`make install' process uses Solaris's /usr/bin/find that do not support -maxdepth.

############################
find: bad option -maxdepth
find: [-H | -L] path-list predicate-list
gmake[2]: Leaving directory `/usr/pkgsrc/textproc/groff/work/groff-1.22.3/font/devpdf'

...

pkg_create: can't stat `/usr/pkgsrc/textproc/groff/work/.destdir/usr/pkg2/share/groff/1.22.3/font/devpdf/CB'

...

pkg_create: lstat failed for file share/groff/1.22.3/font/devpdf/CB: No such file or directory

...

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

Stop.
bmake: stopped in /usr/pkgsrc/textproc/groff

>How-To-Repeat:

>Fix:
Workaround
Install and use the GNU find from sysutils/findutils.
TOOLS_PLATFORM.find?= /usr/pkg/bin/gfind

pkg/50043 may be related to this PR.

Solaris 10 do not install /usr/gnu/bin/find in the default install.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Mon, 11 Jul 2016 06:20:32 +0000
Responsible-Changed-Why:
Solaris pkgsrc problem.


From: coypu@SDF.ORG
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/51332
Date: Tue, 2 Aug 2016 18:05:17 +0000

 --Dxnq1zWXvFF0Q93v
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline

 Hi, it's possible to avoid using maxdepth here.
 Can you confirm that it works?

 Thanks.

 --Dxnq1zWXvFF0Q93v
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="patch-font_devpdf_Makefile.sub"

 $NetBSD$

 --- font/devpdf/Makefile.sub.orig	2014-11-04 08:38:35.427521472 +0000
 +++ font/devpdf/Makefile.sub
 @@ -22,7 +22,7 @@

  DEV=pdf
  GROFF_FONT_FILES=`cd $(top_builddir)/font/devpdf \
 -                  && find * -maxdepth 0 -type f ! -name 'Makefile.sub*' \
 +                  && find . ! -name . -prune -type f ! -name "Makefile.sub*"
                              -exec grep -l internalname {} \;`
  ENC_FILES=`cd $(top_builddir)/font/devpdf; ls enc/*`
  MAP_FILES=`cd $(top_builddir)/font/devpdf; ls map/*`

 --Dxnq1zWXvFF0Q93v--

From: coypu@SDF.ORG
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/51332
Date: Tue, 2 Aug 2016 19:02:48 +0000

 Apologies, forgot \ at the end.

 This solution is preferable because it can be upstreamed, so more will
 benefit from it.

From: coypu@SDF.ORG
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/51332
Date: Wed, 3 Aug 2016 08:52:07 +0000

 OK, this doesn't work for me. no idea why... find gives the exact same
 result.

State-Changed-From-To: open->feedback
State-Changed-By: leot@NetBSD.org
State-Changed-When: Wed, 03 Aug 2016 10:36:27 +0000
State-Changed-Why:
groff-1.22.3nb4 probably does not have this problem.
Hiroshi, can you please try it and let us know that it fixes the issue?

Thank you!


From: Hiroshi Hakoyama <hako@affrc.go.jp>
To: gnats-bugs@NetBSD.org
Cc: solaris-pkg-people@NetBSD.org,
 gnats-admin@netbsd.org,
 pkgsrc-bugs@netbsd.org
Subject: Re: pkg/51332
Date: Wed, 3 Aug 2016 19:31:02 +0900

 Hi, 

 gfind:
 % gfind * -maxdepth 0 -type f
 file1
 file2

 Solaris's find:
 % find . ! -name . -prune -type f
 ./file1
 ./file2

 To obtain only file names using -prune,  it may be something like following:

 % find . ! -name . -prune -type f | awk -F/ '{print $NF}'

 I hope this might help.

 Sincerely yours,

 Hiroshi Hakoyama
 hako@affrc.go.jp




 On 2016/08/03, at 17:55, coypu@SDF.ORG wrote:

 > The following reply was made to PR pkg/51332; it has been noted by GNATS.
 > 
 > From: coypu@SDF.ORG
 > To: gnats-bugs@netbsd.org
 > Cc: 
 > Subject: Re: pkg/51332
 > Date: Wed, 3 Aug 2016 08:52:07 +0000
 > 
 > OK, this doesn't work for me. no idea why... find gives the exact same
 > result.
 > 

From: coypu@SDF.ORG
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/51332
Date: Wed, 3 Aug 2016 12:21:06 +0000

 thanks for the information regarding the difference.

 leonardo committed a patch from upstream different from my suggestion
 (next version will not have this problem, but it is not yet released).

State-Changed-From-To: feedback->closed
State-Changed-By: leot@NetBSD.org
State-Changed-When: Thu, 04 Aug 2016 09:05:47 +0000
State-Changed-Why:
Fixed, thank you very much Hiroshi for the PR and the feedbacks!

Thanks to <maya> (who provided the real patches, I only adjusted it to
reflect what upstream are doing)!


From: Hiroshi Hakoyama <hako@affrc.go.jp>
To: gnats-bugs@NetBSD.org
Cc: solaris-pkg-people@NetBSD.org,
 pkgsrc-bugs@netbsd.org,
 gnats-admin@netbsd.org,
 leot@NetBSD.org
Subject: Re: pkg/51332 (textproc/groff can be built, but can not be installed on Solaris 10)
Date: Thu, 4 Aug 2016 17:59:13 +0900

 Confirmed fixed. Thanks!

 Hiroshi Hakoyama
 hako@affrc.go.jp




 On 2016/08/03, at 19:36, leot@NetBSD.org wrote:

 > Synopsis: textproc/groff can be built, but can not be installed on =
 Solaris 10
 >=20
 > State-Changed-From-To: open->feedback
 > State-Changed-By: leot@NetBSD.org
 > State-Changed-When: Wed, 03 Aug 2016 10:36:27 +0000
 > State-Changed-Why:
 > groff-1.22.3nb4 probably does not have this problem.
 > Hiroshi, can you please try it and let us know that it fixes the =
 issue?
 >=20
 > Thank you!
 >=20
 >=20
 >=20

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.