Description of problem: MySQL server package includes the file mysql_config which is used to determine configuration flags for compiling programs using mysql. Version-Release number of selected component (if applicable): mysql-5.0.37-2.fc7 How reproducible: Always Steps to Reproduce: 1. Install MySQL server package (mysql-5.0.37-2.fc7) and mysql-libs package without installing mysql-devel. 2. Compile a software that uses mysql, the program must not use autotools, for example MySQL-Python or custom scripts that depend on mysql_config for detecting mysql installation. Actual results: The compilation will start as if the mysql libraries and development files where detected correctly, the compilation will fail because of missing mysql.h and related headers. Expected results: Compilation should not even start, if mysql-devel is not installed mysql_config should not be installed, compilation scripts should then detect correctly that mysql-devel is missing, this is the behavior expected from *-config scripts (for example pg_config). Additional info: Autoconf probably works around this by compiling a test program.
The reason mysql_config is in the base package is that it has other uses besides compilation, for example detecting which port to use for mysql and where the socket file is. Moving it to mysql-devel would break packages that depend on it for those purposes. Possibly it's an upstream design error to have used mysql_config for both compile-time and run-time purposes, but we're stuck with it now. I do see a packaging bug here, which is that its man page is in the -server subpackage; apparently a thinko on my part when they added a man page for it in 5.0.16. Should be in base.
Moved the man page as of mysql-5.0.45-1
mysql-5.0.45-1.fc7 has been pushed to the Fedora 7 testing repository. If problems still persist, please make note of it in this bug report.
mysql-5.0.45-1.fc7 has been pushed to the Fedora 7 stable repository. If problems still persist, please make note of it in this bug report.