Commit graph

59 commits

Author SHA1 Message Date
Jung-uk Kim
ce40d635b9 Fix build without precompiled headers and apply r384056 to java/openjdk6.
http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7154517

Obtained from:	OpenJDK project [1]
MFH:		2015Q2
2015-05-20 21:05:25 +00:00
Jung-uk Kim
d5ce7749e1 Update to b34. 2015-01-24 00:02:00 +00:00
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
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
932fe524fd Fix build with libc++. 2013-09-06 02:06:56 +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
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
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
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
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
Jung-uk Kim
176e27746b - Update to build 23.
- Import more complete JPEG class support and turn on ICEDTEA option by
default. [1]
- Remove obsolete WEB option.  Note the functionality is now moved to a new
port java/icedtea-web, which depends on ICEDTEA option of this port.

Obtained from:	IcedTea project [1]
2011-07-11 20:58:58 +00:00
Jung-uk Kim
0ba14edc9b Rework the previous fix to sync. with upstream:
http://hg.openjdk.java.net/jdk7/jdk7/jdk/diff/441f88d39988/src/solaris/native/java/net/net_util_md.c

Note it has no functional change for FreeBSD because sizeof(socklen_t) is
luckily sizeof(int).  Actually, this commit is just to note that the regression
was acidentally pulled in from upstream because of my ignorance.  Specifically,
the following commit was the culprit:

http://hg.openjdk.java.net/jdk7/jdk7/jdk/diff/b7fce4bac617/src/solaris/native/java/net/net_util_md.c

FYI, it also triggered the following upstream PR:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6730740

Obtained from:	OpenJDK project
Pointyhat:	jkim
2011-03-17 20:40:49 +00:00
Alex Dupre
a8e0201b99 Fix a severe regression introduced with the "disable IPV6_V6ONLY option".
On amd64 every call to getsocktopt returns a "Bad address" SocketException.
2011-03-17 09:17:26 +00:00
Jung-uk Kim
6fac48313f Backport a long standing bug fix from OpenJDK7, i.e., disable IPV6_V6ONLY
option when IPv6 is enabled and failed to create a socket.

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6342561
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6882910

For in-depth analysis of this problem from FreeBSD perspective, please see:

http://diario.beerensalat.info/2008/10/12/java_and_ipv6_on_bsd.html
2011-03-03 23:22:05 +00:00
Jung-uk Kim
7027d395cb Update to build 22. 2011-03-01 19:21:59 +00:00
Jung-uk Kim
b6945850a4 Update IcedTea-Web to 1.0.1 and fix multiple security vulnerabilities.
CVE-2010-4469:	Hotspot backward jsr heap corruption
CVE-2010-4465:	Swing timer-based security manager bypass
CVE-2010-4472:	Untrusted code allowed to replace DSIG/C14N implementation
CVE-2010-4448:	DNS cache poisoning by untrusted applets
CVE-2010-4450:	Launcher incorrect processing of empty library path entries
CVE-2010-4471:	Java2D font-related system property leak
CVE-2010-4470:	JAXP untrusted component state manipulation
CVE-2011-0706:	Multiple signers privilege escalation

Obtained from:	icedtea.classpath.org
Obtained from:	jaxp.java.net
2011-02-21 19:03:18 +00:00
Jung-uk Kim
27acea6b21 Add experimental support for sound via ALSA pcm-oss plugin. This feature
is disabled by default because MIDI plugin for OSS does not exist, i.e.,
(hardware) MIDI sequencer is not supported.  However, softsynth (Gervill)
works fine as it uses sampled sound.
2011-02-11 22:02:37 +00:00
Jung-uk Kim
6ac447dee9 - Implement some missing FreeBSD-specific methods, i.e., swap info, committed
virtual memory, free physical memory, and number of open file descriptors.
For example, jconsole shows more realistic numbers instead of hardcoded bogus
numbers in VM Summary tab now.  Correct a jtreg test case for the swap info.
- Mention procfs(5) is used for some features in this implementation.
2011-02-11 00:41:48 +00:00
Jung-uk Kim
680336afad - Update to build 21.
- Improve Serviceability Agent.  For example, the following should work now:

	jdb -connect sun.jvm.hotspot.jdi.SAPIDAttachingConnector:pid=<PID>
	jmap <PID>
	jsadebugd <PID>
	jstack -F <PID>
	jstack -m <PID>

- Replace IcedTea6 1.9.x with IcedTea-Web 1.0 for web support.  Note it is
still tightly coupled with openjdk6 for now because we do not have proper
infrastructure to decouple them yet.
- Add itweb-settings (a Java Control Panel replacement for IcedTea-Web).
- Add desktop integration files for web support (but not installed in default
system-wide locations).
2011-02-09 20:00:38 +00:00
Jung-uk Kim
32105f4cb5 Fix a typo in the BSD patchset.
PR:		ports/153421
Submitted by:	Alexander Vasyanin (avasyanin at gmail dot com)
2011-01-04 22:54:58 +00:00
Greg Lewis
c704da9e15 . Make rlen a size_t instead of an int. Fixes a crash on 64 bit architectures.
Pointed out by:	Nikolay Denev <ndenev@gmail.com>
2010-12-13 08:59:52 +00:00