439 Commits

Author SHA1 Message Date
kurt
1ff3721471 Update to 8u265 GA 2020-08-03 16:10:25 +00:00
kurt
ce85110c65 Update to 8u262 GA:
* Contains many upstream bug fixes and security fixes which can be found
  in the release notes here:
  https://adoptopenjdk.net/release_notes.html#jdk8u262
  https://openjdk.java.net/groups/vulnerability/advisories/2020-07-14
* Remove reduction of the default compressed class space size now that
  PROT_NONE memory isn't included in RLIMIT_DATA.
2020-07-16 15:47:29 +00:00
kurt
81c70f05bd Update to 11.0.8 GA:
* Contains many upstream bug fixes and security fixes which can be found
  in the release notes here:
  https://adoptopenjdk.net/release_notes.html#jdk11_0_8
  https://openjdk.java.net/groups/vulnerability/advisories/2020-07-14
* Remove reduction of the default compressed class space size now that
  PROT_NONE memory isn’t included in RLIMIT_DATA.
2020-07-16 15:46:49 +00:00
kurt
96cf8b8e49 Fix JVM crash when loading libjsound.so:
java:/usr/local/jdk-11/lib/libjsound.so: undefined symbol
'DAUDIO_GetDirectAudioDeviceCount'
ld.so: java: lazy binding failed!

The JVM does not currently have sound support on OpenBSD.
Change the way that libjsound is disabled to match aix which
also doesn't have sound support.

okay sthen@
2020-05-05 13:35:58 +00:00
kurt
ca9f97a686 Update to 8u252 GA:
* Contains many upstream bug fixes and security fixes which can be found
in the release notes here:
https://adoptopenjdk.net/release_notes.html#jdk8u252
https://openjdk.java.net/groups/vulnerability/advisories/2020-04-14
* Adjust build-bootjdk target to work with PORTS_PRIVSEP
2020-04-24 14:46:56 +00:00
kurt
69c5385eda Update to 11.0.7 GA:
* Contains many upstream bug fixes and security fixes which can be found
in the release notes here:

https://adoptopenjdk.net/release_notes.html#jdk11_0_7
https://openjdk.java.net/groups/vulnerability/advisories/2020-04-14

* Remove patches committed upstream
* Fix building without utmpx.h
* Adjust build-bootjdk target to work with PORTS_PRIVSEP
2020-04-22 15:05:17 +00:00
naddy
d159f8d1ad Make use of "find -exec {} +" (which is POSIX) and "find -delete"
(which is not) throughout the ports Makefiles.

* Replace find|xargs with find -exec {} +
* Replace -exec {} \; with -exec {} + if applicable.
* Use the -delete operator to remove files and empty directories.
* Combine and tweak some find(1) invocations while here.

ok kn@ rsadowski@ espie@
2020-03-20 16:44:21 +00:00
kurt
96e2fe3cb2 Fix build on aarch64 and an upstream bugfix:
* Rebuild bootstrap JDKs due to the recent arm64 syscall ABI change.
* Don't throw IOException if the close(2) failure was due to
  ECONNRESET. From upstream repo.
2020-02-26 02:17:12 +00:00
naddy
11b1187f19 upstream fix for changed handling of include file open failures in
upcoming gmake 4.3; ok kurt@
2020-02-01 15:06:24 +00:00
kurt
2df46a14e2 Update to 8u242:
* Contains many upstream bug fixes and security fixes which can be found
in the release notes here:

https://adoptopenjdk.net/release_notes.html#jdk8u242
https://openjdk.java.net/groups/vulnerability/advisories/2020-01-14
2020-01-18 17:42:58 +00:00
kurt
6b9894b1e7 Update to 11.0.6+10 GA:
* Contains many upstream bug fixes and security fixes which can be found
in the release notes here:

https://adoptopenjdk.net/release_notes.html#jdk11_0_6
https://openjdk.java.net/groups/vulnerability/advisories/2020-01-14

* Disable building with debug on i386/aarch64
2020-01-18 00:18:36 +00:00
kurt
5fbb2db630 Add debug package support.
The jdk has options for controlling debug symbol generation. However,
these options don't line up well with our debug package support. Using
--with-native-debug-symbols=internal bloats the jdk package by
including debug info in the jmod's. Using external mode doesn't do
this but results in debug info files and debug links that don't match
our debug package setup. To get decent results the following was done:

* Use --with-native-debug-symbols=external
* Patch the jdk to copy the full bin/lib to the .debuginfo file
  instead of using objcopy --only-keep-debug.
* In post-build move/copy the .debuginfo files over their stripped
  versions.
* Fixup a few cases where the debuginfo file wasn't installed into
  the images directories.
2019-12-17 14:22:30 +00:00
sthen
e506a46e80 Treat DPB_PROPERTIES=parallel as a hint that a port is parallel-safe
for use in regular builds too; if that is present in a port, use
${PARALLEL_MAKE_JOBS} jobs in the build, defaulting to hw.ncpuonline.

