Merge lp:~ignacio-nin/percona-server/5.5-bug1171759 into lp:percona-server/5.5

Proposed by Ignacio Nin on 2013-04-23
Status: Work in progress
Proposed branch: lp:~ignacio-nin/percona-server/5.5-bug1171759
Merge into: lp:percona-server/5.5
Diff against target: 20 lines (+10/-0)
1 file modified
build/percona-server.spec (+10/-0)
To merge this branch: bzr merge lp:~ignacio-nin/percona-server/5.5-bug1171759
Reviewer Review Type Date Requested Status
Laurynas Biveinis (community) 2013-04-23 Needs Information on 2013-04-24
Review via email: mp+160512@code.launchpad.net
To post a comment you must log in.

Is it possible (and does it make sense) to fix libmysqlclient/CMakeLists.txt to create the desired symlinks in the first place?

review: Needs Information

Unmerged revisions

471. By Ignacio Nin on 2013-04-20

Have libmysqlclient_r.so.18 point to libmysqlclient.so.18 (RPM)

For the RPM shared package, the libmysqlclient_r.so.18 symlink was
pointing to libmysqlclient.so instead of the versioned
libmysqlclient.so.18. Since libmysqlclient.so was moved to the devel
package, when installing the shared package the unversioned library was
not present and the symlink would not get installed.

Fix this by pointing the symlink to the versioned library, which is
included in the shared package as well.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'build/percona-server.spec'
2--- build/percona-server.spec 2013-04-23 06:02:56 +0000
3+++ build/percona-server.spec 2013-04-23 22:04:29 +0000
4@@ -527,6 +527,16 @@
5 # FIXME: the shared libraries to use libmysql*-$major.$minor.so syntax
6 mv -v $RBR/%{_libdir}/*.a $RBR/%{_libdir}/mysql/
7
8+# libmysqlclient_r.so.18 and libmysqlclient_r.so.18.0.0 (generated by
9+# libmysql/CMakeLists.txt) point to libmysqlclient.so instead of the versioned
10+# libmysqlclient.so.18. Since libmysqlclient.so will live in a separate
11+# package, we want these to point to the versioned library.
12+for l in "$RBR%{_libdir}/libmysqlclient_r.so.18"*
13+do
14+ rm "$l"
15+ ln -s "$(echo "$(basename "$l")" | sed 's/_r//')" "$l"
16+done
17+
18 # Install logrotate and autostart
19 install -m 644 $MBD/release/support-files/mysql-log-rotate $RBR%{_sysconfdir}/logrotate.d/mysql
20 install -m 755 $MBD/release/support-files/mysql.server $RBR%{_sysconfdir}/init.d/mysql

Subscribers

People subscribed via source and target branches