Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52329 - mac-fdisk does not run on ppc64-linux
Summary: mac-fdisk does not run on ppc64-linux
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC64 Linux
: Highest major (vote)
Assignee: Philippe Trottier (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-29 03:38 UTC by Philippe Trottier (RETIRED)
Modified: 2004-07-13 20:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Cleanup and 64bitness "safe" (mac-fdisk-0.1-ppc64-2.diff,14.51 KB, patch)
2004-05-29 03:43 UTC, Philippe Trottier (RETIRED)
Details | Diff
This does the previous patch + remove fdisk from mac-fdisk ... (dropfdisk.patch,93.39 KB, patch)
2004-05-30 16:13 UTC, Philippe Trottier (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Trottier (RETIRED) gentoo-dev 2004-05-29 03:38:47 UTC
mac-fdisk uses u8 * that were 32bit on ppc32 and are now 64bit... so the DPME record is not 512 bytes anymore and that makes mac-fdisk complain for a good reason.

I have a patch for this and it should also allow mac-fdisk to be compile with CFLAGS -Wall

It would probably work on x86-linux too to partition external firewire/usb disks in DOS/BSD or mac partition format.
Comment 1 Philippe Trottier (RETIRED) gentoo-dev 2004-05-29 03:43:05 UTC
Created attachment 32240 [details, diff]
Cleanup and 64bitness "safe"

This should fix nearly all trouble related to use this on 64 bit machine that
have 32bit int, And might even work on x86.
Comment 2 Tom Gall (RETIRED) gentoo-dev 2004-05-29 09:20:05 UTC
I've appled this patch to mac-fdisk and make it specific for ppc64.  Someone from ppc land should probably decide if they would like to pick this up for themselves as well. 
Comment 3 Tom Gall (RETIRED) gentoo-dev 2004-05-29 09:20:48 UTC
least for the ppc64 case, mac-fdisk now seems well behaved I have *NOT* extensively tested on a clean disk. 
Comment 4 Philippe Trottier (RETIRED) gentoo-dev 2004-05-30 02:06:55 UTC
I would make mac-fdisk version <0.1-r1 wihtout ppc64 flag at all since it is unusable.

once this patch is checked properly then make it ~ppc ppc64. 
There is a next patch comming for ~x86 soon (maybe).
Comment 5 Philippe Trottier (RETIRED) gentoo-dev 2004-05-30 16:13:30 UTC
Created attachment 32345 [details, diff]
This does the previous patch + remove fdisk from mac-fdisk ...
Comment 6 Philippe Trottier (RETIRED) gentoo-dev 2004-05-30 16:14:58 UTC
It also works on x86 for those USB and FW disk partitioned under mac OS*
since fdisk from x86 is better and works on ppc and ppc64 too, why bother ?
Comment 7 Tom Gall (RETIRED) gentoo-dev 2004-06-30 21:25:33 UTC
working well .. time to close