LP #1031427: Painful Yum dependencies on CentOS6.3
Description
Environment
Smart Checklist
Activity

lpjirasync January 20, 2018 at 2:57 PM
**Comment from Launchpad by: Raghavendra D Prabhu on: 28-10-2014 16:49:35
@Antoni
Can you provide more details on this? Yum logs etc.
On 23 Oct 2014 10:15, "Antoni Baranski" <antek.baranski@gmail.com> wrote:
> Sorry for waking up this old thread but it looks like 5.6 XtraDB Cluster
> package once again introduced this nasty dependency problem.
>
> –
> You received this bug notification because you are a member of Percona
> core, which is subscribed to Percona Server.
> Matching subscriptions: percona-server, percona-toolkit, percona-toolkit,
> percona-xtradb-cluster
> https://bugs.launchpad.net/bugs/1031427
>
> Title:
> Painful Yum dependencies on CentOS6.3
>
> Status in Percona Server with XtraDB:
> Invalid
> Status in Percona Server 5.1 series:
> Fix Released
> Status in Percona Server 5.5 series:
> Fix Released
> Status in Percona Server 5.6 series:
> Invalid
> Status in Percona Toolkit:
> Fix Released
> Status in Percona XtraDB Cluster - HA scalable solution for MySQL:
> Fix Released
>
> Bug description:
> (Probably a Percona-Server packaging issue, but reporting it here
> because it manifests in a percona-toolkit install)
>
> I have a stock CentOS6.3 install
>
> %> cat /etc/centos-release
> CentOS release 6.3 (Final)
>
> %> uname -r
> 2.6.32-220.el6.x86_64
>
> With the Percona Yum repository package:
>
> %> yum info percona-release
> Loaded plugins: fastestmirror, priorities, security
> Loading mirror speeds from cached hostfile
> * base: mirror.stanford.edu
> * extras: mirrors.kernel.org
> * updates: mirrors.kernel.org
> 68 packages excluded due to repository priority protections
> Installed Packages
> Name : percona-release
> Arch : x86_64
> Version : 0.0
> Release : 1
> Size : 3.6 k
> Repo : installed
> Summary : Percona RPM repository
> URL : http://www.percona.com/percona-lab.html
> License : GPL version 2
> Description : Percona release file. This package contains yum
> : configuration for the Percona RPM Repository, as well as
> the public
> : GPG keys used to sign them.
>
> I have the following packages installed:
>
> %> rpm -qa |grep -i percona
> Percona-Server-client-55-5.5.25a-rel27.1.277.rhel6.x86_64
> percona-release-0.0-1.x86_64
> Percona-Server-shared-55-5.5.25a-rel27.1.277.rhel6.x86_64
> Percona-Server-server-55-5.5.25a-rel27.1.277.rhel6.x86_64
>
> (installed via: `yum install Percona-Server-client-55 Percona-Server-
> server-55`)
>
> Trying to install percona-toolkit, I get the following:
>
> %> yum install percona-toolkit
> ...
> Transaction Check Error:
> file /usr/lib64/libmysqlclient.so from install of
> Percona-Server-shared-51-5.1.63-rel13.4.443.rhel6.x86_64 conflicts with
> file from package Percona-Server-shared-55-5.5.25a-rel27.1.277.rhel6.x86_64
> file /usr/lib64/libmysqlclient_r.so from install of
> Percona-Server-shared-51-5.1.63-rel13.4.443.rhel6.x86_64 conflicts with
> file from package Percona-Server-shared-55-5.5.25a-rel27.1.277.rhel6.x86_64
>
> Error Summary
> -------------
>
> If I look at:
>
> %> yum deplist perl-DBD-MySQL
> ...
> dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit)
> provider: mysql-libs.x86_64 5.1.61-4.el6
> provider: Percona-Server-shared-51.x86_64 5.1.63-rel13.4.443.rhel6
> provider: Percona-Server-shared-compat.x86_64
> 5.5.25a-rel27.1.277.rhel6
> ...
>
> We see that perl-DBD-MySQL requires libmysqlclient.so.16, which is
> available via Percona-Server-shared-51 but NOT Percona-Server-
> shared-55.
>
> I can get around this by installing packages in the following order:
>
> %> rpm -qa |grep -i percona
> percona-release-0.0-1.x86_64
>
> %> yum install Percona-Server-shared-compat
> ...
> %> yum install Percona-Server-client-55 Percona-Server-server-55
> percona-toolkit
> ...
>
> But it's a pain to have to do this every time, I'd rather have the
> dependencies just work
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/percona-server/+bug/1031427/+subscriptions
>

