Skip to content

Commit f977709

Browse files
committed
Deb: Make libmariadb3 to provide the libmysqlclient.so.XX links
For backwards compatibility reasons. E.g. innotop builds against libmysqlclient.so and expects to find a libmysqlclient.so.18 library and does not use libmariadb.so.3 even when built from our own sources. This commit mimics to dcfe6cb
1 parent 1965f03 commit f977709

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

debian/control

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ Conflicts: mariadb-galera-server-10.0 (<< 10.0.5),
4646
mariadb-server-5.2,
4747
mariadb-server-5.3,
4848
mariadb-server-5.5 (<< 5.5.33)
49-
Replaces: libmariadbclient18
50-
Provides: libmariadbclient18, default-libmysqlclient-dev, libmariadbclient-dev-compat
49+
Replaces: libmariadbclient18, libmysqlclient18, libmysqlclient19, libmysqlclient20
50+
Provides: libmariadbclient18, libmysqlclient18, libmysqlclient19, libmysqlclient20
5151
Description: MariaDB database client library
5252
MariaDB is a fast, stable and true multi-user, multi-threaded SQL database
5353
server. SQL (Structured Query Language) is the most popular database query
@@ -60,7 +60,6 @@ Package: libmysqlclient18
6060
Section: libs
6161
Architecture: any
6262
Depends: libmariadb3 (= ${binary:Version}), ${misc:Depends}
63-
Replaces: libmysqlclient18 (<< ${source:Version})
6463
Description: Virtual package to satisfy external depends
6564
This is an empty package that depends on the libmariadb3
6665
package.

debian/libmariadb3.install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
usr/lib/mariadb/libmariadb.so.*
22
usr/lib/*/libmariadbclient.so.*
3+
usr/lib/*/libmysqlclient.so.*
34
usr/lib/mysql/plugin/dialog.so
45
usr/lib/mysql/plugin/mysql_clear_password.so

debian/rules

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@ override_dh_auto_install:
160160
# Install libmariadbclient18 compatibility links
161161
ln -s /usr/lib/mariadb/libmariadb.so.3 $(TMP)/usr/lib/$(DEB_HOST_MULTIARCH)/libmariadbclient.so.18
162162

163+
# Install libmysqlclientclientXX compatibility links
164+
ln -s /usr/lib/mariadb/libmariadb.so.3 $(TMP)/usr/lib/$(DEB_HOST_MULTIARCH)/libmysqlclient.so.18
165+
ln -s /usr/lib/mariadb/libmariadb.so.3 $(TMP)/usr/lib/$(DEB_HOST_MULTIARCH)/libmysqlclient.so.19
166+
ln -s /usr/lib/mariadb/libmariadb.so.3 $(TMP)/usr/lib/$(DEB_HOST_MULTIARCH)/libmysqlclient.so.20
167+
163168
touch $@
164169

165170
override_dh_installlogrotate-arch:

0 commit comments

Comments
 (0)