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

Re: powerpc woody bf installation status



On Mon, May 14, 2001 at 05:00:34PM +0100, Richard Hirst wrote:
> On Sat, May 12, 2001 at 11:18:06AM -0600, Erik Andersen wrote:
> > I'm building a new one now.  Rather then waiting for 0.52 to 
> > stabalize, I'm backporting the critical bugfixes into 0.51.
> 
> Is that 0.51-3?  You havn't picked up the md5sum fix, which is necessary
> for big endian:
> 
> slab:/usr/src/x# diff busybox-0.51/md5sum.c ../busybox-0.51/md5sum.c 
> 184c184,190
> < #define SWAP(n) (n)
> ---
> > 
> > /* Handle endian-ness */
> > #if __BYTE_ORDER == __LITTLE_ENDIAN
> > 	#define SWAP(n) (n)
> > #else
> > 	#define SWAP(n) ((n << 24) | ((n&65280)<<8) | ((n&16711680)>>8) | (n>>24))
> > #endif

Correct, this one didn't make it into the release.  It is in CVS
though.

> I built my own from 0.51-1 source last week and found zcat didn't
> work if you fed it input in stdin - just gave a usage msg.  Havn't
> checked if that is fixed in cvs yet, or if it was a local problem.

This is fixed in 0.51-3.

> Currently using a 0.50 build with the md5sum fix in it, but in that
> sed doesn't work,
> 
> sed -n '/^[Mm][Dd]5[Ss][Uu][Mm]/,/^[^ ]/p' < $reldest
> 
> only spits out the md5sum: line of the release file and none of the
> following lines.  Again, havn't checked cvs yet.

As is this one.  If Erik is willing, the following patch against
0.51-3 should fix the SWAP problem and set things up for a 0.51-4
release.

Matt

diff -ur busybox-0.51/debian/changelog busybox/debian/changelog
--- busybox-0.51/debian/changelog	Sat May 12 17:47:27 2001
+++ busybox/debian/changelog	Mon May 14 10:37:38 2001
@@ -1,3 +1,9 @@
+busybox (1:0.51-4) unstable; urgency=high
+
+  * Fix md5sum endianness issue.
+
+ -- Erik Andersen <andersee@debian.org>  Mon, 14 May 2001 10:37:35 -0600
+
 busybox (1:0.51-3) unstable; urgency=low
 
   * This is the "I am an idiot" release.
diff -ur busybox-0.51/md5sum.c busybox/md5sum.c
--- busybox-0.51/md5sum.c	Wed Mar  7 14:45:13 2001
+++ busybox/md5sum.c	Mon May 14 10:26:44 2001
@@ -181,7 +181,11 @@
 //--------end of md5.h
 //----------------------------------------------------------------------------
 
-#define SWAP(n) (n)
+#if __BYTE_ORDER == __LITTLE_ENDIAN
+#  define SWAP(n) (n)
+#else
+#  define SWAP(n) ((n << 24) | ((n&65280)<<8) | ((n&16711680)>>8) | (n>>24))
+#endif
 
 /* This array contains the bytes used to pad the buffer to the next
    64-byte boundary.  (RFC 1321, 3.1: Step 1)  */



Reply to: