From owner-freebsd-ports@FreeBSD.ORG Thu May 29 15:09:31 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 56CB35FA for ; Thu, 29 May 2014 15:09:31 +0000 (UTC) Received: from mail-ob0-x230.google.com (mail-ob0-x230.google.com [IPv6:2607:f8b0:4003:c01::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 205E523D4 for ; Thu, 29 May 2014 15:09:30 +0000 (UTC) Received: by mail-ob0-f176.google.com with SMTP id wo20so446621obc.7 for ; Thu, 29 May 2014 08:09:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=khera.org; s=google11; h=mime-version:date:message-id:subject:from:to:content-type; bh=Y2r9pEnFMAzMNFj2JGSIoU5LbEf9CsWCqYQ6UdBlR5c=; b=IEkMUvog5Rz0DhYAF9T1vPqpKz15pcFiik4a67GeZZhyVsrQQSD+oj8qxSuxXL80Eo Xxdi8msbdpDQa2CFiN4Vf9Hhao+LZIb5uJVVrbyu3YysqXB4Knft6MhELlIbljwwiyBd 3oRWBKrcKpHIbc5Tshq7EKemps/WT1D9Bi+ds= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=Y2r9pEnFMAzMNFj2JGSIoU5LbEf9CsWCqYQ6UdBlR5c=; b=Cv/VDz61ahD+Lr0yiQ2WQ5yBIHcO2t0/977tOr/uX5rusy1U2SJpX0LEjbVW1HZeu+ xSkM6zAOcGL6xwILvJGXwqsL09V91zda8/NKOUj+txwpQPCzcuzTeVyL1iC+fh86EBbs 2XhCCBgdzSS6pBT1zuzw1E47idxwUcUNE968cAYdAWO0pVcMws0sJd74ut9z7xtYtrtB ldnC1m1n7ChqulQALtdAY2T1GdKQnduqknI1NecfrIFMkHZE6XY1ngF8Zlzwe7jac9uu DnxpI5wfRmZwr3YjRy4pWuH2gizkFLFLgkkzxEAdEJ0P69Ovn9lBSQvKv22IaJAlTZ+a +IWA== X-Gm-Message-State: ALoCoQkKhykNTnfc7NYe3E605XFYiwUy/J6RhFrASQgj00fkWKiNlrQTfE+v4LSyXfkVGadtlruv MIME-Version: 1.0 X-Received: by 10.60.132.207 with SMTP id ow15mr9104118oeb.59.1401376170050; Thu, 29 May 2014 08:09:30 -0700 (PDT) Received: by 10.76.151.134 with HTTP; Thu, 29 May 2014 08:09:29 -0700 (PDT) Date: Thu, 29 May 2014 11:09:29 -0400 Message-ID: Subject: forcing specific Java version as dependency From: Vick Khera To: FreeBSD Ports List Content-Type: text/plain; charset=UTF-8 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 15:09:31 -0000 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. Thanks!