Commit graph

122 commits

Author SHA1 Message Date
Greg Lewis
2d42764d84 . Update to the latest set of root certificates that come with the JDK. 2010-07-25 07:10:52 +00:00
Greg Lewis
a2f8232d17 . Use OSVERSION rather than directly invoking 'sysctl kern.osreldate' to
determine whether sigignore(3) is supported or not.  This fixes the build
  for QAT and pointyhat (or in fact any jailed situation where the kernel
  and headers are not in sync).
2010-06-11 00:58:46 +00:00
Greg Lewis
1d5beef60f . Fix the build with recent xorg.
PR:		145756
Submitted by:	fluffy@
2010-04-20 02:55:16 +00:00
Greg Lewis
32891b2e60 . Attempt to fix the build for recent 8-STABLE and 9-CURRENT which have
sigignore(3).

Feature safe:	yes
2010-02-21 06:16:51 +00:00
Greg Lewis
739875a75c . Update to 1.5.0_16 and patchset 9. 2009-03-09 20:18:28 +00:00
Greg Lewis
64f95ae234 . Fix a security hole in the Calendar class which allows the elevation of
permissions within the Java security model.

  http://sunsolve.sun.com/search/document.do?assetkey=1-26-244991-1

Submitted by:	Kurt Miller <kurt@intricatesoftware.com>
Obtained from:	OpenBSD
2009-03-05 05:37:21 +00:00
Martin Wilke
3e4ed01146 - Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+

Thanks to all Helpers:
	Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
	ehaupt, nox, itetcu, flz, pav

PR:		116263
Tested on:	pointyhat
Approved by:	portmgr (pav)
2008-04-19 17:56:05 +00:00
Greg Lewis
e10a9be8a7 . Fix build by correctly setting the arch on recent FreeBSD/pc98 versions.
PR:		121288
Submitted by:	NAKAJI Hiroyuki <nakaji@jp.freebsd.org>
2008-04-02 13:55:24 +00:00
Greg Lewis
3a144c14ed . Update to 1.5.0_14 and patchset 8.
. Allow bootstrapping with jdk 1.6.
2008-02-14 16:30:24 +00:00
Greg Lewis
920e8b7f80 . Install the PKCS#11 JAR and build and install the PKCS#11 native library.
Prompted by:	ale, Havard Eidnes <he@uninett.no>
2008-01-14 06:08:08 +00:00
Greg Lewis
b787f9f6b1 . Implement OpenFileDescriptorCount for BSD. This requires fdescfs.
PR:		118735
2008-01-12 23:24:57 +00:00
Greg Lewis
898de35926 . Implement or fix more of the OS specific statistics gathering functions.
This allows jconsole to show valid statistics for the following
  OperatingSystem MBean statistics (some of these statistics are also shown
  in the Summary and VM tab of jconsole):

  TotalSwapSpaceSize, FreeSwapSpaceSize, FreePhysicalMemorySize and
  TotalPhysicalMemorySize.

  Note that MaxFileDescriptorCount has always been correct as far as I
  can tell.
. Also, implement the function for ProcessCpuTime using a non-deprecated
  function (getrusage(2) rather than times(3)).

  These changes are restricted to 6.x and higher and have only been tested
  on 6.x (where they appear to work correctly).  The changes are not valid
  for 4.x.  Their validity on 5.x and 7.x is unknown (testing welcome).

  The PR is not fully addressed by these changes since
  CommittedVirtualMemorySize and OpenFileDescriptorCount remain bogus.
  Suggestions on how to get these without using kvm(3) would be appreciated.

PR:		118735
2008-01-01 16:49:11 +00:00
Greg Lewis
911a2d991e . Update to patchset 7, based on 1.5.0 Update 13. 2007-10-23 19:56:23 +00:00
Greg Lewis
260ffa12c0 . Default UseThreadPriorities to false on BSD. This can be toggled by
passing -XX:+UseThreadPriorities.
. Remove the os_sleep hack which was used on FreeBSD to make sure lower
  priority threads got time slices.  Instead, just call pthread_yield().
  On FreeBSD 7.x with libthr, this will still give lower priority threads
  some time (with the above flag turned on), although such behaviour is
  not guaranteed by POSIX.  This boosts FreeBSD performance by 7-fold on
  an 8 core system, putting it on a par with Solaris (benchmarks by kris@).

  The Java standard and the JCK tests are somewhat contradictory on thread
  priority being guaranteed to work, and in this case the performance
  benefits appear to outweigh any possible side effects.
. Pick up DEFAULT_LD_LIBRARY_PATH from the build environment rather than
  patching it into a file at build time.  This simplifies the Makefile.

Submitted by:	Kurt Miller <kurt@intricatesoftware.com>
2007-09-20 03:35:30 +00:00
Greg Lewis
8d991a0856 . Split the JRL agreement out into a separate script that is only run
during the port build and not during the package install.

Requested by:	kris
2007-08-13 04:57:47 +00:00
Greg Lewis
61f99d643a . Better fix. Just use 'short' variables and be done with it. The
structure members being dereferenced into the variables are 'short*'
  after all, not 'fastInt*'.
