Skip to content

Commit

Permalink
Deb: make libmariadb3 to provide the libmariadbclient.so.18 link
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ottok committed Nov 20, 2016
1 parent 2bcc16c commit dcfe6cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions 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
3 changes: 3 additions & 0 deletions debian/rules
Expand Up @@ -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:
Expand Down

0 comments on commit dcfe6cb

Please sign in to comment.