NetBSD Problem Report #41191

From www@NetBSD.org  Sun Apr 12 07:15:15 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id BF9D163C169
	for <gnats-bugs@gnats.netbsd.org>; Sun, 12 Apr 2009 07:15:15 +0000 (UTC)
Message-Id: <20090412071515.8349463C166@www.NetBSD.org>
Date: Sun, 12 Apr 2009 07:15:15 +0000 (UTC)
From: mishka@NetBSD.org
Reply-To: mishka@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: misc/openoffice3-bin installation is not clean
X-Send-Pr-Version: www-1.0

>Number:         41191
>Category:       pkg
>Synopsis:       misc/openoffice3-bin installation is not clean
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bad
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 12 07:20:00 +0000 2009
>Closed-Date:    
>Last-Modified:  Tue Sep 07 17:37:09 +0000 2010
>Originator:     Mike M. Volokhov
>Release:        NetBSD/amd64 5.0_RC3, pkgsrc-2009Q1
>Organization:
>Environment:
NetBSD/amd64 5.0_RC3, pkgsrc-2009Q1
>Description:
While building misc/openoffice3-package the following error appears:

=> Checking file-check results for openoffice3-bin-3.0.1
ERROR: ************************************************************
ERROR: The following files are in /usr/pkg but not in the PLIST:
ERROR:         /usr/pkg/openoffice.org/basis3.0/ure-link
ERROR:         /usr/pkg/openoffice.org3/basis-link
ERROR:         /usr/pkg/openoffice.org3/program/soffice.orig
*** Error code 1

>How-To-Repeat:
cd pkgsrc/misc/openoffice3-bin && make package
>Fix:
Unknown.

>Release-Note:

>Audit-Trail:
From: Ryo HAYASAKA <ryoh@jaist.ac.jp>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/41191 (misc/openoffice3-bin installation is not clean)
Date: Fri, 15 May 2009 17:32:26 +0900 (JST)

 NetBSD-current/i386, pkgsrc-current (Fri May 15 17:30:48 JST 2009)

 The error is slightly different in my case:

 => Checking file-check results for openoffice3-bin-3.0.1
 ERROR: ************************************************************
 ERROR: The following files are in /usr/pkg but not in the PLIST:
 ERROR:         /usr/pkg/openoffice.org/basis3.0/ure-link
 ERROR:         /usr/pkg/openoffice.org3/basis-link
 *** Error code 1

 --
 Ryo HAYASAKA <ryoh@jaist.ac.jp>
 Japan Advanced Institute of Science and Technology (JAIST)

Responsible-Changed-From-To: pkg-manager->bad
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Fri, 15 May 2009 13:14:25 +0000
Responsible-Changed-Why:
Over to maintainer.


Responsible-Changed-From-To: bad->tron
Responsible-Changed-By: bad@NetBSD.org
Responsible-Changed-When: Mon, 06 Sep 2010 21:52:30 +0000
Responsible-Changed-Why:
The lines in the PLIST that cause the messages are generated by rpm2pkg.
Tron, can you have a look at what needs to be changed in rpm2pkg?



Responsible-Changed-From-To: tron->bad
Responsible-Changed-By: tron@NetBSD.org
Responsible-Changed-When: Tue, 07 Sep 2010 06:47:08 +0000
Responsible-Changed-Why:
These files are not in any of the ".rpm" files that get processed by
"rpm2pkg". There are files with similar names, but they are in the
directory "opt", not in the top level directory. And it appears
to me that this is a known problem with the "openoffice3-bin"
package anyway:

CHECK_FILES_SKIP+=      ${PREFIX}/opt/openoffice.org/basis${OO_BASEVER}/ure-link
CHECK_FILES_SKIP+=      ${PREFIX}/opt/openoffice.org${OO_VER}/basis-link


From: Matthias Scheler <tron@NetBSD.org>
To: NetBSD GNATS <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/41191 (misc/openoffice3-bin installation is not clean)
Date: Tue, 7 Sep 2010 08:06:30 +0100

 On Tue, Sep 07, 2010 at 06:47:09AM +0000, tron@NetBSD.org wrote:
 > Synopsis: misc/openoffice3-bin installation is not clean
 > 
 > Responsible-Changed-From-To: tron->bad
 > Responsible-Changed-By: tron@NetBSD.org
 > Responsible-Changed-When: Tue, 07 Sep 2010 06:47:08 +0000
 > Responsible-Changed-Why:
 > These files are not in any of the ".rpm" files that get processed by
 > "rpm2pkg". There are files with similar names, but they are in the
 > directory "opt", not in the top level directory. And it appears
 > to me that this is a known problem with the "openoffice3-bin"
 > package anyway:
 > 
 > CHECK_FILES_SKIP+=      ${PREFIX}/opt/openoffice.org/basis${OO_BASEVER}/ure-link
 > CHECK_FILES_SKIP+=      ${PREFIX}/opt/openoffice.org${OO_VER}/basis-link

 One more thing I forgot to mention:
 On my NetBSD/amd64 5.1_RC3 system the installation works fine including
 the file check.

