[debian-mysql] MariaDB: oqgraph workaround for Ubuntu 14.04
James Page
james.page at ubuntu.com
Tue Feb 4 06:28:20 UTC 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi Otto
On 03/02/14 17:06, Otto Kekäläinen wrote:
> 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.
>> Hello,
>
> 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?
An alternative is to use dpkg --derives-from ubuntu - this allows you
to put in conditional logic for Ubuntu builds in debian/rules.
However it does not let you differentiate between Ubuntu releases.
Is there a way to check which boost version is available? That would
be a much more generic test. Also the package really should depend on
libboost-dev, not a versioned one, so that it uses the default boost
version in the distro.
- --
James Page
Ubuntu and Debian Developer
james.page at ubuntu.com
jamespage at debian.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBCAAGBQJS8IiEAAoJEL/srsug59jDZnwP/2QgsBwL/HH5/o9zdNefQoIQ
qaGp33n3uYJFaBq6TuvcV1gSCS9UddnElQWOdueVfYl1mtvp77rStggcq+i/8Szf
YwEsRM4MFSlGNcnJS8OsP32I2ZmTE0kluugBTomOLh2+OI+rWW3Wi7KGdFLvz6aR
FsHEzDy8g0eOwxqTsc5LhfnfoYMnwV7QP9uQnzzqIz0hIR7W2Ystkc/lsr0WcbJV
wseRzWxgl+MwO7Vu7d/LcQOogNZbglRQ1e805QrZz1fjJfKMc26VFy5xe3jdfFj7
8wwqVpt0ntrHwSvOtgvKRC16IbaEk0KWnrHkKKogYSHur/8pcgKLSzqnt+1pLSyD
h6NztSREku82uBjvIXmuQCpLpbAlZz7vI46HM503neeensBQRg9dGne6TAL/7J1h
luUOqNeIjKa2kBr2E/4mLnTfIucyYFvxBJOe1K7PTqAciIP5+BUwa58NDEmsvWfN
GYbbYL5IcD81HF/VaYEQd9igVRQghpzo4oKGutBYocjoeF5nB9U+ezOekYtmat18
xHhDSeOJHwfIbXMesimNbGbUQMU4lhm7CUJdSEk+oKvPv75C304xAeMvc53/lmmz
NVNL78QHlmWqpiowf9M+WnTJ6/9JxROE+AXaRtlmzHYQ1+IJqaEhmZEzqintYQYx
9momoAvwoDPM639VLAr9
=Mfod
-----END PGP SIGNATURE-----
More information about the pkg-mysql-maint
mailing list