NetBSD Problem Report #42518

From bernd@arresum.veego.de  Sat Dec 26 08:29:24 2009
Return-Path: <bernd@arresum.veego.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 4CA0A63B844
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 26 Dec 2009 08:29:24 +0000 (UTC)
Message-Id: <200912260829.nBQ8T8Ec007321@arresum.veego.de>
Date: Sat, 26 Dec 2009 09:29:08 +0100 (CET)
From: Bernd Ernesti <pr200917-2@veego.de>
Reply-To: Bernd Ernesti <pr200917-2@veego.de>
To: gnats-bugs@gnats.NetBSD.org
Subject: file-check sometimes does not work and displays ALL files under /usr/pkg als not in the PLIST
X-Send-Pr-Version: 3.95

>Number:         42518
>Category:       pkg
>Synopsis:       file-check sometimes does not work and displays ALL files under /usr/pkg als not in the PLIST
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 26 08:30:00 +0000 2009
>Closed-Date:    Fri May 12 08:01:53 +0000 2023
>Last-Modified:  Fri May 12 08:01:53 +0000 2023
>Originator:     Bernd Ernesti
>Release:        NetBSD 5.0_STABLE & pkgsrc 20091225
>Organization:

>Environment:


System: NetBSD 5.0_STABLE
Architecture: i386
Machine: i386
>Description:
	From time to time the file-check fails:

===> Installing for tex-moreverb-2.3
=> Becoming ``root'' to make su-install-all (/usr/pkg/bin/sudo)
=> Generating pre-install file lists
=> Running PRE-INSTALL script actions
[..]
=> Automatic manual page handling
=> Generating post-install file lists
=> Running POST-INSTALL script actions
mktexlsr: Updating /usr/pkg/share/texmf-dist/ls-R... 
mktexlsr: Done.
=> Registering installation for tex-moreverb-2.3
tex-moreverb-2.3 requires installed package kpathsea-5.0.0nb2
tex-moreverb-2.3 requires installed package tex-tools-2008.11806
=> Checking file-check results for tex-moreverb-2.3
ERROR: ************************************************************
ERROR: The following files are in /usr/pkg but not in the PLIST:
ERROR:         /usr/pkg/bin/FvwmCommand

[ 97920 lines, all from /usr/pkg, deleted]

ERROR:         /usr/pkg/share/xsl/docbook/xhtml/xref.xsl
*** Error code 1

Stop.
make: stopped in /Z/pkgsrc/print/tex-moreverb
*** Error code 1

	The work directory had these files (ls -altTr)

-rw-r--r--   1 root   wheel        0 Dec 26 03:58:10 2009 .prefix.pre
-rw-r--r--   1 root   wheel      117 Dec 26 03:58:10 2009 .PLIST-1src
-rw-r--r--   1 root   wheel      117 Dec 26 03:58:10 2009 .PLIST-2mac
-rw-r--r--   1 root   wheel      117 Dec 26 03:58:10 2009 .PLIST-3mag
-rw-r--r--   1 root   wheel      117 Dec 26 03:58:10 2009 .PLIST
-rw-r--r--   1 root   wheel       49 Dec 26 03:58:10 2009 .PLIST_nokeywords
-rw-r--r--   1 root   wheel  5278230 Dec 26 03:58:11 2009 .prefix.post
-rw-r--r--   1 root   wheel      315 Dec 26 03:58:12 2009 .PLIST_deps
drwxr-xr-x   2 root   wheel      512 Dec 26 03:58:12 2009 .pkgdb
-rw-r--r--   1 root   wheel  5376381 Dec 26 03:58:12 2009 .check_files_diff
-rw-r--r--   1 root   wheel        0 Dec 26 03:58:12 2009 .check_files_deleted
-rw-r--r--   1 root   wheel       58 Dec 26 03:58:12 2009 .check_files_expected
-rw-r--r--   1 root   wheel  5278230 Dec 26 03:58:12 2009 .check_files_added
-rw-r--r--   1 root   wheel        0 Dec 26 03:58:12 2009 .check_files_missing
-rw-r--r--   1 root   wheel        0 Dec 26 03:58:12 2009 .check_files_missing_real
-rw-r--r--   1 root   wheel        0 Dec 26 03:58:12 2009 .check_files_missing_skip
-rw-r--r--   1 root   wheel  5278172 Dec 26 03:58:19 2009 .check_files_extra

	".prefix.pre" is empty and ".check_files_expected" has only one entry:
		/usr/pkg/share/texmf-dist/tex/latex/moreverb/moreverb.sty
	from the package which is currently beeing installed, but no other
	files from /usr/pkg

	It looks for me that the file listing of /usr/pkg didn't work.
>How-To-Repeat:
	I wish I knew when this happens.
>Fix:

>Release-Note:

>Audit-Trail:
From: Bernd Ernesti <netbsd@lists.veego.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/42518: file-check sometimes does not work and displays ALL files under /usr/pkg als not in the PLIST
Date: Sat, 26 Dec 2009 13:58:44 +0100

 On Sat, Dec 26, 2009 at 01:59:57PM +0300, Aleksej Saushev wrote:
 > Bernd Ernesti <pr200917@veego.de> writes:
 > 
 > > 	From time to time the file-check fails:
 > >
 > > ===> Installing for tex-moreverb-2.3
 > > => Becoming ``root'' to make su-install-all (/usr/pkg/bin/sudo)
 > > => Generating pre-install file lists
 > > => Running PRE-INSTALL script actions
 > 
 > From this I conclude that you're not using staged installation (aka "destdir"),
 > therefore file checks won't work reliably. It always was so.
 > Perhaps this should be documented clearly.
 > It relies on time stamps, thus it breaks when package installs files
 > with pax(1) or tar(1) rather than install(1).

 And if you looked at the pr you would have noticed that it is not a problem
 with the time stamps.

 Bernd

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Fri, 12 May 2023 08:01:53 +0000
State-Changed-Why:
issue obsoleted by the move to destdir


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.