Commit Graph

167 Commits

Author SHA1 Message Date
Greg Lewis
30d270a334 . Update to tzupdater 1.3.5. This patch is based on that submitted in the
PR but also fixes the path to tzupdater and bumps PORTREVISION.

PR:		123189
Submitted by:	Greg Larkin
2008-05-06 06:05:39 +00:00
Martin Wilke
8776c921c7 - Fix patch reject after xorg cleanup
Submitted by:	pointyhat via pav
2008-04-25 23:15:13 +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
53c68e35c6 . Update to tzupdater 1.3.3. 2008-01-13 04:48:37 +00:00
Greg Lewis
cd96d8f0fb . Update to tzupdater 1.3.0 to fix the default build (the previous version
of tzupdater is no longer available).

Approved by:	portmgr (linimon)
2007-11-15 17:45:00 +00:00
Greg Lewis
8ba89d398a . Explicitly pull in X dependencies instead of depending on the open-motif
dependency to implicitly pull in the X libraries we need.

Requested by:	linimon
2007-10-11 02:18:15 +00:00
Greg Lewis
e536dbe496 . Update to tzupdater 1.2.2. 2007-09-07 06:42:55 +00:00
Greg Lewis
53ea106755 . Mark this as BROKEN for gcc 4.2. The HotSpot C++ code needs some work
to be made gcc 4.2 compliant.
2007-09-02 06:00:00 +00:00
Greg Lewis
569945787d . More respect for ${CC}, ${CXX} and ${CPP}.
Submitted by:	truckman@
2007-06-06 15:54:28 +00:00
Greg Lewis
b700222ac1 . Update to tzupdater 1.2.1.
PR:	113248
2007-06-03 00:42:33 +00:00
Greg Lewis
7c85d54ee8 . Make it so we include Xm/XmIm.h rather than defining our own prototype.
Fixes a build error due to the prototype being defined not matching
  the actual function.

Approved by:	portmgr (pav)
2007-05-22 16:21:27 +00:00
Florent Thoumie
d4f0d0048a - Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
2007-05-19 20:36:56 +00:00
Greg Lewis
eea3879a0a . Add JAIL as an option, the Makefile already supported it as an
environment variable.

PR:		110049
2007-03-08 05:18:45 +00:00
Greg Lewis
9a9c9f526e . Update to tzupdater 1.1.0-2007c.
. Clean up old zoneinfo files after tzupdater has run.
2007-03-07 16:30:42 +00:00
Greg Lewis
ce95857bda . Add a TZUPDATE option, defaulting to on, which will update the time zone
data for the JDK using Sun's tzupdater. [1]
. Some simplification of the convoluted logic around telling the user
  which files to download.  In particular, don't care if we've already
  told them to download a file.
. Bump PORTREVISION since many North American users will need to pick up
  the time zone changes.

Collaboration with:	Tim Zingelman <zingelman@fnal.gov> [1]
2007-02-26 00:21:36 +00:00
Greg Lewis
4da04f5537 . Replace some hardwired /usr/X11R6 instances with X11BASE. [1]
. Small Makefile restructure to keep related variables in one place.
. Trim the ancient bootstrapping options.
. Add ipv6 to CATEGORIES if its enabled. [2]

PR:		106129 [2]
Submitted by:	Janos Mohacsi <janos.mohacsi@bsd.hu> [2]
Pointed out by:	pointyhat (via kris) [1]
2006-12-08 22:36:16 +00:00
Greg Lewis
4d0131162b . The IPV6_ONLY option is unnecessary as IPV6_V6ONLY is defined in
/usr/include/netinet6/in6.h.

Submitted by:	ume@
2006-10-09 16:35:29 +00:00
Greg Lewis
8531c78c89 . Add support for installing the JCE policy files. [1]
. OPTIONify. [1]
. Add a knob for IPV6_V6ONLY.
. Bump PORTREVISION.

PR:		103920
Submitted by:	lioux@
2006-10-08 19:22:19 +00:00
Greg Lewis
fd5786fbc7 . Add a patch to support IPv6 only operation.
(Makefile knob to follow)

PR:		92620
Submitted by:	ume@
2006-10-08 19:20:28 +00:00
Greg Lewis
1b22c4bb6e . Use a mutex to make the resolver functions thread safe on FreeBSD 4.x
(they are already thread safe on FreeBSD 5+).

Submitted by:	Arne Juul <arnej@europe.yahoo-inc.com>
2006-10-08 19:14:41 +00:00
Edwin Groothuis
8f4ccb0a04 Remove USE_REINPLACE from categories starting with a J 2006-05-09 00:18:07 +00:00
Mark Linimon
cdda1e9d10 Reassign these ports from inactive maintainer to glewis, who has been doing
most of the work over the past year.

Hat:	portmgr
2006-03-31 08:47:17 +00:00
Greg Lewis
5954b07aaa . 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.

  This is similar to the patch in the PR, but was actually backported from
  the patches for the jdk15 port, so its a touch different.