Adjust PARALLEL_BUILD=No, this originally seemed intended to be a hint
that a port could NOT handle a parallel build, but current usage is
"don't pass make -jXX because this port has its own way to handle things",
instead change this to a slightly more understandable PARALLEL_MAKE_FLAGS
variable. This defaults to -j${PARALLEL_MAKE_JOBS} but can be reset for
build system requirements as needed (java/libreoffice have their own
mechanism) and is added automatically to MAKE_FLAGS where a build uses
>1 concurrent job.

Based on a diff from / ok espie@ - the default value may want revising
as hw.ncpuonline jobs will be too many in some cases (e.g. machines with
many cores or low RAM), but committing at this stage to avoid further
out-of-tree bikeshedding. If you need to restrict to a lower number of
jobs, set e.g. PARALLEL_MAKE_JOBS=2 in /etc/mk.conf, and please provide
feedback.
2019-12-05 21:18:08 +00:00
tb
be0bab9112 Fix file interaction: load libnio in BsdNativeDispatcher and export
getmntonname0 from libnio.  Fixes scala -howtorun:script breakage
reported by solene.

Patch from https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241317

ok kurt
2019-11-21 17:39:08 +00:00
kurt
fda327c8c0 Update to 11.0.5+10 GA:
* Contains many upstream bug fixes and security fixes which can be mined
  from the release notes here:

https://adoptopenjdk.net/release_notes.html#jdk11_0_5
2019-10-26 17:04:15 +00:00
kurt
405d509bf8 Update to u232:
* Contains many upstream bug fixes and security fixes which can be mined
  from the release notes here:

https://adoptopenjdk.net/release_notes.html#jdk8u232
2019-10-26 17:03:11 +00:00
kurt
ae862ebd55 Update java.port.mk module to support jdk/11 only on aarch64.
okay sthen@
2019-09-23 16:54:23 +00:00
kurt
3b025beca0 Update devel/jdk/11 to 11.0.5+8 which includes aarch64 support.
* 11.0.5 is not released officially yet so this is realy a pre-
  release of 11.0.5 and will be updated again when the final
  upstream release occurs.
* Adds aarch64 support.
* Contains many upstream changes between 11.0.4+11 and 11.0.5+8
* Contains many bsd-port changes to improve stablity and
  compatiblity.

okay sthen@
2019-09-23 16:09:24 +00:00
kurt
7757b137b6 Add missing build depend on archivers/gtar. okay naddy@ 2019-09-13 16:18:33 +00:00
kurt
b0fdb9e3f3 Update to 11.0.4+11:
* Contains many upstream bug fixes and security fixes which can be mined
  from the release notes here:

  https://adoptopenjdk.net/release_notes.html

* Remove patches merged into bsd-port upstream
* Add corrections for issues that didn't make the bsd-port release
2019-07-23 11:55:42 +00:00
kurt
f31adb89db Update to u222:
* Contains many upstream bug fixes and security fixes which can be mined
  from u212-u222 release notes here:

  https://adoptopenjdk.net/release_notes.html

* Removed patches merged upstream
2019-07-22 23:15:39 +00:00
sthen
f74b6c2d62 replace simple PERMIT_PACKAGE_CDROM=Yes with PERMIT_PACKAGE=Yes 2019-07-12 20:44:34 +00:00
kurt
25c0886858 Upstream fixes:
* Fix return value from closeDescriptors()
* Emulate waitid(2) with kqueue(2)
2019-06-17 19:23:40 +00:00
kurt
973854b9de Fix return value from closeDescriptors(). 2019-06-17 19:21:38 +00:00
kurt
6d05858b09 Adjust java module to ensure the correct build jdk is used:
* Add JAVA_HOME to MAKE_ENV and CONFIGURE_ENV for any port that uses
the java module and doesn't also contain NO_BUILD=yes. Previously
this was limited to just MODJAVA_BUILD=ant, but that is not sufficient
for ports that indirectly use ant via makefiles.

okay sthen@
2019-06-11 00:36:04 +00:00
kurt
c7ce025ffc Update to u212:
* Contains many upstream bug fixes and security fixes which can be mined
  from u202-u212 release notes here:

  https://adoptopenjdk.net/release_notes.html

* Also contains a series of FreeBSD corrections merged into upstream repo.
* Remove jre package since jre package support was removed from
  java.port.mk and javaPathHelper already.

okay sthen@, ian@, naddy@
2019-06-11 00:35:17 +00:00
kurt
6d2144d5d6 Use closefrom(2) after fork/vfork and before exec instead of
opendir/readdir on /dev/fd. opendir/readdir are not async-signal-
safe and may not be safely called after forking in a multi-threaded
program. Issue raised to my attention by deraadt@.

Also update to bsd release 2 of 11.0.3-7 which contains BsdSocketOptions
fix and other corrections that can be viewed here:

https://github.com/battleblow/openjdk-jdk11u/releases

