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

Otto Kekäläinen otto at seravo.fi
Tue Feb 4 06:54:15 UTC 2014


2014-02-04 James Page <james.page at ubuntu.com>:
>> 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.


This is the debian/rules I have now:

touch debug-distribution-$(DISTRIBUTION)
ifeq ($(DISTRIBUTION),Ubuntu)
touch debug-release-$(RELEASE)
ifeq ($(RELEASE),14.04)
sed -i '/ha_oqgraph.so/d' debian/mariadb-server-5.5.install.in
endif
endif

Source:
https://github.com/ottok/mariadb-5.5/blob/master/debian/rules

The touch things are for debugging. Contents of the variables are defined as:

DISTRIBUTION := $(shell lsb_release -i -s)
RELEASE := $(shell lsb_release -r -s)


It works, I just wondered if you have any better ideas?



More information about the pkg-mysql-maint mailing list