[debian-mysql] MariaDB: oqgraph workaround for Ubuntu 14.04

Otto Kekäläinen otto at seravo.fi
Mon Feb 3 15:06:03 UTC 2014


Hello,

While updating MariaDB to .35 I noticed that current upstream failed
to build oqgraph.so because libboost was not marked as a
build-dependency. So I added it and it works nicely for all releases I
test except for Ubuntu 14.04.

Ubuntu 14.04 only has libboost1.54-dev available while oqgraph needs
versions 1.42 - 1.53. There is no upstream fix and will not be, as the
libboost API has changed too much in 1.54. MariaDB 10.0 will work but
in the mean time we need to figure out a way to handle this for
MariaDB 5.5:

Options are:

a) Skip oqgraph on all versions of MariaDB. Some people will miss the
module, but it isn't essential.

b) Try to build oqgraph in all possible releases and invent a
work-around for Ubuntu 14.04 which does not have < libboost1.54-dev.

I went for option B like this:

In debian/rules there is a ifeq check if the lsb_release is Ubuntu
14.04 and if it validates true, a single line sed will remove
oqgraph.so from mariadb-server-5.5.install. Also to satisfy the
build-depends I have now 'libboost1.48-dev | libboost1.49-dev |
libboost1.54-dev' which isn't semantically correct, but the only way
to get it working (build with 1.48 and 1.49 normally, plus build with
1.54 but fail and gracefully degrade to ship without oqgraph.so.


What do you think?



More information about the pkg-mysql-maint mailing list