Commit graph

107 commits

Author SHA1 Message Date
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
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
47bbc35509 Reinstate guidance to have /proc mounted
* Having /proc mounted is not generally critical, but there is at least one
  piece of functionality that does rely on its presence at the moment
  (e.g. OperatingSystemMXBean)
2019-11-09 22:28:53 +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
Greg Lewis
e4d88a10b0 Remove guidance about needing procfs
* Remove portions of pkg-message that mention needing /proc mounted.
  This hasn't been the case for a while afaik (I don't have it mounted
  and haven't observed any related problems).
2019-08-28 15:34:32 +00:00
Greg Lewis
c1c56f1796 Add support for powerpc64
PR:		237208
2019-08-25 20:28:47 +00:00
Greg Lewis
2a60da4a4a Pet portlint 2019-08-20 18:05:26 +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
Mathieu Arnold
3bd0ac0d72 Convert to UCL & cleanup pkg-message (categories h-k) 2019-08-13 22:22:35 +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
5aac9afa48 Register openjdk11 as a java provider with javavm
PR:		238092
Submitted by:	Tommy P <tommyhp2@gmail.com>
2019-07-31 16:31:52 +00:00
Gerald Pfeifer
ea8c8ec7da Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
2019-07-26 20:46:53 +00:00
Greg Lewis
93dbf94b5e * Add a dependency on xrandr, since the latest version uses Xrandr.h
* Set NO_CCACHE to match configure being passed --disable-ccache

Fixes the build in poudriere and for people trying to use ccache

PR:		239387
Submitted by:	Jonathan Chen <jonc@chen.org.nz>
2019-07-24 22:41:40 +00:00
Greg Lewis
ddc3913842 Update to 11.0.4 2019-07-19 17:07:37 +00:00
Greg Lewis
2fbef85da7 Convert one missed /usr/local to ${LOCALBASE}
Submitted by:	jbeich@
2019-07-01 23:24:59 +00:00
Greg Lewis
dc5a916b1b Allow the JDK to be compiled with gcc.
This is required for powerpc64 support.
2019-07-01 21:18:18 +00:00
Antoine Brodin
e19903f0ae Clean up LIB_DEPENDS 2019-06-16 16:05:28 +00:00
Greg Lewis
9349169aad Update to 11.0.3.7.2 which includes powerpc64 support.
PR:		237208
2019-05-17 04:15:29 +00:00
Mathieu Arnold
bd3fd6f002 Use USE_GITHUB when appropriate. 2019-05-11 19:52:08 +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
40d8a17508 Temporarily disable DTRACE on i386
PR:		236876
2019-03-29 15:41:06 +00:00
Greg Lewis
8e56f4080e Remove unnecessary CPPFLAGS and LDFLAGS. 2019-03-29 05:58:56 +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
50a634ab39 . Fix permissions on jspawnhelper.
. Bump PORTREVISION.
2019-03-21 18:32:50 +00:00
Greg Lewis
5e8e130cbb Support i386 2019-03-21 17:22:38 +00:00