Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.2.8
-
None
Description
after MDEV-13370 server includes got installed under /usr/include/mysql/server. But some client packages need them, e.g. mysql-python needs my_config.h.
They shouldn't need them and mysql-python doesn't really use the included file, but some might use them and they need time to be fixed.
Possible solution, install headers, like
/usr/include/mysql/my_global.h |
#include "server/my_global.h"
|
#warning Clients should not include this file, it's a server header. Report a bug to project maintainers! |
Attachments
Issue Links
- is caused by
-
MDEV-13370 Ambiguous behaviour regarding installation of header files
-
- Closed
-
- links to
Thanks! So I have the following choices:
1. Leave everything as is. This will work for MariaDB < 10.2.8, not work for MariaDB = 10.2.8, will work with a warning for MariaDB > 10.2.8
2. Remove the redundant #include <mysql_version.h> line. This will work for MariaDB 10.2.8, will break 10.2.x, where x < 8
3. Do some configure-time pushups to test for server/mysql_version.h availability, and if available, include that one instead of just mysql_version.h. Which will apparently work everywhere.
It looks like #3, as ugly as it is, provides better compatibility.