Commit graph

125 commits

Author SHA1 Message Date
Rene Ladan
e7863f568d Mk/bsd.java.mk: generalize a comment.
Differential Revision:	https://reviews.freebsd.org/D29451
2021-04-06 12:39:45 +02:00
Greg Lewis
18ff2b64d7 Add support for openjdk16 and 16[+] as a valid version 2021-02-23 04:37:06 +00:00
Greg Lewis
2c0b72e32c Add support for openjdk15 2020-09-07 18:34:28 +00:00
Greg Lewis
c0771b9c8f Allow users to specify a default Java version in the standard way
PR:		244942
Submitted by:	Tommy P <tommyhp2@gmail.com>
2020-04-11 17:10:03 +00:00
Greg Lewis
e24a636951 Add support for openjdk14 2020-03-21 19:05:48 +00:00
Jung-uk Kim
5a52a08234 Clean up after java/openjdk6 and java/openjdk6-jre removal
java/openjdk6 support was removed from Mk/bsd.java.mk (r512662) and
java/openjdk6 and java/openjdk6-jre were removed from the ports tree
(r512663).  Now this patch completely removes remaining stuff from the
ports tree.

PR:			241953 (exp-run)
Reviewed by:		glewis
Approved by:		portmgr (antoine)
Differential Revision:	https://reviews.freebsd.org/D22342
2019-11-26 21:46:12 +00:00
Greg Lewis
097eb3adec Eliminate references to 9 and 10
* All 9 and 10 JDKs have been removed and no ports explicitly list either
  as a desired version, so remove references to simplify the versioning
  substitutions a little.
2019-10-23 19:35:57 +00:00
Greg Lewis
947645f5a7 Add 13, force 9/10 -> 11
* Remove comment references to 9 and 10 as possible version specifications.
  Note that 9 and 10 aren't actually removed as valid versions as there is
  one port with a reference (news/nzbhydra2).
* Add 13 as a valid version.
* Add configuration for openjdk13.
* Modify the construction of _JAVA_VERSION to force 9 and 10 to 11.

Sponsored by:	The FreeBSD Foundation
2019-10-03 19:42:37 +00:00
Rene Ladan
721738180f bsd.java.mk: unregister expired java/linux-oracle-jdk9 and java/linux-oracle-jdk10 2019-09-30 11:12:10 +00:00
Greg Lewis
e0d67b113c Remove references to openjdk6
* Remove references to "6" in comments and examples
* Remove java/openjdk6 from the list of Java ports that are considered to
  satisfy a dependency
* Don't yet remove "6" as a valid version since many ports have "1.6+" as
  a version specifier (although none have just 1.6).  Instead force this
  to mean "1.7+".

PR:		234792
Sponsored by:	The FreeBSD Foundation
2019-09-23 18:19:57 +00:00
Greg Lewis
e70d1658ff Support newer Java versions
* Add configuration for newer versions of the JDK (11, 12)
* Switch to modern Java versioning (e.g. 8 rather than 1.8)
* Retain backwards compatibility with existing version specification
* Support the few ports that set USE_JAVA to the requested version

PR:		237054, 238758 (exp-run)
2019-07-31 16:06:31 +00:00
Kyle Evans
c465fe25c2 Mk/bsd.java.mk: Strict JAVA_{VERSION,VENDOR,ERROR} validation
Currently, validation of JAVA_{VERSION,VENDOR,ERROR} does not constitute an
error and make(1) will happily continue, potentially doing the wrong thing.
Adjust the behavior as follows:

- Only validate each var if it's defined
- Remain verbose about what error exists and what's expected
- Fail the build if validation fails

bsd.java.mk exhibited this behavior up until r217132 inadvertently changed
it to be non-fatal.

PR:		220737
Approved by:	portmgr (bdrewery)
2017-11-04 01:16:31 +00:00
Greg Lewis
e64557483f . Add a port of the Oracle JDK9 for Linux.
. Add support for JDK9 to bsd.java.mk
2017-10-14 18:41:06 +00:00
Kyle Evans
6266a9e3b7 Minor cleanup to Java version/vendor/OS validation
- Use POSIX compliant expressions instead of employing GNU extensions
(branching in BREs)
- Simplify regex generation using make(1)'s :ts modifier

