NetBSD Problem Report #52891

From www@NetBSD.org  Wed Jan  3 15:40:13 2018
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 "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 22AEB7A1A0
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  3 Jan 2018 15:40:13 +0000 (UTC)
Message-Id: <20180103154012.12C0D7A1F7@mollari.NetBSD.org>
Date: Wed,  3 Jan 2018 15:40:12 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joernc@gmail.com
To: gnats-bugs@NetBSD.org
Subject: can't install lang/perl5 on Solaris 11/sparc from NFS-mounted source tree
X-Send-Pr-Version: www-1.0

>Number:         52891
>Category:       pkg
>Synopsis:       can't install lang/perl5 on Solaris 11/sparc from NFS-mounted source tree
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 03 15:45:00 +0000 2018
>Last-Modified:  Tue Jan 29 06:47:36 +0000 2019
>Originator:     Joern Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
For installing pkgsrc on Solaris/sparc, I mount the source tree from my Solaris/i86-machine via NFS. Installing lang/perl5 now fails with

=> Automatic manual page handling
=> Generating post-install file lists
=> Checking file-check results for perl-5.26.1nb1
ERROR: ************************************************************
ERROR: The following files are in /opt/pkgsrc/pkg-hrz/pkgsrc/lang/perl5/work.pkgsrc-sol11sparc/.destdir/opt/pkg-hrz/20180102 but not in the PLIST:
ERROR:         /opt/pkgsrc/pkg-hrz/pkgsrc/lang/perl5/work.pkgsrc-sol11sparc/.destdir/opt/pkg-hrz/20180102/lib/perl5/man/man1/.nfs00FAE3
ERROR:         /opt/pkgsrc/pkg-hrz/pkgsrc/lang/perl5/work.pkgsrc-sol11sparc/.destdir/opt/pkg-hrz/20180102/lib/perl5/man/man1/.nfs01FAE3
ERROR:         /opt/pkgsrc/pkg-hrz/pkgsrc/lang/perl5/work.pkgsrc-sol11sparc/.destdir/opt/pkg-hrz/20180102/lib/perl5/man/man1/.nfs02FAE3
ERROR:         /opt/pkgsrc/pkg-hrz/pkgsrc/lang/perl5/work.pkgsrc-sol11sparc/.destdir/opt/pkg-hrz/20180102/lib/perl5/man/man1/.nfs03FAE3
ERROR:         /opt/pkgsrc/pkg-hrz/pkgsrc/lang/perl5/work.pkgsrc-sol11sparc/.destdir/opt/pkg-hrz/20180102/lib/perl5/man/man1/.nfs081BE3
ERROR:         /opt/pkgsrc/pkg-hrz/pkgsrc/lang/perl5/work.pkgsrc-sol11sparc/.destdir/opt/pkg-hrz/20180102/lib/perl5/man/man1/.nfs08EAE3


I am using this setup for the last two years and never had a problem like this so far, neither with lang/perl5 nor any other package. lsof showed no processes accessing the .nfs files, neither on the NFS server nor the client.

I have tried compiling with every combination of MAKE_JOBS=1 (default in mk.conf is 4) and USE_CWRAPPERS=no (default is "yes" since yesterday), but always get the same result.

So far, lang/perl5 seems to be the only package affected, but I have built only about 30 other packages since the last bootstrap.
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: Joern Clausen <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/52891: can't install lang/perl5 on Solaris 11/sparc from
 NFS-mounted source tree
