Commit graph

108 commits

Author SHA1 Message Date
Dimitry Andric
3378cc494d java/openjdk8 java/openjdk11 java/openjdk17 java/openjdk18 java/openjdk19 java/openjdk20 java/openjdk21 java/openjdk22: disable warnings as errors
Generally disable warnings-as-errors for all openjdk ports, removing all
the conditionals we have now for particular architectures and/or
compilers. It does not make sense to have this on by default, unless you
are an upstream maintainer.

PR:		281188
Approved by:	maintainer timeout (2 weeks)
MFH:		2024Q3
2024-09-15 13:36:13 +02:00
Mikhail T.
e3120f0ac0
java/openjdk11: respect compiler and linker flags
pass CFLAGS, CXXFLAGS and LDFLAGS to the build
This enables more easily testing different build options.

fix build on gcc by passing --disable-precompiled-headers not only on powerpc64
"Without this, I was getting PCH-error from g++12 on my amd64 machine too."

PR:	279367
Tested by:	poudriere
Approved by:	maintainer timeout (java@)
2024-09-10 13:34:53 +02:00
Dimitry Andric
d2ae63c6fe java/openjdk11: fix build with clang 19
Clang 19 is now more strict about undefined integral expressions used as
constants in enum, which results in errors compiling java/openjdk11,
similar to:

    /wrkdirs/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.24-8-1/src/jdk.pack/share/native/common-unpack/constants.h:206:33: error: expression is not an integral constant expression
      206 |     AO_UNUSED_MBZ             = (-1)<<13, // options bits reserved for future use.
          |                                 ^~~~~~~~
    /wrkdirs/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.24-8-1/src/jdk.pack/share/native/common-unpack/constants.h:206:37: note: left shift of negative value -1
      206 |     AO_UNUSED_MBZ             = (-1)<<13, // options bits reserved for future use.
          |                                     ^

Replace the negative value with ~0u to fix this error.

PR:		280560
Approved by:	glewis (maintainer)
MFH:		2024Q3
2024-08-07 18:44:21 +02:00
Greg Lewis
d3f2c6d9be java/openjdk11: Update to 11.0.24 2024-07-27 23:08:32 -07:00
Vladimir Druzenko
08cc50220f java/openjdk11: remove custom LLVM - build with LLVM from base
Segfaults are no longer observed with current versions of LLVM 17 and 18
in base 13.3 and 14.1, so there is no need to pull such an old version
from ports to build.
For example build java/openjdk11 with LLVM from base and then build
java/eclipse and java/openjfx14 using java/openjdk11: build and run
without errors.

PR:		280056 260319
Approved by:	java (maintainer, timeout 14 days)
2024-07-14 16:44:52 +03:00
Rene Ladan
19d68720f1 all: drop support for FreeBSD 13.2 which reached EOL today
Thanks again to jbeich for noticing various things I overlooked.

Reviewed by:	acm, ashish, eduardo, ehaupt, eugen, jbeich, martymac, mat, nobukata, sunpoet, tagattie, yuri, arrowd, kde
Differential Revision:	https://reviews.freebsd.org/D45141
2024-07-01 22:27:23 +02:00
Greg Lewis
16826db7f3 java/openjdk11: Update to 11.0.23 2024-04-30 22:01:09 -07:00
Michael Osipov
d901bf5df9 java/openjdk*: Allow users to specify an alternative cacerts file
Similar to certificate management with certctl(8) users can use custom
enterprise CAs. These need to be assembled into a custom cacerts file.
Therefore, an admin can install a custom truststore to an arbitrary
location and have the OpenJDK port symlink to it by adding
OPENJDK_SYMLINK_CACERTS to make.conf.
E.g., OPENJDK_SYMLINK_CACERTS=/usr/local/etc/ssl/cacerts.

PR:		229329
Approved by:	jrm (mentor), otis (mentor), glewis
Differential Revision:	https://reviews.freebsd.org/D42720
2024-02-09 20:52:07 +01:00
Greg Lewis
2a1ddd7fcf java/openjdk11: Update to 11.0.22 2024-02-04 14:51:32 -08:00
Piotr Kubaj
f16c9201eb java/openjdk11: drop ELFv1 support 2024-01-05 22:01:01 +01:00
Muhammad Moinur Rahman
bbab7f59e9 */*: Sunset 12.4-RELEASE/12-STABLE from ports tree
- Remove all references to defunct ARCH arm
- Remove all references to defunct ARCH sparc64
- Remove x11-drivers/xf86-video-sunffb which requires defunct sparc64
  ARCH
- Remove sysutils/afbinit requires defunct sparc64 ARCH
- Remove all references to bktr driver
- Remove all references to defunct FreeBSD_12
- Remove all references to OSVERSION/OSREL corresponding to 12
- Remove conditionals in Mk/Uses/cabal.mk
- Remove sparc reference from Mk/Uses/qt-dist.mk
- Remove BROKEN_sparc64/NOT_FOR_ARCH=sparc64
- Remove BROKEN_FreeBSD_12* from:
- Remove OpenSSL patches from:
- Remove conditional flags for OSVERSION >= 1300000 to fixed flags.
  Also move conditional flags for non sparc64/arm ARCH to fixed flags.

Reviewed by:	brooks, jbeich, rene, salvadore
Differential Revision: https://reviews.freebsd.org/D42068
2023-12-31 01:37:05 +01:00
Greg Lewis
8fce7fa967 java/openjdk11: Update to 11.0.21 2023-10-20 13:38:46 -07:00
Daniel Engberg
664a2fa1e5 */*: Bump jpeg-turbo users treewide
New major version 3.0.0
2023-07-28 19:13:17 +02:00
Greg Lewis
fbeb951105 java/openjdk11: Update to 11.0.20 2023-07-22 23:57:35 -07:00
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