Commit graph

85 commits

Author SHA1 Message Date
John Baldwin
1ebd0e3345 The MAP_NORESERVE flag to mmap() has never been implemented in FreeBSD and
is being removed.  No portrev bump needed since the kernel will continue to
accept this flag for old binaries even after support for it in new binaries
is removed.

PR:		193961
Approved by:	portmgr (antoine)
2014-10-18 12:20:42 +00:00
Jung-uk Kim
1c8be2bab1 - Update to b33.
- Update TimeZoneNames to tzdata2014g.
2014-10-17 05:00:20 +00:00
Jung-uk Kim
e45d1e1be9 - Update to b32.
- Update TimeZoneNames to tzdata2014b.
- Enlist openjdk6 users as testers of ant 1.9.4.
2014-07-17 04:03:21 +00:00
Jung-uk Kim
6d8c62429c Implement current and signal methods for sun.nio.ch.NativeThread. Note this
fixes a test case in the following Apache Solr bug report.

https://issues.apache.org/jira/browse/SOLR-6204

Reported by:	Dawid Weiss <dawid.weiss@gmail.com>
2014-06-27 18:41:19 +00:00
Jung-uk Kim
a763513dab Fix printing services. When CUPS is used, ${LOCALBASE}/bin/lpr must be used
to print a generated PostScript file.  When lpd(8) is used, lpr(1) from base
must be used.  Also, status command for lpc(8) requires a printer name.  If
no argument is specified, i.e., "/usr/sbin/lpc status", then it displays the
command usage, i.e., "usage: status  {all | printer ...}".  Unfortunately,
"usage" is interpreted as a printer name because ":" is included.  Add "all"
and adjust an expression for grep(1).

PR:		ports/178856
2014-05-21 19:57:11 +00:00
Jung-uk Kim
c979edf70f Actually fix the mis-merge. 2014-04-17 18:32:06 +00:00
Jung-uk Kim
ec9037822d Fix couple of mis-merges. 2014-04-17 18:24:47 +00:00
Jung-uk Kim
ba490d88af Update to b31. 2014-04-16 01:43:53 +00:00
Jung-uk Kim
f0fd5a1e4a Add an upstream patch to fix yet another fallout from HotSpot 23 merge.
https://java.net/jira/browse/OPENJDK6-29
http://hg.openjdk.java.net/jdk6/jdk6/jdk/rev/04e4c3ec6516
2014-03-12 20:56:47 +00:00
Jung-uk Kim
29ab93ec97 Fix missing symbols after re-appearance of converters/libiconv on 10+. This
actually fixes java/icedtea-web because libsplashscreen.so was looking for
libiconv_open() and libiconv_close() from libiconv instead of iconv_open()
and iconv_close() from libc.  Tidy up compiler/linker flags while I am here.
2014-03-11 17:18:02 +00:00
Jung-uk Kim
d89d9f9160 - Sync. extremely outdated sun.util.resources.TimeZoneNames to the latest
tzdata 2013i from the upstream.  Note we are not updating zoneinfo data here
as it can be updated via java/java-zoneinfo.
- Fix build with Clang 3.4 and other miscellaneous issues while I am here.
2014-03-03 23:45:26 +00:00
Jung-uk Kim
7654e4a9ce - Update to b30.
- Implement sigset(2) for libjsig.  All supported FreeBSD releases have it.
- Turn UseMembar back on by default until we find better solution.
2014-01-23 23:34:07 +00:00
Mathieu Arnold
f9902a1f64 Revert lang/openjdk6 to b28.
With hat:	portmgr-lurker
2014-01-04 14:33:12 +00:00
Jung-uk Kim
799b4d21cc - Update to b29.
- Tidy up signal handler.
- Disable a Linux-specific hack.
- Do not create stack guard for Java threads.
- Implement thread CPU time.
2013-12-24 23:11:15 +00:00
Jung-uk Kim
50a824c824 If /var/db/zoneinfo exists, use the file to determine timezone rather than
iterating over all files under /usr/share/zoneinfo.  All supported FreeBSD
versions create the file with tzsetup(8).  This change usually improves
java.util.TimeZone performance because we only need to test just one file.
2013-12-11 01:18:33 +00:00
Jung-uk Kim
fffab58da8 Add multiple security patches and improvements from IcedTea6.
http://icedtea.classpath.org/hg/icedtea6/rev/e98b0ef70b26

Obtained from:	IcedTea Project
2013-12-04 23:20:35 +00:00
Jung-uk Kim
35ee67e7ee - Add throw() to all user-defined operator new()s within HotSpot because
Clang does not support "-fcheck-new".  Note it is a backport of S8021954
(http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/9758d9f36299).
- Re-implement signal_name() with sys_signame(3) and adjust the comments.
- Re-implement ThreadCritical with PTHREAD_MUTEX_RECURSIVE.
- Fix DEBUG build with Clang on i386.  Clang does not support "-gstabs".
- Limit allocatable physical memory per getrlimit(2).
2013-11-09 00:11:00 +00:00
Jung-uk Kim
77e1b3cd31 - Do not crash when unsupported options are specified. [1]
- Micro-optimize and tidy up some patches.

PR:		java/183656 [1]
2013-11-05 21:16:12 +00:00
Jung-uk Kim
5cf97021e1 - Turn off UseMembar by default. This workaround is not necessary any more.
- Add few minor patches related to thread ID that were mis-merged.
- Add couple of minor HotSpot patches from upstream while I am here.
2013-10-25 22:53:53 +00:00
Jung-uk Kim
d6de7bac6f Allow overriding linker flags for standard C++ libraries and zlib. 2013-10-22 20:17:09 +00:00
Jung-uk Kim
2d8e62780d Fix build on old releases where nitems() macro is not defined.
Reported by:	Scott Ballantyne (sdb at ssr dot com)
2013-10-15 18:12:05 +00:00
Jung-uk Kim
1a4180c77c - Do not allow selecting both DEBUG and FASTDEBUG options. [1]
- Re-enable -Werror for HotSpot build with GCC.
- Revert couple of unnecessary local changes to reduce diff.
- Add inactive pages as availble memory.  Note it is a cosmetic change.

PR:		ports/182907 [1]
2013-10-12 00:31:41 +00:00
Jung-uk Kim
f2de329aa5 - Fix few mis-merges against HotSpot 23 and tie up some loose ends.
- Fix build with libiconv.  This problem was introduced in r330018.
- Update CA list to Oracle Java 7u40.  An expired CA was removed.
2013-10-10 21:59:11 +00:00
Jung-uk Kim
147d3f7524 Add couple of compiler warning fixes. No functional change. 2013-10-09 22:24:17 +00:00
Jung-uk Kim
f78b1b9ba0 Update to Build b28. 2013-10-09 20:36:06 +00:00
Jung-uk Kim
0c79f0cee3 - Support staging.
- Fix fastdebug installation.
- Update jtreg version to Build b05.
- Refine r327353.  Use an extra patch instead.
- Install proper license file.  OpenJDK6 has GPLv2 + "Classpath" exception.
2013-10-08 00:03:16 +00:00
Jung-uk Kim
932fe524fd Fix build with libc++. 2013-09-06 02:06:56 +00:00
Jung-uk Kim
c9ea119f1f Move the fix for S6636110 to more appropriate directory. This patch is not
an IcedTea6 patch nor a security fix.
2013-07-26 05:23:06 +00:00
Baptiste Daroussin
37e17acfdf Fix excessive memory consumption on head amd64, this prevent the package building cluster from dying when building java ports.
This bug is referenced upstream here: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6636110

Submitted by:	dim
With hat:	portmgr
2013-07-25 15:32:43 +00:00
Jung-uk Kim
e2650fc1b3 - Add couple of upstreamed IcedTea6 patches for consistency.
- Disable test_gamma by default.
2013-07-22 21:59:50 +00:00
Jung-uk Kim
ab26ef7814 Add multiple security patches and improvements from IcedTea6 1.12.6.
http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2013-July/023941.html

