From owner-freebsd-java Wed Oct 17 23:42:36 2001 Delivered-To: freebsd-java@freebsd.org Received: from h24-67-76-240.cg.shawcable.net (h24-67-76-240.cg.shawcable.net [24.67.76.240]) by hub.freebsd.org (Postfix) with ESMTP id 76A7437B403 for ; Wed, 17 Oct 2001 23:42:31 -0700 (PDT) Received: from cirp.org (localhost [127.0.0.1]) by h24-67-76-240.cg.shawcable.net (8.11.3/8.11.3) with ESMTP id f9I6gSD24636 for ; Thu, 18 Oct 2001 00:42:29 -0600 (MDT) (envelope-from gtf@cirp.org) Message-Id: <200110180642.f9I6gSD24636@h24-67-76-240.cg.shawcable.net> Date: Thu, 18 Oct 2001 00:42:27 -0600 (MDT) From: "Geoffrey T. Falk" Subject: Re: Getting 1.3.1 to compile To: freebsd-java@freebsd.org In-Reply-To: <20011018100803.C69143@jonc.itouch> MIME-Version: 1.0 Content-Type: MULTIPART/mixed; BOUNDARY="0-846930886-1003387350=:1255" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --0-846930886-1003387350=:1255 Content-Type: TEXT/plain; CHARSET=US-ASCII OK, I finally got it to compile. It was relatively a pain. Here's all of what I had to do. I hope this experience benefits someone else, because it *won't* work out of the box!: 0) Download the Linux 1.3.0 binaries and install into /usr/local/linux-jdk1.3.0 as a bootstrap dist. 1) Extract the j2sdk-1_3_1-src.tar.gz that I downloaded from Sun. 2) Track down all the LongLinks and truncated filenames (because Sun probably used their stupid legacy "tar" utility from Solaris to generate the tarball, which can't handle long filenames) and restore them to their proper locations. Attached is a script that will do this for you. 3) Tar up the resulting directory using gtar, and put it in the distfiles directory, replacing the file "j2sdk-1_3_1-src.tar.gz". Compute the new md5 hash, and install this hash in the file /usr/ports/java/jdk13/distinfo so that it won't complain. 4) Update JDK_PATCHSET_VERSION in the Makefile to version 5 (since I started with patchlevel 4). Put the patch file (bsd-jdk131-patches-5.tar.gz) into /usr/ports/distfiles, and update the md5 hash for this file as well. 5) remove the patches under /usr/ports/java/jdk13/files, since these were relative to patchlevel 4 and had already been incorporated into the patchlevel 5. 6) Set environment variables according to the instructions in the BUILD file in the patchlevel 5. 7) setenv JDK13DIR /usr/local/linux-jdk1.3.0 setenv PORTDIR /usr/ports 8) make; make install After a lot of frustration, I was able to figure out what to do. It would really help a lot of people if this all was taken care of automatically... Regards Geoffrey On 18 Oct, Jonathan Chen wrote: > On Wed, Oct 17, 2001 at 02:48:29PM -0600, Geoffrey T. Falk wrote: >> Sorry if this is a dumb question, but I was taught in school that there >> is no such thing as a dumb question ;) >> >> Where can I get a tarball for the jsdk1.3.1 that will actually compile >> on FreeBSD 4.3? >> >> I tried to build the linux port under /usr/ports/java/jdk13, but found >> that the linux tarball from Sun had lots of files moved from their >> original locations (due to path length restrictions?)---Shouldn't the >> FreeBSD patch script be able to fix this? > > What sort of errors are you getting? The port has been upgraded to > patchlevel5 recently; which builds fine. Make sure you've got the latest > version of the port. --0-846930886-1003387350=:1255 Content-Type: TEXT/plain; CHARSET=US-ASCII Content-Description: script to put files in the right place Content-Disposition: attachment ; filename="FIXUP.csh" cd /usr/ports/java/jdk13/work mv ./j2sdk1.3.1/src/share/classes/com/sun/org/omg/CORBA/ValueDefPackage/FullValueDescriptionHelper.jav{,a} mv ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/bdi/MethodNotFoundException.jav{,a} mv ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/tty/VMNotConnectedException.jav{,a} mv javax.sound.sampled.spi.FormatConversionProvider ./j2sdk1.3.1/src/share/classes/com/sun/media/sound/services/ mv ValueDescSeqHelper.java ./j2sdk1.3.1/src/share/classes/com/sun/org/omg/SendingContext/CodeBasePackage/ mv FontLookUpAppletOffscreen.* ./j2sdk1.3.1/src/share/test/java2d/MiscTests/FontLookUpAppletOffscreen/ mv ConcurrentThreadsText.java ./j2sdk1.3.1/src/share/test/java2d/MiscTests/RegTests/ConcurrentThreadsText/ mv AmbiguousMethodException.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/tty/ gtar --fast-read -xvzf /usr/ports/distfiles/j2sdk-1_3_1-src.tar.gz AmbiguousMethodException.java AmbiguousMethodException.java mv AmbiguousMethodException.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/bdi/ mv FrameIndexOutOfBoundsException.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/bdi/ mv ASCII_UCodeESC_CharStream.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/expr/ mv AccessWatchpointEventSet.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/event/ mv ConverterProgressListener.java ./j2sdk1.3.1/ext/plugin/src/share/converter/sun/plugin/converter/engine/ mv CurrentFrameChangedEvent.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/gui/ mv ExpressionParserConstants.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/expr/ mv ExpressionParserTokenManager.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/expr mv LocationTriggerEventSet.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/event/ mv MalformedMemberNameException.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/tty/ gtar --fast-read -xvzf /usr/ports/distfiles/j2sdk-1_3_1-src.tar.gz MalformedMemberNameException.java MalformedMemberNameException.java mv MalformedMemberNameException.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/bdi/ mv ModificationWatchpointEventSet.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/event/ mv ModificationWatchpointSpec.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/tty/ gtar --fast-read -xvzf /usr/ports/distfiles/j2sdk-1_3_1-src.tar.gz ModificationWatchpointSpec.java mv ModificationWatchpointSpec.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/bdi/ mv PatternReferenceTypeSpec.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/tty/ gtar --fast-read -xvzf /usr/ports/distfiles/j2sdk-1_3_1-src.tar.gz PatternReferenceTypeSpec.java PatternReferenceTypeSpec.java mv PatternReferenceTypeSpec.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/bdi/ mv SingleLeafTreeSelectionModel.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/gui/ mv SourceNameReferenceTypeSpec.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/bdi/ mv TypeScriptOutputListener.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/gui/ mv VMLaunchFailureException.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/bdi/ mv VMNotInterruptedException.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/bdi/ --0-846930886-1003387350=:1255-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message