Commit graph

126 commits

Author SHA1 Message Date
Greg Lewis
bbac75f33c . Update to 8u172. 2018-05-21 00:03:43 +00:00
Greg Lewis
9e41abde7f . Link libinstrument.so with iconv and jli as intended.
PR:		210297
2018-03-06 04:41:08 +00:00
Greg Lewis
bbcdfbd079 . Allow thread names to be set on FreeBSD.
PR:		223589
Submitted by:	bra@fsn.hu
2018-03-04 17:35:30 +00:00
Greg Lewis
5e80ef3db6 . Add a FONTCONFIG option which allows scaler to obtain per-family FreeType
rendering and loading and may noticeably improves font rendering in Java
  appications

PR:		215636
Submitted by:	Dmitri Goutnik <dg@syrec.org>
2018-03-04 00:56:31 +00:00
Jung-uk Kim
dd487071e8 Apply an upstream patch to fix Zero.
http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/rev/8bd024c567e7

This patch complements the following commits.

http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/rev/f8a45a60bc6b
http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/rev/b1606443958a
http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/a3e756231625

Reported by:	Mikaël Urankar (mikael.urankar@gmail.com) (via swills)
2018-02-27 19:49:00 +00:00
Greg Lewis
7effcd49b2 . Fix the build for i386 when WITH_LLD_IS_LD is set.
PR:		225741
Submitted by:	dim@
2018-02-08 06:29:02 +00:00
Greg Lewis
99a2633b63 . Update to 8u162. 2018-02-03 21:41:06 +00:00
Jung-uk Kim
5befc99fa7 Fix a run-time crash with Clang 6.0.
Note this problem was introduced with fixes for JDK-8055007.

https://bugs.java.com/view_bug.do?bug_id=8055007
http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/changeset/c6211b707068

PR:		225054
2018-01-18 19:26:27 +00:00
Tijl Coosemans
03948507f8 Replace USE_AUTOTOOLS and pre-configure with a plain build dependency on
devel/autoconf.  The upstream build system runs autoconf to regenerate
generated-configure.sh.
2017-12-25 17:35:39 +00:00
Greg Lewis
7f279c7566 . Don't incorrectly set the scopeId of an IPv6 interface on BSD.
This fixes binding sockets for applications running on IPv6.

PR:		224079
Submitted by:	John W. O'Brien <john@saltant.com>
2017-12-25 06:25:53 +00:00
Jung-uk Kim
34f4fb6411 Add support for "-XX:+UseLargePages" option.
Excerpted from the original submission:

"FreeBSD on several architectures automatically utilizes superpages.  So,
for the JVM's JIT-compiled code cache and data heap, much of those regions
are already using superpages.  However, the -XX:+UseLargePages option still
serves a useful, if secondary, purpose on FreeBSD.  Essentially, it informs
the JVM's platform-independent layer what the supported page sizes are.  So,
when memory is mmap(2)ed and munmap(2)ed within the code cache and data
heap, the addresses and sizes will be superpage-aligned and a multiple of
the superpage size, respectively.  Currently, without this patch, the code
cache, for example, typically starts at an unaligned address, so the initial
portion of the code cache can never be a superpage.  Similarly, unaligned
munmap(2)s on the data heap force the kernel to demote superpages to 4KB
pages, and this patch eliminates those demotions.

This patch both introduces the code needed on FreeBSD to implement
-XX:+UseLargePages and deletes code that was copied from Linux that is, to
the best of my knowledge, useless on any version of BSD, i.e., UseHugeTLBFS
and UseSHM.  The additions are in part based on the Solaris version of
os_solaris.cpp, e.g., the sorting of the page sizes array."

Note I did minor style cleanup and regenerated the patches.

