Commit Graph

200 Commits

Author SHA1 Message Date
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
sturm
0136620a75 sync distfile
as this is the only port, where we have a versioned distfile in
systrace.policy AND this jdk is EOL, there is no need for a generic
solution

discussed with and ok kurt@
2005-10-01 12:16:47 +00:00
kurt
2b1ffc1eb7 update to 1.3.1_16 from steven mestdagh <steven.mestdagh@esat.kuleuven.be> 2005-09-22 16:17:15 +00:00
espie
0031945c6e Fix a buglet in bsd.port.mk where the PSEUDO_FLAVORS get encoded into
the FULLPKGPATH, thus providing changes to packing-lists which shouldn't
happen, and making update more difficult.

Accordingly, bump all pkgnames with PSEUDO_FLAVORS, and provide an
update @pkgpath for the bug for most of them (left out the ones with 3
or 4 pseudo flavors for space constraints...)
2005-09-16 09:51:25 +00:00
kurt
3a793e5c14 fix old zlib vuln http://www.zlib.net/advisory-2002-03-11.txt and
other bug fixes from the 1.5.0 jdk src.
2005-08-10 22:36:26 +00:00
kurt
afc1343d11 Add PREFIX/lib to the default java.library.path. Noticed, testing and
okay by ian@
2005-08-09 04:38:01 +00:00
kurt
c8dadd3e62 - enable 1.3 on arm 2005-07-14 17:29:58 +00:00
kurt
36e37cb41e - enable arm archs
- fix up arm/green thread patches (kurt/dale)
- remove unused native thread patches
- fix WANTLIB

okay drahn@
2005-07-14 17:29:08 +00:00
kurt
e94d72bb53 - fix linux 1.3.1 jdk pkgspec 2005-06-17 15:37:33 +00:00
kurt
7ddb5ebf43 - add java MODULE to handle some commmon java port issues
- Based on the MODJAVA_VER, MODJAVA_JRERUN, NO_BUILD
  and MACHINE_ARCH, the following things will be setup:
    ONLY_FOR_ARCHS if not already set.
    BUILD_DEPENDS on a jdk (native preferred).
    JAVA_HOME to pass on to the port build.
    RUN_DEPENDS for all jdk's and jre's that can run the port.

Review and feedback nikolay@, ian@.
2005-06-17 14:59:27 +00:00
kurt
b26c325c98 rename patch > 100 chars to shorter name. fixes tar of ports tree.
noticed by theo.
2005-06-16 14:47:48 +00:00
espie
36c389c5cc yet another typo... 2005-06-14 20:10:58 +00:00
kurt
31adc626ed - Ensure that when files are extracted that their fully resolved path lies
in or below the current working directory.  Fixes a security problem with
jar. From FreeBSD.
2005-06-04 15:47:53 +00:00
kurt
7d765564c2 - Ensure that when files are extracted that their fully resolved path lies
in or below the current working directory.  Fixes a security problem with
  jar. From FreeBSD.
- Fix timezone issues. Allow /etc/localtime to be a symlink and fix the case
  where /etc/localtime points to a tz that the jdk doesn't know about.
- timezone is a function on BSD, not a variable, so move the timezone
  == 0 check to the non-BSD section. from millert@
2005-06-03 20:36:07 +00:00
kurt
bda3767814 remove zero length files missed in last commit 2005-06-03 17:55:47 +00:00
kurt
683c76d57c - Add support for powerpc. With some tips from tedu@ and drahn@, thanks!
- Change bootstrap method. No longer use 1.3-linux port to bootstrap.
  Use class files from a linux binary jdk and extra source and header
  files from my website.
- Remove plugin support. plugin has security issues and doesn't work
  with recent mozilla/firefox versions.
- Patches for arm native-threads are included but not enabled yet.
  I prefer to have all arches use green-threads to avoid arch specific
  pkg files. Also noticed some regressions with native-threads on i386.
  arm support from Dale Rahn (drahn@).
- quiet pre-patch phase

okay ian@
2005-06-03 17:27:53 +00:00
kurt
56f5b6a11c timezone is a function on BSD, not a variable, so move the timezone
== 0 check to the non-BSD section. from millert@

