Bug#333599: apt: Please add big-endian arm (armeb) support
On Tue, Oct 25, 2005 at 11:26:38AM +0200, Michael Vogt wrote:
> > The attached patch adds support for the armeb architecture to apt.
>
> I added it to my apt--mvo--0 baz archive and it will be part of the
> next upload.
I'm very sorry, but I submitted the wrong patch, and apt still detects
a big-endian ARM system as a little-endian one. The attached patch is
on top of the current apt version in sid and has been verified to fix
the issue.
The "arm" and "armv[345].*l" cpu types are little-endian, while "armeb"
and "armv[456].*b" are big-endian ones, so matching big-endian cpus with
arm.*b in archtable is correct. Furthermore, in sizetable, armeb has to
come before arm because otherwise configure still chooses the wrong
endianity.
diff -ur apt-0.6.42.2.orig/buildlib/archtable apt-0.6.42.2/buildlib/archtable
--- apt-0.6.42.2.orig/buildlib/archtable 2005-10-30 21:42:00.000000000 +0100
+++ apt-0.6.42.2/buildlib/archtable 2005-11-04 14:39:20.000000000 +0100
@@ -11,7 +11,7 @@
sparc64 sparc
alpha.* alpha
m68k m68k
-armeb.* armeb
+arm.*b armeb
arm.* arm
powerpc powerpc
ppc powerpc
diff -ur apt-0.6.42.2.orig/buildlib/sizetable apt-0.6.42.2/buildlib/sizetable
--- apt-0.6.42.2.orig/buildlib/sizetable 2005-10-30 21:41:55.000000000 +0100
+++ apt-0.6.42.2/buildlib/sizetable 2005-11-04 14:39:25.000000000 +0100
@@ -11,6 +11,7 @@
# The format is:-
# CPU endian sizeof: char, int, short, long
i386 little 1 4 2 4
+armeb big 1 4 2 4
arm little 1 4 2 4
alpha little 1 4 2 8
mipsel little 1 4 2 4
@@ -20,4 +21,3 @@
powerpc big 1 4 2 4
mips big 1 4 2 4
hppa big 1 4 2 4
-armeb big 1 4 2 4
Reply to: