Commit graph

132 commits

Author SHA1 Message Date
Greg Lewis
e106137361 java/openjdk8: Update to 8u432 2024-11-11 17:10:52 -08:00
Mikael Urankar
e13c811372
java/openjdk8: fix build on 32 bit arm
Fixes:
In file included from /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u422-b05.1/hotspot/src/os/bsd/vm/os_perf_bsd.cpp:61:
In file included from /usr/include/sys/user.h:51:
In file included from /usr/include/vm/pmap.h:88:
In file included from /usr/include/machine/pmap.h:48:
In file included from /usr/include/sys/systm.h:46:
/usr/include/machine/cpufunc.h:184:1: error: static declaration of 'breakpoint' follows non-static declaration
  184 | breakpoint(void)
      | ^
/wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u422-b05.1/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp:224:17: note: previous declaration is here
  224 | extern "C" void breakpoint();
      |                 ^

- bumped portrevision to easily spot if future bug reports are about this change.

PR:	281991
Approved by:	early maintainer timeout java@ (the build is broken and the patch does not affect other architectures)
Obtained from:	Mikael Urankar <mikael@> via Attachment 254105 in bug #255662
2024-10-11 13:55:05 +02:00
Dimitry Andric
5592576737 java/openjdk8: 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/openjdk8,
similar to:

    /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u422-b05.1/hotspot/src/share/vm/oops/cpCache.hpp:195:34: error: expression is not an integral constant expression
      195 |     option_bits_mask           = ~(((-1) << tos_state_shift) | (field_index_mask | parameter_size_mask))
          |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u422-b05.1/hotspot/src/share/vm/oops/cpCache.hpp:195:42: note: left shift of negative value -1
      195 |     option_bits_mask           = ~(((-1) << tos_state_shift) | (field_index_mask | parameter_size_mask))
          |                                          ^

    /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u422-b05.1/hotspot/src/share/vm/code/dependencies.hpp:173:27: error: expression is not an integral constant expression
      173 |     all_types           = ((1 << TYPE_LIMIT) - 1) & ((-1) << FIRST_TYPE),
          |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u422-b05.1/hotspot/src/share/vm/code/dependencies.hpp:173:59: note: left shift of negative value -1
      173 |     all_types           = ((1 << TYPE_LIMIT) - 1) & ((-1) << FIRST_TYPE),
          |                                                           ^

    In file included from /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u422-b05.1/jdk/src/share/native/com/sun/java/util/jar/pack/bands.cpp:43:
    /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u422-b05.1/jdk/src/share/native/com/sun/java/util/jar/pack/constants.h:226:33: error: expression is not an integral constant expression
      226 |     AO_UNUSED_MBZ             = (-1)<<13, // options bits reserved for future use.
          |                                 ^~~~~~~~
    /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u422-b05.1/jdk/src/share/native/com/sun/java/util/jar/pack/constants.h:226:37: note: left shift of negative value -1
      226 |     AO_UNUSED_MBZ             = (-1)<<13, // options bits reserved for future use.
          |                                     ^

In openjdk11 and later, the (-1) constants have been replaced by the
unsigned variant (~0u), which fixes these errors.