lpjirasync January 20, 2018 at 2:57 PM
**Comment from Launchpad by: Antoni Baranski on: 23-10-2014 17:06:08
Sorry for waking up this old thread but it looks like 5.6 XtraDB Cluster package once again introduced this nasty dependency problem.

lpjirasync January 20, 2018 at 2:57 PM
**Comment from Launchpad by: Daniel Nichter on: 25-03-2013 15:37:45
As for Percona Toolkit, the fix was done indirectly via the Percona Server packages being fixed. So this was basically fixed in PT 2.2.

lpjirasync January 20, 2018 at 2:56 PM
**Comment from Launchpad by: Ignacio Nin on: 19-02-2013 14:36:14
I've submitted a patch (linked branches) to each of the 5.0, 5.1, 5.5 and PXC branches that changes our shared packages to only include versioned libraries, following the model of the CentOS packages. This effectively makes the shared packages not conflict at the file level when installed in different combinations, allowing percona-toolkit to depend on any of them while at the same time permitting an installation of any suite of PS/PXC. Note that in debian we follow this same model. Refer to the commit messages for details.
The packages are currently up in the percona-testing repo. I've tested each suite in rhel6 and rhel5 with percona-toolkit (including PXC) and this bug seems to be fixed.

lpjirasync January 20, 2018 at 2:56 PM
**Comment from Launchpad by: Alexey Bychko on: 28-01-2013 07:00:11
according to link above, this is not a bug, but just documented yum behavior. thinking on solution
Details
Assignee
UnassignedUnassignedReporter
lpjirasynclpjirasync(Deactivated)Components
Priority
High
Details
Details
Assignee
Reporter

Components
Priority
Smart Checklist
Open Smart Checklist
Smart Checklist
Open Smart Checklist
Smart Checklist

**Reported in Launchpad by Ryan Lowe last update 18-01-2018 08:15:51
(Probably a Percona-Server packaging issue, but reporting it here because it manifests in a percona-toolkit install)
I have a stock CentOS6.3 install
%> cat /etc/centos-release
CentOS release 6.3 (Final)
%> uname -r
2.6.32-220.el6.x86_64
With the Percona Yum repository package:
%> yum info percona-release
Loaded plugins: fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
base: mirror.stanford.edu
extras: mirrors.kernel.org
updates: mirrors.kernel.org
68 packages excluded due to repository priority protections
Installed Packages
Name : percona-release
Arch : x86_64
Version : 0.0
Release : 1
Size : 3.6 k
Repo : installed
Summary : Percona RPM repository
URL : http://www.percona.com/percona-lab.html
License : GPL version 2
Description : Percona release file. This package contains yum
: configuration for the Percona RPM Repository, as well as the public
: GPG keys used to sign them.
I have the following packages installed:
%> rpm -qa |grep -i percona
Percona-Server-client-55-5.5.25a-rel27.1.277.rhel6.x86_64
percona-release-0.0-1.x86_64
Percona-Server-shared-55-5.5.25a-rel27.1.277.rhel6.x86_64
Percona-Server-server-55-5.5.25a-rel27.1.277.rhel6.x86_64
(installed via: `yum install Percona-Server-client-55 Percona-Server-server-55`)
Trying to install percona-toolkit, I get the following:
%> yum install percona-toolkit
...
Transaction Check Error:
file /usr/lib64/libmysqlclient.so from install of Percona-Server-shared-51-5.1.63-rel13.4.443.rhel6.x86_64 conflicts with file from package Percona-Server-shared-55-5.5.25a-rel27.1.277.rhel6.x86_64
file /usr/lib64/libmysqlclient_r.so from install of Percona-Server-shared-51-5.1.63-rel13.4.443.rhel6.x86_64 conflicts with file from package Percona-Server-shared-55-5.5.25a-rel27.1.277.rhel6.x86_64
Error Summary
-------------
If I look at:
%> yum deplist perl-DBD-MySQL
...
dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit)
provider: mysql-libs.x86_64 5.1.61-4.el6
provider: Percona-Server-shared-51.x86_64 5.1.63-rel13.4.443.rhel6
provider: Percona-Server-shared-compat.x86_64 5.5.25a-rel27.1.277.rhel6
...
We see that perl-DBD-MySQL requires libmysqlclient.so.16, which is available via Percona-Server-shared-51 but NOT Percona-Server-shared-55.
I can get around this by installing packages in the following order:
%> rpm -qa |grep -i percona
percona-release-0.0-1.x86_64
%> yum install Percona-Server-shared-compat
...
%> yum install Percona-Server-client-55 Percona-Server-server-55 percona-toolkit
...
But it's a pain to have to do this every time, I'd rather have the dependencies just work