Version number of openjdk6 port

John Baldwin jhb at FreeBSD.org
Fri Apr 8 14:39:02 UTC 2011


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


More information about the freebsd-java mailing list