PR:		220054
Approved by:	bapt (portmgr)
2017-07-14 18:09:11 +00:00
Jung-uk Kim
90dd89a00e Implement test target for USE_ANT=yes. 2017-04-05 23:31:18 +00:00
Rene Ladan
bd55d4b56b Mk/bsd.java.mk: unregister expired java/linux-sun-jdk17
PR:		209011
Approved by:	portmgr (bapt)
Sponsored by:	Essen Linuxhotel Hackathon 2016
2016-04-24 12:16:23 +00:00
Baptiste Daroussin
421767bd88 Remove the now unneeded ${PORTSDIR} from dependency definition in
The infrastructure Makefiles

PR:		206569
Exp run by:	antoine
Differential Revision:	D5047
2016-03-27 01:23:25 +00:00
Steve Wills
dfdb719e6a Make OpenJDK 1.8 the default 2015-10-19 16:14:29 +00:00
Steve Wills
9269a60c90 - Make OpenJDK 1.7 the default 2014-06-27 20:05:36 +00:00
Baptiste Daroussin
4a4ec28d37 Convert all :U to :tu and :L to :tl
Since FreeBSD 8.4 and FreeBSD 9.1 make(1) do support :tu and :tl as a
replacement for :U and :L (which has been marked as deprecated)

bmake which is the default on FreeBSD 10+ only support by default
:tu/:tl a hack has been added at the time to support :U and :L to ease
migration. This hack is now not necessary anymore

Note that this makes the ports tree incompatible with make(1) from
FreeBSD 8.3 or earlier

With hat:	portmgr
2014-05-05 09:45:36 +00:00
Jung-uk Kim
aa834f1ffa Document JAVA_EXTRACT. 2014-05-02 21:35:14 +00:00
Jung-uk Kim
d367a33745 - Sort Java implementations by preference, i.e., java/openjdk7 is preferred
over java/openjdk8.  java/openjdk8 is still in its infancy.
- Retire redundant _JAVA_PREFERRED_PORTS hack.  We only have one preferred
port since r290539 and we want to keep it that way.
2014-04-24 18:05:21 +00:00
Jung-uk Kim
6b6b88f5da Update comments. 2014-04-11 17:17:33 +00:00
Sunpoet Po-Chuan Hsieh
841cd91930 - Fix _JAVA_PORT_LINUX_ORACLE_JDK_1_8_INFO
- Reorder _JAVA_VENDOR_*
- Update comment

Submitted by:	sunpoet (myself)
Approved by:	bapt (portmgr)
2014-04-11 15:37:52 +00:00
Greg Lewis
713cd98aca . Set maintainer to java@FreeBSD.org. 2014-04-11 02:08:05 +00:00
Baptiste Daroussin
8a3c16d98f Add support for OpenJDK 1.8
Add support for Oracle JDK 1.8
Remove support for Sun JDK 1.6 (EOLed)
Remove support for USE_JAVA=1.5
2014-04-10 07:20:23 +00:00
Baptiste Daroussin
5d908e6e7d Change DESTDIRNAME into a ant compatible argument when a port is staged
While here remove previous workarounds.

Submitted by:	ale
Discussed with:	jkim, glewis
2013-11-12 10:36:16 +00:00
Martin Wilke
2db3ae64a5 - Remove CVS reference
PR:		178381
		177581
Submitted by:	Eitan Adler <lists@eitanadler.com>
		Alex Kozlov <spam@rm-rf.kiev.ua>

With hat:	portmgr
2013-05-20 00:45:26 +00:00
Greg Lewis
a9d89ba71a . Split a long comment line. 2013-04-26 02:38:41 +00:00
Greg Lewis
19f575740b . Replace the use of != and shell utilities with actual make logic. This
should be much faster and avoid some complaints from make.

PR:		177355
Submitted by:	crees@
2013-04-26 02:37:19 +00:00
Greg Lewis
e31c370390 . Fix all of the ports which still have as a version requirement
JAVA_VERSION=1.5

  or

  JAVA_VERSION=1.5+

  The previous revision took this out as a valid version number meaning
  that we end up with the non-existent "/bin/java" as the desired JDK.

  Expand 1.5 to 1.6 and 1.5+ to 1.6 1.7 for now.  This can be reverted
  once all the ports are updated.
2012-12-11 05:11:45 +00:00
Baptiste Daroussin
b1ccabf65d Decommissioning java 1.5 (EOLed since October 2009):
removal of the different 1.5 jre and jdk vendors

Removing outdated jdk16 vendors:
removing all the bsdjava and freebsd vendors, consider using openjdk6 or
openjsk7 instead.

Discussed with:	java (glarkin)
2012-12-10 17:18:32 +00:00
Martin Wilke
61d8acdb49 - Remove emacs mode, -*- mode: ...; -*- [1]
- Comments for BUILD_ and RUN_DEPENDS fail to mention alternate means to specify dependencie [2]
- Fix make reinstall [3]
- Trivial comment change for PORTDATA [4]

PR:		151954 [1]
		161314 [2]
		167085 [3]
		167465 [4]
Submitted by:	Anonymous <swell.k@gmail.com> [1]
		dougb@ and Chris Rees <utisoft@gmail.com> [2]
		Garrett Cooper <yanegomi@gmail.com> [3]
		"Bryan Drewery" <bryan@shatow.net> [4]
Tested via:	phw
2012-05-23 08:17:49 +00:00
Greg Lewis
4d24c791c4 . Instead of bailing when we hit a possibly conflicting variable being
defined just clear it and issue a warning that it was set.

PR:		165115
Approved by:	hq@ (co-maintainer)
2012-04-13 04:03:42 +00:00
Greg Lewis
228707d19d . Add support for the new linux-sun-jdk17 port. 2012-02-09 06:40:49 +00:00
Greg Lewis
1058166026 . Make the openjdk6 port the preferred JDK by default.
Many thanks to erwin@ for a -exp run.
2012-02-07 04:04:12 +00:00
Greg Lewis
bbd1b1b22e . Make commented examples reference 1.6 (the current default) rather than 1.5. 2011-09-04 19:23:26 +00:00
Mark Linimon
06e6677793 Now that the Java 1.3 and Java 1.4 ports are deprecated and will expire soon,
remove support for them from bsd.java.mk.  As Jikes is not available in Java 1.5
or higher, remove it from bsd.java.mk too (suggested by hq@) and from the ports
which used it (only occurences were USE_JIKES=no).  Support for the Blackdown VM
is also removed, as it is not available in Java 1.5 and higher.

Also remove the mapping from Java 1.1-1.4 to Java 1.5+ in bsd.java.mk to detect
old, broken ports; therefore bump the minimal value of JAVA_VERSION to 1.5.
While here, replace static values of JAVA_VERSION in files/*.in by
%%JAVA_VERSION%% .

PR:		ports/158969
Submitted by:	rene
Tested on:	pointyhat-west -exp
2011-07-21 05:03:02 +00:00
Rene Ladan
eb407ea16c - Unregister expired java/jdk14
- Update example from java/jdk14 to java/jdk16

PR:		ports/158030
Submitted by:	myself
Approved by:	glewis
2011-06-28 18:46:46 +00:00
Herve Quiroz
79428a47f5 Update the list of possible values for JDK vendor in the header comments
PR:		154553
Submitted by:	Warren Block <wblock@wonkity.com> (PR),
		ryusuke (patch)
2011-02-12 15:48:48 +00:00
Greg Lewis
9f0cb7ee9f . Add support for the openjdk7 port.
. Add support for a JAVA_VERSION requirement of 1.7.

Reviewed by:	hq@
2010-01-15 06:07:42 +00:00
Greg Lewis
b4d07ddf3f . Add support for openjdk6 as a possible JDK.
Submitted by:	Jonathan Chen <jonc@chen.org.nz>
Reviewed by:	hq@
2009-05-22 04:11:20 +00:00
Greg Lewis
8edf38e1e7 . Add diablo-jdk16 and make it the default on 6.x and 7.x.
. Make jdk16 the default on all other supported versions.
2008-08-18 15:42:41 +00:00
Kris Kennaway
54e565eedc Major optimizations for 'make index' and other recursive traversal
targets.

* Use /rescue/sh for index builds instead of /bin/sh, when it exists.
  The former is statically linked and faster to execute, which becomes
  significant when executing it tens of thousands of times.  This
  trick can be used with other recursive targets by passing in
  __MAKE_SHELL.

* Get rid of make variable assignments that use != command invocations
  in the critical path, using several methods:

  - rewriting logic to use shell or make builtins instead of external command executions
  - macroizing commands and executing them in the targets where they
    are needed instead of with every invocation of make
  - precomputing the results of invariant commands in
    bsd.port.subdir.mk and passing them in explicitly to child makes,
    and using this to avoid recalculation in all the children. NB: the
    commands are still run one per top-level subdirectory but this
    does not currently seem to be a major issue.  They could be moved
    further up into the top-level Makefile at the cost of some
    cleanliness.
  - Committers are strongly discouraged from adding further "bare" !=
    assignments to the ports tree, even in their own ports.  One of
    the above strategies should be used to avoid future bloat.

* Rewrite the core 'describe' target to work entirely within a single
  shell process using only builtin commands.  The old version is
  retained as a backup for use on systems older than 603104, which
  does not have the make :u modifier.  This cuts down the number of
  processes executed during the course of a 'make index' by an order
  of magnitude, and we are essentially now amortized to the minimum of
  a single make + sh instance per port, plus whatever commands the
  port makefile itself executes (which are usually unnecessary and
  bogus).

* Less validation of the WWW: target is performed; this can become
  policed at a port level by portlint.  Specifically we look at the
  second word of the first line beginning with "WWW:" in pkg-descr,
  and append "http://" to it unless it already begins with "http://",
  "https://" or "ftp://".  Thanks to dougb for the idea of how to
  extract WWW: using shell builtins.

* Use the "true" shell builtin instead of echo > /dev/null for a
  measurable decrease in CPU use.

* Add a note about dubious escaping strategy in bsd.port.subdir.mk

* Minor change in output of 'make describe': it no longer strips
  trailing CR characters from pkg-descr files with MSDOS CR/LF
  termination.  Instead the makeindex perl script that post-processes
  make describe into the INDEX is tweaked to strip on input.

The bottom line is that on my test hardware INDEX builds are now
faster by more than a factor of 2 and with a reduction in system time
by a factor of 4-8 depending on configuration.
2008-07-19 17:59:41 +00:00
Herve Quiroz
e2135b211a Remove support for Java 1.1 and 1.2 in the ports tree
To ease upgrade, bsd.java.mk now substitutes JAVA_VERSION values of 1.1+ and
1.2+ as 1.3+.

The related JDK ports that have been marked as deprecated and scheduled for
removal some time ago are now safe to be removed.

The patch has been tested successfully on the cluster.

PR:		116724
2007-10-28 15:09:43 +00:00
Greg Lewis
15bc91d784 . Remove a check for OSVERSION >= 500000 since this is now true for all
supported versions of FreeBSD.

PR:		116890
Submitted by:	edwin
2007-10-07 14:42:03 +00:00
Greg Lewis
0ae458e9c4 . Enforce NO_JIKES when 1.6 is required as well. 2007-08-05 21:19:47 +00:00
Greg Lewis
131eb04d2f . Support for the JDK 1.6 ports.
Submitted by:	jkim
2007-08-05 21:16:39 +00:00
Greg Lewis
8a88cb13c1 . Remove references to deprecated, forbidden and expired port of the
Linux Blackdown 1.3 JDK.

PR:		113268
Submitted by:	gabor@
2007-06-06 15:38:54 +00:00
Mark Linimon
fbcb891de4 * Refine some comments about Linux emulation [1]
* Fix 'make search' with non-default ${PORTSDIR} [2]

* Fix typo in USE_LDCONFIG32 message [3]

* Allow USE_PHP after inclusion of bsd.port.pre.mk [4]

* Document NO_LDCONFIG_MTREE [5]

* Update/enhance description of INSTALLS_SHLIB and USE_LDCONFIG [6]

* Remove obsolete code in bsd.port.mk dealing with 4.X and other,
  even older, releases [7]

* Remove references to obsolete ports from bsd.java.mk [8]

PR:	105883 [1], 105917 [2], 106195 [3], 106557 [4], 108738 [5],
	108739 [6], 108782 [7], 103357 [8]

Submitted by:	bsam [1], shaun [2], edwin [3], ale [4], gerald [5] [6],
		linimon [7], kris [7], gabor [4]
2007-03-06 06:21:46 +00:00