On Thu, Dec 04, 1997 at 12:31:05AM -0500, Alex deVries wrote:
> Below is a message I sent off to the RPM development mailing list. The
> folks at RedHat said it was reasonable, but I just wanted to be sure that
> I got it right. Many of you understand MIPS architectures better than I,
> and we don't want to be making a mistake.
> Is the creation of a mipsel type reasonable?
Definately, only the fact that there are more important things to do did
so far keep me from doing so.
> ---------- Forwarded message ----------
> Date: Tue, 2 Dec 1997 11:34:54 -0500 (EST)
> From: Alex deVries <firstname.lastname@example.org>
> To: RPM-List <email@example.com>
> Subject: A question about architecture and byte order.
> I *think* there might be an issue with MIPS architecture RPMs, but I want
> to make sure I get things right.
> There are two branches of machines that have MIPS processors. The first
> is little endian, and it contains things like Acer Pica and Mips Magnum.
> The second is big endian, and has things like my SGI Indy. I'm unclear
> if there are some architectures that will run both.
While almost all MIPS CPUs can run in both byteorder some systems like
the Acer Pica or DECstations don't support this CPU feature. There is
still another CPU feature that allows to run the other flavor of software
in usermode but supporting it not a Sunday afternoon hack. It requires
going through _all_ the kernel code and possibly fixing the byteorder
> Now, the issue is that there aren't distinct architecture definitions for
> mips (big endian) and mipsel (little endian). They aren't binary
> compatible, so it does seem to me that there should be an entry like:
> arch_canon: mipsel: mipsel 11
> in rpmrc.
> Am I wrong on this?
Unless the rpm gurus think there is a better way to do things - yes, it
looks right to me. The other thing that needs to be done is to teach
rpm how to recognice the various system flavours. Currently rpm relies
on uname() returning "mips" and therefore thinks MIPS is always MIPS.
Have to take a look at the rpm sources - is there an official way to
teach rpm about incompatible variants of the same CPU architecture?
Modifying uname() to return "mipsel" etc. is a bad choice. For most
software it is more important to know the CPU architecture than certain
specialised details like the byteorder. So returning "mipsel" would
break a hell lot of software.