Okay ian@
2019-05-28 17:39:55 +00:00
kurt
576cdcb0c6 Use closefrom(2) after fork/vfork and before exec instead of
opendir/readdir on /dev/fd. opendir/readdir are not async-signal-
safe and may not be safely called after forking in a multi-threaded
program. Issue raised to my attention by deraadt@. Okay ian@
2019-05-28 17:37:40 +00:00
sthen
22de3ff02c set png16 WANTLIB entries back to png following the change in soname
part done by portbump, part by hand (it is easily confused)
2019-05-17 16:45:25 +00:00
kurt
4362760bb0 Update to 11.0.3+7:
https://www.oracle.com/technetwork/java/javase/11-0-3-oracle-relnotes-5290048.html

okay sthen@, pvk@ solene@
2019-04-18 18:06:17 +00:00
pvk
f96bdb4815 Add stubs for missing com.sun.management.internal.OperatingSystemImpl.{getSystemCpuLoad0,getProcessCpuLoad0} methods ok kurt@ sthen@ 2019-04-05 14:41:47 +00:00
sthen
4d4ae31d8f simplify java.port.mk and handle jdk 11, ok kurt@ 2019-03-28 19:00:47 +00:00
kurt
748e52f30e Add jdk/11 to build. okay sthen@ 2019-03-28 17:48:56 +00:00
kurt
dba47609b0 import jdk-11.0.2.9.3v0
The OpenJDK SDK software includes tools useful for developing and
testing programs written in the Java programming language and
running on the Java platform.

okay sthen@
2019-03-28 17:47:53 +00:00
kurt
fc1f40e8a2 Update to u202 which includes upstream fix for jdb issue.
Also contains many upstream bug fixes and security fixes which
can be mined from u192-u202 release notes here:

https://www.oracle.com/technetwork/java/javase/8u-relnotes-2225394.html

okay sthen@
2019-03-11 19:51:35 +00:00
kurt
78ae1b3660 - Restore bsd specific iconv make flags lost in upstream merge conflict.
Fixes missing libiconv_open symbol in libspashscreen.so.
2019-02-08 20:36:44 +00:00
kurt
63e6a59bbf - Update to u192
Contains many upstream bug fixes and security fixes which
can be mined from u172-u192 release notes here:

https://www.oracle.com/technetwork/java/javase/8u-relnotes-2225394.html

okay sthen@
2019-01-24 17:20:14 +00:00
kurt
663f54bb54 Lower the max memory used for i386 build so that it reliably
detects that it can use it and then it sets the max size of the
object heap while building. Having the max size set works
out better because it allocates it all at once and limits
the jdk from growing it a piece at a time randomly into
limited VM space.
2019-01-21 15:54:59 +00:00
sthen
99a062f78b patch jdk to disable use of mincore(), approach suggested by / ok kurt@ jca@
switch to new bootstraps
2019-01-11 22:08:11 +00:00
sthen
417ee3b07d regen patches only, no pkg change 2019-01-11 17:21:38 +00:00
sthen
25f0e460f2 Add COMPILER lines to c++ ports which currently use the default. Adjust
some existing COMPILER lines with arch restrictions etc. In the usual
case this is now using "COMPILER = base-clang ports-gcc base-gcc" on
ports with c++ libraries in WANTLIB.

This is basically intended to be a noop on architectures using clang
as the system compiler, but help with other architectures where we
currently have many ports knocked out due to building with an unsuitable
compiler -

- some ports require c++11/newer so the GCC version in base that is used
on these archirtectures is too old.

- some ports have conflicts where an executable is built with one compiler
(e.g. gcc from base) but a library dependency is built with a different
one (e.g. gcc from ports), resulted in mixing incompatible libraries in the
same address space.

devel/gmp is intentionally skipped as it's on the path to building gcc -
the c++ library there is unused in ports (and not built by default upstream)
so intending to disable building gmpcxx in a future commit.
2018-10-24 14:27:57 +00:00
espie
f4b7f81318 convert to PKGSTEM 2018-09-04 12:46:09 +00:00
kurt
2fa1af9aa7 - Update to u172
Contains many upstream bug fixes and security fixes which
can be mined from u144-u172 release notes here:

http://www.oracle.com/technetwork/java/javase/8u-relnotes-2225394.html

- Many patches for clang 6.0 were already resolved upstream through the
  use of -std=gnu++98
- Includes alternate fix for memTracker placement new on read-only memory
  committed upstream
- Includes upstream fix for unsafe.o SIGSEGV reported by Mike Belopuhov
2018-06-04 17:03:35 +00:00
sthen
08215e0aa6 more whitespace around constants for clang6, in an i386-only file 2018-04-11 17:03:12 +00:00
sthen
fbb431dbe7 runtime fix for jdk with clang6, found by me, then forgotten about and
re-found by dcoppa@
2018-04-11 12:26:56 +00:00
sthen
26a6f3763d clang6 fixes from Matthew Martin, mostly spaces around constants, plus
some others.
2018-04-11 12:25:59 +00:00
sthen
a435785adf spaces around constants; part of what's needed for new clang 2018-04-07 12:08:18 +00:00
sthen
be6c5b49c7 regen, no real change 2018-04-07 11:05:13 +00:00
sthen
aac6ceb7be new i386 bootjdk 2018-03-07 11:04:24 +00:00
sthen
939902269a extra bit needed to use different dated bootjdk files between i386+amd64 2018-03-06 22:56:15 +00:00