← Back to team overview

ius-coredev team mailing list archive

[Bug 1055461] Re: Yum Replace confusion with provides php-database

 

I've been able to reproduce this on el6 however:

# cat /etc/redhat-release 
CentOS release 6.3 (Final)

# rpm -qa | grep php
php-common-5.3.3-14.el6_3.x86_64
php-5.3.3-14.el6_3.x86_64
php-cli-5.3.3-14.el6_3.x86_64
php-mysql-5.3.3-14.el6_3.x86_64
php-pdo-5.3.3-14.el6_3.x86_64

# yum replace php --replace-with php53u
...
WARNING: Unable to resolve all providers: ['config(php-common)', 'php-fileinfo', 'php-common(x86-64)', 'php-pcntl', 'php-readline', 'php-cli(x86-64)', 'config(php-pdo)', 'sqlite3.so()(64bit)', 'php-pdo(x86-64)', 'config(php-mysql)', 'php-pdo_mysql', 'php-mysql(x86-64)', 'config(php)', 'php(x86-64)']
....

================================================================================================================================================
 Package                               Arch                         Version                                Repository                      Size
================================================================================================================================================
Installing:
 php53u                                x86_64                       5.3.16-1.ius.el6                       ius                            1.5 M
 php53u-cli                            x86_64                       5.3.16-1.ius.el6                       ius                            2.9 M
 php53u-common                         x86_64                       5.3.16-1.ius.el6                       ius                            551 k
 php53u-mysql                          x86_64                       5.3.16-1.ius.el6                       ius                             82 k
 php53u-pdo                            x86_64                       5.3.16-1.ius.el6                       ius                             65 k
 php53u-pgsql                          x86_64                       5.3.16-1.ius.el6                       ius                             70 k
Removing:
 php                                   x86_64                       5.3.3-14.el6_3                         @updates                       3.5 M
 php-cli                               x86_64                       5.3.3-14.el6_3                         @updates                       6.2 M
 php-common                            x86_64                       5.3.3-14.el6_3                         @updates                       2.9 M
 php-mysql                             x86_64                       5.3.3-14.el6_3                         @updates                       215 k
 php-pdo                               x86_64                       5.3.3-14.el6_3                         @updates                       168 k
Installing for dependencies:
 postgresql-libs                       x86_64                       8.4.13-1.el6_3                         updates                        200 k

-- 
You received this bug notification because you are a member of IUS Core
Development, which is subscribed to IUS Community Project.
https://bugs.launchpad.net/bugs/1055461

Title:
  Yum Replace confusion with provides php-database

Status in IUS Community Project:
  New

