Commit graph

21 commits

Author SHA1 Message Date
Dimitry Andric
d6f8398fa2 java/openjdk12: fix build with clang 12
During an exp-run for llvm 12 (see bug 255570), it turned out that
java/openjdk11 does not build with clang 12.0.0:

Creating support/demos/image/jfc/J2Ddemo/J2Ddemo.jar
/usr/local/bin/bash: line 5: 49140 Abort trap		   (core dumped) /wrkdirs/usr/ports/java/openjdk12/work/openjdk-jdk12u-jdk-12.0.2-10-4/build/bsd-x86_64-server-release/support/interim-image/bin/java -XX:DumpLoadedClassList=/wrkdirs/usr/ports/java/openjdk12/work/openjdk-jdk12u-jdk-12.0.2-10-4/build/bsd-x86_64-server-release/support/link_opt/classlist.raw -Djava.lang.invoke.MethodHandle.TRACE_RESOLVE=true -cp /wrkdirs/usr/ports/java/openjdk12/work/openjdk-jdk12u-jdk-12.0.2-10-4/build/bsd-x86_64-server-release/support/classlist.jar build.tools.classlist.HelloClasslist > /dev/null 2>&1 > /wrkdirs/usr/ports/java/openjdk12/work/openjdk-jdk12u-jdk-12.0.2-10-4/build/bsd-x86_64-server-release/support/link_opt/default_jli_trace.txt
gmake[4]: *** [GenerateLinkOptData.gmk:66: /wrkdirs/usr/ports/java/openjdk12/work/openjdk-jdk12u-jdk-12.0.2-10-4/build/bsd-x86_64-server-release/support/link_opt/classlist] Error 134

This is due to missing backports of upstream commits:

commit c484d8904285652246c3af212a4211b9a8955149
Author: Thomas Stuefe <stuefe@openjdk.org>
Date:	Tue Mar 16 05:49:01 2021 +0000

    8263557: Possible NULL dereference in Arena::destruct_contents()

    Reviewed-by: kbarrett, coleenp

commit 34ae46e2bca691f989d4d84129baf545ff8a7469
Author: Andrew Haley <aph@openjdk.org>
Date:	Thu Mar 19 14:53:57 2020 +0000

    8241296: Segfault in JNIHandleBlock::oops_do()

    Reviewed-by: stefank

Approved by:	maintainer timeout (2 weeks)
PR:		255901
MFH:		2021Q2
2021-05-29 16:08:18 +02:00
Piotr Kubaj
435dcd8105 java/openjdk12: fix build on powerpc64le
This ports r556940 to java/openjdk11.

Approved by:	tier 2 blanket
2021-03-15 14:58:01 +00:00
Jung-uk Kim
d9f4cebe44 Fix build with Clang 11.
9e8e504992
c525150ace
dc2d99a20d

PR:		250270
2021-02-05 04:04:53 +00:00
Tijl Coosemans
7d4723292c Update devel/gmake to 4.3.
Some changes have been made in this release that break backwards
compatibility.  Let USES=gmake force users to upgrade to this version so
port maintainers don't have to support older versions.

PR:		245725
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2020-05-09 19:24:49 +00:00
Greg Lewis
1007ca9d59 Update to 12.0.2+10.4
PR:		244947
Submitted by:	Trond.Endrestol@ximalas.info
2020-04-18 20:42:11 +00:00
Greg Lewis
f6edb11a70 Fix the build on aarch64
Submitted by:	Klaus Küchemann <maciphone2@googlemail.com>
2020-03-22 20:00:25 +00:00
Piotr Kubaj
b3c6e7fecb java/openjdk12: correctly patch openjdk12 for ppc64 elfv2
The previous patch didn't check for architecture.

PR:		243183
2020-01-16 13:59:09 +00:00
Antoine Brodin
603501b794 Revert r523218, it breaks build on tier 1
With hat:	portmgr
2020-01-16 13:34:01 +00:00
Piotr Kubaj
3ff99bec50 java/openjdk12: fix compilation for powerpc64 elfv2
Because of issue with macros in precompiled.hpp, --disable-precompiled-headers is necessary.

Since openjdk compiles for elfv1 by default on big-endian ppc64, use a patch to compile for elfv2.

PR:		243183
Approved by:	glewis (maintainer)
2020-01-16 09:29:00 +00:00
Greg Lewis
5ea34fbf09 Fix build on FreeBSD 12.x/powerpc64 on POWER8+ machines
* Make sure has_mfdscr() returns false on these machines as using it on
  FreeBSD 12.x will cause problems (e.g. SIGILL).

PR:		239368
Sponsored by:	The FreeBSD Foundation
2019-11-06 17:31:33 +00:00
Greg Lewis
0dd1ec7ccd Udpate to 12.0.2+10-3 2019-09-20 15:46:43 +00:00
Greg Lewis
9de148ec50 Prepare for aarch64 support
* Add necessary configure arguments for aarch64
* Add patches needed to compile on aarch64.  These have been upstreamed but
  are not in a release yet.
2019-08-30 04:26:01 +00:00
Greg Lewis
0d895bb102 Add powerpc64 support
PR:		237370
2019-08-26 02:00:42 +00:00
Greg Lewis
01db95f8d1 Update cacerts
* Use the latest cacerts file from Oracle's public distribution of 12.0.2
2019-08-20 18:25:11 +00:00
Greg Lewis
dc20dd8e50 Update to 12.0.2+10.2 2019-08-13 13:32:12 +00:00
Greg Lewis
083a6da42d . Update to 12.0.1 2019-04-17 20:57:53 +00:00
Greg Lewis
42f8b4781f * Update to 12.0.0.33.2
* Sort LIB_DEPENDS and USE_XORG.
* Add a dependency in alsa-lib now that sound is supported on FreeBSD.
* Don't disable dtrace now that it is supported on FreeBSD.
* Less intrusive iconv change.
2019-03-29 17:39:15 +00:00
Jung-uk Kim
d3c95d36f1 Fix iconv(3) issues.
PR:		236759
2019-03-28 23:27:12 +00:00
Greg Lewis
51ef8bf96e Re-add the port of OpenJDK 12 2019-03-21 17:34:20 +00:00
Greg Lewis
2f1232fbff Remove openjdk12 to try a repo copy again. 2019-03-21 17:31:47 +00:00
Greg Lewis
847931245a Add a port of OpenJDK 12 2019-03-21 03:33:14 +00:00