Commit Graph

169 Commits

Author SHA1 Message Date
kurt
f6da9a94ff On i386 all source built java ports will use the 1.5 jdk to build. Runtime
compatibility is preserved through the use of the javac -source and
-target arguments. These arguments are now required for any new source
built java ports.
2006-11-28 14:28:25 +00:00
steven
4db7fc3254 take flavors into account in @pkgpath 2006-11-24 21:35:29 +00:00
steven
330f0193b5 take flavors into account in @pkgpath
ok espie@
2006-11-24 21:30:13 +00:00
kurt
d3fbad8b83 new MULTI_PACKAGES 2006-11-22 19:42:54 +00:00
kurt
aa6ff6836d new MULTI_PACKAGES 2006-11-22 14:58:03 +00:00
espie
23011e3982 tweak for new MULTI_PACKAGES 2006-11-20 19:28:18 +00:00
kurt
3ebfead8e1 - attempt to fully send/receive packets in socketTransport.c by handling
EINTR and continue to send/receive the rest of the packet. corrects:
"ERROR: transport error 202: recv error: Interrupted system call
["transport.c",L41]" seen while debugging large projects in eclipse.
from niklas@
- Prevent problems opening RandomAccessFile with "rws" as the mode by
defining O_SYNC and O_DSYNC if they aren't defined.  In particular we
were previously defining O_SYNC bogusly to the same value as O_EXCL.
from FreeBSD
- close two more pthread_addr leaks
2006-11-17 20:19:33 +00:00
kurt
1ec8b79489 fix ownership. okay steven@ 2006-11-16 15:06:18 +00:00
kurt
7a8823ecec use system libz instead of internal libz 2006-11-15 17:27:40 +00:00
steven
87a90c296d USE_X11 2006-11-11 21:04:27 +00:00
kurt
0f22d97d61 adjust depends so that 1.3+, 1.4 & 1.4+ level ports must use libz free
jdk/1.4 from now on.
2006-11-01 20:34:24 +00:00
kurt
7df1fb7f89 Back-port some jdk/1.5 changes:
- use system libz instead of internal one. internal libz conflicts with
system libz, for example apps using JNI & libz will fail (OOo).
- enable parallel hotspot compiles on mp systems (one per cpu). no pthreads
involved so its safe to do here.
- socket option corrections. may help Active MQ work.
2006-10-31 19:48:12 +00:00
sturm
6e3e04ec3b switch to fedora_base and adapt systrace.policy files accordingly 2006-10-19 09:39:58 +00:00
kurt
545e82d800 - remove disabling J malloc option now that pthreads stacks are mmap'ed
this is no longer a concern upon forking.
- use closefrom(2) after forking instead of less efficient heursitics
approach.
2006-10-03 13:36:28 +00:00
kurt
0f8014e857 - Fix jdk build when timezone is GMT+0. Reported by Schöberle Dániel
<Schoeberle.Daniel at aamtech.hu>
- Fix short Thread.sleep() issue. Reported by Mr David SH Rosenthal
<dshr at stanford.edu>
2006-09-26 17:48:19 +00:00
kurt
e7d3816ed9 expand RUN_DEPENDS to include kaffe and jamvm where appropriate so if
someone wants to run a java port with them they don't need to first build
one of Sun's jdks.  okay nikolay@
2006-08-05 16:38:20 +00:00
espie
057dd9afe4 new libspecs 2006-08-01 22:55:52 +00:00
kurt
e8329de2c0 Prevent the jvm from crashing when it encounters a font with an
illegal glyph name (like in x11/freefonts). Problem reported by Jan Zach.
2006-07-28 13:18:45 +00:00
kurt
15f1fe1f7e indent defines too so that this is more readable. 'looks sane' nikolay@ 2006-07-28 13:06:24 +00:00
kurt
aa74a6e1f4 - speed up builds on mp systems by using parallel compiles (one per cpu)
- increase default thread stack size on amd64
- filter out corrupt env vars with no name
- Properly deal with error cases in transferTo0(). Corrects non-blocking
IO case.
All but first one from FreeBSD
2006-07-10 13:17:39 +00:00
steven
4db61bb851 add client vm files in jre package. this unbreaks the browser plugin.
ok kurt@
2006-07-01 09:06:00 +00:00
kurt
4b5dcd0f44 - use /dev/srandom in NativePRNG replacing /dev/random.
/dev/random use noticed by Sigfred Håversen.
2006-06-20 02:02:48 +00:00
kurt
7209ade622 - fix reoccurance of KOI8_U charset NPE's for ALT_BOOTSTRAP (default).
since KOI8_U doesn't come with the Solaris class files, make sure it is
built in the recompile stage. Reported by Matt Jibson.
- add a useable cacerts file and use that instead of current empty one.
charset portions tested by and okay ian@.
2006-06-06 03:02:42 +00:00
kurt
bdb052bb9e add amd64 support. tested & ok ian@ 2006-05-28 00:14:39 +00:00
steven
dbd3e01ddf add a missing man page, update-plist, bump PKGNAME. okay kurt@ 2006-05-26 17:32:21 +00:00
ian
a5b4364f7f Remove extra line committed in error, unbreaks JRE packaging 2006-05-16 03:39:41 +00:00
ian
31e312eb64 Enable JDK/JRE build on amd64. Switch to bootstrapping using Kaffe + Solaris JDK binary,
obviating need to build with JDK Linux compat (which was i386 only anyway).
Add native_bootstrap pseudo-flavor so you can build with a native Sun JDK if you
have one (tested by building this way using JDK built with default Kaffe-based build).
Work by kurt@, tested by him on i386 and me on amd64. OK kurt@.
2006-05-15 18:11:22 +00:00
ian
7b0be3a97d fix typo; 'ok kurt@; no pkg bump needed' 2006-04-28 22:57:11 +00:00
kurt
d5dbd1d194 - add a new pseudo flavor called alt_bootstrap which uses kaffe, Xalan and
solaris class files to bootstrap the jdk build. this avoids the need for
devel/jdk/1.4 to bootstrap and will provide a way to bootstrap the jdk on
amd64 and sparc64 when kaffe runs there.
- fix a keyboard entry problem when numlock is on
- fixup socket option code similar to FreeBSD & NetBSD
2006-04-28 20:56:15 +00:00
kurt
d20d578fd8 Update to patchset 3. Patchset 3 includes several bug fixes that improve
compatiabily and stability which came from work sponsored by the FreeBSD
Foundation.
2006-04-11 00:45:41 +00:00
sturm
645edfce2d fix build with systrace 2006-04-01 13:58:49 +00:00
kurt
bc308600a9 add sparc to ONLY_FOR_ARCHS for ports with MODJAVA_VER=1.3/1.3+ 2006-03-20 14:42:37 +00:00
kurt
107e7546a3 - enter 1.3.1 on sparc. due to the small datasize ulimit on sparc -Xmx60
is about as high as you can go. tomcat v4 and demos work but a bit slowly.
2006-03-20 14:40:24 +00:00
kurt
225683f4ff - don't mmap on top of malloc'ed memory. this fixes a large memory leak
while creating/destroying threads.
- add missing pthread_attr_destroy while creating threads. closes a
small memory leak.

