NetBSD Problem Report #42458

From kre@munnari.OZ.AU  Tue Dec 15 13:21:11 2009
Return-Path: <kre@munnari.OZ.AU>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id F173063B844
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 15 Dec 2009 13:21:10 +0000 (UTC)
Message-Id: <200912151319.nBFDJpXj026187@jade.coe.psu.ac.th>
Date: Tue, 15 Dec 2009 20:19:51 +0700 (ICT)
From: kre@munnari.OZ.AU
To: gnats-bugs@gnats.NetBSD.org
Subject: lang/kaffe PLIST problem (NetBSD 4.0/i386 w pkgsrc modular xorg)
X-Send-Pr-Version: 3.95

>Number:         42458
>Category:       pkg
>Synopsis:       lang/kaffe PLIST problem (NetBSD 4.0/i386 w pkgsrc modular xorg)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    tonio
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 15 13:25:00 +0000 2009
>Closed-Date:    Wed Dec 23 12:20:12 +0000 2009
>Last-Modified:  Wed Dec 23 12:20:12 +0000 2009
>Originator:     Robert Elz
>Release:        NetBSD 4.0 / i386 (pkgsrc current 2009-12-15)
>Organization:
	Prince of Songkla University
>Environment:
System: NetBSD jade.coe.psu.ac.th 4.0_STABLE NetBSD 4.0_STABLE (JADE-1.696-20080517) #9: Fri May 23 18:55:13 ICT 2008 kre@jade.coe.psu.ac.th:/usr/obj/4/kernels/JADE i386
Architecture: i386
Machine: i386
>Description:
	Yesterday's update of lang/kaffe from 1.1.7nb3 to 1.1.7nb4
	says in its cvs log ...

		Override LIBLTDL explicitly to unbreak build with libtool 2.2.
		Fix PLIST. Bump revision.

	The LIBTOOL change seems OK, the revbump was obviously needed,
	but the "Fix PLIST" for me shoud be read as "Break PLIST".

	That is, in 1.1.7nb3, the PLIST was fine (correctly indicated what
	was installed, as tested by pkgsrc's file-check test), one entry
	was added, that file isn't installed (and it is a little hard to
	see how changing LIBTOOL usage could alter the need, or otherwise,
	for a .jar file to be installed).

>How-To-Repeat:
	I use pkg_comp with libkver starting in a nearly empty sandbox,
	with NetBSD 4.0 release sets (except the x* sets) installed,
	and use pkgsrc modular xorg (X11_TYPE=modular) for x,
	Most likely none of that is rleevant here, but who knows...

	After building and installing lang/kaffe, but before a binary
	package is built, pkgsrc (with PKG_DEVELOPER=yes, which pkg_comp
	causes) runs its file-check tests, which results in ...

=> Checking file-check results for kaffe-1.1.7nb4
ERROR: ************************************************************
ERROR: The following files are in the PLIST but not in /usr/pkg:
ERROR:         /usr/pkg/java/kaffe/jre/lib/rt.jar 
*** Error code 1 

	.../rt.jar was added to the PLIST yesterday (part of the nb4 upgrade).

>Fix:
	Remove it from the PLIST again...

	In the build log I see this:

if test -f /usr/pkg/java/kaffe/jre/lib/glibj.zip ; then \
		if ! test -f /usr/pkg/java/kaffe/jre/lib/rt.jar ; then \
			ln -s /usr/pkg/java/kaffe/jre/lib/glibj.zip /usr/pkg/java/kaffe/jre/lib/rt.jar ; \
		fi ; \
	fi

	That's obviously where rt.jar is supposed to come from,
	and if I run those commands manually, it gets created
	(that is, /usr/pkg/java/kaffe/jre/lib/glibj.zip does exist,
	and /usr/pkg/java/kaffe/jre/lib/rt.jar did not).

	I have no idea why that didn't happen during the build,
	the commands are logged from make as if they were to be
	executed, but it seems that didn't happen - or perhaps
	something later removed the symlink again.  If that is
	what it was, I don't see what might have removed it.

	After doing that command (so rt.jar existed) I run "make update".
	(with no make clean or anything intervening).  When that finished,
	rt.jar was gone again.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->tonio
Responsible-Changed-By: reed@NetBSD.org
Responsible-Changed-When: Sat, 19 Dec 2009 14:03:40 +0000
Responsible-Changed-Why:
Assigend to maintainer.


From: Joerg Sonnenberger <joerg@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/42458 CVS commit: pkgsrc/lang/kaffe
Date: Tue, 22 Dec 2009 12:44:59 +0000

 Module Name:	pkgsrc
 Committed By:	joerg
 Date:		Tue Dec 22 12:44:59 UTC 2009

 Modified Files:
 	pkgsrc/lang/kaffe: distinfo
 Added Files:
 	pkgsrc/lang/kaffe/patches: patch-ah

 Log Message:
 Be consistent and always link rt.jar. It seems like the creation was
 timing depend. Fixes PR 42458.


 To generate a diff of this commit:
 cvs rdiff -u -r1.27 -r1.28 pkgsrc/lang/kaffe/distinfo
 cvs rdiff -u -r0 -r1.7 pkgsrc/lang/kaffe/patches/patch-ah

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

From: Robert Elz <kre@munnari.OZ.AU>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: PR/42458 CVS commit: pkgsrc/lang/kaffe
Date: Wed, 23 Dec 2009 14:49:47 +0700

     Date:        Tue, 22 Dec 2009 12:45:04 +0000 (UTC)
     From:        Joerg Sonnenberger <joerg@NetBSD.org>
     Message-ID:  <20091222124504.1FEE063C502@www.NetBSD.org>

   |  Be consistent and always link rt.jar. It seems like the creation was
   |  timing depend. Fixes PR 42458.

 It does.   Thanks,  Please close the PR.

 kre

State-Changed-From-To: open->closed
State-Changed-By: joerg@NetBSD.org
State-Changed-When: Wed, 23 Dec 2009 12:20:12 +0000
State-Changed-Why:
Resolved.


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