PR:		280559
Approved by:	glewis (maintainer)
MFH:		2024Q3
2024-08-07 18:44:09 +02:00
Greg Lewis
8f2d7bee51 java/openjdk8: Update to 8u422 2024-07-27 23:08:31 -07:00
Piotr Kubaj
632efb35cd java/openjdk8: allow using DSCR on powerpc64
DSCR was disabled because of a bug in stable/12.
Additionally, remove ELFv1 support.
2024-01-02 14:35:31 +01:00
Greg Lewis
a17847a234 java/openjdk8: Update to 8u372 2023-04-29 00:11:41 -07:00
Greg Lewis
03c1303690 java/openjdk8: 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
Piotr Kubaj
27753529c1 java/openjdk8: commit forgotten patch
Reported by:	mikael
2023-02-20 14:44:06 +01:00
Greg Lewis
abec68416a java/openjdk8: Update to 8u362 2023-01-22 17:07:41 -08:00
Dimitry Andric
d7146f6d33 java/openjdk8: fix build with clang 15
During an exp-run for llvm 15 (see bug 265425), it turned out that
java/openjdk8 failed to build with clang 15:

    /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u352-b08.1/jdk/src/share/bin/splashscreen_stubs.c:64:30: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'int' [-Wint-conversion]
        INVOKE(SplashLoadMemory, NULL)(pdata, size);
                                 ^~~~
    /usr/include/sys/_null.h:34:14: note: expanded from macro 'NULL'
    #define NULL    ((void *)0)
                    ^~~~~~~~~~~
    /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u352-b08.1/jdk/src/share/bin/splashscreen_stubs.c:60:39: note: expanded from macro 'INVOKE'
    #define INVOKE(name,def) _INVOKE(name,def,return)
                                          ^~~
    /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u352-b08.1/jdk/src/share/bin/splashscreen_stubs.c:57:25: note: expanded from macro '_INVOKE'
        if (!proc) { return def; } \
                            ^~~
    /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u352-b08.1/jdk/src/share/bin/splashscreen_stubs.c:68:28: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'int' [-Wint-conversion]
        INVOKE(SplashLoadFile, NULL)(filename);
                               ^~~~
    /usr/include/sys/_null.h:34:14: note: expanded from macro 'NULL'
    #define NULL    ((void *)0)
                    ^~~~~~~~~~~
    /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u352-b08.1/jdk/src/share/bin/splashscreen_stubs.c:60:39: note: expanded from macro 'INVOKE'
    #define INVOKE(name,def) _INVOKE(name,def,return)
                                          ^~~
    /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u352-b08.1/jdk/src/share/bin/splashscreen_stubs.c:57:25: note: expanded from macro '_INVOKE'
        if (!proc) { return def; } \
                            ^~~
    2 errors generated.

Indeed, instead of the pointer value NULL, the integer value 0 should be
used.

