NetBSD Problem Report #40089

From ccatrian@eml.cc  Wed Dec  3 02:06:01 2008
Return-Path: <ccatrian@eml.cc>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id CA01963B8BD
	for <gnats-bugs@gnats.netbsd.org>; Wed,  3 Dec 2008 02:06:00 +0000 (UTC)
Message-Id: <1228265150.14343@core.cjc.cl>
Date: Tue, 2 Dec 2008 21:45:50 -0300
From: "César Catrián Carreño" <ccatrian@eml.cc>
To: "gnats bugs" <gnats-bugs@gnats.netbsd.org>
Subject: PLIST informs about a non-existent file in sun-jre6
X-Send-Pr-Version: gtk-send-pr 0.4.9 
X-GNATS-Notify:

>Number:         40089
>Category:       pkg
>Synopsis:       PLIST informs about a non-existent file in sun-jre6
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    reinoud
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 03 02:10:00 +0000 2008
>Closed-Date:    Sun Jul 23 03:43:04 +0000 2017
>Last-Modified:  Sun Jul 23 03:43:04 +0000 2017
>Originator:     César Catrián Carreño
>Release:        NetBSD 5.99.3 i386
>Organization:
>Environment:


System: NetBSD 5.99.3 (Basado en GENERIC: 1.781) #0: Mon Nov 24 20:18:03 CLST 2008
	cetrox@core.cjc.cl:/home/cetrox/src/netbsd-current/src/sys/arch/i386/compile/SAT



>Description:


The unexistent file registration.xml is in PLIST.linux-i386


>How-To-Repeat:


make install


>Fix:


--- lang/sun-jre6/PLIST.linux-i386.orig 2008-12-02 21:19:06.000000000 -0300
+++ lang/sun-jre6/PLIST.linux-i386      2008-12-02 21:19:41.000000000 -0300
@@ -239,7 +239,6 @@
 java/sun-6/lib/psfontj2d.properties.default
 java/sun-6/lib/resources.jar
 java/sun-6/lib/rt.jar
-java/sun-6/lib/servicetag/registration.xml
 ${PLIST.jce}java/sun-6/lib/security/COPYRIGHT.html
 ${PLIST.jce}java/sun-6/lib/security/README.txt
 java/sun-6/lib/security/US_export_policy.jar



>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->reinoud
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Wed, 03 Dec 2008 02:21:55 +0000
Responsible-Changed-Why:
reinoud added the entry.
PR#38218? On what situation, product registration is invoked?


From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/40089 (PLIST informs about a non-existent file in sun-jre6)
Date: Fri, 20 Feb 2009 11:38:42 +0900

 lib/servicetag/registration.xml may be created in extract phase,
 by register_JDK() in the self-extract file.
 It use bin/java in extracted directory, then it depend on where
 the 'java' works or not.
 On my environment, failed due to missing libjli.so, even if sun-jre6 is
 installed or not, then I can't find the situation thet it works fine.

 After adding following line to sun-jre6/Makefile.common, everytime succeed to regist,
 EXTRACT_ENV+=        LD_LIBRARY_PATH=${JAVA_LD_LIBRARY_PATH:S/${JAVA_HOME}/${WRKSRC}/}
 But result of registration.xml contains ${WRKSRC}, it is probably bad.

 Then I think it should be changed to:
  1 remove lib/servicetag/registration.xml in post-extract stage
  2 invoke regist in INSTALL script (if regist is required).

 -- 
 "Of course I love NetBSD":-)
 OBATA Akio / obache@NetBSD.org

From: Bernd Ernesti <netbsd@lists.veego.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/40089 (PLIST informs about a non-existent file in sun-jre6)
Date: Fri, 20 Feb 2009 07:45:17 +0100

 On Fri, Feb 20, 2009 at 02:40:05AM +0000, OBATA Akio wrote:
 > 
 >  lib/servicetag/registration.xml may be created in extract phase,
 >  by register_JDK() in the self-extract file.

 Thank you for finding the reason why that file appears.

 >  It use bin/java in extracted directory, then it depend on where
 >  the 'java' works or not.
 >  On my environment, failed due to missing libjli.so, even if sun-jre6 is
 >  installed or not, then I can't find the situation thet it works fine.

 Could it be that it would work if the enviornment variable JAVA_HOME is
 pointing to a working java installation?

 >  After adding following line to sun-jre6/Makefile.common, everytime succeed to regist,
 >  EXTRACT_ENV+=        LD_LIBRARY_PATH=${JAVA_LD_LIBRARY_PATH:S/${JAVA_HOME}/${WRKSRC}/}
 >  But result of registration.xml contains ${WRKSRC}, it is probably bad.
 >  
 >  Then I think it should be changed to:
 >   1 remove lib/servicetag/registration.xml in post-extract stage
 >   2 invoke regist in INSTALL script (if regist is required).

 IMHO an automatic registration, which I think will send data of your system to sun,
 should not be done at all.

 It is not nessasary to do that to use java.

 http://java.sun.com/developer/technicalArticles/productregistration/

 The following page has the java source code for the register function:
 http://www.java2s.com/Open-Source/Java-Document/IDE-Netbeans/reglib/com/sun/servicetag/Installer.java.htm

 Bernd

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 23 Jul 2017 03:43:04 +0000
State-Changed-Why:
obache's suggested change was committed the day it was made, by abs@,
and this PR has accidentally sat around for another 8.5 years. :-/


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