2007-07-31 15:52:31 +00:00
Greg Lewis
dd3f6ed6e3 . Include a different header file for 'fastInt'. The definition in Hint.h
appears to actually match the type of variable its being used with in the
  code (although it seems that it may be even cleaner to just replace 'fastInt'
  with 'short').

  This also partially bandaids a build problem some are seeing since Hint.h
  is a less common header file name than cpu.h.
2007-07-31 07:22:49 +00:00
Jung-uk Kim
aef79f3a9b Add browser plugin support for amd64. It is turned off by default as it is
still experimental.

Approved by:	glewis (maintainer)
2007-07-30 15:30:36 +00:00
Greg Lewis
a4adb6665f . Update to patchset 6, based on 1.5.0 Update 12.
. Use the -bc (backwards compatible) flag when doing time zone updates.
2007-07-27 03:48:46 +00:00
Greg Lewis
01790521d1 . Update to patchset 5, based on the 1.5.0_11 JRL source code. 2007-06-09 05:14:56 +00:00
Jung-uk Kim
8982638840 Fix more sysctl(3) argument sizes and correct a comment.
Approved by:	glewis (implicit)
2007-05-30 21:36:23 +00:00
Jung-uk Kim
7446ea7a70 Various fixes for -CURRENT.
- Build fixes after GCC 4.2 import.
- Remove SIGRTMIN and SIGRTMAX redefinitions.
- Use posix_memalign(3) instead of valloc(3).

Approved by:	glewis (maintainer)
2007-05-25 18:44:27 +00:00
Greg Lewis
d9924e7b58 . Don't statically link with libXm any more. The Open Motif port no longer
uses hacks to compile libXm.a with PIC objects, which means trying to
  statically link with it breaks the build on amd64.
2007-03-06 04:34:38 +00:00
Greg Lewis
2234164093 . Update to patchset 4. 2007-01-22 16:50:22 +00:00
Greg Lewis
e647c3eab4 All we are saying is give gcc 4.x a chance.
Prompted by:	pointyhat (via kris)
2007-01-10 17:36:56 +00:00
Greg Lewis
1bb6af069e . Replace some hardwired /usr/X11R6 instances with X11BASE. [1]
. Replace some hardwired /usr/local instances with LOCALBASE.
. Small Makefile restructure to keep related variables in one place.
. Add ipv6 to CATEGORIES if its enabled. [2]

PR:             106130 [2]
Submitted by:   Janos Mohacsi <janos.mohacsi@bsd.hu> [2]
Pointed out by: pointyhat (via kris) [1]
2006-12-11 17:10:52 +00:00
Greg Lewis
47f62ec7e7 . Fix a problem with os_sleep returning early without raising an exception
when its called with interruptible set to false.

Submitted by:	Kurt Miller <kurt@intricatesoftware.com>
2006-11-06 19:54:00 +00:00
Greg Lewis
f970203bc1 . Fix a possible problem building the JDK in the GMT+0 time zone. When
building, the JDK zone info file doesn't exist yet, so attempting to
  get the zone info for GMT_ID would fail.

Submitted by:	Kurt Miller <kurt@intricatesoftware.com>
2006-11-06 19:51:16 +00:00
Joe Marcus Clarke
29747f458a Chase the GNOME X11BASE to LOCALBASE move, and fix the build with the
new freetype2 where needed.

Submitted by:	mezz, ahze, pav, and many others
Approved by:	portmgr (implicit, kris)
2006-10-14 08:54:54 +00:00
Greg Lewis
6a41bf13e8 . 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.

  PR not closed as this fixes jdk15, not diablo-jdk15.

