Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.2.10, 10.2.11, 10.2.12, 10.3.3, 10.3.4, 10.2.13, 10.2.14, 10.3.5
Description
The shell script bin/mysql_config should provide information on how MySQL/MariaDB has been deployed.
For example if you have copied the Linux binaries directly on /opt/mariadb of your system, a call to /opt/mariadb/bin/mysql_config --include will tell you that you should add -I/opt/mariadb/include/mysql -I/opt/mariadb/include/mysql/.. to any compilation that uses the MySQL/MariaDb headers.
This is now broken by MDEV-13836 and commit a75884e.
In this development it was chosen to match the outputs of mariadb_config and mysql_confg. But mariadb_config doesn't care about where the files are located. It only uses the compilation options of MariaDB. So today if you download the binary packages you will get
-I/usr/local/mysql/include/mysql -I/usr/local/mysql/include/mysql/mysql no matter where you choose to deploy MariaDB on your system.
For me, this is a major backward compatibility issue. We should revert to give the choice between mysql_config and mariadb_config with their different behavior.
Attachments
Issue Links
- is duplicated by
-
MDEV-16384 Paths reported by both mariadb_config and mysql_config are fully broken
- Closed
- relates to
-
MDEV-14439 Missing library path in mariadb_config
- Closed