mysql clients statically link libmysqlclient in

Bug #898340 reported by Clint Byrum
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Server
Unknown
Unknown
mysql-5.5 (Ubuntu)
Triaged
Medium
Clint Byrum

Bug Description

mysql and mysqlcheck, and I suspect other binaries, are statically linked to libmysqlclient instead of being linked to the shared library.

Tags: patch

Related branches

Changed in mysql-5.5 (Ubuntu):
status: New → Triaged
importance: Undecided → High
milestone: none → precise-alpha-2
Martin Pitt (pitti)
Changed in mysql-5.5 (Ubuntu):
milestone: precise-alpha-2 → ubuntu-12.04-beta-1
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Further investigation has revealed that upstream provides no way to do this since the switch to cmake.

I will attach a patch to client/CMakeLists.txt which solves the issue and produces smaller, dynamically linked binaries.. but this needs to be pushed upstream.

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Patch to cmake build which links client programs to libmysqlclient dynamically.

tags: added: patch
Martin Pitt (pitti)
Changed in mysql-5.5 (Ubuntu):
milestone: ubuntu-12.04-beta-1 → ubuntu-12.04-beta-2
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Workaround patch submitted upstream, and in progress bringing it into precise.

Changed in mysql-5.5 (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Clint Byrum (clint-fewbar)
Changed in mysql-5.5 (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Upstream seems to think this will be dangerous for a number of reasons, mostly I think because they do not test the client in this configuration. Apparently the mysql client uses some private API bits from libmysqlclient and so this is not even safe technically.

I think we'll probably just have to ship the client statically linked unless upstream blesses this. :-/

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Patch reverted in pending upload since upstream does not seem convinced that this can or should be done.

Changed in mysql-5.5 (Ubuntu):
status: Fix Committed → Triaged
Martin Pitt (pitti)
Changed in mysql-5.5 (Ubuntu):
milestone: ubuntu-12.04-beta-2 → ubuntu-12.04
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "mysql-5.5-compile-clientprograms-dynamically.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

Changed in mysql-5.5 (Ubuntu):
milestone: ubuntu-12.04 → none
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

I've lowered this to Medium priority. I don't believe its as important as I originally thought, and upstream does not seem to care much either.

Changed in mysql-5.5 (Ubuntu):
importance: High → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.