Skip to content

Commit 65db816

Browse files
ottokcvicentiu
authored andcommitted
Deb: Split libmysqlclient19/20 compat links into a separate package
We already ship libmysqlclient18 that replaces any existing package with the same name and install symlinks that point to out libmariadb.so. Instead of creating more packages, we add just one more that does the same and provides both libmysqlclient19 and -20 replacements symlinks. This is a clean solution, because systems that only use (and are built against) libmariadb will not need them and if somebody has done a mistake in the linker parameters, they will spot it and can easily update the filename to libmariadb.
1 parent 90f1f72 commit 65db816

File tree

3 files changed

+23
-8
lines changed

3 files changed

+23
-8
lines changed

debian/control

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ Conflicts: mariadb-galera-server-10.0 (<< 10.0.5),
5050
mariadb-server-5.3,
5151
mariadb-server-5.5 (<< 5.5.33),
5252
libmariadbclient18 (<< 10.2.0)
53-
Replaces: libmysqlclient19,
54-
libmysqlclient20
55-
Provides: libmysqlclient19,
56-
libmysqlclient20
5753
Description: MariaDB database client library
5854
MariaDB is a fast, stable and true multi-user, multi-threaded SQL database
5955
server. SQL (Structured Query Language) is the most popular database query
@@ -62,6 +58,25 @@ Description: MariaDB database client library
6258
.
6359
This package includes the client library.
6460

61+
Package: libmariadb3-compat
62+
Architecture: any
63+
Section: libs
64+
Depends: mariadb-common, libmariadb3, ${misc:Depends}, ${shlibs:Depends}
65+
Breaks: libmysqlclient19,
66+
libmysqlclient20
67+
Replaces: libmysqlclient19,
68+
libmysqlclient20
69+
Provides: libmysqlclient19,
70+
libmysqlclient20
71+
Description: MariaDB database client library MySQL compat package
72+
MariaDB is a fast, stable and true multi-user, multi-threaded SQL database
73+
server. SQL (Structured Query Language) is the most popular database query
74+
language in the world. The main goals of MariaDB are speed, robustness and
75+
ease of use.
76+
.
77+
This package includes the client runtime libraries that simulate and replace
78+
the equivalents found in MySQL 5.6 and 5.7 (mysqlclient19 and 20).
79+
6580
Package: libmariadbclient18
6681
Section: libs
6782
Architecture: any
@@ -74,7 +89,7 @@ Description: Virtual package to satisfy external depends
7489
language in the world. The main goals of MariaDB are speed, robustness and
7590
ease of use.
7691
.
77-
This package provides compatibility symlinks for libmariadb3
92+
This package provides compatibility symlinks for libmariadb3.
7893

7994
Package: libmysqlclient18
8095
Section: libs
@@ -88,7 +103,7 @@ Description: Virtual package to satisfy external depends
88103
language in the world. The main goals of MariaDB are speed, robustness and
89104
ease of use.
90105
.
91-
This package provides compatibility symlinks for libmariadb3
106+
This package provides compatibility symlinks for libmariadb3.
92107

93108
Package: libmariadb-dev
94109
Architecture: any

debian/libmariadb3-compat.install

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
usr/lib/*/libmysqlclient.so.19
2+
usr/lib/*/libmysqlclient.so.20

debian/libmariadb3.install

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
usr/lib/*/libmysqlclient.so.19
2-
usr/lib/*/libmysqlclient.so.20
31
usr/lib/*/libmariadb.so.*
42
usr/lib/mysql/plugin/dialog.so
53
usr/lib/mysql/plugin/mysql_clear_password.so

0 commit comments

Comments
 (0)