Bug 245770 - Misplaced mysql_config script
Summary: Misplaced mysql_config script
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mysql
Version: 7
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Tom Lane
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-06-26 16:20 UTC by Carlos Daniel Ruvalcaba Valenzuela
Modified: 2013-07-03 03:13 UTC (History)
1 user (show)

Fixed In Version: 5.0.45-1.fc7
Clone Of:
Environment:
Last Closed: 2007-09-25 08:28:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Carlos Daniel Ruvalcaba Valenzuela 2007-06-26 16:20:44 UTC
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.

Comment 1 Tom Lane 2007-06-26 17:09:10 UTC
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.

Comment 2 Tom Lane 2007-07-22 23:51:08 UTC
Moved the man page as of mysql-5.0.45-1

Comment 3 Fedora Update System 2007-07-23 15:44:47 UTC
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.

Comment 4 Fedora Update System 2007-09-25 08:27:57 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.