PR:		268223
Approved by:	portmgr (tcberner)
MFH:		2022Q4
2022-12-18 18:23:58 +01:00
Greg Lewis
60e0223972 java/openjdk8: Use the distributed cacerts
PR:		266723
Reported by:	Michael Osipov <michael.osipov@siemens.com>
2022-11-03 22:52:56 -07:00
Greg Lewis
8efb59db35 java/openjdk8: Update to 8u342 2022-08-01 21:15:45 -07:00
Greg Lewis
54d64d5a98 java/openjdk8: Fix the build on aarch64 2022-05-07 20:51:19 -07:00
Greg Lewis
22a5ad0dc8 java/openjdk8: Update to 8u332 GA 2022-05-04 18:34:18 -07:00
Greg Lewis
4568b98a98 java/openjdk8: Update to 8u312 2021-10-31 11:07:43 -07:00
Piotr Kubaj
602c26c145 java/openjdk8: fix runtime issues on powerpc64*
Running java or javac executables fails with:
Error: dl failure on line 910
Error: failed /usr/local/openjdk8/jre/lib/ppc64le/server/libjvm.so, because /usr/local/openjdk8/jre/lib/ppc64le/server/libjvm.so: Undefined symbol "_ZN5frameC1EPlPh"
2021-09-03 13:19:12 +00:00
Piotr Kubaj
3700c180db java/openjdk8: fix build on powerpc64*
/wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u302-b08.1/hotspot/src/os_cpu/bsd_ppc/vm/thread_bsd_ppc.cpp:45:37: error: use of undeclared identifier 'uc_mcontext'
    frame ret_frame((intptr_t*)uc->>uc_mcontext.mc_gpr[1/*REG_SP*/],
                                    ^
/wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u302-b08.1/hotspot/src/os_cpu/bsd_ppc/vm/thread_bsd_ppc.cpp:88:18: error: redefinition of 'pd_get_top_frame_for_signal_handler'
bool JavaThread::pd_get_top_frame_for_signal_handler(frame* fr_addr, void* ucontext, bool isInJava) {
                 ^
/wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u302-b08.1/hotspot/src/os_cpu/bsd_ppc/vm/thread_bsd_ppc.cpp:83:18: note: previous definition is here
bool JavaThread::pd_get_top_frame_for_signal_handler(frame* fr_addr, void* ucontext, bool isInJava) {
2021-08-04 19:34:19 +00:00
Greg Lewis
4dca33c0a4 java/openjdk8: Update to 8u302 2021-07-30 19:01:28 -07:00
Mikael Urankar
1025536a1c java/openjdk8: Fix build on armv6/7
PR:		255326
Reported by:	tech-lists@zyxst.net
Approved by:	portmgr (tier-2 / build fix blanket)
2021-05-14 10:30:52 +02:00
Greg Lewis
2c4828e1b5 Update to 8u282 GA 2021-01-21 03:05:07 +00:00
Piotr Kubaj
4d2bb2699b java/openjdk8: add support for powerpc64le
powerpc64le needs --disable-jfr and USE_PRECOMPILED_HEADER=0 - same as powerpc64 elfv2.

Clang refuses to build little-endian binaries for power7, this needs to be bumped to power8 (this is a bug in openjdk, POWER7 is not LE-compatible).

-minsert-sched-nops=regroup_exact -mno-multiple -mno-string are not supported by clang and need to be removed.

FreeBSD uses sys/endian.h instead of byteswap.h and bswap{16,32,64} instead of bswap_{16,32,64}.

PR:		251247
Approved by:	java (maintainer timeout)
2020-12-03 23:39:47 +00:00
Greg Lewis
3e118ecb88 Update to 8u272 2020-10-23 03:30:53 +00:00
Jung-uk Kim
d859457c02 Add upstream patches to build with "-fno-common".
This is default with Clang 11 and GCC 10.

https://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/41be6128f4c1
https://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/d5c69bd5f7ad
2020-08-19 22:40:04 +00:00
Piotr Kubaj
52b815fde4 java/openjdk8: fix patching on powerpc64 elfv2
Patching hotspot/src/cpu/ppc/vm/sharedRuntime_ppc.cpp is not necessary anymore.
2020-08-03 15:30:38 +00:00
Piotr Kubaj
47a00a0292 java/openjdk8: fix patching
Remove files/patch-hotspot_src_cpu_ppc_vm_sharedRuntime__ppc.cpp to fix patching.
I'm not sure why this patch was added. Removing it doesn't break build on powerpc64 (both elfv1 and elfv2). There's no include for alloca.h in sharedRuntime_ppc.cpp.
2020-07-30 21:45:02 +00:00
Greg Lewis
ecb1055969 Fix the build for PowerPC64
Submitted by:	Curtis Hamilton
2020-07-23 02:15:25 +00:00
Greg Lewis
fe3188ebad Update to 8u262 2020-07-16 03:45:28 +00:00
Greg Lewis
d916436f2a Don't print the company name in the version info
This evidently breaks some software that does parsing of -version output

PR:		244634
Submitted by:	Stefan Ehmann <shoesoft@gmx.net>
2020-07-13 05:29:33 +00:00
Jung-uk Kim
7500155a45 Fix linker errors with libinotify.
A patch was mismerged in the previous update.

PR:		243454
2020-04-08 20:43:11 +00:00
Greg Lewis
a5fb52f085 Update to 8u242
Security:	https://openjdk.java.net/groups/vulnerability/advisories/2020-01-14
2020-01-16 22:00:22 +00:00
Piotr Kubaj
a14ab5cbd0 java/openjdk8: add bootstrap and fix compilation for powerpc64 elfv2
Since the maintainer didn't respond, I'm adding the bootstrap to my own directory on freefall.

PR:		242965
Submitted by:	Mikael Urankar (original version)
Approved by:	java (maintainer timeout)
2020-01-12 19:10:40 +00:00
Greg Lewis
0de0dbaf3a Fix line numbers so patch can be applied
PR:		241324
Submitted by:	VVD <vvd@unislabs.com>
2019-10-23 15:27:30 +00:00
Greg Lewis
e0172e6694 Fix build with FONTCONFIG
* This gets the fontconfig patch applying cleanly and building.  No idea
  if it actually works or not.

PR:		241294
2019-10-17 23:45:38 +00:00
Greg Lewis
eb5f920507 Fix file interaction
* Load libnio in BsdNativeDispatcher, as per other OSes
* Export getmntonname0 from libnio

PR:		241317
Submitted by:	cmt@
2019-10-17 22:39:05 +00:00
Greg Lewis
936499b286 Update to 8u232 2019-10-16 02:28:37 +00:00
Greg Lewis
3a4c96b01f Update cacerts
* Use the latest cacerts file from Oracle's public distribution of 8u221.
2019-08-20 18:33:32 +00:00
Greg Lewis
c1db705823 Workaround for infinite recursion crash
* FreeBSD crashes on infinite recursion rather than throwing a stack
  overflow because the stack address of the fault is in the page below
  the guard area.  Workaround this by rounding down the fault address to
  the nearest page boundary.  Investigation is still under way into what
  may be causing this but this appears to prevent it in simple test cases.

PR:		222146
2019-08-12 04:05:58 +00:00
Greg Lewis
3b8668c653 Fix the build for the FONTCONFIG option
* Updated the fontconfig.patch file
* Simplified FONTCONFIG to use EXTRA_PATCHES rather than a separate target

PR:		239358
Submitted by:	John Hein <jcfyecrayz@liamekaens.com>, fluffy
2019-07-24 23:37:05 +00:00
Greg Lewis
ded732340a Fix the build for powerpc64
PR:		239368
Submitted by:	pkubaj
2019-07-24 23:29:39 +00:00
Greg Lewis
eee68625ae * Update to 8u212.
* Change master site to Github
* Remove patches and Makefile fixes that have been upstreamed to Github
2019-04-19 16:31:33 +00:00
Greg Lewis
33ddc15f90 . Update to 8u202. 2019-02-12 11:48:56 +00:00
Greg Lewis
d82ababf17 . When upgrading to 8u192 the endianess definitions specific to BSD were
missed during a large merge of the configuration file.  This resulted in,
  at least, macros affecting maths operations using the big endian rather
  than the little endian versions.

PR:		234689
2019-02-09 07:16:04 +00:00
Jung-uk Kim
2fa9296bac Add a missing symbol in the linker map file.
PR:		234593
2019-01-18 00:47:15 +00:00
Alex Dupre
ad43f6fd6e Add a WatchService implementation backed by kqueue,
leveraging the libinotify wrapper.

It's still possible to use the polling watchservice,
by defining the following system property:

 sun.nio.fs.watchservice=polling
2018-12-27 09:52:52 +00:00
Alex Dupre
848047809f Add support for millisecond resolution to get/setLastModifiedTime
in both Java IO and NIO.
2018-12-27 09:46:44 +00:00
Greg Lewis
4f3b06b197 . Fix SCTP support.
PR:		230321
Submitted by:	Timo Voelker <timo.voelker@fh-muenster.de>
2018-12-08 19:09:28 +00:00
Greg Lewis
37d69a8fea . Fix compilation on powerpc64
PR:		223834
Submitted by:	Curtis Hamilton <hamiltcl@verizon.net>
2018-12-08 18:43:56 +00:00
Greg Lewis
7fd2bcba96 . Update to 8u192.
PR:		230364
2018-12-08 18:35:30 +00:00
Jung-uk Kim
93c79b58f9 - Fix reversed ccache version detection logic. Enable ccache support.
- Use '-pthread' for Clang.  Clang supports '-pthread' on all BSDs except
for Darwin. [1]

Reported by:	Achilleas Mantzios <achill@matrix.gatewaynet.com> [1]
Tested by:	Achilleas Mantzios <achill@matrix.gatewaynet.com> [1]
2018-11-16 17:30:17 +00:00
Greg Lewis
1e0bab92eb . Update to 8u181. 2018-09-08 20:53:33 +00:00