Submitted by:	alc
2017-12-01 01:56:02 +00:00
Greg Lewis
ef9ac15f4b . Update to 8u152. 2017-11-19 05:14:20 +00:00
Jung-uk Kim
243fd8836a Fix default bootstrap JDK selection.
It was accidentally broken by r450869.
2017-11-01 20:49:54 +00:00
Jung-uk Kim
2f8e1591bf Add preliminary support for aarch64 with Zero.
PR:		223231
2017-11-01 20:23:35 +00:00
Jung-uk Kim
06ee14ef70 Clean up X11 option handling. No functional change. 2017-10-03 19:53:20 +00:00
Jung-uk Kim
8bac93539e Fix java/openjdk8-jre build after r444448.
PR:		222750
2017-10-03 18:13:18 +00:00
Jung-uk Kim
ad6af13f08 Use java/bootstrap-openjdk8 to bootstrap. 2017-09-28 20:14:21 +00:00
Jung-uk Kim
6ea79f805e Fix available memory calculation on head after r309017.
Note PORTREVISION is not bumped because it only affects a kernel without
"options COMPAT_FREEBSD11".
2017-09-07 00:41:34 +00:00
Mark Linimon
b58ecf8673 The src tree is splitting 32-bit arm support into 'armv6' and the new
'armv7'.  This patch adds armv7 support.  It should provide no regression
on any existing architecture.

PR:		221896
Approved by:	maintainer
2017-09-01 14:42:43 +00:00
Greg Lewis
33ad7fb605 . Update to 8u144. 2017-08-27 17:48:46 +00:00
Tobias Kortkamp
97b05f204d Add a new ALSA default option to make it possible to disable ALSA
support and build the JDK without an ALSA dependency

PR:		219125
Reviewed by:	jbeich
Approved by:	mat (mentor), java (maintainer timeout, 6+ weeks)
Differential Revision:	https://reviews.freebsd.org/D11331
2017-06-27 08:35:24 +00:00
Mark Linimon
2fc969b4b7 Scrub mention of armv6hf from ARCHS. It was never in a released version.
While here, sort ARCHS and pet portlint.

Reviewed by:	imp
Approved by:	portmgr (tier-2 blanket)
2017-06-26 22:20:20 +00:00
Greg Lewis
5458611582 Update to 8u131. 2017-04-19 13:36:23 +00:00
Jung-uk Kim
d656192397 Merge fix for JDK-6900441 from Linux source.
http://bugs.java.com/view_bug.do?bug_id=6900441

While we are at it, merge fix for JDK-8029453.

http://bugs.java.com/view_bug.do?bug_id=8029453

Note JDK-8029453 only affects us when "-XX:WorkAroundNPTLTimedWaitHang=0" is
forcibly set.

Reported by:	张泽鹏 (redraiment at gmail dot com)
Tested by:	张泽鹏 (redraiment at gmail dot com)
2017-04-13 18:09:21 +00:00
Jung-uk Kim
68d9296d7a Fix build with GCC. It was broken by r430424.
PR:		216738
2017-02-02 21:28:22 +00:00
Jung-uk Kim
f82baa6d8d Fix distinfo.
PR:		r216595
2017-01-30 21:39:05 +00:00
Greg Lewis
7494e12b61 . Update to 8u121. 2017-01-29 07:08:18 +00:00
Tijl Coosemans
02f27a83b4 The output of tools like awk, date, sort, tr,... depends on the current
locale set by the user.  Add LANG=C and LC_ALL=C at the beginning of
bsd.port.mk and export them so all commands are executed with the C locale.
LC_ALL=C overrides all other LC_* variables.  LANG is used by setlocale(3)
as default value for LC_* variables, so normally it isn't used when LC_ALL
is set, but there's code out there that looks at LANG directly so it's safer
to set it as well.  The only commands not captured by this are !=
assignments before any inclusion of bsd.port.*mk.

Introduce USE_LOCALE=<locale> that adds LANG=<locale> and LC_ALL=<locale> to
CONFIGURE_ENV and MAKE_ENV so upstream build systems can be executed with a
different locale (e.g. USE_LOCALE=en_US.UTF-8).

PR:		215882
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2017-01-18 13:20:31 +00:00
Greg Lewis
1baf25b002 . Fix compilation with Clang 4.0
PR:		216016
Submitted by:	jbeich@
2017-01-15 22:51:52 +00:00
Dmitry Marakasov
9d79e7b146 - Remove always-true/false conditions after FreeBSD 9, 10.1, 10.2 EOL
Approved by:	portmgr blanket
2017-01-09 13:16:49 +00:00
Greg Lewis
7e7a771857 . Add powerpc64 support.
PR:		212709
Submitted by:	Curtis Hamilton <hamiltcl@verizon.net>
2017-01-02 23:45:09 +00:00
Greg Lewis
ac342da485 . Add support for the HotSpot Serviceability Agent for ppc64.
. This also pulls in some OpenBSD tweaks, I believe.  These should be a
  no-op for FreeBSD though.