Memory leaking problems reported by Carsten Raskgaard and also
David SH Rosenthal from the LOCKSS project.
2006-03-16 16:09:01 +00:00
kurt
1fe7cb2239 stablity fix for os_sleep. patchset 2 introduced a buggy version of
os_sleep based on nanosleep(). revert to patchset 1 version based on
poll(). fixes issues with large sleep values. okay pvalchev@
2006-02-22 22:52:44 +00:00
david
9e2fccfe54 typo in DESCR; bump PKGNAME; ok kurt@ 2006-02-16 05:46:21 +00:00
kurt
f4b38ea4b0 remove HAVE_DPS from MAKE_ENV. It appears that the build was ignoring it
since it wasn't in WANTLIB, but bump pkg anyway.
2006-02-01 01:06:40 +00:00
kurt
c421027c71 Don't build with HAVE_DPS now that it is gone. Also remove dps from
WANTLIB. noticed by and okay naddy@
2006-02-01 01:04:29 +00:00
kurt
e7551ce9e3 jlong isn't defined in all cases java_md.h is included. how did this
slip by me?
2006-01-23 05:49:50 +00:00
kurt
88736cd656 - fix a series of datatype assumptions in i486/hotspot (intptr_t != int
on OpenBSD)
- fix implicit declaration's by adding headers or prototypes as needed.
2006-01-22 22:46:30 +00:00
kurt
75b6e7ae64 don't try to enable kern.emul.linux sysctl for FLAVOR=native_bootstrap.
braino from last commit. noticed by Matthias Killian.
2006-01-19 22:02:48 +00:00
kurt
4768d88a57 remove conflicting read() prototype and correct conflicting prototypes for
sysSendTo and sysRecvFrom. unbreaks build.
2006-01-18 15:12:55 +00:00
kurt
7a27922713 - recent w^x changes combined with random malloc/mmap exposed a previously
undiscovered bug in the SignatureHandlerLibrary. Code generated at runtime
was put into malloc()'ed memory and later attempted to execute it without
first making it executable with mprotect(). Debugging suggestions and help
from tom@, weingart@, marc@, millert@. Thx!
- make sure linux emulation is on for the build phase. needed if you reboot
after extracting.

okay tom@
2006-01-18 15:08:16 +00:00
millert
be2c89c95d No need to protect the type-correct prototypes with #ifdef _LP64
Fixes problems caused by types changes.  OK kurt@
2006-01-17 14:28:19 +00:00
kurt
bf8f82ebbc Disable Junk malloc option for java. java mprotects portions of the thread
stack. When forking, the child process deallocates the threads stacks it
inheritated from the parent. The junk malloc option then attempts to write
to the deallocated memory and segfaults because its not all writable. The
child proc stays in a SIGSEGV loop when this happens.  okay ian@
2006-01-02 03:48:40 +00:00
kurt
56509860b6 - fix build for systems with > 2G physical memory (signed int value was
assigned to uint64).
- set some fall-back max-memory values to reasonable values for OpenBSD.
Problem reported and update tested by Douglas Santos.
2005-11-30 02:21:32 +00:00
kurt
a174f4d822 - add plugin and javaws support. disable with no_web flavor.
Demos all work but deadlocking the vm under load has been
noted. Both MToolkit and XToolkit work ok so far.
- fix segfault with MToolkit where processTree was called
with to==NULL.
- fix NPE in plugin paintGrayBox where g==null
- fix javaws startup (from FreeBSD)
- forgot to mention in last commit: Forte Peformance Tools
collector is no longer disabled.
2005-11-23 19:39:13 +00:00
kurt
d616aeb0d0 forgot to bump pkgname in last commit 2005-11-22 14:48:07 +00:00
kurt
7f5e5f0bdf - update to patchset 2. mostly removing patches now included in patchset.
- link awt_robot with -pthread
- disable a runtime Motif version check that incorrectly thought we were
using Motif 1.2 based on Xm major version. problem reported by Laurence
Tratt
- plugin and webstart comming later
2005-11-22 14:43:05 +00:00
kurt
13dc22b0d1 libc is not explicitly linked into jvm shlibs, so using RTLD_NEXT to find
a symbol in libc won't work. dlopen libc and find it directly.
2005-10-21 22:36:30 +00:00