[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Mock x86_64/i386 build issues



seth vidal wrote:
On Mon, 2007-10-08 at 09:36 -0600, Orion Poplawski wrote:
I'm having trouble building some i386 packages (rpm, anaconda) on my x86_64 machine with mock. It seems that the build process picks up that the processor in x86_64. How does koji or anyone else handle this?


cat /etc/rpm/platform

if it is there remove it.

Didn't help.  In the anaconda case:

RPM build errors:
File not found by glob: /var/tmp/anaconda-11.3.0.36-1.cora.1-root-mockbuild/usr/lib/python?.?/site-packages/pyisomd5sum.so
    Installed (but unpackaged) file(s) found:
   /usr/lib64/python2.5/site-packages/pyisomd5sum.so


Installed with:

install -m 755 pyisomd5sum.so $(DESTDIR)/usr/$(LIBDIR)/$(PYTHON)/site-packages

LIBDIR is set with:

FULLARCH := $(shell uname -m)

ifneq (,$(filter ppc64 x86_64 s390x,$(FULLARCH)))
LIBDIR = lib64
else
LIBDIR = lib
endif


$ mock --arch=i386 -r fedora-devel-i386 shell
init
mock-chroot> uname -m
x86_64

Looks like I need setarch?

$ setarch i386 mock --arch=i386 -r fedora-devel-i386 shell
init
mock-chroot> uname -m
i686

Seems like --arch=i386 should take care of this.

--
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion cora nwra com
Boulder, CO 80301              http://www.cora.nwra.com


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]