need 32bit rpms in a mock setup for a 64 bit build

Chris Edsall c.edsall at niwa.co.nz
Mon Feb 21 08:37:39 UTC 2011


Hi,

I have a x86_64 builder and I am trying to make an x86_64 build. This particular build needs a compiler that is only available as a binary tarball. I have made an RPM out of the tarball, however it has i386 dependancies. When I come to use it in koji (by adding it as a BuildRequires) mock complains because the yum configuration can't satisfy the dependencies:

DEBUG backend.py:603:  /usr/bin/yum --installroot /var/lib/mock/ec5-build-402-251/root/  resolvedep  'zlib-devel' 'valgrind' 'gawk' 'pgi' 'hdf5-devel >= 1.8.4' 'curl-devel'
DEBUG util.py:291:  Executing command: /usr/bin/yum --installroot /var/lib/mock/ec5-build-402-251/root/  resolvedep  'zlib-devel' 'valgrind' 'gawk' 'pgi' 'hdf5-devel >= 1.8.4' 'curl-devel'
DEBUG util.py:256:  0:zlib-devel-1.2.3-3.x86_64
DEBUG util.py:256:  1:valgrind-3.5.0-1.el5.x86_64
DEBUG util.py:256:  0:gawk-3.1.5-14.el5.x86_64
DEBUG util.py:256:  0:pgi-10.3-7.x86_64
DEBUG util.py:256:  0:hdf5-devel-1.8.5.patch1-5.x86_64
DEBUG util.py:256:  0:curl-devel-7.15.5-9.el5.x86_64
DEBUG util.py:330:  Child returncode was: 0
DEBUG backend.py:603:  /usr/bin/yum --installroot /var/lib/mock/ec5-build-402-251/root/  install  'zlib-devel' 'valgrind' 'gawk' 'pgi' 'hdf5-devel >= 1.8.4' 'curl-devel'
DEBUG util.py:291:  Executing command: /usr/bin/yum --installroot /var/lib/mock/ec5-build-402-251/root/  install  'zlib-devel' 'valgrind' 'gawk' 'pgi' 'hdf5-devel >= 1.8.4' 'curl-devel'
DEBUG util.py:256:  Package gawk-3.1.5-14.el5.x86_64 already installed and latest version
DEBUG util.py:256:  pgi-10.3-7.x86_64 from build has depsolving problems
DEBUG util.py:256:    --> Missing Dependency: libnsl.so.1 is needed by package pgi-10.3-7.x86_64 (build)
DEBUG util.py:256:  pgi-10.3-7.x86_64 from build has depsolving problems
DEBUG util.py:256:    --> Missing Dependency: libXext.so.6 is needed by package pgi-10.3-7.x86_64 (build)
DEBUG util.py:256:  pgi-10.3-7.x86_64 from build has depsolving problems
DEBUG util.py:256:    --> Missing Dependency: libc.so.6(GLIBC_2.1.2) is needed by package pgi-10.3-7.x86_64 (build)

However the same compiler package installs fine on the command line with the same yum reops configured

[root at cli-dev ~]# yum -y install pgi
 [ ... ]
Installed:
  pgi.x86_64 0:10.3-7                                                                                           

Complete!

It needed these non x86_64 packages:

[root at cli-dev ~]# yum deplist pgi | egrep 'i[3456]86' | sort -u
   provider: alsa-lib.i386 1.0.17-1.el5
   provider: glibc.i686 2.5-49
   provider: IBMJava2-142-ia32-JRE.i386 1.4.2-13.6
   provider: libgcj.i386 4.1.2-48.el5
   provider: libX11.i386 1.0.3-11.el5
   provider: libXext.i386 1.0.1-2.1
   provider: libXi.i386 1.0.1-4.el5_4
   provider: libXtst.i386 1.0.1-3.1

The difference, of course, is that the repo mock is pointing at has been created by mergerepos:

$ /usr/libexec/kojid/mergerepos -a x86_64 -b /mnt/koji/repos/ec5-build/251/x86_64/blocklist -o /tmp/koji/tasks/1382/1382/repo -g /mnt/koji/repos/ec5-build/251/groups/comps.xml -r file:///tmp/koji/tasks/1382/1382/repo_251_premerge/ -r http://10.64.1.239/install/rhels5.5/x86_64/ -r http://mirror.aarnet.edu.au/pub/epel/5/x86_64/ -r http://10.64.1.239/install/HPC/ 
Adding repo: file:///tmp/koji/tasks/1382/1382/repo_251_premerge/
Adding repo: http://10.64.1.239/install/rhels5.5/x86_64/ 
Adding repo: http://mirror.aarnet.edu.au/pub/epel/5/x86_64/ 
Adding repo: http://10.64.1.239/install/HPC/ 

where the -a x86_64 flag appears to be filtering out all the 32 bit packages that are in http://10.64.1.239/install/rhels5.5/x86_64/ 

I get the feeling I'm going about this the wrong way...

Any suggestions?

Cheers,
Chris Edsall

Please consider the environment before printing this email.

NIWA is the trading name of the National Institute of Water & Atmospheric Research Ltd.


More information about the buildsys mailing list