Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Apr 2011 10:39:01 -0400
From:      John Baldwin <jhb@FreeBSD.org>
To:        java@FreeBSD.org
Subject:   Version number of openjdk6 port
Message-ID:  <4D9F1E05.4070900@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
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



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