summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorOtto Kekäläinen <otto@mariadb.org>2016-11-13 01:10:41 +0200
committerOtto Kekäläinen <otto@mariadb.org>2016-11-20 10:51:14 +0200
commitdcfe6cb834b8106e384e24ac038cf6a6456fa9ee (patch)
tree36e2f4a1d9859c551e642491028dbf447f17781e /debian
parent2bcc16c17b290d319364bd4c75be8140b5e3c29f (diff)
downloadmariadb-git-dcfe6cb834b8106e384e24ac038cf6a6456fa9ee.tar.gz
Deb: make libmariadb3 to provide the libmariadbclient.so.18 link
In Debian many existing applications in Debian/Ubuntu have been built while libmariadbclient-dev or libmariadbclient-dev-compat was installed. To satisfy installation dependencies, the package name libmariadbclient18 must be provided, and at runtime a shared library must by the name libmariadbclient.so.18. Provide these to remain backwards compatible.
Diffstat (limited to 'debian')
-rw-r--r--debian/libmariadb3.install1
-rwxr-xr-xdebian/rules3
2 files changed, 4 insertions, 0 deletions
diff --git a/debian/libmariadb3.install b/debian/libmariadb3.install
index 1cb8681244e..d1812759d89 100644
--- a/debian/libmariadb3.install
+++ b/debian/libmariadb3.install
@@ -1,3 +1,4 @@
usr/lib/mariadb/libmariadb.so.*
+usr/lib/*/libmariadbclient.so.*
usr/lib/mysql/plugin/dialog.so
usr/lib/mysql/plugin/mysql_clear_password.so
diff --git a/debian/rules b/debian/rules
index f85dcdeccfc..3ab308b8d73 100755
--- a/debian/rules
+++ b/debian/rules
@@ -157,6 +157,9 @@ override_dh_auto_install:
# install Apport hook
install -D -m 644 debian/mariadb-server-10.2.py $(TMP)/usr/share/apport/package-hooks/source_mariadb-10.2.py
+ # Install libmariadbclient18 compatibility links
+ ln -s /usr/lib/$(DEB_HOST_MULTIARCH)/libmariadb.so.3 $(TMP)/usr/lib/$(DEB_HOST_MULTIARCH)/libmariadbclient.so.18
+
touch $@
override_dh_installlogrotate-arch: