Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 May 2012 00:23:31 -0500
From:      "Bryan Drewery" <bryan@shatow.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        glewis@FreeBSD.org, jkim@FreeBSD.org
Subject:   ports/167903: [PATCH] java/openjdk6: Fix build failure in 8.3 jail running on 9+ system
Message-ID:  <20120515052357.6863C1065677@hub.freebsd.org>
Resent-Message-ID: <201205150530.q4F5U20a089890@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         167903
>Category:       ports
>Synopsis:       [PATCH] java/openjdk6: Fix build failure in 8.3 jail running on 9+ system
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 15 05:30:02 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Bryan Drewery
>Release:        FreeBSD 8.3-RELEASE i386
>Organization:
>Environment:

	
>Description:
	Building openjdk6 in an i386 8.3 jail on an amd64 FreeBSD 9 system results in the following error:

	# ...
	  JAVA_HOME=/usr/local/diablo-jdk1.6.0 ANT_OPTS=-Djava.io.tmpdir='/usr/ports/java/openjdk6/work/build/bsd-i586/langtools/build/ant-tmp' /usr/ports/java/openjdk6/work/apache-ant-1.8.3/bin/ant -version >> /usr/ports/java/openjdk6/work/build/bsd-i586/langtools/build/ant-diagnostics.log
	gmake[2]: *** [/usr/ports/java/openjdk6/work/build/bsd-i586/langtools/build/ant-diagnostics.log] Error 1
	gmake[2]: Leaving directory `/usr/ports/java/openjdk6/work/langtools/make'
	gmake[1]: *** [langtools-build] Error 2
	gmake[1]: Leaving directory `/usr/ports/java/openjdk6/work'
	gmake: *** [build_product_image] Error 2
	*** Error code 1

	Stop in /usr/ports/java/openjdk6.

	# cat /usr/ports/java/openjdk6/work/build/bsd-i586/langtools/build/ant-diagnostics.log
	Error occurred during initialization of VM
	Unable to load ZIP library: /usr/local/diablo-jdk1.6.0/jre/lib/i386/libzip.so
	Error occurred during initialization of VM
	Unable to load ZIP library: /usr/local/diablo-jdk1.6.0/jre/lib/i386/libzip.so

>How-To-Repeat:
	Build in an 8.3 jail on a 9+ system.
>Fix:

	Patch fixes to add a build dependency to misc/compat7x, since the distfile is built on FreeBSD 7.
	This is a similar to the fix done for java/diablo-jdk16 in ports/138638

--- patch-openjdk16-compat7.txt begins here ---
--- Makefile.orig	2012-05-15 00:16:27.000000000 -0500
+++ Makefile	2012-05-15 00:17:07.000000000 -0500
@@ -78,6 +78,10 @@
 
 .include <bsd.port.pre.mk>
 
+.if ${OSVERSION} >= 800105
+LIB_DEPENDS=	z.4:${PORTSDIR}/misc/compat7x
+.endif
+
 .if defined(WITH_IPV6)
 CATEGORIES+=	ipv6
 .endif
--- patch-openjdk16-compat7.txt ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120515052357.6863C1065677>