no funtional change, so no PKGNAME bump
2005-06-02 18:18:15 +00:00
espie
66b1717b38 tsk, tsk, distibution 2005-05-27 09:34:00 +00:00
kurt
55254799c8 + 1.5 2005-05-25 17:29:01 +00:00
kurt
599fca9561 initial import of 1.5 2005-05-25 17:27:53 +00:00
kurt
48f713b65f quiet the pre-patch phase 2005-05-24 22:02:47 +00:00
kurt
aad015c882 - add missing -pthread to java_vm. From niklas@.
- add missing -pthread to awt_robot, libjavaplugin_oji.so.
- fix misc timezone issues
- bump PKGNAME
2005-04-19 14:35:56 +00:00
db
0925c3a284 typo and wording fixes; approved by pval
ok mbalmer@ "that diff was fun to read"
2005-03-15 01:57:02 +00:00
sturm
6313a1dba0 build with systrace 2005-02-20 11:18:55 +00:00
sturm
3a51ccb48b add $OpenBSD$ tag 2005-02-09 20:36:29 +00:00
sturm
91d5b61cdd build with systrace 2005-02-06 22:06:34 +00:00
kurt
a53e8bb58b - teach jdk about /usr/local/lib
- teach ClassLoader how to load native libs with version numbers
- fix writes to HOME complaints
- point license URL to license itself
- fix timezone problem noticed by Roy Morris
- bump package name

ok alek@
2005-02-04 17:06:45 +00:00
naddy
3f04f8f321 SIZE 2005-01-05 16:22:24 +00:00
kurt
4e38e89a1b Add URL to jdk archive. ok pval@ 2004-12-28 16:23:59 +00:00
sturm
574ea67282 trivial update to 1.3.1_15 2004-12-25 19:23:25 +00:00
kurt
5339a096a6 - 1.4-linux 2004-12-22 02:05:39 +00:00
kurt
7077797dfd Won't ever work unless compat linux gets kernel threads emulation.
ok msf@, kevlo@
2004-12-22 02:04:41 +00:00
kurt
ebb6900dd2 +1.4 2004-12-21 04:02:57 +00:00
kurt
9a7dc09e56 - Initial import of jdk-1.4.2
Version 1.4.2 of Java 2 Platform, Standard Edition (J2SE)

