Commit graph

94 commits

Author SHA1 Message Date
Greg Lewis
3cbb3b9302 java/openjdk11: Update to 11.0.19 2023-04-29 10:27:57 -07:00
Greg Lewis
4e9379877c java/openjdk11: Fix use of printf (causes build failures for poudriere)
PR:             267690
Obtained from:  Michael Osipov <michael.osipov@siemens.com>
2023-04-16 15:48:44 -07:00
Eugene Grosbein
3f3975ef8c
java/openjdk11: add new CUPS port option
UniFi controller is headless Java application that requires
OpenJDK that depends on full CUPS port. In fact, the latter originally
required cups-client port only that was later removed and merged
to full cups port, so openjdk11 now requires full CUPS.

However, OpenJDK really needs only some header files out of CUPS distribution
and officially supports building --with-cups-include instead of --with-cups.

This change introduces new CUPS port option to java/openjdk11
that defaults to ON to preserve current behaviour.
With CUPS option turned OFF it skips build dependency on full cups:
instead, it downloads and extracts its distfile and
builds --with-cups-include pointing to extracted cups distfile.

Default build not affected, so PORTREVISION not changed.

PR:		264792
Approved by:	java (maintainer timeout, over 7 months)
2023-04-15 11:27:37 +07:00
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
fb16dfecae Remove WWW entries moved into port Makefiles
Commit b7f05445c0 has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
2022-09-07 23:58:51 +02: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
Stefan Eßer
3d41392b6e java/openjdk11: fix build on 13.1 and -CURRENT
Recent LLVM versions issue warnings for "|" being used with boolean
operands. Such operations exist in OpenJDK and the source lines are
marked with comments to not use logical operations instead.

This breaks the build on 13.1 and -CURRENT when building with LLVM-13
or newer due to the -Werror option being passed to the compiler.

Fix this issue by casting one of the boolean operands to int, as
suggested by the compiler in the error message for the case that the
"|" operation should actually be used on purpose.

I had submitted this patch as an attachment to PR 265687 on
2022-08-07, but it has been ignored by the maintainer (java team).

PR:		265687
Approved by:	portmgr (implicit)
2022-08-28 16:54:31 +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
Stefan Eßer
1cf12abc91 java/openjdk11: revert accidental commit 3d803e4460
Revert part of commit 3d803e4460 that should only have affected the
deskutils/calendar port.

This patch that has been committed by accident had already been
attached to PR 265687 to fix the build issue of openjdk11 on -CURRENT,
but it is up to the java@ team to apply this or some other fix.

Approved by:	portmgr (implicit)
2022-08-08 11:57:44 +02:00
Stefan Eßer
3d803e4460 deskutils/calendar: update to version 0.9.3
Update the man page to match the version the -CURRENT base system.

The only change is a better description of the // single line comment
syntax, i.e. that // is only considered to start a comment when it
appears at the start of the line or after white space. This allows to
embed URLs in calendar entries.
2022-08-08 09:58:14 +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
(305a68a90c)
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
ae5615c614
("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
Dimitry Andric
a47b284421 java/openjdk11(-jre): fix build with clang 12
During an exp-run for llvm 12 (see bug 255570), it turned out that
java/openjdk11 and java/openjdk11-jre do not build with clang 12.0.0:

Creating interim jimage
Compiling 2 files for BUILD_DEMO_Notepad

This is due to a missing backport of an upstream commit:

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

Approved by:	maintainer timeout (2 weeks)
PR:		255900
MFH:		2021Q2
2021-05-29 16:08:18 +02: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
Jung-uk Kim
93f31d551a Work around build a failure with Clang 11 on head.
/wrkdirs/usr/ports/java/openjdk11/work/openjdk-jdk11u-jdk-11.0.8-10-1/src/java.desktop/unix/native/libawt_xawt/xawt/XlibWrapper.c:2186:12:
error: cast to smaller integer type 'jint' (aka 'int') from 'int (*)(Display *)' (aka 'int (*)(struct _XDisplay *)')
[-Werror,-Wpointer-to-int-cast]
    return (jint) XSynchronize((Display*)jlong_to_ptr(display), (onoff == JNI_TRUE ? True : False));
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

It looks like a false-positive, though.
2020-08-20 01:21:36 +00:00
Jung-uk Kim
b3575ba0d1 Add upstream patches to build with "-fno-common".
This is default with Clang 11 and GCC 10.

https://hg.openjdk.java.net/jdk-updates/jdk11u/rev/3660248422f4
https://hg.openjdk.java.net/jdk-updates/jdk11u/rev/371bbe373ae0
2020-08-19 23:32:38 +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
Kirill Ponomarev
e319ccdbf1 Fix build on HEAD.
PR:		244803
Submitted by:	Yasuhiro KIMURA <yasu_AT_utahime__dot__org>
2020-04-14 13:05:21 +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