Obtained from:	IcedTea Project
PR:		ports/180541
2013-07-16 21:07:25 +00:00
Jung-uk Kim
edb186c0b5 Use bootstrap Java instead of newly built binary to execute RMIC. 2013-05-15 00:17:57 +00:00
Jung-uk Kim
70c842246a Add multiple security patches from IcedTea6 1.12.5.
http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2013-April/022985.html

Obtained from:	IcedTea Project
2013-04-25 20:03:56 +00:00
Jung-uk Kim
2d1c28ddc6 Add multiple security patches from IcedTea6 1.12.4.
http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2013-March/022145.html

Obtained from:	IcedTea Project
2013-03-06 01:01:29 +00:00
Jung-uk Kim
0f7f30e0b6 Add multiple security patches from IcedTea6 1.12.3.
http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2013-February/021858.html
http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2013-February/021998.html

Obtained from:	IcedTea Project
2013-03-06 00:50:28 +00:00
Jung-uk Kim
18924f6e54 Add a patch to fix MulticastSocket.setInterface().
http://hg.openjdk.java.net/bsd-port/bsd-port/jdk/rev/bfa676f5b5db

Submitted by:	oliver
2013-02-11 23:45:25 +00:00
Greg Lewis
5b9c189def . Update to build 27.
Feature safe:	yes
2012-10-29 06:13:33 +00:00
Alex Dupre
e4c34a1063 Update CA list to Oracle Java 7u9.
Added CA:
- geotrustprimarycag2
- thawteprimaryrootcag2
- verisignclass3g4ca

Feature safe:	yes
2012-10-23 08:21:48 +00:00
Jung-uk Kim
81a8a55b63 - Add 2012/10/16 security patches from IcedTea6 1.11.5. [1]
http://icedtea.classpath.org/hg/release/icedtea6-1.11/rev/d9564350faa6
http://blog.fuseyism.com/index.php/2012/10/19/security-icedtea-1-10-10-1-11-15-2-1-3-2-2-3-2-3-3-released/

- Completely turn off parallel build by default and remove parallel build
hack for HotSpot.  There were several reports that it fails to build under
certain environment, ports/162991 for example.  Users can still do parallel
build by setting FORCE_MAKE_JOBS (and MAKE_JOBS_NUMBER if desired).
- Implement os::available_memory().  Now it is consistent with "vm.vmtotal"
sysctl(3) MIB rather than bogus (physical memory / 4).
- Prefer sysconf(_SC_NPROCESSORS_CONF) over HW_NCPU sysctl MIB to get the
number of installed processors.  There is no functional difference except
for CURRENT, which obtains the information from ELF aux vector.
- Prefer sysconf(_SC_PHYS_PAGES) * sysconf(_SC_PAGESIZE) over HW_USERMEM
sysctl MIB to get size of physical memory.  Although it looks more logical
to find currently available memory, it has an inevitable side-effect, i. e.,
it changes dynamically depending on current wired page count.  Therefore,
it is unpredictable and not too useful some times.  For example, launcher
uses the parameter to determine initial heap size and machine class for i386.
Now it is more consistent with other places (and Linux JDK/JREs, including
the ones we have in ports tree).
- Implement os::active_processor_count() using cpuset_getaffinity(2).  For
example, Runtime.getRuntime().availableProcessors() now returns number of
available processors for the current process as it should.
- Sync. launchers (java_md.c) for HotSpot and JDK as much as possible for
maintainability.  As a good side-effect, launcher for i386 can now determine
machine class based on the current hardware configuration.  Previously,
client VM was always chosen by default.
- Fix CounterGet(), which is only used for debugging launcher.
- Add swap info for os::print_memory_info().

Obtained from:	IcedTea project [1]
Feature safe:	yes
2012-10-19 22:43:10 +00:00
Jung-uk Kim
064102df55 Update to build 26. 2012-10-09 20:59:37 +00:00
Jung-uk Kim
bedc8d0abc Tidy up patches. No functional change. 2012-09-27 00:18:41 +00:00
Jung-uk Kim
160ffd1866 Use fdescfs(5) and procfs(5) consistently. 2012-09-26 23:24:44 +00:00
Jung-uk Kim
e1b4da42cd - Override GCC used by HotSpot SA. [1]
- Fix build with GCC 4.5+ on i386. [2]
- Convert to the new header format.

