Debian package: Support xulrunner 9+10 in debian/conkeror.bin, drop support for unver...
commit9660933fc277714fa0e2bbf5e810a1ebd4219fc5
authorLuca Capello <luca@pca.it>
Sat, 19 Nov 2011 00:52:09 +0000 (19 01:52 +0100)
committerAxel Beckert <abe@deuxchevaux.org>
Sat, 19 Nov 2011 01:10:41 +0000 (19 02:10 +0100)
tree643820a33f00e61a43ea8e77ddd7200b51187d4c
parent11bd3a60123eb2e57ace01eb947d1875fafbfbaa
Debian package: Support xulrunner 9+10 in debian/conkeror.bin, drop support for unversioned xulrunner binaries

xulrunner-10.0~a2 seems to have changed the format of the GRE version
string, now also including the alpha number (this was not true for
xulrunner-9.0~a2).  This means that the check for xulrunner's version in
/usr/bin/conkeror is broken and cannot be simply adapted to 10.0:

$ dpkg-query -W xulrunner-9.0
xulrunner-9.0   9.0~b1-1
$ xulrunner-9.0 --gre-version
9.0
$ expr `xulrunner-9.0 --gre-version | cut -d . -f 1,2` '>=' 1.9
1

$ dpkg-query -W xulrunner-10.0
xulrunner-10.0  10.0~a2+20111114042039-1
$ xulrunner-10.0 --gre-version
10.0a2
$ expr `xulrunner-10.0 --gre-version | cut -d . -f 1,2` '>=' 1.9
0

Given that there is no unversioned xulrunner in Debian (see #648972),
that upstream minimum requirement is xulrunner-1.9.1 and that Ubuntu
does not ship any /usr/bin/xulrunner* at all, I would avoid at all to
check for the version number.  And I would also avoid to repeat
'xulrunner-' for each version and simply use the version number in the
for list.

Details see http://bugs.debian.org/649199
debian/changelog
debian/conkeror.bin