mysql clients statically link libmysqlclient in

Bug #898340 reported by Clint Byrum on 2011-11-30
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Server
mysql-5.5 (Ubuntu)
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.

Related branches

Changed in mysql-5.5 (Ubuntu):
status: New → Triaged
importance: Undecided → High
milestone: none → precise-alpha-2
Martin Pitt (pitti) on 2012-02-06
Changed in mysql-5.5 (Ubuntu):
milestone: precise-alpha-2 → ubuntu-12.04-beta-1
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.

Clint Byrum (clint-fewbar) wrote :

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

tags: added: patch
Martin Pitt (pitti) on 2012-03-02
Changed in mysql-5.5 (Ubuntu):
milestone: ubuntu-12.04-beta-1 → ubuntu-12.04-beta-2
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
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. :-/

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) on 2012-03-30
Changed in mysql-5.5 (Ubuntu):
milestone: ubuntu-12.04-beta-2 → ubuntu-12.04

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
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  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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