PR:		92459
2006-02-12 00:28:23 +00:00
Greg Lewis
c59b2ea8a8 . Update to patchset 8. 2006-01-20 16:39:05 +00:00
Dirk Meyer
b30917b04a - fix build in JAILS
failed to build the jdk14 port in a jail under FreeBSD 5.4
FreeBSD 4.11 works.

The problem is that mount don't list the linprocfs,
and this make the selfcheck fail.

maintainer emailed:
So  6 Nov 2005 11:21:20 CET

Approved by:	(maintainer timeout)
2006-01-07 09:33:41 +00:00
Greg Lewis
6f887ea63e . Tell the user all the files they will need up front, instead of telling
lies about what they have and prompting them one file at a time.  This
  is a slight rewording of the submitted patch.

PR:		84644
Submitted by:	fenner
2005-12-14 16:52:32 +00:00
Greg Lewis
2481baa02d . 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-25 03:39:42 +00:00
Greg Lewis
44d3f3ea41 . Add SHA256. 2005-11-23 16:50:01 +00:00
Greg Lewis
ee62db26fb . Fix javaws.
. Bump PORTREVISION.

PR:		81176
Submitted by:	"Thomas M. Hermann" <__tmh@yahoo.com>
2005-10-13 15:09:11 +00:00
Greg Lewis
aac4424426 . Use ${PTHREAD_LIBS} when compiling the testos programme rather than
inventing our own version.

Approved by:	phantom (maintainer)
2005-09-03 21:13:49 +00:00
Greg Lewis
0be8478644 . 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(1).

  This fix may change to be compatible with whatever fix Sun applies when
  they release a fixed version of 1.5.
. Bump PORTREVISION for this fix.

Approved by:	maintainer timeout
Security: http://vuxml.FreeBSD.org/18e5428f-ae7c-11d9-837d-000e0c2e438a.html
2005-05-11 21:18:39 +00:00
Greg Lewis
7db17950b3 . Fix various problems with time zone handling including:
. /etc/localtime is a symlink.
  . /etc/localtime contains a time zone not recognised by the JDK.

Submitted by:	Kurt Miller <truk@optonline.net>
2005-04-18 17:56:04 +00:00
Greg Lewis
9606aa53d0 . Unbreak the packing list by adding explicit PLIST_FILES/PLIST_DIRS for
files that are generated by the post-install script (which runs after
  the dynamic packing list has been generated).

Approved by:	portmgr (krion), phantom (maintainer)
2005-03-30 15:45:52 +00:00
Greg Lewis
8feb88e6e0 . Move the invocation of unregistervm to the top of the packing list.
This ensures that this command is run before the files in the package
  are deleted (which is necessary for it to correctly delete the symbolic
  links created by registervm).

Approved by:	phantom (maintainer)
2005-02-18 17:21:52 +00:00
Alexey Zelkin
994fbfdfa0 Add support for picking up of motif includes and libraries via newly
added open-motif-jdk port.  It's controlled via WITH_OPENMOTIF_JDK
knob and currently disabled by default (it still requires additional
testing and checking)
2005-01-31 16:47:37 +00:00
Alexey Zelkin
1c39d32f2f Unbreak plist generation 2005-01-29 12:19:15 +00:00
Alexey Zelkin
02c5218a23 Remove unused file 2005-01-14 15:53:08 +00:00
Alexey Zelkin
61c7543378 Autogenerate PLIST while installing 2005-01-14 15:50:22 +00:00
Alexey Zelkin
cb68bbb306 Do not remove /usr/local/share/doc/java on uninstall.
Submitted by:	pointyhat via kris
2005-01-12 23:14:38 +00:00
Greg Lewis
ec588aa1f9 . Avoid a problem where, without linprocfs mounted, the first line of
a generated file will be overwritten with a warning, causing the
  build to fail.  There is a check for linprocfs in pre-build, but it
  seems as though this problem can somehow trigger anyway, based on
  semi-regular reports to the mailing lists.

PR:		74999
Approved by:	phantom
2004-12-17 07:08:59 +00:00
Greg Lewis
55f5e15a50 . Update to patchset 7.
. Fix a permissions problem with the plugins directory.

Approved by:	phantom (maintainer)
2004-12-17 07:02:51 +00:00
Greg Lewis
008ccf15cd . Backport parts of the 1.5 plugin to address plugin vulnerabilities.
. Bump PORTVERSION.

Submitted by:	Kurt Miller <truk@optonline.net>
2004-12-03 19:53:44 +00:00
Greg Lewis
9b1f3ccd02 . Mark FORBIDDEN when building with the browser plugin due to the
vulnerabilities discussed in:

  http://sunsolve.sun.com/search/document.do?assetkey=1-26-57591-1
  http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-1029
2004-11-24 15:16:38 +00:00
Greg Lewis
1816314216 . Take into account that pthread_mutex_trylock() can return EDEADLK as
well as EBUSY with libkse on FreeBSD 5.x.