Date: Wed, 03 Jan 2018 16:55:58 +0100

 For the record: This is a "ls -ltrai" in one of the directories:

    15501863 -rw-r--r--   2 pkgsrc   software    7974 Jan  3 16:52 perlvos.1
    15501863 -rw-r--r--   2 pkgsrc   software    7974 Jan  3 16:52 .nfs433DE3
    15501864 -rw-r--r--   2 pkgsrc   software   48098 Jan  3 16:52 
 perlwin32.1
    15501864 -rw-r--r--   2 pkgsrc   software   48098 Jan  3 16:52 .nfs533DE3
    15501865 -rw-r--r--   2 pkgsrc   software   97259 Jan  3 16:52 perlxs.1
    15501865 -rw-r--r--   2 pkgsrc   software   97259 Jan  3 16:52 .nfs633DE3
    15501866 -rw-r--r--   2 pkgsrc   software   63103 Jan  3 16:52 
 perlxstut.1
    15501866 -rw-r--r--   2 pkgsrc   software   63103 Jan  3 16:52 .nfs733DE3
    15501867 -rw-r--r--   2 pkgsrc   software   32037 Jan  3 16:52 
 perlxstypemap.1
    15501867 -rw-r--r--   2 pkgsrc   software   32037 Jan  3 16:52 .nfs833DE3


 -- 
 Jörn Clausen
 Plattformen & Serverdienste
 BITS - Bielefelder IT-Servicezentrum

From: coypu@sdf.org
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/52891: can't install lang/perl5 on Solaris 11/sparc from
 NFS-mounted source tree
Date: Tue, 16 Jan 2018 10:03:14 +0000

 So, this isn't really a perl issue, but just we turned on PLIST checking
 even if PKG_DEVELOPER is not set, and NFS leaves these files around.

 I assume we would have to teach tools to ignore such files to make
 NFS-building possible.

From: Joern Clausen <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org, pkg-manager@NetBSD.org, gnats-admin@NetBSD.org,
 pkgsrc-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/52891: can't install lang/perl5 on Solaris 11/sparc from
 NFS-mounted source tree
Date: Tue, 16 Jan 2018 11:31:47 +0100

 This issue has two aspects:

 - The .nfs files are only created on the NFS share located on my other 
 pkgsrc machine (exported ZFS). When I use an NFS export from our filer, 
 no dot files are left over. I got around this problem by compiling the 
 Perl package with destdir temporarily set to /var/tmp. Luckily, the CPAN 
 packages are were not affected. So this is clearly a Solaris issue.

 - Was the change to PLIST checking communicated somewhere? I noticed 
 that I can't install graphics/gimp any longer on Solaris, because there 
 is one plugin compiled, that is not in PLIST. For some reason this does 
 not happen on my NetBSD machine. I assume that happened before (I was 
 able to install the same Gimp version before), but was not a fatal error.

 Can I revert this PLIST checking in mk.conf?

 -- 
 Jörn Clausen
 Plattformen & Serverdienste
 BITS - Bielefelder IT-Servicezentrum

From: Jonathan Perkin <jperkin@joyent.com>
To: Joern Clausen <joern.clausen@uni-bielefeld.de>
Cc: gnats-bugs@NetBSD.org, pkg-manager@NetBSD.org, gnats-admin@NetBSD.org,
	pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/52891: can't install lang/perl5 on Solaris 11/sparc from
 NFS-mounted source tree
Date: Tue, 16 Jan 2018 11:03:49 +0000

 * On 2018-01-16 at 10:32 GMT, Joern Clausen wrote:

 > - The .nfs files are only created on the NFS share located on my other
 > pkgsrc machine (exported ZFS). When I use an NFS export from our filer, no
 > dot files are left over. I got around this problem by compiling the Perl
 > package with destdir temporarily set to /var/tmp. Luckily, the CPAN packages
 > are were not affected. So this is clearly a Solaris issue.

 Setting WRKOBJDIR to a local directory will not only resolve the
 problem, you will also likely see a large speed increase in build
 times.

 > - Was the change to PLIST checking communicated somewhere? I noticed that I
 > can't install graphics/gimp any longer on Solaris, because there is one
 > plugin compiled, that is not in PLIST. For some reason this does not happen
 > on my NetBSD machine. I assume that happened before (I was able to install
 > the same Gimp version before), but was not a fatal error.
 >
 > Can I revert this PLIST checking in mk.conf?

 You can by setting CHECK_FILES=no, but understand that this is
 basically saying "I am ok with broken packages and don't want to know
 about them".  We believe it's better to fix the actual problems than
 ignore them.

 -- 
 Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.