Static libraries in incorrect location for devel package

Bug #1287374 reported by Raghavendra D Prabhu on 2014-03-03
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Percona Server
Status tracked in 5.7
5.1
Medium
Unassigned
5.5
Medium
Unassigned
5.6
High
Unassigned
5.7
High
Unassigned

Bug Description

mysql_config --libs
-L/usr/lib64 -lperconaserverclient -lpthread -lm -lrt -lssl -lcrypto -ldl

rpm -ql Percona-Server-devel-55 | grep '\.a$'
/usr/lib64/mysql/libhsclient.a
/usr/lib64/mysql/libmysqlservices.a
/usr/lib64/mysql/libperconaserverclient.a
/usr/lib64/mysql/libperconaserverclient_r.a
/usr/lib64/mysql/plugin/libfnv1a_udf.a
/usr/lib64/mysql/plugin/libfnv_udf.a
/usr/lib64/mysql/plugin/libmurmur_udf.a

Out of the above,

/usr/lib64/mysql/libhsclient.a
/usr/lib64/mysql/libmysqlservices.a
/usr/lib64/mysql/libperconaserverclient.a
/usr/lib64/mysql/libperconaserverclient_r.a

need to be in /usr/lib64/ (or mysql_config should add -L/usr/lib64/mysql)

Tags: pkg Edit Tag help
tags: added: pkg

This (different location for .a vs .so) is easy to confirm on 5.5:

[openxs@chief tmp]$ rpm2cpio Percona-Server-devel-55-5.5.32-rel31.0.549.rhel6.x86_64.rpm | cpio -t | grep libmysql
14884 blocks
./usr/lib64/libmysqlclient.so
./usr/lib64/libmysqlclient_r.so
./usr/lib64/mysql/libmysqlclient.a
./usr/lib64/mysql/libmysqlclient_r.a
./usr/lib64/mysql/libmysqlservices.a

Same with 5.6:

[openxs@chief tmp]$ rpm2cpio Percona-Server-devel-56-5.6.15-rel63.0.519.rhel6.x86_64.rpm | cpio -t | grep libmysql
15927 blocks
./usr/lib64/libmysqlclient.so
./usr/lib64/libmysqlclient_r.so
./usr/lib64/mysql/libmysqlclient.a
./usr/lib64/mysql/libmysqlclient_r.a
./usr/lib64/mysql/libmysqlservices.a

and 5.1 (here we have .so in two directories actually, but /usr/lib64/mysql at least has them all):

[openxs@chief tmp]$ rpm2cpio Percona-Server-devel-51-5.1.73-rel14.11.603.rhel6.x86_64.rpm | cpio -t | grep libmysql
49039 blocks
./usr/lib64/libmysqlclient.so
./usr/lib64/libmysqlclient_r.so
./usr/lib64/mysql/libmysqlclient.a
./usr/lib64/mysql/libmysqlclient.la
./usr/lib64/mysql/libmysqlclient.so
./usr/lib64/mysql/libmysqlclient_r.a
./usr/lib64/mysql/libmysqlclient_r.la
./usr/lib64/mysql/libmysqlclient_r.so

I wonder what is the point.

Roel Van de Paar (roel11) wrote :

See bug 1438009

Propose to triage as high; it makes it more difficult for people to use PS client libs and as such developing apps with/for PS as a base becomes more difficult. MS and MD do not have this problem.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers