[CONC-305] Use /usr/include/mariadb instead of /usr/include/mysql Created: 2018-01-11  Updated: 2018-01-11  Resolved: 2018-01-11

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: None
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Otto Kekäläinen Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None


 Description   

In Debian official mariadb-connector-c packaging the libmariadb-dev files are installed in path /usr/include/mariadb/

https://anonscm.debian.org/cgit/pkg-mysql/mariadb-connector-c.git/tree/debian/libmariadb-dev.install?id=08de8a73c371d4fbbccb1bd8ffb739acf64867db

However, our current 10.3 server branch CMake puts the files in /usr/include/mysql. I cannot figure out how to rename this. Please help.

Once the rename is done, I will symlink from /usr/include/mysql to to /mariadb for backwards compatibility, just like done in the official Debian libmariadb-dev package.

This issue is related to MDEV-14921



 Comments   
Comment by Sergei Golubchik [ 2018-01-11 ]

This is not C/C issue, Connector/C (when built as a sub-project) uses the INSTALL_INCLUDEDIR path that the server gives to it.

otto you want to change INSTALL_INCLUDEDIR_DEB in cmake/install_layout.cmake of the server repository.

Comment by Otto Kekäläinen [ 2018-01-11 ]

Implemented in https://github.com/ottok/mariadb/commit/6d26b0e72f7a579302cf251207128dc33330213c

Generated at Thu Feb 08 03:04:21 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.