PR:		102888
2006-09-09 02:10:02 +00:00
Greg Lewis
44bf342005 . Fix a segfault caused by fonts with illegal glyph names or glyph names
which begin with an underscore (although the patch doesn't handle these).
. Bump PORTREVISION.

Submitted by:	 Kurt Miller <kurt@intricatesoftware.com>
2006-08-01 18:38:25 +00:00
Greg Lewis
3e2f072bb5 . On amd64 the plugin should look for the Server VM, since there is no
Client VM.

Submitted by:	Kurt Miller <kurt@intricatesoftware.com>
2006-07-18 23:23:02 +00:00
Greg Lewis
c9d5a55e98 . Properly deal with error cases in transferTo0().
Corrects non-blocking IO case.

Submitted by:	Kurt Miller <kurt@intricatesoftware.com>
Sponsored by:	The FreeBSD Foundation
2006-07-18 23:20:26 +00:00
Greg Lewis
7084328334 . Work around a thread cache problem that caused javah to crash with an
Internal Error.

Submitted by:	Kurt Miller <kurt@intricatesoftware.com>
Sponsored by:	The FreeBSD Foundation
2006-06-16 21:29:53 +00:00
Greg Lewis
0c6e853af1 . Filter out corrupt environment variables with no name.
Submitted by:	Kurt Miller <kurt@intricatesoftware.com>
Sponsored by:	The FreeBSD Foundation
2006-06-16 21:28:08 +00:00
Greg Lewis
571b574f00 . Increase the default stack size on amd64.
Submitted by:	Kurt Miller <kurt@intricatesoftware.com>
Sponsored by:	The FreeBSD Foundation
2006-06-16 21:26:38 +00:00
Greg Lewis
f7bfa59dad . Fix key recognition problems when NumLock is on.
PR:		85997
Submitted by:	Kurt Miller <lists@intricatesoftware.com>
2006-04-25 20:10:19 +00:00
Greg Lewis
e81e856fc6 . Update to 1.5.0 patchset 3. 2006-04-07 03:27:34 +00:00
Greg Lewis
bc1fa829db . Set the REX bits correctly on amd64. Fixes possible segfaults with
Eclipse on that platform.

  See https://bugs.eclipse.org/bugs/show_bug.cgi?id=71987

. Bump PORTREVISION.

Submitted by:	Sean McNeil <sean@mcneil.com>
2006-02-12 20:47:21 +00:00
Greg Lewis
1fd0bf2541 . Tweak the fix for linking with the system's version of zlib to just
ignore the internal zlib source files rather than having to rm them.

Submitted by:	Kurt Miller <kurt@intricatesoftware.com>
2006-02-12 20:45:18 +00:00
Greg Lewis
25e9cfb388 . Enable parallel compilation during the build of HotSpot. Note that we
can't use -j in general since the build of the other bits is almost
  certainly not -j safe.  If set, this will speed up the build for those
  with an SMP box. [1]
. Install the cacerts file from Sun's JDK 1.5.0_06 release rather than
  using the almost empty one that comes with the SCSL source. [2]
. Bump PORTREVISION for the second change.

PR:		87552 [1]
Submitted by:	leafy <leafy@leafy.idv.tw> [1]
Prompted by:	Panagiotis Astithas <past@ebs.gr> [2]
2006-02-02 16:27:44 +00:00
Greg Lewis
b80b742e3f . Install a desktop icon for the java/jdk15 Control Panel. [1]
. Bump PORTREVISION for this and (mostly) the previous change.

PR:		86804
Submitted by:	Panagiotis Astithas <past@ebs.gr>
2006-01-29 21:24:59 +00:00
Greg Lewis
5817b9bf96 . Link with the system libz instead of building the our own internal
copy.  This should have the following effects:

  . Fix problems experienced by programmes that dynamically create their
    own copy of the JVM and are linked against the system's zlib (e.g.,
    eclipse).
  . Reduce the potential for zlib based security problems affecting the
    JDK.

Submitted by:	mi@
2006-01-28 23:41:24 +00:00
Greg Lewis
984e5bbcac . Add $FreeBSD$. 2005-12-03 05:27:55 +00:00
Greg Lewis
6f57346425 . "Privatise" the symbols in libzip.so to avoid conflicting with those
in the systems libz.so.  This conflict broke applications such as
  Eclipse which is linked with libz.so (via gtk+ I believe).

  This is a slightly modified version of the submitter's patch.

  A better solution may be to link with the system's libz.so and remove
  the JDK's internal zlib code altogether, but I'd like to test that a
  little more first.  Until then this solves the problem.
. Bump PORTREVISION since Eclipse seems to be quite widely used.

Submitted by:	"Arno J. Klaassen" <arno@heho.snv.jussieu.fr>
2005-12-02 22:24:01 +00:00
Greg Lewis
b3ca7b8d1b . The patch to use getaddrinfo() #ifdef'ed out too much code. Change that
to isReachable() is still available (fixes some JCK tests).

Submitted by:	Christos Zoulas
2005-12-02 22:17:15 +00:00
Greg Lewis
e71c85a662 . Add $FreeBSD$. 2005-11-23 21:16:56 +00:00
Greg Lewis
e141d58fe8 . Make pkg-install install a symbolic link for the browser plugin if a
valid one doesn't currently exist.
. Add a pkg-deinstall which removes the symbolic link if this port owns it.
. Produce pkg-install and pkg-deinstall with SUB_FILES and SUB_LIST rather
  than manually using ${SED} ourselves.

Approved by:	maintainer timeout
2005-11-23 10:12:33 +00:00
Greg Lewis
7768284774 . Switch to using XToolkit by default. According to
http://java.sun.com/j2se/1.5.0/docs/guide/awt/1.5/xawt.html

  it has some advantages over XToolkit.  Its also the default on Linux
  and Solaris will be switching to it.  Some people have reported that
  it fixes a crash in the browser plugin for them.

  Please let me know straight away if this causes problems, particularly
  with Swing, as it hasn't been extensively tested.  The web page
  mentioned above explains how to switch the toolkits dynamically so you
  can compare them.

Submitted by:	Huang wen hui <hwh@gddsn.org.cn>
                (the awt_LoadLibrary.c patch)
Approved by:	phantom (maintainer)
2005-10-13 15:18:25 +00:00
Greg Lewis
03fdfe46e6 . Fix javaws.
Approved by:	phantom (maintainer)
2005-10-13 15:12:26 +00:00