From owner-freebsd-ports@FreeBSD.ORG Thu May 29 16:54:23 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from hammer.pct.niksun.com (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by hub.freebsd.org (Postfix) with ESMTP id 39C2F532; Thu, 29 May 2014 16:54:23 +0000 (UTC) Message-ID: <5387663E.5020801@FreeBSD.org> Date: Thu, 29 May 2014 12:54:22 -0400 From: Jung-uk Kim User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Vick Khera , FreeBSD Ports List Subject: Re: forcing specific Java version as dependency References: In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 May 2014 16:54:23 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2014-05-29 11:09:29 -0400, Vick Khera wrote: > I'm using poudriere to build packages to use on my servers (I have > about 20 of them). One of the packages I need is > www/tomcat-native. However, the way poudriere builds the ports, > they are built in an empty jail, so when tomcat-native selects the > JDK to use, it picks openjdk6 to install as a dependency. I need it > to build against OpenJDK7, since that is what my main software > needs to run. > > I read through the bsd.java.mk file and could not find a knob to > set (or even a hack around it) to get tomcat-native to pick > openjdk7 as my preferred JDK. > > Please advise how to accomplish this. It is important to be able to > do this if we want to be able to have binary-package only FreeBSD > management. I think adding the following line in make.conf for the jail under /usr/local/etc/poudriere.d should do. JAVA_PREFERRED_PORTS=JAVA_PORT_NATIVE_OPENJDK_JDK_1_7 Jung-uk Kim -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQEcBAEBAgAGBQJTh2Y+AAoJEHyflib82/FGhxwH/23MNaJ7RjsvTHV6cMS3IcGV uKt7WjRvZGHaQ/DBw5U0UxXqh3rsiwAlQh8XzHQVasaALSokCdQFJI80/cDvD5f/ uGz+kAeLGmM5P2lFT0eECEAeRREBeb3nHbHQPAJsk5dgWRMw1PV1lmHYjkC7aGAU G3AAR77UQQJd8VMgVFL7XvOMItlMrPSiOxlojhgz34+qWcHEEQmUUU9CdotxJwFw eHBPpf/zz2CKB072koAflSOF2JNAZSR9flfiADT7h6sYpo+PorlFfnULzMYC0fzB Ronh2pM9FIwpcyErQb2byFsc0cqYzWy7Yg2GZBRAZJUvOx8tGeZcpKHBxhxUm1M= =fBUa -----END PGP SIGNATURE-----