Bug description:
  Day changed to 20 Sep 2012
  13:27:50 < mmckinst> has anyone seen phpXX-pgsql getting installed when doing a yum replace even though it was never installed before?
  13:30:11 < mmckinst> I'm thinking it has something to do with phpXX-mysql, phpXX-pgsql, etc all providing php-database
  13:31:31 < mmckinst> so maybe if phpXX-mysql is installed, the plugin is looking for something that provides php_database and happens to find 
                       phpXX-pgsql first
  13:38:47 <@jness> Hello mmckinst, I have not heard or seen this behavior. Do you by chance have any results (copy/paste) we can check out?
  13:39:11 <@jness> I would be intrested in setting up a virtual box with identical packages and performing a yum replace.
  13:40:15 < mmckinst> I'll work on getting steps necessary to reproduce
  13:49:48 <@jness> awesome.
  14:10:52 < mmckinst> jness: http://pastebin.com/eLApi6Ry
  14:13:40 <@jness> Thanks mmckinst, I'll have a look here and report my findings to a launchpad bug report if need.
  15:05:06 < mmckinst> jness: after messing around with the plugin it looks like the problem is what I initially thought. in my case php-odbc 
                       and php-mysql both provide php_database
  15:05:50 < mmckinst> yum then tries to resolve the php_database dependency and php-pgsql matches it first
  15:21:53 < mmckinst> with php54 it will try to install php54-interbase sometimes

  ===========================================================

  [root@mmckinst-test4 ~]# yum repolist
  Loaded plugins: fastestmirror, replace
  Loading mirror speeds from cached hostfile
  epel/metalink                                            |  14 kB     00:00     
   * base: mirror.fdcservers.net
   * epel: mirror.nexcess.net
   * extras: yum.singlehop.com
   * ius: mirror.its.dal.ca
   * updates: mirror.thelinuxfix.com
  base                                                     | 3.7 kB     00:00     
  extras                                                   | 3.0 kB     00:00     
  ius                                                      | 2.2 kB     00:00     
  updates                                                  | 3.5 kB     00:00     
  repo id      repo name                                                    status
  base         CentOS-6 - Base                                              6,346
  epel         Extra Packages for Enterprise Linux 6 - x86_64               7,774
  extras       CentOS-6 - Extras                                                4
  ius          IUS Community Packages for Enterprise Linux 6 - x86_64         135
  updates      CentOS-6 - Updates                                             652
  repolist: 14,911
  [root@mmckinst-test4 ~]# rpm -qa 'php*' | sort
  php-5.3.3-14.el6_3.x86_64
  php-bcmath-5.3.3-14.el6_3.x86_64
  php-cli-5.3.3-14.el6_3.x86_64
  php-common-5.3.3-14.el6_3.x86_64
  php-dba-5.3.3-14.el6_3.x86_64
  php-devel-5.3.3-14.el6_3.x86_64
  php-gd-5.3.3-14.el6_3.x86_64
  php-mbstring-5.3.3-14.el6_3.x86_64
  php-mcrypt-5.3.3-1.el6.x86_64
  php-mysql-5.3.3-14.el6_3.x86_64
  php-odbc-5.3.3-14.el6_3.x86_64
  php-pdo-5.3.3-14.el6_3.x86_64
  php-pear-1.9.4-4.el6.noarch
  php-pecl-apc-3.1.9-2.el6.x86_64
  php-pecl-memcache-3.0.5-4.el6.x86_64
  php-process-5.3.3-14.el6_3.x86_64
  php-pspell-5.3.3-14.el6_3.x86_64
  php-soap-5.3.3-14.el6_3.x86_64
  php-xml-5.3.3-14.el6_3.x86_64
  php-xmlrpc-5.3.3-14.el6_3.x86_64
  php-zts-5.3.3-14.el6_3.x86_64
  [root@mmckinst-test4 ~]# yum replace php --replace-with php53u
  Loaded plugins: fastestmirror, replace
  Loading mirror speeds from cached hostfile
  epel/metalink                                            |  14 kB     00:00     
   * base: mirror.fdcservers.net
   * epel: mirror.nexcess.net
   * extras: yum.singlehop.com
   * ius: mirror.its.dal.ca
   * updates: mirror.thelinuxfix.com
  base                                                     | 3.7 kB     00:00     
  extras                                                   | 3.0 kB     00:00     
  ius                                                      | 2.2 kB     00:00     
  updates                                                  | 3.5 kB     00:00     
  Replacing packages takes time, please be patient...

  WARNING: Unable to resolve all providers: ['config(php-common)', 'php-
  fileinfo', 'php-common(x86-64)', 'config(php-pdo)',
  'sqlite3.so()(64bit)', 'php-pdo(x86-64)', 'config(php)',
  'php(x86-64)', 'config(php-gd)', 'php-gd(x86-64)', 'config(php-
  pspell)', 'php-pspell(x86-64)', 'config(php-odbc)', 'php-pdo_odbc',
  'php-odbc(x86-64)', 'config(php-devel)', 'php-devel(x86-64)', 'config
  (php-xml)', 'php-xml(x86-64)', 'config(php-mysql)', 'php-pdo_mysql',
  'php-mysql(x86-64)', 'config(php-bcmath)', 'php-bcmath(x86-64)',
  'config(php-xmlrpc)', 'php-xmlrpc', 'php-xmlrpc(x86-64)', 'config(php-
  soap)', 'php-soap(x86-64)', 'config(php-dba)', 'php-dba(x86-64)',
  'config(php-mbstring)', 'php-mbstring(x86-64)', 'config(php-process)',
  'php-process(x86-64)', 'php-pcntl', 'php-readline', 'php-cli(x86-64)',
  'php-zts(x86-64)']

  This may be normal depending on the package.  Continue? [y/N] y
  Resolving Dependencies
  --> Running transaction check
  ---> Package php.x86_64 0:5.3.3-14.el6_3 will be erased
  ---> Package php-bcmath.x86_64 0:5.3.3-14.el6_3 will be erased
  ---> Package php-cli.x86_64 0:5.3.3-14.el6_3 will be erased
  ---> Package php-common.x86_64 0:5.3.3-14.el6_3 will be erased
  ---> Package php-dba.x86_64 0:5.3.3-14.el6_3 will be erased
  ---> Package php-devel.x86_64 0:5.3.3-14.el6_3 will be erased
  ---> Package php-gd.x86_64 0:5.3.3-14.el6_3 will be erased
  ---> Package php-mbstring.x86_64 0:5.3.3-14.el6_3 will be erased
  ---> Package php-mysql.x86_64 0:5.3.3-14.el6_3 will be erased
  ---> Package php-odbc.x86_64 0:5.3.3-14.el6_3 will be erased
  ---> Package php-pdo.x86_64 0:5.3.3-14.el6_3 will be erased
  ---> Package php-pear.noarch 1:1.9.4-4.el6 will be erased
  ---> Package php-pecl-apc.x86_64 0:3.1.9-2.el6 will be erased
  ---> Package php-process.x86_64 0:5.3.3-14.el6_3 will be erased
  ---> Package php-pspell.x86_64 0:5.3.3-14.el6_3 will be erased
  ---> Package php-soap.x86_64 0:5.3.3-14.el6_3 will be erased
  ---> Package php-xml.x86_64 0:5.3.3-14.el6_3 will be erased
  ---> Package php-xmlrpc.x86_64 0:5.3.3-14.el6_3 will be erased
  ---> Package php-zts.x86_64 0:5.3.3-14.el6_3 will be erased
  ---> Package php53u.x86_64 0:5.3.16-1.ius.el6 will be installed
  --> Processing Dependency: t1lib for package: php53u-5.3.16-1.ius.el6.x86_64
  ---> Package php53u-bcmath.x86_64 0:5.3.16-1.ius.el6 will be installed
  ---> Package php53u-cli.x86_64 0:5.3.16-1.ius.el6 will be installed
  ---> Package php53u-common.x86_64 0:5.3.16-1.ius.el6 will be installed
  ---> Package php53u-dba.x86_64 0:5.3.16-1.ius.el6 will be installed
  ---> Package php53u-devel.x86_64 0:5.3.16-1.ius.el6 will be installed
  ---> Package php53u-gd.x86_64 0:5.3.16-1.ius.el6 will be installed
  ---> Package php53u-mbstring.x86_64 0:5.3.16-1.ius.el6 will be installed
  ---> Package php53u-mysql.x86_64 0:5.3.16-1.ius.el6 will be installed
  ---> Package php53u-odbc.x86_64 0:5.3.16-1.ius.el6 will be installed
  ---> Package php53u-pdo.x86_64 0:5.3.16-1.ius.el6 will be installed
  ---> Package php53u-pear.noarch 1:1.9.4-3.ius.el6 will be installed
  ---> Package php53u-pecl-apc.x86_64 0:3.1.9-4.ius.el6 will be installed
  ---> Package php53u-pgsql.x86_64 0:5.3.16-1.ius.el6 will be installed
  --> Processing Dependency: libpq.so.5()(64bit) for package: php53u-pgsql-5.3.16-1.ius.el6.x86_64
  ---> Package php53u-process.x86_64 0:5.3.16-1.ius.el6 will be installed
  ---> Package php53u-pspell.x86_64 0:5.3.16-1.ius.el6 will be installed
  ---> Package php53u-soap.x86_64 0:5.3.16-1.ius.el6 will be installed
  ---> Package php53u-xml.x86_64 0:5.3.16-1.ius.el6 will be installed
  ---> Package php53u-xmlrpc.x86_64 0:5.3.16-1.ius.el6 will be installed
  ---> Package php53u-zts.x86_64 0:5.3.16-1.ius.el6 will be installed
  --> Running transaction check
  ---> Package postgresql-libs.x86_64 0:8.4.13-1.el6_3 will be installed
  ---> Package t1lib.x86_64 0:5.1.2-6.el6_2.1 will be installed
  --> Finished Dependency Resolution

  Dependencies Resolved

  ================================================================================
   Package              Arch        Version                   Repository     Size
  ================================================================================
  Installing:
   php53u               x86_64      5.3.16-1.ius.el6          ius           1.5 M
   php53u-bcmath        x86_64      5.3.16-1.ius.el6          ius            34 k
   php53u-cli           x86_64      5.3.16-1.ius.el6          ius           2.9 M
   php53u-common        x86_64      5.3.16-1.ius.el6          ius           551 k
   php53u-dba           x86_64      5.3.16-1.ius.el6          ius            40 k
   php53u-devel         x86_64      5.3.16-1.ius.el6          ius           614 k
   php53u-gd            x86_64      5.3.16-1.ius.el6          ius           109 k
   php53u-mbstring      x86_64      5.3.16-1.ius.el6          ius           458 k
   php53u-mysql         x86_64      5.3.16-1.ius.el6          ius            82 k
   php53u-odbc          x86_64      5.3.16-1.ius.el6          ius            50 k
   php53u-pdo           x86_64      5.3.16-1.ius.el6          ius            65 k
   php53u-pear          noarch      1:1.9.4-3.ius.el6         ius           384 k
   php53u-pecl-apc      x86_64      3.1.9-4.ius.el6           ius            98 k
   php53u-pgsql         x86_64      5.3.16-1.ius.el6          ius            70 k
   php53u-process       x86_64      5.3.16-1.ius.el6          ius            39 k
   php53u-pspell        x86_64      5.3.16-1.ius.el6          ius            28 k
   php53u-soap          x86_64      5.3.16-1.ius.el6          ius           140 k
   php53u-xml           x86_64      5.3.16-1.ius.el6          ius           103 k
   php53u-xmlrpc        x86_64      5.3.16-1.ius.el6          ius            52 k
   php53u-zts           x86_64      5.3.16-1.ius.el6          ius           1.5 M
  Removing:
   php                  x86_64      5.3.3-14.el6_3            @updates      3.5 M
   php-bcmath           x86_64      5.3.3-14.el6_3            @updates       29 k
   php-cli              x86_64      5.3.3-14.el6_3            @updates      6.2 M
   php-common           x86_64      5.3.3-14.el6_3            @updates      2.9 M
   php-dba              x86_64      5.3.3-14.el6_3            @updates       49 k
   php-devel            x86_64      5.3.3-14.el6_3            @updates      3.0 M
   php-gd               x86_64      5.3.3-14.el6_3            @updates      324 k
   php-mbstring         x86_64      5.3.3-14.el6_3            @updates      2.1 M
   php-mysql            x86_64      5.3.3-14.el6_3            @updates      215 k
   php-odbc             x86_64      5.3.3-14.el6_3            @updates       88 k
   php-pdo              x86_64      5.3.3-14.el6_3            @updates      168 k
   php-pear             noarch      1:1.9.4-4.el6             @base         2.2 M
   php-pecl-apc         x86_64      3.1.9-2.el6               @base         318 k
   php-process          x86_64      5.3.3-14.el6_3            @updates       65 k
   php-pspell           x86_64      5.3.3-14.el6_3            @updates       21 k
   php-soap             x86_64      5.3.3-14.el6_3            @updates      324 k
   php-xml              x86_64      5.3.3-14.el6_3            @updates      307 k
   php-xmlrpc           x86_64      5.3.3-14.el6_3            @updates       77 k
   php-zts              x86_64      5.3.3-14.el6_3            @updates      3.7 M
  Installing for dependencies:
   postgresql-libs      x86_64      8.4.13-1.el6_3            updates       200 k
   t1lib                x86_64      5.1.2-6.el6_2.1           base          160 k

  Transaction Summary
  ================================================================================
  Install      22 Package(s)
  Remove       19 Package(s)

  Total download size: 9.1 M
  Is this ok [y/N]:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ius/+bug/1055461/+subscriptions


References