From owner-freebsd-java@FreeBSD.ORG Fri Apr 8 14:39:02 2011 Return-Path: Delivered-To: java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93C22106564A for ; Fri, 8 Apr 2011 14:39:02 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 6ED818FC0A for ; Fri, 8 Apr 2011 14:39:02 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 0123946B3B for ; Fri, 8 Apr 2011 10:39:02 -0400 (EDT) Received: from jhbmac.hudson-trading.com (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 8E99B8A01B for ; Fri, 8 Apr 2011 10:39:01 -0400 (EDT) Message-ID: <4D9F1E05.4070900@FreeBSD.org> Date: Fri, 08 Apr 2011 10:39:01 -0400 From: John Baldwin User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: java@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Fri, 08 Apr 2011 10:39:01 -0400 (EDT) Cc: Subject: Version number of openjdk6 port X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2011 14:39:02 -0000 Please consider using a better version number for the openjdk6 port. Right now it uses a version number of 'b20_7' which due to the way package version works, is considered less than 0: % pkg_version -t 0 b20_7 > Why does this matter? cfengine uses 'pkg_info -E pkg_name>0' to test if a package is installed. For example: % pkg_info -E 'bash>0' bash-4.1.9 This does not work for openjdk6 since the version number is less than zero. % pkg_info -E 'openjdk6>0' % pkg_info -E 'openjdk6*' openjdk6-b20_7 Perhaps you can just add the '6' to the version number always so it looks more sane? This would match what python does for example: python26-2.6.6 An interpreted object-oriented programming language python27-2.7.1_1 An interpreted object-oriented programming language python31-3.1.3 An interpreted object-oriented programming language If the package name were 'openjdk6-6.b20_7' then cfengine would handle the package just fine. -- John Baldwin