From barner@in.tum.de  Tue Aug 26 08:52:45 2003
Return-Path: <barner@in.tum.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id CDB8916A4BF
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 26 Aug 2003 08:52:45 -0700 (PDT)
Received: from mailout.informatik.tu-muenchen.de (mailout.informatik.tu-muenchen.de [131.159.0.5])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 17C5C43F75
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 26 Aug 2003 08:52:45 -0700 (PDT)
	(envelope-from barner@in.tum.de)
Received: by zi025.glhnet.mhn.de (Postfix, from userid 1000)
	id 3F67B37FE7; Tue, 26 Aug 2003 17:52:43 +0200 (CEST)
Message-Id: <20030826155243.3F67B37FE7@zi025.glhnet.mhn.de>
Date: Tue, 26 Aug 2003 17:52:43 +0200 (CEST)
From: Simon Barner <barner@in.tum.de>
Reply-To: Simon Barner <barner@in.tum.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: jdk13: pkg-plist incorrect for green-threads version
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         56007
>Category:       java
>Synopsis:       jdk13: pkg-plist incorrect for green-threads version
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    glewis
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 26 09:00:36 PDT 2003
>Closed-Date:    Sun Aug 31 15:43:52 PDT 2003
>Last-Modified:  Sun Aug 31 15:43:52 PDT 2003
>Originator:     Simon Barner
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
System: FreeBSD zi025.glhnet.mhn.de 4.8-STABLE FreeBSD 4.8-STABLE #0: Thu Aug 7 04:04:01 CEST 2003 toor@zi025.glhnet.mhn.de:/usr/src/sys/compile/KISTE i386


jdk1.3.1p8_2

>Description:

There seems to be something wrong with the pkg-plist (I build it
without any of the extra-options).

When I deinstall the jdk, the following directories are left in
/usr/local/jdk1.3.1:

./jre
./jre/bin
./jre/bin/i386
./jre/bin/i386/native_threads
./bin
./bin/i386
./bin/i386/native_threads

If I interpret the current pkg-plist correctly, then the
``native_threads'' directories are added to that list, if you request
native thread support. Since these directories are created also in an
installation with green threads, ``pkg_delete'' complains that it cannot
remove ``./jre/bin/i386 '' and ``./bin/i386''.

>How-To-Repeat:
Install the jdk from the ports collection and deinstall it.

>Fix:

Either patch the installation script such that it does not create the
``native_threads'' directories for the green threads installation or
remove the ``%%NATIVE:%%'' tag for these directories.

The following patch does this (untested):

--- pkg-plist.orig      Tue Aug 26 17:45:07 2003
+++ pkg-plist   Tue Aug 26 17:51:33 2003
@@ -966,7 +966,7 @@
 @dirrm jdk%%JDK_VERSION%%/jre/lib/images/cursors
 @dirrm jdk%%JDK_VERSION%%/jre/lib/images
 %%HOTSPOT:%%@dirrm jdk%%JDK_VERSION%%/jre/lib/i386/server
-%%NATIVE:%%@dirrm jdk%%JDK_VERSION%%/jre/lib/i386/native_threads
+@dirrm jdk%%JDK_VERSION%%/jre/lib/i386/native_threads
 @dirrm jdk%%JDK_VERSION%%/jre/lib/i386/green_threads
 %%HOTSPOT:%%@dirrm jdk%%JDK_VERSION%%/jre/lib/i386/client
 @dirrm jdk%%JDK_VERSION%%/jre/lib/i386/classic
@@ -975,7 +975,7 @@
 @dirrm jdk%%JDK_VERSION%%/jre/lib/cmm
 @dirrm jdk%%JDK_VERSION%%/jre/lib/audio
 @dirrm jdk%%JDK_VERSION%%/jre/lib
-%%NATIVE:%%@dirrm jdk%%JDK_VERSION%%/jre/bin/i386/native_threads
+@dirrm jdk%%JDK_VERSION%%/jre/bin/i386/native_threads
 @dirrm jdk%%JDK_VERSION%%/jre/bin/i386/green_threads
 @dirrm jdk%%JDK_VERSION%%/jre/bin/i386
 @dirrm jdk%%JDK_VERSION%%/jre/bin
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-java->glewis 
Responsible-Changed-By: glewis 
Responsible-Changed-When: Tue Aug 26 11:54:36 PDT 2003 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=56007 
State-Changed-From-To: open->closed 
State-Changed-By: glewis 
State-Changed-When: Sun Aug 31 15:43:26 PDT 2003 
State-Changed-Why:  
Native threads java_vm binaries are no longer installed when 
only green threads are wanted. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=56007 
>Unformatted:
