On Mon, 21 Feb 2011 21:37:39 +1300
"Chris Edsall" <c.edsall(a)niwa.co.nz> wrote:
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:
I suspect the problem is that mock uses it's own repository definitions
for yum (i.e. doesn't use the files in /etc/yum.repos.d) and doesn't
include 32-bit repository information in a 64-bit config file. You
*might* be able to hack your own config file by starting with
fedora-14-x86_64.cfg and copying in some 32-bit repository info as
separate stanzas so that yum would know where to get packages. I've
never done that so YMMV.
Another way might be to just grab the 32-bit packages that are
dependencies and install them into the chroot after an init, then run
your build:
$ mock -r fedora-14-x86_64 --init
$ mock -r fedora-14-x86_64 --install a-32-bit-package.i386.rpm
$ mock -r fedora-14-x86_64 --install another-32-bit-package.i386.rpm
$ mock -r fedora-14-x86_64 --rebuild mysrpm.src.rpm
Of course if the first level of 32-bit dependencies *also* have
dependencies, then it'll get to be a mess.
Clark