bug-parted
[Top][All Lists]
Advanced

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

Re: Problem building disk_sun.c


From: Sven Luther
Subject: Re: Problem building disk_sun.c
Date: Tue, 13 Jan 2004 11:15:11 +0100
User-agent: Mutt/1.5.4i

On Tue, Jan 13, 2004 at 10:08:49AM +0000, Alex Kiernan wrote:
> On a big endian machine (PowerPC in my case), disk_sun.c fails to
> build; I /think/ this is the right fix for the problem, but I can't
> easily test it at the moment (it fixes the compile fwiw):
> 
> --- parted-1.6.6.orig/libparted/disk_sun.c    2003-06-30 01:48:11.000000000 
> +0100
> +++ parted-1.6.6/libparted/disk_sun.c 2004-01-04 09:34:36.000000000 +0000
> @@ -354,7 +354,7 @@
>       if (!ped_device_read (disk->dev, &old_label, 0, 1))
>               return;
>       if (old_label.info [0]
> -         && old_label.magic == PED_CPU_TO_LE32 (SUN_DISK_MAGIC))
> +         && PED_BE16_TO_CPU(old_label.magic) == SUN_DISK_MAGIC)
>               memcpy (&sun_specific->raw_label, &old_label, 512);
>  }

Yep, this one is already applied to the debian package, and i think i
posted it here or something in july last year or something such.

There are a couple of other stuff in the debian packages, nicely
dpatchified by Peter, so it is easy to get the individual patches (look
into the debian/patches directory, and you will find them).

Friendly,

Sven Luther




reply via email to

[Prev in Thread] Current Thread [Next in Thread]