diff options
author | Joseph Jezak <josejx@gentoo.org> | 2007-06-25 15:58:51 +0000 |
---|---|---|
committer | Joseph Jezak <josejx@gentoo.org> | 2007-06-25 15:58:51 +0000 |
commit | 77e356b2cb0d37e4bf6df541f330277b29c3656b (patch) | |
tree | 1d61fe5744a0509b10fcb42a9379fb6d97c7638c /sys-fs | |
parent | Added ~amd64 wrt bug 179696 (diff) | |
download | historical-77e356b2cb0d37e4bf6df541f330277b29c3656b.tar.gz historical-77e356b2cb0d37e4bf6df541f330277b29c3656b.tar.bz2 historical-77e356b2cb0d37e4bf6df541f330277b29c3656b.zip |
Fixed distcc issue and removed old version.
Package-Manager: portage-2.1.3_rc5
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/mac-fdisk/ChangeLog | 7 | ||||
-rw-r--r-- | sys-fs/mac-fdisk/Manifest | 36 | ||||
-rw-r--r-- | sys-fs/mac-fdisk/files/digest-mac-fdisk-0.1-r3 | 6 | ||||
-rw-r--r-- | sys-fs/mac-fdisk/files/mac-fdisk-0.1-r3-ppc64.patch | 570 | ||||
-rw-r--r-- | sys-fs/mac-fdisk/mac-fdisk-0.1-r3.ebuild | 45 | ||||
-rw-r--r-- | sys-fs/mac-fdisk/mac-fdisk-0.1-r6.ebuild | 8 |
6 files changed, 24 insertions, 648 deletions
diff --git a/sys-fs/mac-fdisk/ChangeLog b/sys-fs/mac-fdisk/ChangeLog index c88ed0dc6386..1546509d97ab 100644 --- a/sys-fs/mac-fdisk/ChangeLog +++ b/sys-fs/mac-fdisk/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-fs/mac-fdisk # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/mac-fdisk/ChangeLog,v 1.20 2007/04/12 17:08:45 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/mac-fdisk/ChangeLog,v 1.21 2007/06/25 15:58:51 josejx Exp $ + + 25 Jun 2007; Joseph Jezak <josejx@gentoo.org> + -files/mac-fdisk-0.1-r3-ppc64.patch, -mac-fdisk-0.1-r3.ebuild, + mac-fdisk-0.1-r6.ebuild: + Fixed distcc issue and removed old version. 12 Apr 2007; Chris Gianelloni <wolf31o2@gentoo.org> mac-fdisk-0.1-r6.ebuild: diff --git a/sys-fs/mac-fdisk/Manifest b/sys-fs/mac-fdisk/Manifest index fee0014689f6..638ca491f65a 100644 --- a/sys-fs/mac-fdisk/Manifest +++ b/sys-fs/mac-fdisk/Manifest @@ -9,10 +9,6 @@ AUX mac-fdisk-0.1-headers.patch 2218 RMD160 d9efe5117a58482a1029191820c01665ecf1 MD5 59275685aa3f099a9a7e880eb2268ea3 files/mac-fdisk-0.1-headers.patch 2218 RMD160 d9efe5117a58482a1029191820c01665ecf17e0f files/mac-fdisk-0.1-headers.patch 2218 SHA256 c03ebe8c9f9afc0d532682e8684f76b4a99de7edc3ca58102f1f8b361f293153 files/mac-fdisk-0.1-headers.patch 2218 -AUX mac-fdisk-0.1-r3-ppc64.patch 16623 RMD160 900a0f8d64c5298c61a1ab38da19969344cb2529 SHA1 c6c441d51bc500074141bd0ef4b758c0eb6b1f2f SHA256 0699977d0f600552e369fa4be3c3f302e4bda9782a1c2f9343a8aa793fd7acf9 -MD5 0ea575013202e57b17c15883efd4bfea files/mac-fdisk-0.1-r3-ppc64.patch 16623 -RMD160 900a0f8d64c5298c61a1ab38da19969344cb2529 files/mac-fdisk-0.1-r3-ppc64.patch 16623 -SHA256 0699977d0f600552e369fa4be3c3f302e4bda9782a1c2f9343a8aa793fd7acf9 files/mac-fdisk-0.1-r3-ppc64.patch 16623 AUX mac-fdisk-0.1-r6-ppc64.patch 15294 RMD160 4ef172a586868498756309eeb4a3814c3ed0f346 SHA1 0786b0f4502305a8db593d9fc52181e61de67be4 SHA256 66d7ffd675b04c6616cf2b365d80e766b81e030e9578b4abe0480c96f2819585 MD5 17b0220c9e22309d960c26c2cbc0cf95 files/mac-fdisk-0.1-r6-ppc64.patch 15294 RMD160 4ef172a586868498756309eeb4a3814c3ed0f346 files/mac-fdisk-0.1-r6-ppc64.patch 15294 @@ -21,35 +17,27 @@ AUX mac-fdisk-amd64.patch 5663 RMD160 55f23ccd1831765f0d788138237c15660a508408 S MD5 28d0de134859304424d95ebc824a7be7 files/mac-fdisk-amd64.patch 5663 RMD160 55f23ccd1831765f0d788138237c15660a508408 files/mac-fdisk-amd64.patch 5663 SHA256 58333057a2860e33442b516099cff09e388dc4d16064eac3007b1688f97828bb files/mac-fdisk-amd64.patch 5663 -DIST mac-fdisk_0.1-11.diff.gz 19529 RMD160 90ede691daf990427181dc5485172d8ca8f82c7d SHA1 e69e4ac0e827b4e6499bfddbc16573585a33fc7b SHA256 7fc6c859e8c22ae05c24397bb2bb849705ab235329c3bc5c206e7e1c03787afd DIST mac-fdisk_0.1-13.diff.gz 19615 RMD160 cc6ddbdee6c8bac9d03d6ae50fc6d23e29a21188 SHA1 725d13418c087059cba76cc8b227e72d7b99ada2 SHA256 a6dd96c8ddce896dac2e2b2c2eff346d339ae697cd19e2ac9676556d8bc63644 DIST mac-fdisk_0.1.orig.tar.gz 55817 RMD160 eb70e362469268ec7644c999e0bc7a5a92675992 SHA1 47013d3d74892d53c31a73e75c32fda2bf173252 SHA256 7059fc4ba41ca2ef857e1092e9c56e910f27693d407b5c3d78f7102ad0c56a66 -EBUILD mac-fdisk-0.1-r3.ebuild 1111 RMD160 e123d7d57e51b9013f4dd0fae2150cdcc5aa7faf SHA1 8570f8a1d3d8c1357273531492c4a1933fd58941 SHA256 2645e999a8e4ed0b305b532bc6d47c417bbef7d5c5fbeefc537cf9a8a73c4fe2 -MD5 55d14b0765b250bce58ef4c64d4883cb mac-fdisk-0.1-r3.ebuild 1111 -RMD160 e123d7d57e51b9013f4dd0fae2150cdcc5aa7faf mac-fdisk-0.1-r3.ebuild 1111 -SHA256 2645e999a8e4ed0b305b532bc6d47c417bbef7d5c5fbeefc537cf9a8a73c4fe2 mac-fdisk-0.1-r3.ebuild 1111 -EBUILD mac-fdisk-0.1-r6.ebuild 1147 RMD160 1ea05e0a96fb959b73aa41826322426c0361189d SHA1 62d1d51848f4d14b81194d9fe41a45cc6987b2d9 SHA256 1132de9b5d57b193eb9c9a620b95c3f5c32807260f147abf9546f949f91ce842 -MD5 a041a069cdbb0447b2ca12103908d711 mac-fdisk-0.1-r6.ebuild 1147 -RMD160 1ea05e0a96fb959b73aa41826322426c0361189d mac-fdisk-0.1-r6.ebuild 1147 -SHA256 1132de9b5d57b193eb9c9a620b95c3f5c32807260f147abf9546f949f91ce842 mac-fdisk-0.1-r6.ebuild 1147 -MISC ChangeLog 4029 RMD160 336311368f90408c20ef3ace463bd041c1afd62e SHA1 55e677909cb14153a820cc7854cd6bccf2ed6f46 SHA256 d3573f38a040fb424f3e6c0818fd239dea1c4781d063730b1659becb71c623b4 -MD5 bc22d0879523ee83b41a49b59286ee15 ChangeLog 4029 -RMD160 336311368f90408c20ef3ace463bd041c1afd62e ChangeLog 4029 -SHA256 d3573f38a040fb424f3e6c0818fd239dea1c4781d063730b1659becb71c623b4 ChangeLog 4029 +EBUILD mac-fdisk-0.1-r6.ebuild 1227 RMD160 77bbe2f2fb66eecd4e6c7df427eff4a1edaf755a SHA1 dcc8907f56748576295b18f8ce11f9cdde3f4797 SHA256 9c850e7663b4fcc6ad8d3840b3742b0f9df1d1fbffe27dc1d2e26663d10f03ab +MD5 59f8dd31262a2843f97c5a2fc8e6b9a4 mac-fdisk-0.1-r6.ebuild 1227 +RMD160 77bbe2f2fb66eecd4e6c7df427eff4a1edaf755a mac-fdisk-0.1-r6.ebuild 1227 +SHA256 9c850e7663b4fcc6ad8d3840b3742b0f9df1d1fbffe27dc1d2e26663d10f03ab mac-fdisk-0.1-r6.ebuild 1227 +MISC ChangeLog 4214 RMD160 81be275f0426cef53a965075a3016bdfca6a88a3 SHA1 38b9ebe41af57a271503b16e65e8b27bf87d357c SHA256 ab3857c789f61563e253c45fedf18bd1fcce1fbef3370eafeee896557f01de42 +MD5 d17730d9b9f419fdf169852eac4a761d ChangeLog 4214 +RMD160 81be275f0426cef53a965075a3016bdfca6a88a3 ChangeLog 4214 +SHA256 ab3857c789f61563e253c45fedf18bd1fcce1fbef3370eafeee896557f01de42 ChangeLog 4214 MISC metadata.xml 156 RMD160 a57e9e3e71bd04aa138850dc8cce8dbe9e1cd5a2 SHA1 30b3e2b32ee2b52b68ad1d77f04f2c75980bf7d4 SHA256 d57f79be439079b5c78578b17eb3ee7d20883353b1c40a716d3f1ab06af34851 MD5 52f9d8e98c8931645c57a3de1c36727d metadata.xml 156 RMD160 a57e9e3e71bd04aa138850dc8cce8dbe9e1cd5a2 metadata.xml 156 SHA256 d57f79be439079b5c78578b17eb3ee7d20883353b1c40a716d3f1ab06af34851 metadata.xml 156 -MD5 de27a76e0cec9cfc400ab82a253d4e93 files/digest-mac-fdisk-0.1-r3 503 -RMD160 c61eb6a7595b5120656e25b9586bf733a1eca8f2 files/digest-mac-fdisk-0.1-r3 503 -SHA256 785a6d169abbff2a82055b75bd0d81ccca889fb13d6c89c56bd4e3aaf0b0a9ea files/digest-mac-fdisk-0.1-r3 503 MD5 9dd208db7d1b154e282ff01e7324d24d files/digest-mac-fdisk-0.1-r6 503 RMD160 970fb7d5a3a2a52f8606a8fbe17ecfbeb4d06934 files/digest-mac-fdisk-0.1-r6 503 SHA256 e3eebbe6ad663851fdb4ca00a91b7094ef033277b5eaadee2d830656b9f0155f files/digest-mac-fdisk-0.1-r6 503 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.3 (GNU/Linux) +Version: GnuPG v2.0.4 (GNU/Linux) -iD8DBQFGHmeikT4lNIS36YERAgOJAJ9H4JNgtu14d38oMBw3NacARSJ2oACfUv45 -y1SCIrowkwX4zvMfpQuV6Qk= -=58c1 +iD8DBQFGf+ZccsIHjyDViGQRAg0GAKCzmZlUtUuoVTp6XewGbTWjTGmiLwCg0TCa +BmR7SAxUK7KF52qLfgwQzn4= +=txBA -----END PGP SIGNATURE----- diff --git a/sys-fs/mac-fdisk/files/digest-mac-fdisk-0.1-r3 b/sys-fs/mac-fdisk/files/digest-mac-fdisk-0.1-r3 deleted file mode 100644 index a61fda46c6d5..000000000000 --- a/sys-fs/mac-fdisk/files/digest-mac-fdisk-0.1-r3 +++ /dev/null @@ -1,6 +0,0 @@ -MD5 1e056ff026ba7acf3ea05baa0c1d5216 mac-fdisk_0.1-11.diff.gz 19529 -RMD160 90ede691daf990427181dc5485172d8ca8f82c7d mac-fdisk_0.1-11.diff.gz 19529 -SHA256 7fc6c859e8c22ae05c24397bb2bb849705ab235329c3bc5c206e7e1c03787afd mac-fdisk_0.1-11.diff.gz 19529 -MD5 24476329fe86ef6ccf222e233e2a99f1 mac-fdisk_0.1.orig.tar.gz 55817 -RMD160 eb70e362469268ec7644c999e0bc7a5a92675992 mac-fdisk_0.1.orig.tar.gz 55817 -SHA256 7059fc4ba41ca2ef857e1092e9c56e910f27693d407b5c3d78f7102ad0c56a66 mac-fdisk_0.1.orig.tar.gz 55817 diff --git a/sys-fs/mac-fdisk/files/mac-fdisk-0.1-r3-ppc64.patch b/sys-fs/mac-fdisk/files/mac-fdisk-0.1-r3-ppc64.patch deleted file mode 100644 index 150fc4620e33..000000000000 --- a/sys-fs/mac-fdisk/files/mac-fdisk-0.1-r3-ppc64.patch +++ /dev/null @@ -1,570 +0,0 @@ -diff -uNr mac-fdisk-0.1.orig/bitfield.c mac-fdisk-0.1/bitfield.c ---- mac-fdisk-0.1.orig/bitfield.c 1997-01-09 23:30:51.000000000 +0100 -+++ mac-fdisk-0.1/bitfield.c 2004-08-31 13:56:41.768080104 +0200 -@@ -67,13 +67,12 @@ - // - // Routines - // --unsigned long --bitfield_set(unsigned long *bf, int base, int length, unsigned long value) -+unsigned int -+bitfield_set(unsigned int *bf, int base, int length, unsigned int value) - { -- unsigned long t; -- unsigned long m; -+ unsigned int t; -+ unsigned int m; - int s; -- int i; - - // compute shift & mask, coerce value to correct number of bits, - // zap the old bits and stuff the new value -@@ -86,12 +85,11 @@ - } - - --unsigned long --bitfield_get(unsigned long bf, int base, int length) -+unsigned int -+bitfield_get(unsigned int bf, int base, int length) - { -- unsigned long m; -+ unsigned int m; - int s; -- int i; - - // compute shift & mask - // return the correct number of bits (shifted to low end) -diff -uNr mac-fdisk-0.1.orig/bitfield.h mac-fdisk-0.1/bitfield.h ---- mac-fdisk-0.1.orig/bitfield.h 1996-12-18 01:44:16.000000000 +0100 -+++ mac-fdisk-0.1/bitfield.h 2004-08-31 13:56:41.768080104 +0200 -@@ -63,5 +63,5 @@ - // - // Forward declarations - // --unsigned long bitfield_set(unsigned long *bf, int base, int length, unsigned long value); --unsigned long bitfield_get(unsigned long bf, int base, int length); -+unsigned int bitfield_set(unsigned int *bf, int base, int length, unsigned int value); -+unsigned int bitfield_get(unsigned int bf, int base, int length); -diff -uNr mac-fdisk-0.1.orig/dpme.h mac-fdisk-0.1/dpme.h ---- mac-fdisk-0.1.orig/dpme.h 2004-08-31 14:40:23.002061952 +0200 -+++ mac-fdisk-0.1/dpme.h 2004-08-31 13:56:41.768080104 +0200 -@@ -61,7 +61,7 @@ - // - typedef unsigned char u8; - typedef unsigned short u16; --typedef unsigned long u32; -+typedef unsigned int u32; - - - // Physical block zero of the disk has this format -@@ -113,10 +113,10 @@ - #endif - u32 dpme_boot_block ; - u32 dpme_boot_bytes ; -- u8 *dpme_load_addr ; -- u8 *dpme_load_addr_2 ; -- u8 *dpme_goto_addr ; -- u8 *dpme_goto_addr_2 ; -+ u32 dpme_load_addr ; -+ u32 dpme_load_addr_2 ; -+ u32 dpme_goto_addr ; -+ u32 dpme_goto_addr_2 ; - u32 dpme_checksum ; - char dpme_process_id[16] ; - u32 dpme_boot_args[32] ; -diff -uNr mac-fdisk-0.1.orig/dump.c mac-fdisk-0.1/dump.c ---- mac-fdisk-0.1.orig/dump.c 2004-08-31 14:40:23.003061800 +0200 -+++ mac-fdisk-0.1/dump.c 2004-08-31 13:56:41.769079952 +0200 -@@ -30,8 +30,8 @@ - */ - - #include <stdio.h> --#ifndef __linux__ - #include <stdlib.h> -+#ifndef __linux__ - #include <unistd.h> - #endif - #include <string.h> -@@ -63,16 +63,16 @@ - // Global Constants - // - NAMES plist[] = { -- "Drvr", "Apple_Driver", -- "Dr43", "Apple_Driver43", -- "Free", "Apple_Free", -- " HFS", "Apple_HFS", -- " MFS", "Apple_MFS", -- "PDOS", "Apple_PRODOS", -- "junk", "Apple_Scratch", -- "unix", "Apple_UNIX_SVR2", -- " map", "Apple_partition_map", -- 0, 0 -+ {"Drvr"}, {"Apple_Driver"}, -+ {"Dr43"}, {"Apple_Driver43"}, -+ {"Free"}, {"Apple_Free"}, -+ {" HFS"}, {"Apple_HFS"}, -+ {" MFS"}, {"Apple_MFS"}, -+ {"PDOS"}, {"Apple_PRODOS"}, -+ {"junk"}, {"Apple_Scratch"}, -+ {"unix"}, {"Apple_UNIX_SVR2"}, -+ {" map"}, {"Apple_partition_map"}, -+ {0}, {0} - }; - - const char * kStringEmpty = ""; -@@ -164,10 +164,10 @@ - } - #ifdef __mc68000__ - printf("%*s type name " -- "%*s %-*s ( size ) system\n", strlen(map->name)+1, "#", j, "length", j, "base"); -+ "%*s %-*s ( size ) system\n", (int)strlen(map->name)+1, "#", j, "length", j, "base"); - #else - printf("%*s type name " -- "%*s %-*s ( size ) system\n", strlen(map->name)+1, "#", j, "length", j, "base"); -+ "%*s %-*s ( size ) system\n", (int)strlen(map->name)+1, "#", j, "length", j, "base"); - #endif - - /* Grok devfs names. (courtesy Colin Walters)*/ -@@ -201,7 +201,6 @@ - partition_map_header *map; - int j; - DPME *p; -- BZB *bp; - char *s; - #ifdef __mc68000__ - int aflag = 1; -@@ -224,13 +223,13 @@ - } - } - #ifdef __mc68000__ -- printf("%s%-2d %.4s %-12.12s ", dev, entry->disk_address, s, p->dpme_name); -+ printf("%s%-2d %.4s %-12.12s ", dev, (int)entry->disk_address, s, p->dpme_name); - #else -- printf("%s%-4d %.4s %-18.32s ", dev, entry->disk_address, s, p->dpme_name); -+ printf("%s%-4d %.4s %-18.32s ", dev, (int)entry->disk_address, s, p->dpme_name); - #endif - } else { - printf("%s%-4d %20.32s %-18.32s ", dev, -- entry->disk_address, p->dpme_type, p->dpme_name); -+ (int)entry->disk_address, p->dpme_type, p->dpme_name); - } - - if (pflag) { -@@ -314,7 +313,6 @@ - int i; - int fd; - DPME * data; -- long t; - - data = (DPME *) malloc(PBLOCK_SIZE); - if (data == NULL) { -@@ -382,7 +380,7 @@ - printf("Header:\n"); - printf("fd=%d (%s)\n", map->fd, (map->regular_file)?"file":"device"); - printf("map %d blocks out of %d, media %u blocks\n", -- map->blocks_in_map, map->maximum_in_map, map->media_size); -+ map->blocks_in_map, map->maximum_in_map, (unsigned int)map->media_size); - printf("Map is%s writeable", (map->writeable)?kStringEmpty:kStringNot); - printf(", but%s changed\n", (map->changed)?kStringEmpty:kStringNot); - printf("\n"); -@@ -426,7 +424,7 @@ - for (entry = map->disk_order; entry != NULL; entry = entry->next_on_disk) { - p = entry->data; - printf("%2d: %20.32s ", -- entry->disk_address, p->dpme_type); -+ (int)entry->disk_address, p->dpme_type); - printf("%7u @ %-7u ", p->dpme_pblocks, p->dpme_pblock_start); - printf("%c%c%c%c%c%c%c%c%c%c ", - (dpme_valid_get(p))?'V':'v', -@@ -449,7 +447,7 @@ - "goto_address checksum processor\n"); - for (entry = map->disk_order; entry != NULL; entry = entry->next_on_disk) { - p = entry->data; -- printf("%2d: ", entry->disk_address); -+ printf("%2d: ", (int)entry->disk_address); - printf("%7u ", p->dpme_boot_block); - printf("%7u ", p->dpme_boot_bytes); - printf("%8x ", p->dpme_load_addr); -@@ -466,7 +464,7 @@ - */ - for (entry = map->disk_order; entry != NULL; entry = entry->next_on_disk) { - p = entry->data; -- printf("%2d: ", entry->disk_address); -+ printf("%2d: ", (int)entry->disk_address); - - bp = (BZB *) (p->dpme_bzb); - j = -1; -diff -uNr mac-fdisk-0.1.orig/errors.c mac-fdisk-0.1/errors.c ---- mac-fdisk-0.1.orig/errors.c 1997-01-14 21:29:39.000000000 +0100 -+++ mac-fdisk-0.1/errors.c 2004-08-31 13:56:41.769079952 +0200 -@@ -26,12 +26,11 @@ - */ - - #include <stdio.h> --#ifndef __linux__ - #include <stdlib.h> --#endif - #include <string.h> - #include <stdarg.h> - -+#include <errno.h> - #include "errors.h" - #include "pdisk.h" - -@@ -115,8 +114,8 @@ - va_end(ap); - - #ifdef __linux__ -- if (value > 0 && value < sys_nerr) { -- fprintf(stderr, " (%s)\n", sys_errlist[value]); -+ if (value > 0 && value < errno) { -+ fprintf(stderr, " (%s)\n", strerror(value)); - } else { - fprintf(stderr, "\n"); - } -@@ -144,8 +143,8 @@ - va_end(ap); - - #ifdef __linux__ -- if (value > 0 && value < sys_nerr) { -- fprintf(stderr, " (%s)\n", sys_errlist[value]); -+ if (value > 0 && value < errno) { -+ fprintf(stderr, " (%s)\n", strerror(value)); - } else { - fprintf(stderr, "\n"); - } -diff -uNr mac-fdisk-0.1.orig/fdisk.c mac-fdisk-0.1/fdisk.c ---- mac-fdisk-0.1.orig/fdisk.c 2004-08-31 14:40:23.007061192 +0200 -+++ mac-fdisk-0.1/fdisk.c 2004-08-31 14:42:28.604138560 +0200 -@@ -58,24 +58,76 @@ - * - */ - -- - #include <unistd.h> - #include <stdio.h> --#include <stdlib.h> -+#include <stdlib.h> - #include <fcntl.h> - #include <ctype.h> - #include <setjmp.h> - #include <errno.h> - #include <endian.h> -- -+#include <string.h> - #include <sys/ioctl.h> - --typedef unsigned short kdev_t; /* BAD hack; kdev_t is not exported */ -- - #include "kernel-defs.h" - - #include "fdisk.h" - -+/* ----------- */ -+#define _PPC64_TYPES_H -+#define BITS_PER_LONG 64 -+ -+typedef __signed__ char __s8; -+typedef signed char s8; -+typedef unsigned char u8; -+typedef unsigned char __u8; -+ -+typedef __signed__ short __s16; -+typedef signed short s16; -+/*typedef unsigned short __u16;*/ -+typedef unsigned short u16; -+ -+typedef __signed__ int __s32; -+typedef signed int s32; -+/*typedef unsigned int __u32;*/ -+typedef unsigned int u32; -+ -+typedef __signed__ long __s64; -+typedef signed long s64; -+typedef unsigned long __u64; -+typedef unsigned long u64; -+ -+typedef struct { -+ __u32 u[4]; -+} __attribute((aligned(16))) __vector128; -+ -+typedef __vector128 vector128; -+ -+typedef u32 dma_addr_t; -+typedef u64 dma64_addr_t; -+ -+typedef struct { -+ unsigned long entry; -+ unsigned long toc; -+ unsigned long env; -+} func_descr_t; -+ -+typedef unsigned int umode_t; -+ -+#define BITS_TO_LONGS(bits) \ -+ (((bits)+BITS_PER_LONG-1)/BITS_PER_LONG) -+#define DECLARE_BITMAP(name,bits) \ -+ unsigned long name[BITS_TO_LONGS(bits)] -+#define CLEAR_BITMAP(name,bits) \ -+ memset(name, 0, BITS_TO_LONGS(bits)*sizeof(unsigned long)) -+ -+/* hd/ide ctl's that pass (arg) ptrs to user space are numbered 0x030n/0x031n */ -+#define HDIO_GETGEO 0x0301 /* get device geometry */ -+ -+#define BLKRRPART _IO(0x12,95) /* re-read partition table */ -+ -+/* ---------- */ -+ - #define hex_val(c) ({ \ - char _c = (c); \ - isdigit(_c) ? _c - '0' : \ -@@ -1415,7 +1467,7 @@ - } - } - --void main(int argc, char **argv) -+int main(int argc, char **argv) - { - if (argc > 3) - fatal(usage); -diff -uNr mac-fdisk-0.1.orig/fdisklabel.c mac-fdisk-0.1/fdisklabel.c ---- mac-fdisk-0.1.orig/fdisklabel.c 2004-08-31 14:40:23.008061040 +0200 -+++ mac-fdisk-0.1/fdisklabel.c 2004-08-31 14:00:11.698117192 +0200 -@@ -35,6 +35,7 @@ - SUCH DAMAGE. - */ - -+#include <sys/types.h> - #include <unistd.h> - #include <stdio.h> - #include <stdlib.h> -@@ -42,10 +43,13 @@ - #include <ctype.h> - #include <setjmp.h> - #include <errno.h> -+#include <string.h> - - #include <sys/ioctl.h> - #include <sys/param.h> - -+#include <asm/types.h> -+ - #include "kernel-defs.h" - - #include "fdisk.h" -@@ -262,8 +266,8 @@ - fprintf(f, "type: %s\n", bsd_dktypenames[lp->d_type]); - else - fprintf(f, "type: %d\n", lp->d_type); -- fprintf(f, "disk: %.*s\n", sizeof(lp->d_typename), lp->d_typename); -- fprintf(f, "label: %.*s\n", sizeof(lp->d_packname), lp->d_packname); -+ fprintf(f, "disk: %.*s\n", (int)sizeof(lp->d_typename), lp->d_typename); -+ fprintf(f, "label: %.*s\n", (int)sizeof(lp->d_packname), lp->d_packname); - fprintf(f, "flags:"); - if (lp->d_flags & BSD_D_REMOVABLE) - fprintf(f, " removable"); -@@ -272,17 +276,17 @@ - if (lp->d_flags & BSD_D_BADSECT) - fprintf(f, " badsect"); - fprintf(f, "\n"); -- fprintf(f, "bytes/sector: %d\n", lp->d_secsize); -- fprintf(f, "sectors/track: %d\n", lp->d_nsectors); -- fprintf(f, "tracks/cylinder: %d\n", lp->d_ntracks); -- fprintf(f, "sectors/cylinder: %d\n", lp->d_secpercyl); -- fprintf(f, "cylinders: %d\n", lp->d_ncylinders); -+ fprintf(f, "bytes/sector: %d\n", (int)lp->d_secsize); -+ fprintf(f, "sectors/track: %d\n", (int)lp->d_nsectors); -+ fprintf(f, "tracks/cylinder: %d\n", (int)lp->d_ntracks); -+ fprintf(f, "sectors/cylinder: %d\n", (int)lp->d_secpercyl); -+ fprintf(f, "cylinders: %d\n", (int)lp->d_ncylinders); - fprintf(f, "rpm: %d\n", lp->d_rpm); - fprintf(f, "interleave: %d\n", lp->d_interleave); - fprintf(f, "trackskew: %d\n", lp->d_trackskew); - fprintf(f, "cylinderskew: %d\n", lp->d_cylskew); -- fprintf(f, "headswitch: %d\t\t# milliseconds\n", lp->d_headswitch); -- fprintf(f, "track-to-track seek: %d\t# milliseconds\n", lp->d_trkseek); -+ fprintf(f, "headswitch: %d\t\t# milliseconds\n", (int)lp->d_headswitch); -+ fprintf(f, "track-to-track seek: %d\t# milliseconds\n", (int)lp->d_trkseek); - fprintf(f, "drivedata: "); - for (i = NDDATA - 1; i >= 0; i--) - if (lp->d_drivedata[i]) -@@ -290,7 +294,7 @@ - if (i < 0) - i = 0; - for (j = 0; j <= i; j++) -- fprintf(f, "%d ", lp->d_drivedata[j]); -+ fprintf(f, "%d ", (int)lp->d_drivedata[j]); - } - fprintf (f, "\n%d partitions:\n", lp->d_npartitions); - fprintf (f, "# size offset fstype [fsize bsize cpg]\n"); -@@ -298,7 +302,7 @@ - for (i = 0; i < lp->d_npartitions; i++, pp++) { - if (pp->p_size) { - fprintf(f, " %c: %8d %8d ", 'a' + i, -- pp->p_size, pp->p_offset); -+ (int)pp->p_size, (int)pp->p_offset); - if ((unsigned) pp->p_fstype < BSD_FSMAXTYPES) - fprintf(f, "%8.8s", bsd_fstypes[pp->p_fstype].name); - else -@@ -307,12 +311,12 @@ - { - case BSD_FS_UNUSED: - fprintf(f, " %5d %5d %5.5s ", -- pp->p_fsize, pp->p_fsize * pp->p_frag, ""); -+ (int)pp->p_fsize, (int)pp->p_fsize * pp->p_frag, ""); - break; - - case BSD_FS_BSDFFS: - fprintf(f, " %5d %5d %5d ", -- pp->p_fsize, pp->p_fsize * pp->p_frag, -+ (int)pp->p_fsize, (int)pp->p_fsize * pp->p_frag, - pp->p_cpg); - break; - -@@ -322,21 +326,21 @@ - } - fprintf(f, "\t# (Cyl. %4d", - #if 0 -- pp->p_offset / lp->d_secpercyl); /* differs from Linux fdisk */ -+ (int)(pp->p_offset / lp->d_secpercyl)); /* differs from Linux fdisk */ - #else -- pp->p_offset / lp->d_secpercyl + 1); -+ (int)(pp->p_offset / lp->d_secpercyl + 1)); - #endif - if (pp->p_offset % lp->d_secpercyl) - putc('*', f); - else - putc(' ', f); - fprintf(f, "- %d", -- (pp->p_offset + -+ (int)((pp->p_offset + - pp->p_size + lp->d_secpercyl - 1) / - #if 0 -- lp->d_secpercyl - 1); /* differs from Linux fdisk */ -+ lp->d_secpercyl - 1)); /* differs from Linux fdisk */ - #else -- lp->d_secpercyl); -+ lp->d_secpercyl)); - #endif - if (pp->p_size % lp->d_secpercyl) - putc('*', f); -diff -uNr mac-fdisk-0.1.orig/io.c mac-fdisk-0.1/io.c ---- mac-fdisk-0.1.orig/io.c 2004-08-31 14:40:23.004061648 +0200 -+++ mac-fdisk-0.1/io.c 2004-08-31 13:56:41.772079496 +0200 -@@ -26,15 +26,18 @@ - */ - - #include <stdio.h> --#ifndef __linux__ - #include <stdlib.h> -+#ifndef __linux__ - #include <fcntl.h> - #include <SCSI.h> - #else - #ifdef __GLIBC__ -+#include <fcntl.h> - #include <sys/types.h> -+#include <sys/stat.h> - #endif - #endif -+#include <linux/unistd.h> - #include <unistd.h> - #include <string.h> - #include <stdarg.h> -@@ -466,7 +469,7 @@ - long t; - - if (rflag) { -- printf("Can't write block %u to file", num); -+ printf("Can't write block %u to file", (unsigned int)num); - return 0; - } - #ifndef __linux__ -diff -uNr mac-fdisk-0.1.orig/partition_map.c mac-fdisk-0.1/partition_map.c ---- mac-fdisk-0.1.orig/partition_map.c 2004-08-31 14:40:23.005061496 +0200 -+++ mac-fdisk-0.1/partition_map.c 2004-08-31 13:56:41.773079344 +0200 -@@ -26,12 +26,10 @@ - */ - - #include <stdio.h> --#ifndef __linux__ - #include <stdlib.h> - #include <unistd.h> --#endif - #include <errno.h> -- -+#include <string.h> - #include <fcntl.h> - #ifdef __linux__ - #include <sys/ioctl.h> -@@ -106,7 +104,6 @@ - int fd; - partition_map_header * map; - int writeable; -- unsigned long length; - #ifdef __linux__ - struct stat info; - #endif -@@ -403,9 +400,7 @@ - { - int fd; - partition_map_header * map; -- unsigned long length; - DPME *data; -- int ok; - unsigned long number; - #ifdef __linux__ - struct stat info; -@@ -434,13 +429,13 @@ - map->maximum_in_map = -1; - - number = compute_device_size(fd); -- printf("size of 'device' is %u blocks: ", number); -+ printf("size of 'device' is %u blocks: ", (unsigned int)number); - flush_to_newline(0); - get_number_argument("what should be the size? ", (long *)&number, number); - if (number < 4) { - number = 4; - } -- printf("new size of 'device' is %u blocks\n", number); -+ printf("new size of 'device' is %u blocks\n", (unsigned int)number); - map->media_size = number; - - #ifdef __linux__ -diff -uNr mac-fdisk-0.1.orig/pdisk.c mac-fdisk-0.1/pdisk.c ---- mac-fdisk-0.1.orig/pdisk.c 2004-08-31 14:40:23.006061344 +0200 -+++ mac-fdisk-0.1/pdisk.c 2004-08-31 13:56:41.774079192 +0200 -@@ -28,12 +28,14 @@ - */ - - #include <stdio.h> -+#include <stdlib.h> -+#include <unistd.h> -+#include <string.h> -+ - #ifdef __linux__ - #include <getopt.h> - #include <stddef.h> - #else --#include <stdlib.h> --#include <unistd.h> - #include <SIOUX.h> - #endif - #include <errno.h> -@@ -436,7 +438,6 @@ - { - long base; - long length; -- long mult; - char *name; - char *type_name; - -@@ -598,7 +599,6 @@ - void - do_reorder(partition_map_header *map) - { -- partition_map * cur; - long old_index; - long index; - diff --git a/sys-fs/mac-fdisk/mac-fdisk-0.1-r3.ebuild b/sys-fs/mac-fdisk/mac-fdisk-0.1-r3.ebuild deleted file mode 100644 index c501bf0f7434..000000000000 --- a/sys-fs/mac-fdisk/mac-fdisk-0.1-r3.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/mac-fdisk/mac-fdisk-0.1-r3.ebuild,v 1.5 2006/08/08 23:47:45 wormo Exp $ - -inherit eutils - -DEBRV=11 -DESCRIPTION="Mac/PowerMac disk partitioning utility" -HOMEPAGE="ftp://ftp.mklinux.apple.com/pub/Other_Tools/" -SRC_URI="http://http.us.debian.org/debian/pool/main/m/mac-fdisk/${PN}_${PV}.orig.tar.gz - http://http.us.debian.org/debian/pool/main/m/mac-fdisk/${PN}_${PV}-${DEBRV}.diff.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="-* ppc64" -IUSE="" - -DEPEND="virtual/libc" - -src_unpack() { - unpack mac-fdisk_${PV}.orig.tar.gz - mv mac-fdisk-${PV}.orig ${P} - cd ${S} - epatch ${DISTDIR}/mac-fdisk_${PV}-${DEBRV}.diff.gz - - use ppc64 && epatch ${FILESDIR}/mac-fdisk-0.1-r3-ppc64.patch -} - -src_compile() { - emake || die -} - -src_install() { - mv mac-fdisk.8.in mac-fdisk.8 || die - mv pmac-fdisk.8.in pmac-fdisk.8 || die - mv pdisk mac-fdisk || die - mv fdisk pmac-fdisk || die - - into / - dosbin mac-fdisk pmac-fdisk || die - - into /usr - doman mac-fdisk.8 pmac-fdisk.8 - dodoc README HISTORY -} diff --git a/sys-fs/mac-fdisk/mac-fdisk-0.1-r6.ebuild b/sys-fs/mac-fdisk/mac-fdisk-0.1-r6.ebuild index 8730d2ca7812..fdd6fb60b933 100644 --- a/sys-fs/mac-fdisk/mac-fdisk-0.1-r6.ebuild +++ b/sys-fs/mac-fdisk/mac-fdisk-0.1-r6.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/mac-fdisk/mac-fdisk-0.1-r6.ebuild,v 1.8 2007/04/12 17:08:45 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/mac-fdisk/mac-fdisk-0.1-r6.ebuild,v 1.9 2007/06/25 15:58:51 josejx Exp $ -inherit eutils +inherit eutils toolchain-funcs DEBRV=13 DESCRIPTION="Mac/PowerMac disk partitioning utility" @@ -33,6 +33,10 @@ src_unpack() { epatch ${FILESDIR}/${PN}-amd64.patch } +src_compile() { + emake CC="$(tc-getCC)" || die "emake failed!" +} + src_install() { into / newsbin pdisk mac-fdisk || die |