1 (edited by pgp 2018-12-21 16:06:13)

Topic: php-pecl-memcached transaction error with update to 3.1.1-1.el6.remi

Hi,

I'm running a bunch of Centos6 servers with the PHP 7.2 remi repo, and the update to the php-pecl-memcached package is starting to come through (https://pecl.php.net/package-changelog. … ease=3.1.1).
It is trying to upgrade from php-pecl-memcached.x86_64 0:3.0.4-1.el6.remi.7.2 to php-pecl-memcached.x86_64 0:3.1.1-1.el6.remi.7.2 and this is causing the following transaction error:

[root@server etc]# yum update
Loaded plugins: fastestmirror, presto
Setting up Update Process
Loading mirror speeds from cached hostfile
 * base: mirror.nforce.com
 * epel: mirror.nl.leaseweb.net
 * extras: mirrors.supportex.net
 * php72: remi.mirrors.cu.be
 * remi: remi.mirrors.cu.be
 * updates: mirrors.supportex.net
Resolving Dependencies
--> Running transaction check
---> Package php-pecl-memcached.x86_64 0:3.0.4-1.el6.remi.7.2 will be updated
---> Package php-pecl-memcached.x86_64 0:3.1.1-1.el6.remi.7.2 will be an update
--> Processing Dependency: libmemcached-opt-libs(x86-64) for package: php-pecl-memcached-3.1.1-1.el6.remi.7.2.x86_64
--> Running transaction check
---> Package libmemcached-opt-libs.x86_64 0:1.0.18-1.el6.remi will be installed
--> Processing Dependency: libevent2(x86-64) for package: libmemcached-opt-libs-1.0.18-1.el6.remi.x86_64
--> Running transaction check
---> Package libevent2.x86_64 0:2.0.21-2.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================================================================================================================================================================================================================================================================================================
 Package                                                                                          Arch                                                                              Version                                                                                         Repository                                                                        Size
===========================================================================================================================================================================================================================================================================================================================================================================
Updating:
 php-pecl-memcached                                                                               x86_64                                                                            3.1.1-1.el6.remi.7.2                                                                            php72                                                                             80 k
Installing for dependencies:
 libevent2                                                                                        x86_64                                                                            2.0.21-2.el6                                                                                    base                                                                             193 k
 libmemcached-opt-libs                                                                            x86_64                                                                            1.0.18-1.el6.remi                                                                               remi                                                                             118 k

Transaction Summary
===========================================================================================================================================================================================================================================================================================================================================================================
Install       2 Package(s)
Upgrade       1 Package(s)

Total size: 391 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test


Transaction Check Error:
  file /usr/lib64/libevent-2.0.so.5.1.9 from install of libevent2-2.0.21-2.el6.x86_64 conflicts with file from package libevent-last-2.0.22-1.el6.remi.x86_64
  file /usr/lib64/libevent_core-2.0.so.5.1.9 from install of libevent2-2.0.21-2.el6.x86_64 conflicts with file from package libevent-last-2.0.22-1.el6.remi.x86_64
  file /usr/lib64/libevent_extra-2.0.so.5.1.9 from install of libevent2-2.0.21-2.el6.x86_64 conflicts with file from package libevent-last-2.0.22-1.el6.remi.x86_64
  file /usr/lib64/libevent_openssl-2.0.so.5.1.9 from install of libevent2-2.0.21-2.el6.x86_64 conflicts with file from package libevent-last-2.0.22-1.el6.remi.x86_64
  file /usr/lib64/libevent_pthreads-2.0.so.5.1.9 from install of libevent2-2.0.21-2.el6.x86_64 conflicts with file from package libevent-last-2.0.22-1.el6.remi.x86_64

Error Summary
-------------

For now I am excluding it with the current yum update while looking for a solution. This is happening on multiple servers and I am  unsure what the best approach is to finding a solution. Is this a problem on my side with the libevent packages I've got installed or is there a dependency issue with the php-pecl-memcached package? The php-pecl-memcached.x86_64 0:3.0.4-1 package works without issues.
I have the libevent-last package from the remi repo (libevent-last.x86_64 / 2.0.22-1.el6.remi), yet it still tries to install the regular libevent2 package that seems to clash?

Any suggestions on how to proceed?

Thanks.

Re: php-pecl-memcached transaction error with update to 3.1.1-1.el6.remi

libevent-last have exist a long time ago, before libevent2 being available in the base repository.

So you can remove it

# yum shell
remove  libevent-last
install libevent2
run
Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: php-pecl-memcached transaction error with update to 3.1.1-1.el6.remi

Excellent, thanks!