From: Christoph Badura <bad@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/41191 (misc/openoffice3-bin installation is not clean)
Date: Tue, 7 Sep 2010 12:15:34 +0200

 On Tue, Sep 07, 2010 at 06:47:09AM +0000, tron@NetBSD.org wrote:
 > These files are not in any of the ".rpm" files that get processed by
 > "rpm2pkg". There are files with similar names, but they are in the
 > directory "opt", not in the top level directory. And it appears
 > to me that this is a known problem with the "openoffice3-bin"
 > package anyway:

 OpenOffice 3.2 moved to an opt prefix.  Unsurprisingly that does not stop
 rpm2pkg from generating a PLIST that is not acceptable to the pkg tools.

 This is a ``known problem with the "openoffice3-bin" package'' only because
 it is necessary to suppress the symptoms caused by the rpm2pkg bug with 
 the CHECK_FILES assignments. 

 --chris

Responsible-Changed-From-To: bad->tron
Responsible-Changed-By: bad@NetBSD.org
Responsible-Changed-When: Tue, 07 Sep 2010 11:12:54 +0000
Responsible-Changed-Why:
The known problem with the openoffice3-bin package is a known-bug in
the rpm2pkg package.


Responsible-Changed-From-To: tron->bad
Responsible-Changed-By: tron@NetBSD.org
Responsible-Changed-When: Tue, 07 Sep 2010 12:11:45 +0000
Responsible-Changed-Why:
The extra files are *not* in any of the RPMs and therefore not created
by "rpm2pkg". If you disagree please provide "ktrace" output that
actually demonstrates that "rpm2pkg" created those files.


Responsible-Changed-From-To: bad->tron
Responsible-Changed-By: tron@NetBSD.org
Responsible-Changed-When: Tue, 07 Sep 2010 13:01:02 +0000
Responsible-Changed-Why:
I'll handle the PR.


State-Changed-From-To: open->analyzed
State-Changed-By: tron@NetBSD.org
State-Changed-When: Tue, 07 Sep 2010 13:01:02 +0000
State-Changed-Why:
There is not bug as such in "rpm2pkg". It add symlinks to directories as
"@exec" commands to the package list which creates false positives in
the file checks. This was necessary a long time ago where "pkg_install"
wouldn't handle this case gracefully. This seems to be no longer the case
and "rpm2pkg" could therefore just create normal entries for such symlinks.


From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/41191 CVS commit: pkgsrc/pkgtools/rpm2pkg
Date: Tue, 7 Sep 2010 17:32:05 +0000

 Module Name:	pkgsrc
 Committed By:	tron
 Date:		Tue Sep  7 17:32:05 UTC 2010

 Modified Files:
 	pkgsrc/pkgtools/rpm2pkg: Makefile
 	pkgsrc/pkgtools/rpm2pkg/files: rpm2pkg.c

 Log Message:
 Update "rpm2pkg" to version 3.1.4:
 Always treat symbolic links like file when generating the package list.
 A long time ago "pkg_install" didn't like symbolic links which is why
 "rpm2pkg" created "@exec" and "@unexec" lines in the package list.
 This does however cause false positive reported by the "CHECK_FILES" check.

 This should fix a part of PR pkg/41191.


 To generate a diff of this commit:
 cvs rdiff -u -r1.50 -r1.51 pkgsrc/pkgtools/rpm2pkg/Makefile
 cvs rdiff -u -r1.15 -r1.16 pkgsrc/pkgtools/rpm2pkg/files/rpm2pkg.c

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

Responsible-Changed-From-To: tron->bad
Responsible-Changed-By: tron@NetBSD.org
Responsible-Changed-When: Tue, 07 Sep 2010 17:37:09 +0000
Responsible-Changed-Why:
"rpm2pkg" has been improved. This does however not explain where the ".orig"
file comes from.


State-Changed-From-To: analyzed->open
State-Changed-By: tron@NetBSD.org
State-Changed-When: Tue, 07 Sep 2010 17:37:09 +0000
State-Changed-Why:
It is not known why the ".orig" file was not deleted.


>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-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.