Commit Graph

77 Commits

Author SHA1 Message Date
Greg Lewis cb5f8daf22 java/openjdk11: Update to 11.0.18 2023-01-22 21:36:55 -08:00
Greg Lewis 34c45542f7 java/openjdk11: Use the distributed cacerts
PR:		266723
Reported by:	Michael Osipov <michael.osipov@siemens.com>
2022-11-03 23:13:16 -07:00
Greg Lewis b87e44e535 java/openjdk11: Update to 11.0.17 2022-10-29 15:22:13 -07:00
Greg Lewis 749c57a8a8 java/openjdk11: Update to 11.0.16.1 2022-09-25 16:06:16 -07:00
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00
Piotr Kubaj e3f56d3c66 java/openjdk11: use LLVM 12 to build if the system compiler is LLVM 13 or newer
PR:	260319
Reported by:	jonc@chen.org.nz
Approved by:	java (maintainer timeout)
2022-08-31 01:02:10 +02:00
Piotr Kubaj 5a8afa08c5 java/openjdk11: fix build on powerpc64*
Go back to using LLVM 12, bin/java built with LLVM 13 crashes with:
* For target jdk__packages_attribute.done:

 A fatal error has been detected by the Java Runtime Environment:

  SIGILL (0x4) at pc=0x0000000802e3d438, pid=28756, tid=149399

 JRE version:  (11.0.16+8) (build )
 Java VM: OpenJDK 64-Bit Server VM (11.0.16+8-1, mixed mode, tiered, compressed oops, serial gc, bsd-ppc64)
 Problematic frame:
 V  [libjvm.so+0xe3d438]  JVM_RaiseSignal+0x446bcc
