Commit graph

129 commits

Author SHA1 Message Date
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
6d6efeba92 Allow adding extra patches from slave ports. 2013-10-16 20:40:27 +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
7b302b1c04 Build with Apache Ant 1.9.2. 2013-10-14 19:09:17 +00:00
Jung-uk Kim
eeab9aebc3 Simplify compiler detection. COMPILER_TYPE must be defined since r330336. 2013-10-14 17:45:14 +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
738fcd72c1 - Remove redundant bsd.port.pre.mk.
- Convert LIB_DEPENDS to new formats.

Submitted by:	bar
2013-10-10 16:49:02 +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
3aebbc79f2 Fix test option. 2013-10-08 06:53:50 +00:00
Jung-uk Kim
47144a1692 Use echo correctly. 2013-10-08 05:44:04 +00:00
Jung-uk Kim
46d7e6673b Remove few lines added for testing at the last minute. This fixes plist. 2013-10-08 05:35:39 +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
Baptiste Daroussin
c2c2a2b86b Add NO_STAGE all over the place in preparation for the staging support (cat: java) 2013-09-20 19:48:32 +00:00
Guido Falsi
dc2fe44aa2 - Add missing iconv USES
PR:		java/182100
Submitted by:	m.viey@wanadoo.fr
Approved by:	portmgr (bapt, implicit)
2013-09-15 18:55:58 +00:00
Jung-uk Kim
932fe524fd Fix build with libc++. 2013-09-06 02:06:56 +00:00
Guido Falsi
642be1b81d - Make ports use the libc provided iconv implementation on 10-CURRENT
after r254273
- Fix a bunch of ports to properly work after this
- Mark converters/libiconv as IGNORE for systems with iconv in libc

Reviewed by:	bapt
Approved by:	portmgr (bapt)
Discussed with:	bapt, bsam (who both contributed ideas and code)
2013-09-04 18:06:07 +00:00
Jung-uk Kim
f720ee1568 Bump revision for openjdk6-jre to catch up with the master port change. 2013-07-26 05:27:28 +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
15172ddf84 Fix openjdk6-jre build. 2013-07-16 21:12:40 +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
Baptiste Daroussin
942c2a28be Convert from USE_MOTIF to USES=motif
While here:
- Trim headers
- Convert USE_GMAKE to USES=gmake
- Remove indefinite article from comment
2013-07-10 07:00:44 +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
7bdc883652 Style change after r317320. We do not need a temporary variable any more. 2013-05-08 22:47:22 +00:00
Bryan Drewery
63f76304d6 - When DISABLE_MAKE_JOBS or MAKE_JOBS_UNSAFE is set, also set
MAKE_JOBS_NUMBER to 1. This makes it safe to do -j${MAKE_JOBS_NUMBER}
  without any extra logic.
- Cleanup ports working around the empty MAKE_JOBS_NUMBER
- This also fixes several ports that were expecting MAKE_JOBS_NUMBER
  to always have a number

Reviewed by:	bapt
Spotted by:	John Marino <draco@marino.st>
With hat:	portmgr
2013-05-04 14:06:08 +00:00
Baptiste Daroussin
5271da855f Rely on bsdtar to autodetermine the format of the distfiles when possible
For a while now bsdtar is able to autotermine compression and archive format.
Let's then use tar directly instead of piping to tar.

Now USE_BZIP2 and USE_XZ only set EXTRACT_SUFX to the right format
2013-04-29 08:57:12 +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
Jung-uk Kim
c4cbf54b05 Make sure to unset 'OS' environment variable. Some shell sets it and causes
HotSpot build failure.

PR:		ports/173434
Feature safe:	yes
2012-11-08 21:52:49 +00:00
Jung-uk Kim
ff193c17dc - Remove registervm from build dependency. This hack is no longer necessary
as javavmwrapper is fixed now (r306536).
- Remove an empty directory, which was missed in the previous commit.

Feature safe:	yes
2012-10-31 20:49:54 +00:00
Greg Lewis
5b9c189def . Update to build 27.
Feature safe:	yes
2012-10-29 06:13:33 +00:00
Jung-uk Kim
09bb1716ac Move .endif to a better place. No functional change.
Feature safe:	yes
2012-10-25 21:03:22 +00:00
Jung-uk Kim
3cc4634867 Bump PORTREVISION for the new cacerts.
Feature safe:	yes
2012-10-23 17:40:51 +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
85da8b848f Remove more environment variables. These variables are never meant to be
overridden by the user.

Feature safe:	yes
2012-10-22 23:43:36 +00:00
Jung-uk Kim
3c604f0e80 Remove a bogus environment variable, especially for i386. This fixes build
under certain conditions.

Feature safe:	yes
2012-10-22 20:29:54 +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
2151c80bb7 Add a port to self-bootstrap OpenJDK6. Note the initial distfiles were
bootstrapped with pre-built openjdk6 packages from FreeBSD build clusters
on clean 7.4-RELEASE installation, and the ports tree was checked out at
r305682.

Feature safe:	yes
2012-10-12 00:42:31 +00:00
Jung-uk Kim
2007d57691 - Explicitly set registervm as build dependency. When BOOTSTRAPJDKDIR is
manually set, this dependency may not be fulfilled.
- Consistently use WRKSRC over WRKDIR where it makes sense.  Although they
are actually the same directory, there is no reason to confuse users.

Feature safe:	yes
2012-10-10 19:55:27 +00:00
Jung-uk Kim
064102df55 Update to build 26. 2012-10-09 20:59:37 +00:00
Jung-uk Kim
02cfcdf497 - Sanitize user, group and permission. Inspired by openjdk7.
- Add a slave port to create JRE-only package.
2012-10-09 17:47:06 +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