summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOtto Kekäläinen <otto@mariadb.org>2018-01-11 15:11:16 +0000
committerVicențiu-Marian Ciorbaru <cvicentiu@gmail.com>2018-01-16 13:48:00 +0200
commitbe59851ad98c21cd388a3a5ff6d088602291c6d1 (patch)
treee069544d9dcf549e1577c66cf9ce3cf94a07c53e
parent9ef2268eda401f65fc1a93cad37b9382a91b6f3b (diff)
downloadmariadb-git-be59851ad98c21cd388a3a5ff6d088602291c6d1.tar.gz
Deb: Match official Debian package libmariadb-dev-compat
Using this package any source that expects MySQL Client libraries should build without changes. Sources that expect MariaDB Connector C should build using only libmariadb-dev. Current MariaDB Connector/C does not build quite identically in this source tree compared to how it build in Debian official. The remaining differences are tracked in MDEV-14921.
-rw-r--r--debian/control34
-rw-r--r--debian/libmariadb-dev-compat.install4
-rw-r--r--debian/libmariadb-dev-compat.links2
-rw-r--r--debian/libmariadb-dev.install4
-rw-r--r--debian/libmariadb-dev.links2
-rw-r--r--debian/libmariadbd-dev.install1
6 files changed, 37 insertions, 10 deletions
diff --git a/debian/control b/debian/control
index bca2393a1aa..f86849e5741 100644
--- a/debian/control
+++ b/debian/control
@@ -112,22 +112,44 @@ Depends: libmariadb3 (= ${binary:Version}),
zlib1g-dev,
${misc:Depends},
${shlibs:Depends}
-Breaks: libmariadbclient-dev, libmysqlclient-dev
-Replaces: libmariadbclient-dev, libmysqlclient-dev
-Conflicts: libmariadbclient16-dev,
+Breaks: libmariadbclient-dev
+Replaces: libmariadbclient-dev
+Conflicts: libmariadbclient16-dev
+Provides: libmariadbclient-dev
+Description: MariaDB database development files
+ MariaDB is a fast, stable and true multi-user, multi-threaded SQL database
+ server. SQL (Structured Query Language) is the most popular database query
+ language in the world. The main goals of MariaDB are speed, robustness and
+ ease of use.
+ .
+ This package includes development libraries and header files. To allow sources
+ expecting the MariaDB Connector/C to build. Sources that expect the MySQL
+ Client libraries should use files from the libmariadb-dev-compat package.
+
+Package: libmariadb-dev-compat
+Architecture: any
+Multi-Arch: same
+Section: libdevel
+Priority: extra
+Depends: libmariadb-dev (= ${binary:Version}), ${misc:Depends}
+Conflicts: libmariadb-client-lgpl-dev-compat,
+ libmariadbclient-dev-compat,
+ libmysqlclient-dev,
libmysqlclient10-dev,
libmysqlclient12-dev,
libmysqlclient14-dev,
libmysqlclient15-dev,
libmysqlclient16-dev
-Provides: libmariadbclient-dev, libmariadbclient-dev-compat, libmysqlclient-dev
-Description: MariaDB database development files
+Provides: libmariadbclient-dev-compat, libmariadb-client-lgpl-dev-compat, libmysqlclient-dev
+Replaces: libmariadbclient-dev-compat, libmariadb-client-lgpl-dev-compat, libmysqlclient-dev
+Description: MariaDB Connector/C, compatibility symlinks
MariaDB is a fast, stable and true multi-user, multi-threaded SQL database
server. SQL (Structured Query Language) is the most popular database query
language in the world. The main goals of MariaDB are speed, robustness and
ease of use.
.
- This package includes development libraries and header files.
+ This package includes compatibility symlinks to allow sources expecting the
+ MySQL client libraries to be built against MariaDB Connector/C.
Package: libmariadbd19
Architecture: any
diff --git a/debian/libmariadb-dev-compat.install b/debian/libmariadb-dev-compat.install
new file mode 100644
index 00000000000..7fe10c50f69
--- /dev/null
+++ b/debian/libmariadb-dev-compat.install
@@ -0,0 +1,4 @@
+usr/lib/*/libmysqlclient.a
+usr/lib/*/libmysqlclient.so
+usr/lib/*/libmysqlclient_r.a
+usr/lib/*/libmysqlclient_r.so
diff --git a/debian/libmariadb-dev-compat.links b/debian/libmariadb-dev-compat.links
new file mode 100644
index 00000000000..50798417681
--- /dev/null
+++ b/debian/libmariadb-dev-compat.links
@@ -0,0 +1,2 @@
+usr/bin/mariadb_config usr/bin/mysql_config
+usr/share/pkgconfig/mariadb.pc usr/share/pkgconfig/mysqlclient.pc
diff --git a/debian/libmariadb-dev.install b/debian/libmariadb-dev.install
index 7aac84d0000..ae26a1e10e9 100644
--- a/debian/libmariadb-dev.install
+++ b/debian/libmariadb-dev.install
@@ -1,8 +1,6 @@
-usr/bin/mysql_config
+usr/bin/mariadb_config
usr/include/mysql
-usr/include/mariadb
usr/lib/*/libmariadb.so
-usr/lib/*/libmysqlclient.so
usr/lib/*/libmariadbclient.so
usr/lib/*/libmariadbclient.a
usr/lib/*/libmysqlservices.a
diff --git a/debian/libmariadb-dev.links b/debian/libmariadb-dev.links
new file mode 100644
index 00000000000..14d60027b8a
--- /dev/null
+++ b/debian/libmariadb-dev.links
@@ -0,0 +1,2 @@
+usr/include/mysql usr/include/mariadb
+usr/share/man/man1/mysql_config.1.gz usr/share/man/man1/mariadb_config.1.gz
diff --git a/debian/libmariadbd-dev.install b/debian/libmariadbd-dev.install
index 6fe225b15ba..4608bf6e838 100644
--- a/debian/libmariadbd-dev.install
+++ b/debian/libmariadbd-dev.install
@@ -1,3 +1,2 @@
-usr/bin/mariadb_config
usr/lib/*/libmysqld.a
usr/lib/*/libmysqld.so