pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/40089 (PLIST informs about a non-existent file in sun-jre6)
The following reply was made to PR pkg/40089; it has been noted by GNATS.
From: Bernd Ernesti <netbsd%lists.veego.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
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
Home |
Main Index |
Thread Index |
Old Index