rpm Percona-Server-shared-51 does not contain symlinks to so libs

Bug #1305033 reported by jahor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Invalid
Undecided
Unassigned
5.1
Won't Fix
Medium
Unassigned
5.5
Invalid
Undecided
Unassigned
5.6
Invalid
Undecided
Unassigned

Bug Description

package Percona-Server-shared-51-5.1.73-rel14.11.603.rhel6.x86_64.rpm
contains only so libraries and symlinks are created in post scripts

-rwxr-xr-x 1 root root 1499400 Dec 19 06:53 /usr/lib64/libmysqlclient.so.16.0.0
-rwxr-xr-x 1 root root 1509288 Dec 19 06:53 /usr/lib64/libmysqlclient_r.so.16.0.0
-rwxr-xr-x 1 root root 1586048 Dec 19 06:53 /usr/lib64/mysql/libmysqlclient.so.16.0.0
-rwxr-xr-x 1 root root 1595784 Dec 19 06:53 /usr/lib64/mysql/libmysqlclient_r.so.16.0.0

this causes one problem when other package (previously existing Percona-Server-shared-compat-5.5.29-rel30.0.451.rhel6.x86_64.rpm - now not existing) owns the symlinks.

in yum transactions, at first new packages are installed, then removed, so symlinks owned only by removed packages cause removing required symlinks by binaries

this has easy hot-fix - running ldconfig manualy after package upgrade (remove/install in single yum transaction)

behind the scene:

this was observerd after actual percona yum/package changes and running:
echo -e "remove Percona-Server-shared-compat\n install Percona-Server-shared-51\n install Percona-Server-shared-compat-51\n install Percona-Server-shared-55\n run\n" | yum shell -y

we are using the compat packages to have ready to use all the compat percona libraries (so not using original mysql-libs centos/el6 package)

Tags: pkg
Revision history for this message
jahor (jahor) wrote :

after some additional comparison of original mysql-libs package i see, that
even the original packages do not contain all the symlinks. it is not required because every package containing libraries must run ldconfig in post and postun rpm script (as noted in fedora packaging i use as a reference for packaging). so the problematic package is the "now deprecated Server-shared-compat-5.5.29-rel30.0.451.rhel6.x86_64.rpm" which does not run ldconfig in post and postun.

mysql-libs-5.1.73-3.el6_5.x86_64:
drwxr-xr-x 2 root root 0 Feb 12 20:42 /usr/lib64/mysql
lrwxrwxrwx 1 root root 24 Feb 12 20:42 /usr/lib64/mysql/libmysqlclient.so.16 -> libmysqlclient.so.16.0.0
-rwxr-xr-x 1 root root 1584680 Feb 12 20:42 /usr/lib64/mysql/libmysqlclient.so.16.0.0
lrwxrwxrwx 1 root root 26 Feb 12 20:42 /usr/lib64/mysql/libmysqlclient_r.so.16 -> libmysqlclient_r.so.16.0.0
-rwxr-xr-x 1 root root 1595240 Feb 12 20:42 /usr/lib64/mysql/libmysqlclient_r.so.16.0.0

Changed in percona-server:
assignee: nobody → Muhammad Irfan (muhammad-irfan)
Revision history for this message
Muhammad Irfan (muhammad-irfan) wrote :

rpm -q -lp Percona-Server-shared-51-5.1.73-rel14.11.603.rhel6.x86_64.rpm
/usr/lib64/libmysqlclient.so.16.0.0
/usr/lib64/libmysqlclient_r.so.16.0.0
/usr/lib64/mysql/libmysqlclient.so.16.0.0
/usr/lib64/mysql/libmysqlclient_r.so.16.0.0

Changed in percona-server:
status: New → Confirmed
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Does this issue exist in 5.5 and 5.6?

tags: added: pkg
Revision history for this message
Nilnandan Joshi (nilnandan-joshi) wrote :

Invalid for 5.6

[root@centos65 lib64]# rpm -qa | grep -i percona
Percona-Server-server-56-5.6.16-rel64.2.el6.x86_64
Percona-Server-client-56-5.6.16-rel64.2.el6.x86_64
Percona-Server-shared-56-5.6.16-rel64.2.el6.x86_64
percona-release-0.0-1.x86_64
[root@centos65 lib64]#
[root@centos65 lib64]# ls -al libpercona*
lrwxrwxrwx. 1 root root 28 Apr 23 13:21 libperconaserverclient_r.so.18 -> libperconaserverclient.so.18
lrwxrwxrwx. 1 root root 32 Apr 23 13:21 libperconaserverclient_r.so.18.1.0 -> libperconaserverclient.so.18.1.0
lrwxrwxrwx. 1 root root 32 Apr 23 13:21 libperconaserverclient.so.18 -> libperconaserverclient.so.18.1.0
-rwxr-xr-x. 1 root root 3553576 Mar 24 21:47 libperconaserverclient.so.18.1.0
[root@centos65 lib64]#

Revision history for this message
Nilnandan Joshi (nilnandan-joshi) wrote :

Invalid for 5.5

[root@centos65 ~]# rpm -qa | grep -i percona
percona-release-0.0-1.x86_64
Percona-Server-shared-55-5.5.36-rel34.2.el6.x86_64
[root@centos65 ~]# cd /usr/lib64/
[root@centos65 lib64]# ls -al libpercona*
lrwxrwxrwx. 1 root root 25 Apr 23 15:54 libperconaserverclient_r.so -> libperconaserverclient.so
lrwxrwxrwx. 1 root root 25 Apr 23 15:54 libperconaserverclient_r.so.18 -> libperconaserverclient.so
lrwxrwxrwx. 1 root root 25 Apr 23 15:54 libperconaserverclient_r.so.18.0.0 -> libperconaserverclient.so
lrwxrwxrwx. 1 root root 28 Apr 23 15:54 libperconaserverclient.so -> libperconaserverclient.so.18
lrwxrwxrwx. 1 root root 32 Apr 23 15:54 libperconaserverclient.so.18 -> libperconaserverclient.so.18.0.0
-rwxr-xr-x. 1 root root 3094776 Mar 25 19:14 libperconaserverclient.so.18.0.0
[root@centos65 lib64]#

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-3123

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.