From owner-freebsd-java@FreeBSD.ORG Tue Aug 26 09:00:41 2003 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36BD916A4C0 for ; Tue, 26 Aug 2003 09:00:41 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 138824400B for ; Tue, 26 Aug 2003 09:00:37 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h7QG0aUp020467 for ; Tue, 26 Aug 2003 09:00:36 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h7QG0a3X020466; Tue, 26 Aug 2003 09:00:36 -0700 (PDT) Resent-Date: Tue, 26 Aug 2003 09:00:36 -0700 (PDT) Resent-Message-Id: <200308261600.h7QG0a3X020466@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-java@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Simon Barner Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CDB8916A4BF for ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: java/56007: jdk13: pkg-plist incorrect for green-threads version X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Simon Barner List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Aug 2003 16:00:41 -0000 >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@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: >Unformatted: