Bug 188580 - games/lwjgl doesn't build with java/openjdk8
Summary: games/lwjgl doesn't build with java/openjdk8
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-games (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-14 03:00 UTC by Sean Bruno
Modified: 2014-04-14 14:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Bruno freebsd_committer 2014-04-14 03:00:00 UTC
Apparently openjdk8 hit the tree and this port declares a JAVA_VERSION of 1.7+.

This does not work and needs to be capped at 1.7

Fix: 

Set JAVA_VERSION to 1.7 not 1.7+
How-To-Repeat: Build port with openjdk8 installed.  You'll see errors like this:

initialiazing temp/solaris folder] Created dir: /wrkdirs/usr/ports/games/lwjgl/work/lwjgl-2.9.1/temp/native/solaris

generators:
[generator] Compiling 122 source files to /wrkdirs/usr/ports/games/lwjgl/work/lwjgl-2.9.1/bin
[generator] /wrkdirs/usr/ports/games/lwjgl/work/lwjgl-2.9.1/src/java/org/lwjgl/util/generator/FieldsGenerator.java:38: error: package com.sun.mirror.declaration does not exist
[generator] import com.sun.mirror.declaration.FieldDeclaration;
[generator]                                  ^
[generator] /wrkdirs/usr/ports/games/lwjgl/work/lwjgl-2.9.1/src/java/org/lwjgl/util/generator/FieldsGenerator.java:39: error: package com.sun.mirror.declaration does not exist
[generator] import com.sun.mirror.declaration.Modifier;
[generator]                                  ^
[generator] /wrkdirs/usr/ports/games/lwjgl/work/lwjgl-2.9.1/src/java/org/lwjgl/util/generator/FieldsGenerator.java:40: error: package com.sun.mirror.type does not exist
[generator] import com.sun.mirror.type.PrimitiveType;
[generator]                           ^
[generator] /wrkdirs/usr/ports/games/lwjgl/work/lwjgl-2.9.1/src/java/org/lwjgl/util/generator/FieldsGenerator.java:41: error: package com.sun.mirror.type does not exist
[generator] import com.sun.mirror.type.TypeMirror;
[generator]                           ^
[generator] /wrkdirs/usr/ports/games/lwjgl/work/lwjgl-2.9.1/src/java/org/lwjgl/util/generator/FieldsGenerator.java:45: error: cannot find symbol
[generator] 	private static void validateField(FieldDeclaration field) {
Comment 1 Edwin Groothuis freebsd_committer 2014-04-14 03:00:04 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-games

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Rusmir Dusko freebsd_committer 2014-04-14 14:09:45 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer 2014-04-14 14:12:09 UTC
Author: nemysis
Date: Mon Apr 14 13:12:05 2014
New Revision: 351256
URL: http://svnweb.freebsd.org/changeset/ports/351256
QAT: https://qat.redports.org/buildarchive/r351256/

Log:
  - Use for JAVA_VERSION 1.7 instead of 1.7+
  
  PR:		ports/188580
  Submitted by:	sbruno@

Modified:
  head/games/lwjgl/Makefile

Modified: head/games/lwjgl/Makefile
==============================================================================
--- head/games/lwjgl/Makefile	Mon Apr 14 12:53:51 2014	(r351255)
+++ head/games/lwjgl/Makefile	Mon Apr 14 13:12:05 2014	(r351256)
@@ -25,7 +25,7 @@ USES=		dos2unix zip:infozip
 DOS2UNIX_REGEX= .*.[^jp][^an][^rg]$
 USE_JAVA=	yes
 USE_LDCONFIG=	yes
-JAVA_VERSION=	1.7+
+JAVA_VERSION=	1.7
 JAVA_OS=	native
 JAVA_VENDOR=	openjdk
 USE_ANT=	yes
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"