NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBeans 6.1

> so, what do you think is wrong?

I must admit that I don't have a good idea on that point.

> I tried to use the Java native (wip/jdk15) port to NetBSD, but
> it could not be built on netbsd/amd64.

It can, but it's quite an ordeal.  Attached is the recepie I used when
making jdk15 go on NetBSD/amd64 (admittedly outside of wip/jdk15, but
the resulting java should be able to build wip/jdk15).


- Håvard
--- Begin Message ---
> What's the status of svr4 emulation on sparc64? I forgot a critical  
> piece; One needs a bootstrap JVM, and bootstrapping off of Sun's VM  
> would make things easier.

One can use a bootstrap JVM from another host (and architecture) and
some scripts which use ssh to the bootstrap host and sharing files via
NFS -- that's how I bootstrapped the NetBSD/amd64 version using the
NetBSD/i386 version.  I've attached my notes and the scripts I used to
do this.  (Admittedly, I've since tweaked the scripts to use
environment variables, so they've not been tested in their present

Best regards,

- Håvard
My notes for using a JVM on NetBSD/i386 to bootstrap JVM on

I used a set of script wrappers which ssh to another machine (in my
case running NetBSD/i386, with its native java installed) which has
the same directory tree available via NFS as on the target (amd64)
machine, using the exact same paths.  Substitute scripts were made for
java, javac, javah, and jar, and the ALT_BOOTDIR was pointed to the
directory tree containing those scripts.  Some peculiarities were

 o java needs to be able to read from stdin.  This means you
   can't use "ssh -n", which again means that the build job has
   to run in the foreground with access to the tty (yuk...).

 o javah gets at least once passed a class name with a $ in it.
   This causes issues because we get a double shell
   interpretation which leads to variable expansion; once on the
   local machine, once on the remote.  To work around that
   problem I borrowed the "shquote" shell function from pkgsrc
   and tweaked the argument list using it (it's included).

 o the jar script sleeps 10 seconds because otherwise it would
   trip over "stale NFS file handle" problems when some files
   were copied in place (replaced) on the NFS server just prior
   to using "jar".

Attached below is the set of scripts which I placed in /usr/pkg/java/
as boot-java/, packaged up as "boot-java.tar.gz".  Set JAVA_BOOTHOST
(your boot host) and JAVA_BOOTDIR (top of java directory tree on
JAVA_BOOTHOST) in the environment to suit your config.  I also include
the "build-java" shell script I used (to be executed from the top of
the Java source tree).

Attachment: boot-java.tar.gz
Description: Binary data

#!/usr/bin/env bash

set -x


unset LANG
export ALT_MOTIF_DIR=/usr/pkg
# export ALT_NSPR_PATH=/usr/pkg
export ALT_NSPR_HEADERS_PATH=/usr/pkg/include/firefox/nspr
export ALT_MOZILLA_HEADERS_PATH=/usr/pkg/include/firefox
export ALT_BOOTDIR=/usr/pkg/java/boot-java
# export ALT_BOOTDIR=/usr/pkg/java/jdk-1.5.0
# export ALT_BOOTDIR=/usr/pkg/java/sun-1.5

cd control/make/

--- End Message ---

Home | Main Index | Thread Index | Old Index