Inspired by:	green
2004-11-02 05:24:05 +00:00
Brian Feldman
52602010f0 The BSD patchset for the Sun JDK modeled its thread behavior mostly after
existing the Solaris base, and similarly to what happened with NSPR, made
a bad assumption on undefined behavior.  This broke locking in various
places in Java, for example, causing the the debugging support to be
totally broken.  It is worth someone who knows the Java codebase taking
a look to see what other things could have been broken by this on
FreeBSD 5.x+.

The assumption is that pthread_mutex_trylock(3) on a default-type
mutex will fail with EBUSY.  This assumption is wrong for our
libpthread, which returns EDEADLK if the owner thread is trying to
acquire the mutex again with trylock.  The behavior of performing a
locking operation on a self-locked default-type mutex is explicitly
undefined for pthread_mutex_lock(3).

The POSIX specification is still not very clear.  It defines
pthread_mutex_trylock(3) in terms of pthread_mutex_lock(3) yet
does not say what the defined behavior should be for a self-locked
pthread_mutex_trylock(3) for any of the various mutex types, so it is
ambiguous whether the result is clearly undefined or clearly to return
EBUSY.

It is a one line change whether or not to make libpthread return
EDEADLK in this case, where it seems that most implementations do not.

Reference:	http://www.opengroup.org/onlinepubs/009695399/functions/pthread_mutex_lock.html
2004-10-20 23:22:56 +00:00
Greg Lewis
c8e6445d77 . Bump PORTREVISION for the recent fixes. 2004-10-16 17:17:09 +00:00
Greg Lewis
7298661664 . Fix the Server VM for gcc 3.4 part 2/2.
The HotSpot code (ab)uses named enums as ints in a number of places.
  The problem with this is that according the the C++ spec, the compiler
  (essentially) only needs to use an integral type wide enough to hold
  the values defined in the enum.  Earlier versions of gcc appear to have
  just used an int whether they could have got away with a narrower type
  or not, hence the code worked as expected.  gcc 3.4 now appears to
  implement this part of the spec, so using an enum blindly as an int
  causes various problems due to overflow.

  In this case the enum, Bytecodes::Code, appears to be a genuine enum,
  its just assumed to be wide enough to hold an arbitrary int in various
  places in the code.  The correct fix would be to track down all those
  places in the code and fix them.  Since there are quite a lot of these
  places and 5.3 is close to release for now we just add a value to the
  enum set to INT_MAX, forcing the compiler to use at least an int for the
  type.

Sleuth work, discussion and code suggestions:	peadar
2004-10-16 17:16:40 +00:00
Greg Lewis
67fad41225 . Fix the Server VM for gcc 3.4 part 1/2.
The HotSpot code (ab)uses named enums as ints in a number of places.
  The problem with this is that according the the C++ spec, the compiler
  (essentially) only needs to use an integral type wide enough to hold
  the values defined in the enum.  Earlier versions of gcc appear to have
  just used an int whether they could have got away with a narrower type
  or not, hence the code worked as expected.  gcc 3.4 now appears to
  implement this part of the spec, so using an enum blindly as an int
  causes various problems due to overflow.

  This case is particularly bogus since the enums are merely to define
  a named integral type within a class (VMReg::Name doesn't even have
  any values enumerated in the declaration).  So, convert these two
  enums to simply be typedef'ed ints.

Sleuth work, discussion and code suggestions:	peadar
2004-10-16 17:12:22 +00:00
Greg Lewis
e3262fa4db . In the ReadChunk() function, change an assert() to be a "test for a
condition and return NULL".  Take account of the NULL in the
  appropriate place (which is somewhat worrisome in itself since
  ReadChunk() has always had the possibility of returning NULL).
  This makes loading a font file a little more resilient to specially
  crafted font data which can be used, for example, by an applet to
  crash the browser plugin by triggering the assert().  Such an applet
  was mentioned on Bugtraq:

  http://www.securityfocus.com/archive/1/367331/2004-06-26/2004-07-02/0

  and can be found at

  http://www.illegalaccess.org/cms/?q=node/view/9

  This change stops the browser plugin from crashing.
. Fix some warnings regarding formats in debugging printf's.
2004-10-16 17:00:27 +00:00
Greg Lewis
4e95ec3207 . At least on FreeBSD, O_SYNC and O_DSYNC aren't both defined
(for FreeBSD 4.x neither are defined and for FreeBSD 5.x
  O_DSYNC isn't defined).  This caused them to be defined to
  some bogus values.  In particular, O_SYNC would be defined
  as 0x800, which is O_EXCL (at least on FreeBSD 4.x).  The
  result being that the RandomAccessFile class would fail to
  open an existing file if you specified "s" as part of the mode.
  Fix this by defining O_SYNC and O_DSYNC to O_FSYNC if they
  aren't defined.
2004-10-16 16:58:12 +00:00