summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorJoseph Jezak <josejx@gentoo.org>2009-07-22 15:18:55 +0000
committerJoseph Jezak <josejx@gentoo.org>2009-07-22 15:18:55 +0000
commitcdb6c9806039a727a8d7587dc22791ec818c8b5a (patch)
tree2c9dcb2bdeb96bec6c3cc347c7aae7a777333115 /sys-fs
parentarm/sh/sparc stable wrt #271253 (diff)
downloadhistorical-cdb6c9806039a727a8d7587dc22791ec818c8b5a.tar.gz
historical-cdb6c9806039a727a8d7587dc22791ec818c8b5a.tar.bz2
historical-cdb6c9806039a727a8d7587dc22791ec818c8b5a.zip
Added patch for bug #199430.
Package-Manager: portage-2.1.6.13/cvs/Linux x86_64
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/mac-fdisk/ChangeLog10
-rw-r--r--sys-fs/mac-fdisk/Manifest16
-rw-r--r--sys-fs/mac-fdisk/files/big_pt.patch80
-rw-r--r--sys-fs/mac-fdisk/mac-fdisk-0.1-r6.ebuild9
-rw-r--r--sys-fs/mac-fdisk/mac-fdisk-0.1-r7.ebuild55
5 files changed, 162 insertions, 8 deletions
diff --git a/sys-fs/mac-fdisk/ChangeLog b/sys-fs/mac-fdisk/ChangeLog
index 1546509d97ab..3170933e8017 100644
--- a/sys-fs/mac-fdisk/ChangeLog
+++ b/sys-fs/mac-fdisk/ChangeLog
@@ -1,6 +1,12 @@
# 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.21 2007/06/25 15:58:51 josejx Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/mac-fdisk/ChangeLog,v 1.22 2009/07/22 15:18:55 josejx Exp $
+
+*mac-fdisk-0.1-r7 (22 Jul 2009)
+
+ 22 Jul 2009; Joseph Jezak <josejx@gentoo.org> +files/big_pt.patch,
+ +mac-fdisk-0.1-r7.ebuild, mac-fdisk-0.1-r6.ebuild:
+ Added patch for bug #199430. Fixed variable quoting.
25 Jun 2007; Joseph Jezak <josejx@gentoo.org>
-files/mac-fdisk-0.1-r3-ppc64.patch, -mac-fdisk-0.1-r3.ebuild,
diff --git a/sys-fs/mac-fdisk/Manifest b/sys-fs/mac-fdisk/Manifest
index da134d6006dc..7753de9889bf 100644
--- a/sys-fs/mac-fdisk/Manifest
+++ b/sys-fs/mac-fdisk/Manifest
@@ -1,9 +1,21 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX big_pt.patch 1485 RMD160 d5bcb35c91a2705e447412d1a69ef6a1ef50cb69 SHA1 2f9d469bfe7c356bbde8978edb3b6ee44dc5e18d SHA256 2264e3f01ab3de1e96b3204a8a8d31c98253bb1fc388d41f7bf6cdb7a623cb1b
AUX largerthan2gb.patch 345 RMD160 1b50db957b7e218d40c51081b568fc44d0623cdf SHA1 5a636840c08f19430ffb7bfb0997e00338728bb4 SHA256 c635f03493854053ba41af9bec6cc9aab5ae2b73a7906c74bb297ee63dcc1cbb
AUX mac-fdisk-0.1-headers.patch 2218 RMD160 d9efe5117a58482a1029191820c01665ecf17e0f SHA1 570d67d3610db962308635a1ccf3f52e551f1726 SHA256 c03ebe8c9f9afc0d532682e8684f76b4a99de7edc3ca58102f1f8b361f293153
AUX mac-fdisk-0.1-r6-ppc64.patch 15294 RMD160 4ef172a586868498756309eeb4a3814c3ed0f346 SHA1 0786b0f4502305a8db593d9fc52181e61de67be4 SHA256 66d7ffd675b04c6616cf2b365d80e766b81e030e9578b4abe0480c96f2819585
AUX mac-fdisk-amd64.patch 5663 RMD160 55f23ccd1831765f0d788138237c15660a508408 SHA1 f21b2618ed63b7263ecdeab4aa49082078b46b8e SHA256 58333057a2860e33442b516099cff09e388dc4d16064eac3007b1688f97828bb
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-r6.ebuild 1227 RMD160 77bbe2f2fb66eecd4e6c7df427eff4a1edaf755a SHA1 dcc8907f56748576295b18f8ce11f9cdde3f4797 SHA256 9c850e7663b4fcc6ad8d3840b3742b0f9df1d1fbffe27dc1d2e26663d10f03ab
-MISC ChangeLog 4214 RMD160 81be275f0426cef53a965075a3016bdfca6a88a3 SHA1 38b9ebe41af57a271503b16e65e8b27bf87d357c SHA256 ab3857c789f61563e253c45fedf18bd1fcce1fbef3370eafeee896557f01de42
+EBUILD mac-fdisk-0.1-r6.ebuild 1252 RMD160 b454dff39aeecb306bb3a0ff07d34336d5b62f47 SHA1 8bcc724ced44b09ba9467c76e272535c334c55ac SHA256 95634ee3740bb29138b41869858356b85874a033c827de1e01408d232df59874
+EBUILD mac-fdisk-0.1-r7.ebuild 1459 RMD160 9bfbc6142cf71efdcebe9865431d4b7c062351d6 SHA1 413bed07a82c4e88a0e8dfdcd02f738932f5c782 SHA256 7ff2ba8946a2914fab66f47b291cbfbcc100fbf9f7ce7f980d46da381440e6f6
+MISC ChangeLog 4425 RMD160 cfb5b8977b5ece35ca00378b8c506c8d63acb55c SHA1 e5cc06e5e705aa2959a255cbd718ca4003911eac SHA256 d5f3f43f802bd5e6f69ca8a2d66272dca3f0459889c6f7f5400990c52d26401b
MISC metadata.xml 156 RMD160 a57e9e3e71bd04aa138850dc8cce8dbe9e1cd5a2 SHA1 30b3e2b32ee2b52b68ad1d77f04f2c75980bf7d4 SHA256 d57f79be439079b5c78578b17eb3ee7d20883353b1c40a716d3f1ab06af34851
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.11 (GNU/Linux)
+
+iEYEARECAAYFAkpnLUoACgkQcsIHjyDViGRdowCfaynjtMsVD5J7qvGevczSV+hr
+/NsAnjHA+1MgrwHsoOknUeuciHOQWnPf
+=dT0H
+-----END PGP SIGNATURE-----
diff --git a/sys-fs/mac-fdisk/files/big_pt.patch b/sys-fs/mac-fdisk/files/big_pt.patch
new file mode 100644
index 000000000000..f8951412516b
--- /dev/null
+++ b/sys-fs/mac-fdisk/files/big_pt.patch
@@ -0,0 +1,80 @@
+--- partition_map.c 2009-07-22 15:06:58.739072858 +0000
++++ /home/jjezak/partition_map.c 2009-07-22 15:10:01.069051603 +0000
+@@ -25,6 +25,11 @@
+ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
++//
++// Defines
++//
++// #define TEST_COMPUTE
++
+ #include <stdio.h>
+ #include <string.h>
+ #include <stdlib.h>
+@@ -36,6 +41,10 @@
+ #include <sys/ioctl.h>
+ #include "kernel-defs.h"
+ #include <sys/stat.h>
++#ifdef TEST_COMPUTE
++#include <linux/fs.h>
++#endif
++
+ #endif
+
+ #include "partition_map.h"
+@@ -45,10 +54,6 @@
+ #include "errors.h"
+
+
+-//
+-// Defines
+-//
+-// #define TEST_COMPUTE
+
+
+ //
+@@ -666,7 +671,7 @@
+ loff_t pos;
+ #endif
+ char* data;
+- unsigned long l, r, x;
++ unsigned long long l, r, x;
+ int valid;
+
+ #ifdef TEST_COMPUTE
+@@ -720,9 +725,11 @@
+ } else {
+ r = r * 2;
+ }
+- if (r >= (1024*1024*1024)) {
+- break;
+- }
++// There's no explanation for this, but I suspect the author was trying to
++// prevent going over the 32 bit size
++// if (r >= (1024*1024*1024*2)) {
++// break;
++// }
+ }
+ // binary search for end
+ while (l <= r) {
+@@ -740,11 +747,17 @@
+ if (valid != 0) {
+ x = x + 1;
+ }
+- // printf("size in blocks = %d\n", x);
++#ifdef TEST_COMPUTE
++ printf("size in blocks = %d\n", x);
++#endif
+ free(data);
+ }
++
++ // Add a warning just in case...
++ if(x > 0x80000000)
++ printf("Warning: Large disks may not work with this tool!\n");
+
+- return x;
++ return (unsigned long) x;
+ }
+
+
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 fdd6fb60b933..7b95d4c68bde 100644
--- a/sys-fs/mac-fdisk/mac-fdisk-0.1-r6.ebuild
+++ b/sys-fs/mac-fdisk/mac-fdisk-0.1-r6.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2009 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.9 2007/06/25 15:58:51 josejx Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/mac-fdisk/mac-fdisk-0.1-r6.ebuild,v 1.10 2009/07/22 15:18:55 josejx Exp $
inherit eutils toolchain-funcs
@@ -16,6 +16,7 @@ KEYWORDS="amd64 ppc ppc64 x86"
IUSE=""
DEPEND=""
+RDEPEND="${DEPEND}"
src_unpack() {
unpack mac-fdisk_${PV}.orig.tar.gz
@@ -27,10 +28,10 @@ src_unpack() {
epatch "${FILESDIR}"/${P}-headers.patch
### Patch for bug #142737
- epatch ${FILESDIR}/${PN}-0.1-r6-ppc64.patch
+ epatch "${FILESDIR}"/${PN}-0.1-r6-ppc64.patch
### Patch for building on amd64
- epatch ${FILESDIR}/${PN}-amd64.patch
+ epatch "${FILESDIR}"/${PN}-amd64.patch
}
src_compile() {
diff --git a/sys-fs/mac-fdisk/mac-fdisk-0.1-r7.ebuild b/sys-fs/mac-fdisk/mac-fdisk-0.1-r7.ebuild
new file mode 100644
index 000000000000..80f8cfaf8a89
--- /dev/null
+++ b/sys-fs/mac-fdisk/mac-fdisk-0.1-r7.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2009 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-r7.ebuild,v 1.1 2009/07/22 15:18:55 josejx Exp $
+
+inherit eutils toolchain-funcs
+
+DEBRV=13
+DESCRIPTION="Mac/PowerMac disk partitioning utility"
+HOMEPAGE="ftp://ftp.mklinux.apple.com/pub/Other_Tools/"
+SRC_URI="mirror://debian/pool/main/m/mac-fdisk/${PN}_${PV}.orig.tar.gz
+ mirror://debian/pool/main/m/mac-fdisk/${PN}_${PV}-${DEBRV}.diff.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack mac-fdisk_${PV}.orig.tar.gz
+ mv mac-fdisk-${PV}.orig ${P}
+ cd "${S}"
+ epatch "${DISTDIR}"/${PN}_${PV}-${DEBRV}.diff.gz
+
+ epatch "${FILESDIR}"/largerthan2gb.patch
+ epatch "${FILESDIR}"/${P}-headers.patch
+
+ ### Patch for bug #142737
+ epatch "${FILESDIR}"/${PN}-0.1-r6-ppc64.patch
+
+ ### Patch for building on amd64
+ epatch "${FILESDIR}"/${PN}-amd64.patch
+
+ ### Patch for large (>550GB disks)
+ ### Note that >=2TB disks may not work due to limitations of the Mac
+ ### Partition Table structure, this needs to be investigated
+ epatch "${FILESDIR}"/big_pt.patch
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" || die "emake failed!"
+}
+
+src_install() {
+ into /
+ newsbin pdisk mac-fdisk || die
+ newsbin fdisk pmac-fdisk || die
+
+ into /usr
+ newman mac-fdisk.8.in mac-fdisk.8
+ newman pmac-fdisk.8.in pmac-fdisk.8
+ dodoc README HISTORY
+}