with help from many; ok naddy@ espie@
2004-12-21 04:01:05 +00:00
kurt
57d4d1656b Set default FLAVOR to no_plugin and mark !no_plugin as BROKEN until
Security Vulnerability With Java Plug-in in JRE/SDK (SunSolve #57591)
is fixed.
2004-12-17 18:22:48 +00:00
espie
e2e843199a some more WANTLIB 2004-11-23 21:34:27 +00:00
alek
9285bdc4ed Use @sysctl
ok espie@
2004-11-09 14:48:25 +00:00
danh
c902aefaa6 second sweep for MESSAGE decoration removal; ok espie@ 2004-10-13 20:28:01 +00:00
danh
6362fb0bc7 initial sweep for MESSAGE decoration removal; ok espie@ 2004-10-13 18:59:18 +00:00
naddy
4efcc99722 - Stop installing man pages in man dirs. Use @mandir instead to avoid
conflicts with JRE and future JDKs.
- Add flavor descriptions to DESCR*.
- Add missing lib depend via MODULES devel/gettext.
- Comment the native_threads dir creation that was added in a recent commit.

From: Kurt Miller <truk@optonline.net>
2004-10-12 20:46:22 +00:00
sturm
29b772b57b update to 1.3.1_13 2004-10-03 14:33:53 +00:00
espie
45cfc49a9c slipped 2004-09-26 11:19:08 +00:00
espie
ee7b7a460a still broken, update plist now that I've got the binary package. 2004-09-25 14:33:57 +00:00
pvalchev
a004d6b491 fix typo 2004-09-22 17:28:26 +00:00
espie
96b0043b84 new style conflicts 2004-09-18 10:55:03 +00:00
espie
f28f2a833d switch to new plist, killing a few install scripts along the way. 2004-09-14 23:43:54 +00:00
naddy
b70c06e601 We've grown dladdr(3), adapt. From: Kurt Miller <truk@optonline.net> 2004-08-14 21:50:38 +00:00
naddy
d605f3d348 Bump to 1.3.1_12; from Waldemar Brodkorb <wbx@openbsd.de>.
Regen plist.
2004-08-10 22:20:26 +00:00
xsa
93568351bb set BUILD_DEPENDS= ${RUN_DEPENDS} not the opposite .. for obvious
reasons... okay pvalchev@.
2004-06-26 07:35:05 +00:00
sturm
cbe7bc983c fix build on -current, from maintainer Kurt Miller <truk at optonline.net>
update NO_SYSTRACE comment
2004-06-02 15:23:20 +00:00
brad
095c483f42 remove obsolete 1.2 JVMs
ok Christian Edward Gruber
2004-05-05 05:03:14 +00:00
sturm
f494ab289f build with systrace enabled 2004-05-01 14:29:17 +00:00
sturm
887fc3e5a9 update to linux jdk 1.3.1_11
from maintainer Christian Edward Gruber <cgruber at israfil.net>
ok pval@
2004-03-10 17:09:16 +00:00
wilfried
7c450c645f better plugin-dirs, ok maintainer 2004-02-19 20:26:23 +00:00
sturm
afbbb3b0b9 no systrace for now if 1.3-linux jdk is used (extraction fails due to
systrace bug)
2004-02-04 09:17:37 +00:00
pvalchev
ad55c52b4c - fix 1.3-linux dependency (restrict to newest version)
- enable/reset linux emulation automagically ala the change to 1.3-linux
  (for when that's used for bootstrapping)
from maintainer Kurt Millert
2004-02-03 03:30:55 +00:00
wilfried
e988b58aca fix build conflict, from maintainer 2004-01-30 13:52:27 +00:00
pvalchev
fd7018ebec fix link to BSD patchset; reminded by wilfried 2004-01-29 22:17:09 +00:00
pvalchev
c2ced449fb + 1.3 2004-01-29 22:03:33 +00:00
pvalchev
52164fc27e Import of NATIVE jdk-1.3.1
The Java 2 SDK software includes tools useful for developing and 
testing programs written in the Java programming language and
running on the Java platform.

i386-only for now.
Requires manual registration/fetch of distfile from Sun due to
their restrictions.

From maintainer Kurt Miller <truk@optonline.net>
2004-01-29 22:02:18 +00:00
sturm
06a51fedaa emulation sysctl 2004-01-15 22:38:02 +00:00
espie
562d71fce5 Fix compile with gcc3 2003-12-31 17:18:16 +00:00
sturm
cb161ecf05 update to jdk 1.3.1-10
NO_SYSTRACE=Yes due to not recognizing the archive as a linux binary
2003-12-30 23:24:32 +00:00
naddy
2276d3b230 remove WWW lines 2003-12-15 21:42:08 +00:00
sturm
4fbc4707e7 help bootstrapping 1.3 native jdk by adding an empty OpenBSD.properties
file to tools.jar; the same was done in 1.2-blackdown back in the days

from Kurt Miller <truk at optonline dot net>
2003-12-15 17:16:45 +00:00
naddy
cba26e8fcf poll() prototype changed 2003-12-14 22:51:21 +00:00
naddy
f0785d3b44 Use FULLDISTDIR to refer to distribution file location.
From: Xavier Santolaria <xavier@santolaria.net>
2003-10-26 23:49:31 +00:00
brad
e8a1977a16 update to Sun JDK 1.3.1_09
ok naddy@
2003-08-24 20:57:26 +00:00
brad
c132b523a6 - relax pkgspec's a bit
- LIB_DEPENDS -> USE_MOTIF
- remove test target which does not seem to serve any purpose
--
ok MAINTAINER
2003-08-20 00:08:31 +00:00
brad
b493ffd6eb fix dependency registration so we don't have a bogus run-time dependency
on bzip2.
--
ok MAINTAINER
2003-08-20 00:04:06 +00:00