2022-08-09 23:16:34 +02:00
Dimitry Andric 591a784f32 java/openjdk{8,11}: Remove dependency on devel/llvm12 which is no longer necessary
The workarounds committed in aa1ca89826 and 846ff4e952 are no longer
necessary, as both the upstream commits for PR258954
(https://github.com/battleblow/jdk11u/commit/305a68a90c722aa7a7b75589e24d5b5d554c96c1)
and PR264065 (https://hg.openjdk.java.net/jdk/jdk/rev/40c07de877ab) are
now merged into the distribution tarballs.

PR:		258954, 264065
Approved by:	maintainer timeout (1 month)
MFH:		2022Q3
2022-08-06 12:55:32 +02:00
Greg Lewis 6ce6fe80a1 java/openjdk11: Update to 11.0.16 2022-08-01 22:03:55 -07:00
Greg Lewis ec8ecb5b4a java/openjdk11: Update to 11.0.15 GA 2022-05-04 18:50:04 -07:00
Greg Lewis 399e3772d3 java/openjdk11: Bump PORTREVISION
Bump PORTREVISION, missed in the last commit.

PR:		260319
Reported by:	Jonathan Chen
2022-02-11 20:28:15 -08:00
Greg Lewis 846ff4e952 java/openjdk11: Restore LLVM/Clang 13 workaround
This restores the previous LLVM/Clang 13 workaround.  I had thought
the upstream changes would address this, but still seeing reports of
crashes when compiled with LLVM/Clang 13.
PR:		260319
Reported by:	various
2022-02-08 20:45:06 -08:00
Greg Lewis c4e82ffe28 java/openjdk11: Update to 11.0.14 GA 2022-02-05 20:41:35 -08:00
Greg Lewis 0877cf18c3 java/openjdk11: Update to 11.0.13 2021-10-31 11:07:42 -07:00
Dimitry Andric 3822416493 java/openjdk*: work around UB in markOopDesc, fix builds with clang 13
During an exp-run for llvm 13 (see bug 258209), it turned out that
java/openjdk11 through openjdk13 fail to build with clang 13:

=== Output from failing command(s) repeated here ===
* For target jdk__packages_attribute.done:

These crashes are all caused by the markOop/markOopDesc classes, which
are used to keep track of objects, and which are 'marked' using the low
few bits. (See
https://github.com/openjdk/jdk13u/blob/master/src/hotspot/share/oops/markOop.hpp
).

After some laborious bisecting, I found out that these crashes start
occuring after the upstream commit https://github.com
/llvm/llvm-project/commit/16d03818412 (Return "[CGCall] Annotate this
argument with alignment").

What happens afterwards, is that clang considers the "this" pointer to
always be aligned to the alignment of the actual object, and then
masking or adding a few low bits is not working as expected.

The reason openjdk14 and higher work fine with clang 13, and don't crash
similarly, is that the OpenJDK people completely redid the
markOop/markOopDesc classes in
https://github.com/openjdk/jdk/commit/ae5615c6142a4dc0d9033462f4880d7b3c127e26
("8229258: Rework markOop and markOopDesc into a simpler mark word value
carrier"). E.g, the markOopDesc class was renamed to markWord, and
*stores* a pointer-like value instead of *being* a pointer-like value.
This is a much safer way of handling things.

However, this upstream commit is *very* large, as are a few of its
follow-ups, which is probably the reason why it has not been backported
to JDKs <= 13. I tried manually backporting it, but got lost in many
nasty patch conflicts and problems.

As a workaround, build openjdk8 through 13 with clang12 from the
devel/llvm12 port, for the time being.

In addition, allow openjdk14 through 17 to be built with clang 13, by
adding -Wno-unused-but-set-parameter to the compilation flags.

PR:		258954
Approved by:	maintainer timeout (2 weeks)
MFH:		2021Q4
2021-10-16 14:22:03 +02:00
Rene Ladan 620968a43a cleanup: drop support for EOL FreeBSD 11.X
Search criteria used:
- 11.4
- OSREL*
- OSVER*
- *_FreeBSD_11

Input from:
- adridg: devel/qca-legacy
- jbeich: _WITH_DPRINTF, _WITH_GETLINE, GNU bfd workarounds
- sunpoet: security/p5-*OpenSSL*

Reviewed by:	doceng, kde, multimedia, perl, python, ruby, rust
Differential Revision: https://reviews.freebsd.org/D32008
Test Plan: make index
2021-09-30 23:23:30 +02:00
Bernhard Froehlich cd96d2aefb java/openjdk11: Add CPE information
Approved by:	portmgr (blanket)
2021-09-11 11:30:45 +00:00
Mikael Urankar 8edf3dd02e java/openjdk11: Fix build on aarch64
Import upstream patch.

PR:		257643
Approved by:	portmgr (build fix blanket)
2021-08-18 17:58:15 +02:00
Greg Lewis 811345dd18 java/openjdk11: Update to 11.0.12 2021-07-30 19:43:33 -07:00
Mikael Urankar 362eb92da2 java/openjdk11: Add armv6 / armv7 support
PR:		255662
Approved by:	portmgr (tier 2 blanket)
2021-05-18 17:57:36 +02:00
Greg Lewis ae072ecd17 Update to 11.0.11 2021-05-04 22:23:35 -07:00
Mathieu Arnold cf118ccf87 One more small cleanup, forgotten yesterday.
Reported by:	lwhsu
2021-04-07 10:09:01 +02:00
Mathieu Arnold 305f148f48 Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
Piotr Kubaj c4cf57f581 java/openjdk11: enable dtrace on powerpc64 elfv2 2021-03-17 01:18:33 +00:00
Piotr Kubaj 9a40a712b9 java/openjdk11: enable dtrace on powerpc64le
Builds fine.
2021-03-15 13:08:30 +00:00
Greg Lewis a7f3236bcd Update to 11.0.10 GA 2021-01-21 03:04:11 +00:00
Piotr Kubaj 89480f7d7e java/openjdk11: add powerpc64le support
This mostly adds powerpc64le in places where there's only powerpc64.

PR:		251263
Approved by:	java (maintainer timeout)
2020-12-03 23:46:20 +00:00
Greg Lewis 5401b1924d Fix a crash per https://bugs.openjdk.java.net/browse/JDK-8250861
This effectively upgrades us to 11.0.9.1
2020-11-07 22:02:32 +00:00
Greg Lewis daaa2aa100 Enable the Shenandoah GC 2020-10-24 04:17:02 +00:00
Greg Lewis 7166661c68 Update to 11.0.9 2020-10-23 03:58:05 +00:00
Jung-uk Kim a03cd74a5f Add a port to create JRE-only package for java/openjdk11. 2020-08-20 02:23:07 +00:00
Greg Lewis 8a4d4bc6cf Update to 11.0.8 2020-07-16 01:52:40 +00:00
Greg Lewis 0e8769531d More accurate vendor information
PR:		244634
2020-07-12 02:13:27 +00:00
Greg Lewis 5305eae5ec Add a runtime dependency on xorg-fonts-truetype
PR:		247786
Reported by:	phk@
2020-07-09 02:33:04 +00:00
Dmitri Goutnik 7d93186245 java/openjdk11: Add fontconfig support
PR:		247238
Approved by:	java (glewis)
2020-07-02 23:31:38 +00:00
Kyle Evans 5fb9edd6bd Multiple ports: improve regex compliance
These changes largely fall into just two categories:

1. Need textproc/gsed for GNU extensions
2. Extraneous escapes that can go away

For #1, there's a further subdivision into those that require autoconf magic
and those that can get away with BINARY_ALIAS=sed=${LOCALBASE}/bin/gsed.
-CURRENT will soon gain GNU extensions, but these will take longer to get to
all supported releases; we must switch them to gsed to ensure we're actually
properly building them as intended.

For #2, I've fixed these as I can and we should upstream these fixes.

PORTREVISION is bumped for all of the above, because we will almost
certainly build these differently when the replacements actually start
working.

These were all detected by the below-referenced exp-run [1]. The patch
included forbids many ordinary characters from being escaped, since we'll
later imbue those with special meanings. This has had the nice side effect
of picking up various things that we didn't handle properly, e.g. \t and \r
for tab and carriage return.

PR:		229925 [1]
Approved by:	koobs (mentor)
Approved by:	portmgr (blanket: trivial build fixes)
MFH:		no (invasive risk)
Differential Revision:	https://reviews.freebsd.org/D25185
2020-06-08 04:41:31 +00:00
Greg Lewis b65bbced16 Update to 11.0.7 GA 2020-04-16 00:11:22 +00:00
Greg Lewis 4c18554694 Ignore ECONNRESET when closing a socket
See https://github.com/battleblow/openjdk-jdk11u/issues/94 for details
2020-02-26 00:07:14 +00:00
Greg Lewis ace58503f3 Update to 11.0.6
Security:	https://openjdk.java.net/groups/vulnerability/advisories/2020-01-14
2020-01-16 19:58:03 +00:00
Piotr Kubaj 1159f09aca java/openjdk11: correctly patch openejdk11 for ppc64 elfv2
The previous patch didn't check for architecture.

PR:		243183
2020-01-16 13:52:16 +00:00
Antoine Brodin 44a4ff3829 Revert r523182, it breaks build on tier 1
With hat:	portmgr
2020-01-16 12:54:40 +00:00
Piotr Kubaj 16ba9aabc5 java/openjdk11: add bootstrap and fix compilation for powerpc64 elfv2
Add bootstrap 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.

I assume here that GCC will be used exclusively on ELFv1 systems and Clang on ELFv2.

PR:		243182
Approved by:	glewis (maintainer)
2020-01-15 22:08:04 +00:00
Niclas Zeising 07e8e1c13c Add USES=xorg USES=gl, ports categories j
Add USES=xorg and USES=gl to ports in categories starting with 'j'
While here, try to sprinkle other USES (mostly gnome and sdl) as needed.
2019-11-06 18:03:34 +00:00
Greg Lewis b9f03c4180 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
2019-11-06 17:21:58 +00:00
Greg Lewis 0f54bf6ebc Update to 11.0.5 GA 2019-10-16 19:07:18 +00:00
Greg Lewis 395ca6f9a8 Disable AoT except on amd64
This should be a no-op for all platforms except aarch64.  AoT is disabled
on aarch64 due to crashes in internal JDK tests for that feature.
2019-09-27 15:29:33 +00:00
Greg Lewis d804e77edf Update to an 11.0.5 pre-release
This is mostly to pick up fixes that have gone into the BSD repo.
2019-09-20 02:26:34 +00:00
Greg Lewis de71759143 Minor clean up
* Separate out compiler specifics from platform specifics.  This also
  removes a little duplication.
2019-09-03 19:39:00 +00:00
Greg Lewis a8a4d62a92 Add support for aarch64
* Add aarch64 to ONLY_FOR_ARCHES on FreeBSD 12.0 and up.

PR:		239246
Submitted by:	Mikael Urankar <mikael.urankar@gmail.com>
2019-08-30 21:52:50 +00:00
Greg Lewis 24a7e726a2 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:24:53 +00:00