Submitted by:	Claude Buisson (clbuisson at orange dot fr) [1]
Obtained from:	OpenJDK7 [2]
	http://hg.openjdk.java.net/jdk7/hotspot/hotspot/rev/da880ba4edf9
2012-09-18 22:30:19 +00:00
Jung-uk Kim
17f28ea268 - Honor CC, CXX, and CPP. [1]
- Fix build with clang.

PR:	ports/151042 [1]
2012-09-18 20:53:20 +00:00
Jung-uk Kim
aba89129e7 - Update security patch to fix CVE-2012-0547 and CVE-2012-1682.
- Catch up with icedtea.classpath.org server changes for distfiles.
2012-09-07 19:27:31 +00:00
Jung-uk Kim
b714a769f1 - Fix multiple security vulnerabilities. [1]
- Drop version suffixes from LIB_DEPENDS.
- Use the new options framework.

Obtained from:	IcedTea Project [1]
http://icedtea.classpath.org/hg/icedtea6/rev/9aff0fc60733
2012-06-13 19:17:00 +00:00
Greg Lewis
923815253b . Update to build 25. 2012-05-09 03:53:37 +00:00
Greg Lewis
28609d64ef . Fix the look up of time zone data when TZUPDATE is turned on and as a
result turn it on by default again.  This change bears a little more
  explanation.

  In UnixFileSystem.java there is a cache of canonical paths and in
  particular one for paths inside java.home.  The problem with looking
  up time zone data is that if another path within java.home has been
  looked up then the symlink for the time zone data is not resolved
  (since the cache assumes there are no symlinks in java.home) and we fail
  to be able to open the ZoneInfoMapping file.

  One of the other features in UnixFileSystem is that the cache is not
  consulted and full resolution occurs for paths containing "." or "..".
  I've chosen to (ab)use this to force resolution of the time zone data
  directory in ZoneInfoFile.java rather than doing something like IcedTea
  did which was to introduce a tz.properties file where they would stash
  the time zone info directory rather than symlinking it in.  For full
  reference that patch is here:

  http://icedtea.classpath.org/hg/icedtea6/file/tip/patches/use-system-tzdata.patch

  There are two main reasons I chose a bit of a hack rather than something
  like this.

  1. I want to apply the patch to non-GPL'ed code (e.g. the jdk16 port).
  2. Using updated time zone data is only an option in the port and using
     something like tz.properties when the option is off is clunky.

  Thanks to avg@ for sleuth work on finding the bug write up and the
  IcedTea fix.
2012-05-02 06:13:16 +00:00
Jung-uk Kim
04111c28a5 Fix multiple security vulnerabilities.
CVE-2011-3563:	Fix issues in java sound
CVE-2011-3571:	Fix in AtomicReferenceArray
CVE-2011-5035:	Add property to limit number of request headers to the HTTP Server
CVE-2012-0501:	Better input parameter checking in zip file processing
CVE-2012-0502:	Issues with some KeyboardFocusManager method
CVE-2012-0503:	Issues with TimeZone class
CVE-2012-0505:	Enhance exception throwing mechanism in ObjectStreamClass
CVE-2012-0506:	Issues with some method in corba

Obtained from:	IcedTea Project
2012-02-18 01:06:58 +00:00
Jung-uk Kim
20a20900ab - Replace hsearch_r from GNU libc with Berkeley DB from our libc.
http://hg.openjdk.java.net/bsd-port/bsd-port/hotspot/rev/f19d23da7c3e
http://hg.openjdk.java.net/bsd-port/bsd-port/hotspot/rev/cf5c383e1d33
http://hg.openjdk.java.net/bsd-port/bsd-port/hotspot/rev/f1a18ada5853

- Fix POLICY option.  It was silently enabled by default with b19 update.
2012-01-13 01:42:32 +00:00