Bug 706629

Summary: Install for collectd doesn't properly recognize 64-bit systems
Product: [Fedora] Fedora EPEL Reporter: Mike Depot <mdepot>
Component: collectdAssignee: Lubomir Rintel <lkundrak>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: el5CC: apevec, apevec, kevin, lkundrak, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-15 14:07:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Mike Depot 2011-05-21 17:56:39 UTC
Description of problem:

Install for collectd doesn't properly recognize 64-bit systems, it tries to install the .i386 version instead.  This leads to complaints of missing i386 dependencies.

To reproduce:

Started with a fresh CentOS 5.6 64-bit install.
Added 64-bit EPEL repository.
Updated system with yum update, then:

# yum -y install collectd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.usf.edu
 * epel: mirror.vcu.edu
 * extras: mirrors.igsobe.com
 * updates: mirrors.finalasp.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package collectd.i386 0:4.10.2-1.el5 set to be updated
--> Processing Dependency: libcurl.so.3 for package: collectd
--> Processing Dependency: libxml2.so.2 for package: collectd
--> Processing Dependency: libpython2.4.so.1.0 for package: collectd
--> Processing Dependency: libidn.so.11 for package: collectd
---> Package collectd.x86_64 0:4.10.2-1.el5 set to be updated
--> Running transaction check
---> Package collectd.i386 0:4.10.2-1.el5 set to be updated
--> Processing Dependency: libpython2.4.so.1.0 for package: collectd
---> Package curl.i386 0:7.15.5-9.el5_6.2 set to be updated
---> Package libidn.i386 0:0.6.5-1.1 set to be updated
---> Package libxml2.i386 0:2.6.26-2.1.2.8.el5_5.1 set to be updated
--> Finished Dependency Resolution
collectd-4.10.2-1.el5.i386 from epel has depsolving problems
  --> Missing Dependency: libpython2.4.so.1.0 is needed by package collectd-4.10.2-1.el5.i386 (epel)
Error: Missing Dependency: libpython2.4.so.1.0 is needed by package collectd-4.10.2-1.el5.i386 (epel)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
						package-cleanup --dupes
						rpm -Va --nofiles --nodigest

Note it looked for collectd.i386.

# locate libpython
/usr/lib64/libpython2.4.so
/usr/lib64/libpython2.4.so.1.0

However if you explicitly specify the 64-bit version of collectd, all is well:

# yum -y install collectd.x86_64
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.usf.edu
 * epel: mirror.vcu.edu
 * extras: mirrors.igsobe.com
 * updates: mirrors.finalasp.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package collectd.x86_64 0:4.10.2-1.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================
 Package              Arch    Version       Repository   Size
==============================================================
Installing:
 collectd             x86_64  4.10.2-1.el5  epel        506 k

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

Total download size: 506 k
Downloading Packages:
collectd-4.10.2-1.el5.x86_64.rpm            | 506 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : collectd                          1/1 

Installed:
  collectd.x86_64 0:4.10.2-1.el5                                                                  
Complete!

Comment 1 Kevin Fenzi 2011-06-19 21:26:45 UTC
This should be provided by python-libs.i386... do you have any excludes in /etc/yum.conf or in repo files?

Note that this behavior is the default in rhel5... it will try and install both 32bit and 64bit versions if you don't specify.