Commit Graph

51 Commits

Author SHA1 Message Date
Ronald Klop d5120faaae java/openjdk11: fix build on freebsd 16/aarch64
=== Output from failing command(s) repeated here ===
* For target hotspot_variant-server_libjvm_objs_os_perf_bsd.o:
In file included from /wrkdirs/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.30-7-1/src/hotspot/os/bsd/os_perf_bsd.cpp:53:
In file included from /usr/include/sys/user.h:52:
In file included from /usr/include/vm/pmap.h:88:
In file included from /usr/include/machine/pmap.h:46:
In file included from /usr/include/sys/systm.h:46:
/usr/include/machine/cpufunc.h:35:1: error: static declaration of 'breakpoint' follows non-static declaration
   35 | breakpoint(void)
      | ^
/wrkdirs/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.30-7-1/src/hotspot/share/utilities/breakpoint.hpp:31:17: note: previous declaration is here
   31 | extern "C" void breakpoint();
      |                 ^
1 error generated.

* All command lines available in /wrkdirs/usr/ports/java/openjdk11/work/jdk11u-jdk-11.0.30-7-1/build/bsd-aarch64-normal-server-release/make-support/failure-logs.
=== End of repeated output ===

Similar fix as openjdk8/25/26.

I don't know why this does not happen on other architectures or freebsd
versions.

- changed post-patch to pre-configure, this makes it a lot easier to use "make
makepatch".

Reported-by:	https://portsfallout.com/fallout?port=java%2Fopenjdk
Approved-by:	silence on java@ https://lists.freebsd.org/archives/freebsd-java/2026-June/003715.html
2026-06-25 09:11:38 +02:00
Greg Lewis 1019f032bb java/openjdk11: Update to 11.0.29 2025-11-02 13:48:20 -08:00
Baptiste Daroussin 3a407ba074 openjdk: remove need for fdescfs(5) and probably procfs(5)
Implement getCommittedVirtualMemorySize() directly using sysctl
kern.proc.vmmap
Implement getOpenFileDescriptorCount() directly using sysctl
kern.proc.nfds

Note on openjdk17 use closefrom where possible (note this use case is
only in openjdk 17, 21, 23 and 24)

Remove the message about the use of fdescfs(5) as this is not needed
for sure, keep the information about procfs(5) as I have not analysed
enough the source code to make sure it is not used anywhere else, but
I don't think it is.
2025-06-27 17:14:08 +02:00
Greg Lewis f7852c91e9 java/openjdk11: Update to 11.0.27 2025-04-20 15:26:19 -07:00
Piotr Kubaj 5b9206709f java/openjdk11: add support for powerpc 2025-01-12 22:37:03 +01:00
Ronald Klop 9f218b263a java/openjdk11: fix build on non-armv7
A change to one of the patches was not correct for other
architectures.

PR:	255662
Approved by:	broken build
2024-11-10 23:02:43 +01:00
MikaelUrankar b42fb59dbc java/openjdk11: fix build on 32 bit arm
Slightly adjusted the patch of Mikael Urankar to make sure it only
affects __arm__ builds.
The patch is similar to what fixed openjdk8 in
commit e13c811372.

Not bumping portrevision as nothing changes for existing pkgs.

PR:	255662
Approved by:	java@ (maintainer timeout)
2024-11-08 13:49:33 +01: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
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 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
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 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
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
Greg Lewis 0877cf18c3 java/openjdk11: Update to 11.0.13 2021-10-31 11:07:42 -07: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
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 7166661c68 Update to 11.0.9 2020-10-23 03:58:05 +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
Dmitri Goutnik 7d93186245 java/openjdk11: Add fontconfig support
PR:		247238
Approved by:	java (glewis)
2020-07-02 23:31:38 +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
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
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 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 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
Greg Lewis c1c56f1796 Add support for powerpc64
PR:		237208
2019-08-25 20:28:47 +00:00
Greg Lewis 9dac406b78 Update cacerts
* Use the latest cacerts file from Oracle's public distribution of 11.0.4.
2019-08-20 18:03:28 +00:00
Greg Lewis dda3f471cf Update to 11.0.4+11.2 2019-08-13 04:41:40 +00:00
Greg Lewis 89a5e6cd1a Fix the build on PowerPC64
PR:		239624
Submitted by:	Curtis Hamilton <hamiltcl@verizon.net>
2019-08-04 23:04:33 +00:00
Greg Lewis 5a5d4db763 . Update to 11.0.3. 2019-04-17 18:31:26 +00:00
Greg Lewis 51cf7dc135 Fix DTrace support for 32 bit platforms and re-enable it.
PR:		236876
2019-03-29 17:06:20 +00:00
Greg Lewis 3445be9c57 . Update to 11.0.2.9.4
. 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 01:05:26 +00:00
Jung-uk Kim d98a910efa Refine r496923.
libinstrument.so and libjdwp.so do not need anything from $LOCALBASE but
libsplashscreen.so does.  For example,

% cd /usr/local/openjdk11
% bin/java -jar demo/jfc/SwingSet2/SwingSet2.jar
ld-elf.so.1: /usr/local/openjdk11/lib/libsplashscreen.so: Undefined symbol
"libiconv_open"

PR:		236759
2019-03-28 23:19:00 +00:00
Greg Lewis 17ca9c16ac Fixes for include path, jshell, and process issues.
* Put MD specific include files (e.g. jni_md.h) in a subdirectory named
  'freebsd' rather than 'bsd'. [1]
* Remove the necessity to always have /usr/local/include in the header
  paths and linker paths.  This allows jshell to use the system iconv.h
  rather than the third party one and link correctly. [2]
* Fix getting process commands and arguments on FreeBSD.
* Bump PORTREVISION.

All fixes need forward porting to openjdk12.

PR:		236754 [1], 236759 [2]
Submitted by:	Kurt Miller [2]
2019-03-26 20:48:04 +00:00
Greg Lewis d2a6dd1a42 Update to 11.0.2.9.2 2019-03-20 20:58:59 +00:00
Greg Lewis e44a4cbf25 Add a port of OpenJDK 11 2019-03-15 06:02:17 +00:00
Greg Lewis 4c705d4110 Removing openjdk11 temporarily to do a repo copy from openjdk8 first. 2019-03-15 05:56:34 +00:00