PR:		212709 (partial)
Submitted by:	Curtis Hamilton <hamiltcl@verizon.net>
2016-12-29 07:50:40 +00:00
Alan Somers
7bcea9568e Add an X11 option to java/openjdk[78]
It defaults to on.  Disabling it will remove X support from Java, and reduce
X-related dependencies.

PR:		210000
Reviewed by:	brd
Approved by:	brd (ports)
Approved by:	glewis (maintainer timeout)
Sponsored by:	Spectra Logic Corp
Differential Revision:	https://reviews.freebsd.org/D6698
2016-12-09 20:30:53 +00:00
Greg Lewis
ab93492888 . Update to 8u112. 2016-10-30 03:51:40 +00:00
Alex Dupre
6b6b8271c0 Update cacerts file using the one included in 8u111 release.
Notable change is the inclusion of Let's Encrypt CA.
2016-10-24 08:53:21 +00:00
Mathieu Arnold
eabbfd75e3 ${RM} already has -f.
PR:		213570
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
2016-10-21 12:51:40 +00:00
Greg Lewis
71b1ef1dd5 . Include the thread id so that jstack can provide stack traces when
analysing core dumps.
. Bump PORTREVISION.

PR:		211196
Submitted by:	Ron Roskens <ronald.roskens@gmail.com>
2016-09-04 04:06:00 +00:00
Jung-uk Kim
f0ff2870a0 Make the FPU hack for ARM optional. Note this hack is not necessary for
VFPv3 or later, i.e., only VFPv1 and VFPv2 require this hack.

https://svnweb.freebsd.org/changeset/base/288983
2016-08-26 18:29:46 +00:00
Baptiste Daroussin
f64729b288 More typos 2016-07-31 12:51:30 +00:00
Baptiste Daroussin
cddeffd5bf Use the new @javavm 2016-07-31 12:43:53 +00:00
Greg Lewis
9bbe93456a . Update to 8u102. 2016-07-30 13:55:17 +00:00
Greg Lewis
f497c53064 . Regenerate patch-bsd and patch-bsd-test. This obsoletes another patch
and should also fix ppc64 support.
2016-06-18 05:44:35 +00:00
Greg Lewis
9c0e7d35bc . Fix a double free bug. This is pulled from upstream.
. Bump PORTREVISION.

PR:		210226
Submitted by:	girgen@
2016-06-16 06:24:34 +00:00
Jung-uk Kim
cb138fe9d4 Unbreak arm.
- Remove armv6hf because it is default now.
- Merge a HotSpot fix from src/os_cpu/linux_zero/vm/os_linux_zero.cpp.
http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/rev/c6ef40024aa2
- Add an upstream patch to unbreak Zero.
http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/rev/8f58998958ca
- Extend PR209599 to cover arm platforms.
2016-06-13 12:00:19 +00:00
Greg Lewis
d172911638 . Use poll() rather than select() on BSD to avoid crashes during network
timeouts.  This is forwarded ported from OpenJDK 7.
. Bump PORTREVISION for this fix.

PR:		210191
Submitted by:	Andrew Smith <iamasmith.home@gmail.com>
2016-06-12 21:56:01 +00:00
Greg Lewis
b13b21cc6c Handle unsafe operations that access invalid memory more gracefully
PR:		209599
Submitted by:	Andrew Smith <iamasmith.home@gmail.com>
2016-06-12 21:53:48 +00:00
Greg Lewis
1d71c44416 . Update to 8u92. 2016-05-17 05:14:41 +00:00
Mathieu Arnold
a9dcad2fff Remove ${PORTSDIR}/ from dependencies, categories h, i, j, k, and l.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:08:37 +00:00
Greg Lewis
c17837b9af . Update to 8u77. 2016-03-27 23:02:57 +00:00
Tijl Coosemans
59272d1017 Combine print/cups-base, print/cups-client and print/cups-image into
print/cups and update it to 2.1.3.  Also remove print/cups-pstoraster,
improve print/cups-filters, print/foomatic-* and update print/hplip to
3.16.2.

