On Tue, Jul 17, 2001 at 09:16:05PM +0200, Carsten Langgaard wrote:
> Could you add a Perl rpm to you distribution, this also seems to be needed to
> build the RPMs natively.
Perl has to be built natively. I uploaded mysql-3.23.36-1.1.src.rpm,
mod_perl-1.24_01-2.src.rpm, tcsh-6.10-5.src.rpm and
zsh-3.0.8-8.src.rpm. Just installed my RedHat 7.1. Then you can build
perl yourself. You may need to build/install the tcsh rpm first.
> I also would like to do a cross build, but how do I do that ?
> Do I have to change all the spec files, to set the target arch to MIPS, or is
> there a easier and better way to do that ?
> I guess if I just install the SRPMs and the cross toolchain, and try to build
> out of that I will simply build for the build platform, which is i386.
You need my patched `rpm' to do cross build. You also need some
specicial set up. I am enclosng a message of mine. I will see if
I can cleanup my cross build environment and upload it.
> they work great! Thanks for all your hard work. Now, I would like
> to be able to build some RPMs as well. I have never cross-built
> RPMs before. I took the SRPMS for make and tried:
> rpm -ba make.spec --target=mipsel
> This did not do anything and built nothing. Is there a FAQ that
> I can read on cross building RPMS in addition to the documentation
> on http://www.rpm.org/ ? Do you have any quick pointers? Thanks
Although my source rpms do support cross compile, FYI, all my
mips/mipsel rpms are cross compiled from ia32 machines, the
unpatched rpm, that is /bin/rpm, doesn't support cross compile.
In my RedHat 7.1, there are i386 rpm binaries which support
cross compile. I have a setup to cross build rpms to mips/mipsel.
Make sure your rpm sees
# rpm --target=mips --define '_target_prefix mips'
# rpm --target=mipsel --define '_target_prefix mipsel'
BTW, you alao need to rebuild binutils with
# rpm --define 'ENABLE_ALL_TARGETS 1' -ta binutils-188.8.131.52.23.tar.gz