java/56007: jdk13: pkg-plist incorrect for green-threads version

Simon Barner barner at in.tum.de
Tue Aug 26 09:00:41 PDT 2003


>Number:         56007
>Category:       java
>Synopsis:       jdk13: pkg-plist incorrect for green-threads version
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-java
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 26 09:00:36 PDT 2003
>Closed-Date:
>Last-Modified:
>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 at 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
+ at 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
+ at 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:
>Unformatted:


More information about the freebsd-java mailing list