.PHONY: python-deps
python-deps:
@echo "Installing python deps"
+ifeq ($(RPM_ARCH), x86_64)
mkdir -p userspace/usr/lib64
+else
+ mkdir -p userspace/usr/lib
+endif
mkdir -p userspace/usr/bin
$(call RPM_TO_USERSPACE,*libssl.so*,$(RPM_DIR)/openssl)
$(call RPM_TO_USERSPACE,*libgdbm.so*,$(RPM_DIR)/gdbm)
$(call RPM_INSTALL,$(RPM_DIR)/libxml2-python)
#rm -f userspace/usr/lib64/python2.6/site-packages/libxml2mod.la
#rm -f userspace/usr/lib64/python2.6/lib-dynload/pyexpat.so
- rm -f userspace/usr/lib64/python2.6/lib-dynload/_ctypes.so
- rm -f userspace/usr/lib64/python2.6/lib-dynload/_sqlite3.so
- rm -f userspace/usr/lib64/python2.6/idlelib/*.bat
+ rm -f userspace/usr/lib*/python2.6/lib-dynload/_ctypes.so
+ rm -f userspace/usr/lib*/python2.6/lib-dynload/_sqlite3.so
+ rm -f userspace/usr/lib*/python2.6/idlelib/*.bat
.PHONY: xen-python-bytecode
xen-python-bytecode: python-install
fi
# it would be nice if xen could make up their mind where they are
# launching things from
+
+ifeq ($(RPM_ARCH), x86_64)
if ! test -f userspace/usr/lib64/xen/bin/qemu-dm; then \
( ln -sf /usr/local/$(LIBSDIR)/xen/bin/qemu-dm userspace/usr/lib64/xen/bin/qemu-dm ) \
fi
+else
+ if ! test -f userspace/usr/lib/xen/bin/qemu-dm; then \
+ ( ln -sf /usr/local/$(LIBSDIR)/xen/bin/qemu-dm userspace/usr/lib/xen/bin/qemu-dm ) \
+ fi
+endif
if ! test -f userspace/bin/hvmloader; then \
( ln -sf /usr/lib/xen/boot/hvmloader userspace/bin/hvmloader ) \
fi