Long description:

First some background.  When you hand a file to cups it sets up a chain of
filter programs that converts the file to something a printer understands.
Each filter has a cost associated with it and cups tries to find the
cheapest chain.  Costs used to be configured in such a way that files were
first converted to PostScript.  This could then be manipulated further (e.g.
putting multiple pages on one sheet) before finally being sent to a
PostScript printer or another filter like pstoraster which produces a raster
format understood by non-PostScript printer drivers.  Nowadays most filters
have been moved from cups to cups-filters and they have been configured to
use PDF as an intermediate format instead of PostScript.

Merging of cups-base, cups-client and cups-image into print/cups:
- cups-image provides a library to work with the cups raster format.  It is
  only used to implement filters and printer drivers and these only exist
  in the context of a cups server so there's no need to separate this from
  cups-base.
- cups-client provides a library that allows applications to print via cups.
  It is possible to use the library to access a remote cups server without
  running a local cups server, but such a setup is discouraged and the
  configuration file to set this up has been marked deprecated.  It is
  better to run a local cups server and let that talk to the remote cups
  server because then you have the benefits of local job queuing in case the
  remote server is down or busy.  Given this and the fact that without
  filters cups-base is now smaller than it used to be it makes sense to
  merge the ports.  The patch also adds options IPPTOOL, DOCS and NLS which
  when disabled make the new cups package smaller than the current
  cups-client package.  Merging the ports also prevents problems with
  options like ZEROCONF being configured differently in both ports.
- print/cups was a metaport that depended on cups-base and some filters.
  There isn't really a need for such a metaport so cups-base can be renamed
  to cups.  The filters can be depended on by printer drivers such as hplip
  if they need them.

Additional changes to the new print/cups:
- Clean up the patches.  They seem to have been regenerated with post-patch
  changes included.
- Add a patch to prevent intermediate conversion to PDF when a PostScript
  file is sent to a PostScript printer when cups-filters is installed.
- Fix the PAM configuration file.
- Add a patch to let the server search /usr/local/share/ppd like on Linux so
  other ports don't have to add links to it.
- Remove ulpt(4) helper scripts.  The port uses libusb with ugen(4).
- Remove support for mDNSResponder.  cups-filters only supports Avahi.
- Combine ICONS and XDG_OPEN options into an X11 option to support WITHOUT_X11.
- Optionally depend on colord for ICC profile support.
- Various smaller changes.

Changes to print/cups-filters:
- Let the cups_browsed rc.d script depend on cupsd and avahi_daemon instead
  of LOGIN.
- Development of foomatic-filters has been moved to cups-filters so let this
  port install foomatic related files and add foomatic-filters to CONFLICTS.
- Fix location of liblouis tables.
- Add patch to fix ICC support.

Changes to print/cups-pstoraster:
This port is essentially an old version of Ghostscript plus a cups filter.
It's no longer developed.  This commit removes it and changes existing
dependencies to print/cups-filters which depends on print/ghostscript* and
includes a gstoraster filter that can handle both PostScript and PDF.

Changes to print/foomatic-db*:
Remove old MASTER_SITES and dependencies and eliminate PKGNAMEPREFIX.

Changes to print/foomatic-filters:
Install beh backend with its original name again and add cups-filters to
CONFLICTS.

Changes to print/hplip:
- Stop installing hpijs/foomatic-rip support.  This is no longer supported
  upstream.
- Stop installing hpcups PPDs.  These are now automatically generated.  The
  bundled PPDs are generated for an older version of cups.
- Rename the QT option to X11 to support WITHOUT_X11.
- Simplify the patches now that ports are installed in a staging area.
- Add a patch to set SO_REUSEPORT (next to SO_REUSEADDR) on the mDNS socket
  like avahi-daemon does.  This fixes Zeroconf support for HP network
  printers.

PR:		207746
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2016-03-11 11:53:42 +00:00