Package: defrag Version: 0.73pjm1 Followup-For: Bug #169584 I got this package to compile on powerpc. I don't think it's actually usable yet, though - it fails every test in the testsuite with "bad superblock" on trying to mount the "after" image. Hopefully, it's still helpful.
--- buffers.c.orig 2005-07-25 20:42:45.000000000 -0400 +++ buffers.c 2005-07-25 20:42:45.000000000 -0400 @@ -427,7 +427,7 @@ /* Don't bother reading here if we are in readonly mode; there will be no need to write it back at any time. */ if (!readonly) - read_current_block (source, b->data); + read_current_block (source, (char*)b->data); d2n(source) = 0; n2d(b->dest_zone) = 0; b->full = 1; @@ -442,7 +442,7 @@ (unsigned long) b->dest_zone, (unsigned long) dest); assert (b->in_use & b->full); - write_current_block (dest, b->data); + write_current_block (dest, (char*)b->data); assert (!n2d(b->dest_zone)); assert (!d2n(dest)); d2n(dest) = b->dest_zone; --- defrag.c.orig 2005-07-25 20:42:45.000000000 -0400 +++ defrag.c 2005-07-25 20:42:45.000000000 -0400 @@ -712,7 +712,7 @@ #ifndef NODEBUG "d" #endif - )) != EOF) + )) != (char)-1) switch (c) { case 'b': --- e2dump.c.orig 2005-07-25 20:42:45.000000000 -0400 +++ e2dump.c 2005-07-25 20:42:45.000000000 -0400 @@ -79,9 +79,9 @@ static inline unsigned long bit_is_set(const void * addr, int nr) { # if powerpc - return 1UL & (((const int *) addr)[nr >> 5] >> (nr & 31))); + return 1UL & (((const int *) addr)[nr >> 5] >> (nr & 31)); # else - return 1UL & (((const unsigned char *) addr)[nr >> 3] >> (nr & 7))); + return 1UL & (((const unsigned char *) addr)[nr >> 3] >> (nr & 7)); # endif } #endif -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: powerpc (ppc) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.12-powerpc Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]